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.v18.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,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 type
google.ads.googleads.v18.common.ChainFilter-
Method Summary
Modifier and TypeMethodDescriptionaddAllLocationAttributes(Iterable<String> values) Used to filter chain locations by location attributes.addLocationAttributes(String value) Used to filter chain locations by location attributes.addLocationAttributesBytes(com.google.protobuf.ByteString value) Used to filter chain locations by location attributes.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Required.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Used to filter chain locations by location attributes.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()longRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetLocationAttributes(int index) Used to filter chain locations by location attributes.com.google.protobuf.ByteStringgetLocationAttributesBytes(int index) Used to filter chain locations by location attributes.intUsed to filter chain locations by location attributes.com.google.protobuf.ProtocolStringListUsed to filter chain locations by location attributes.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(ChainFilter other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) final ChainFilter.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setChainId(long value) Required.setLocationAttributes(int index, String value) Used to filter chain locations by location attributes.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
- 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
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ChainFilter.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ChainFilter.Builder>
-
clearOneof
- 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, 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, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ChainFilter.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ChainFilter.Builder>
-
mergeFrom
-
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 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:
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
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
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
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
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
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
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
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
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>
-