Class ChainFilter.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ChainFilter.Builder>
-
- com.google.ads.googleads.v15.common.ChainFilter.Builder
-
- All Implemented Interfaces:
ChainFilterOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- ChainFilter
public static final class ChainFilter.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ChainFilter.Builder> implements ChainFilterOrBuilder
One chain level filter on location in a feed item set. The filtering logic among all the fields is AND.
Protobuf typegoogle.ads.googleads.v15.common.ChainFilter
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ChainFilter.BuilderaddAllLocationAttributes(java.lang.Iterable<java.lang.String> values)Used to filter chain locations by location attributes.ChainFilter.BuilderaddLocationAttributes(java.lang.String value)Used to filter chain locations by location attributes.ChainFilter.BuilderaddLocationAttributesBytes(com.google.protobuf.ByteString value)Used to filter chain locations by location attributes.ChainFilter.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)ChainFilterbuild()ChainFilterbuildPartial()ChainFilter.Builderclear()ChainFilter.BuilderclearChainId()Required.ChainFilter.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ChainFilter.BuilderclearLocationAttributes()Used to filter chain locations by location attributes.ChainFilter.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ChainFilter.Builderclone()longgetChainId()Required.ChainFiltergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetLocationAttributes(int index)Used to filter chain locations by location attributes.com.google.protobuf.ByteStringgetLocationAttributesBytes(int index)Used to filter chain locations by location attributes.intgetLocationAttributesCount()Used to filter chain locations by location attributes.com.google.protobuf.ProtocolStringListgetLocationAttributesList()Used to filter chain locations by location attributes.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ChainFilter.BuildermergeFrom(ChainFilter other)ChainFilter.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ChainFilter.BuildermergeFrom(com.google.protobuf.Message other)ChainFilter.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ChainFilter.BuildersetChainId(long value)Required.ChainFilter.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)ChainFilter.BuildersetLocationAttributes(int index, java.lang.String value)Used to filter chain locations by location attributes.ChainFilter.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)ChainFilter.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ChainFilter.Builder>
-
clear
public ChainFilter.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ChainFilter.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ChainFilter.Builder>
-
getDefaultInstanceForType
public ChainFilter getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ChainFilter build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ChainFilter buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ChainFilter.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ChainFilter.Builder>
-
setField
public ChainFilter.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ChainFilter.Builder>
-
clearField
public ChainFilter.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ChainFilter.Builder>
-
clearOneof
public ChainFilter.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ChainFilter.Builder>
-
setRepeatedField
public ChainFilter.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ChainFilter.Builder>
-
addRepeatedField
public ChainFilter.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ChainFilter.Builder>
-
mergeFrom
public ChainFilter.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ChainFilter.Builder>
-
mergeFrom
public ChainFilter.Builder mergeFrom(ChainFilter other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ChainFilter.Builder>
-
mergeFrom
public ChainFilter.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ChainFilter.Builder>- Throws:
java.io.IOException
-
getChainId
public long getChainId()
Required. Used to filter chain locations by chain id. Only chain locations that belong to the specified chain will be in the asset set.
int64 chain_id = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getChainIdin interfaceChainFilterOrBuilder- Returns:
- The chainId.
-
setChainId
public ChainFilter.Builder setChainId(long value)
Required. Used to filter chain locations by chain id. Only chain locations that belong to the specified chain will be in the asset set.
int64 chain_id = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The chainId to set.- Returns:
- This builder for chaining.
-
clearChainId
public ChainFilter.Builder clearChainId()
Required. Used to filter chain locations by chain id. Only chain locations that belong to the specified chain will be in the asset set.
int64 chain_id = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getLocationAttributesList
public com.google.protobuf.ProtocolStringList getLocationAttributesList()
Used to filter chain locations by location attributes. Only chain locations that belong to all of the specified attribute(s) will be in the asset set. If this field is empty, it means no filtering on this field.
repeated string location_attributes = 2;- Specified by:
getLocationAttributesListin interfaceChainFilterOrBuilder- Returns:
- A list containing the locationAttributes.
-
getLocationAttributesCount
public int getLocationAttributesCount()
Used to filter chain locations by location attributes. Only chain locations that belong to all of the specified attribute(s) will be in the asset set. If this field is empty, it means no filtering on this field.
repeated string location_attributes = 2;- Specified by:
getLocationAttributesCountin interfaceChainFilterOrBuilder- Returns:
- The count of locationAttributes.
-
getLocationAttributes
public java.lang.String getLocationAttributes(int index)
Used to filter chain locations by location attributes. Only chain locations that belong to all of the specified attribute(s) will be in the asset set. If this field is empty, it means no filtering on this field.
repeated string location_attributes = 2;- Specified by:
getLocationAttributesin interfaceChainFilterOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The locationAttributes at the given index.
-
getLocationAttributesBytes
public com.google.protobuf.ByteString getLocationAttributesBytes(int index)
Used to filter chain locations by location attributes. Only chain locations that belong to all of the specified attribute(s) will be in the asset set. If this field is empty, it means no filtering on this field.
repeated string location_attributes = 2;- Specified by:
getLocationAttributesBytesin interfaceChainFilterOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the locationAttributes at the given index.
-
setLocationAttributes
public ChainFilter.Builder setLocationAttributes(int index, java.lang.String value)
Used to filter chain locations by location attributes. Only chain locations that belong to all of the specified attribute(s) will be in the asset set. If this field is empty, it means no filtering on this field.
repeated string location_attributes = 2;- Parameters:
index- The index to set the value at.value- The locationAttributes to set.- Returns:
- This builder for chaining.
-
addLocationAttributes
public ChainFilter.Builder addLocationAttributes(java.lang.String value)
Used to filter chain locations by location attributes. Only chain locations that belong to all of the specified attribute(s) will be in the asset set. If this field is empty, it means no filtering on this field.
repeated string location_attributes = 2;- Parameters:
value- The locationAttributes to add.- Returns:
- This builder for chaining.
-
addAllLocationAttributes
public ChainFilter.Builder addAllLocationAttributes(java.lang.Iterable<java.lang.String> values)
Used to filter chain locations by location attributes. Only chain locations that belong to all of the specified attribute(s) will be in the asset set. If this field is empty, it means no filtering on this field.
repeated string location_attributes = 2;- Parameters:
values- The locationAttributes to add.- Returns:
- This builder for chaining.
-
clearLocationAttributes
public ChainFilter.Builder clearLocationAttributes()
Used to filter chain locations by location attributes. Only chain locations that belong to all of the specified attribute(s) will be in the asset set. If this field is empty, it means no filtering on this field.
repeated string location_attributes = 2;- Returns:
- This builder for chaining.
-
addLocationAttributesBytes
public ChainFilter.Builder addLocationAttributesBytes(com.google.protobuf.ByteString value)
Used to filter chain locations by location attributes. Only chain locations that belong to all of the specified attribute(s) will be in the asset set. If this field is empty, it means no filtering on this field.
repeated string location_attributes = 2;- Parameters:
value- The bytes of the locationAttributes to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ChainFilter.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ChainFilter.Builder>
-
mergeUnknownFields
public final ChainFilter.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ChainFilter.Builder>
-
-