Class SharedSet.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SharedSet.Builder>
-
- com.google.ads.googleads.v9.resources.SharedSet.Builder
-
- All Implemented Interfaces:
SharedSetOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- SharedSet
public static final class SharedSet.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SharedSet.Builder> implements SharedSetOrBuilder
SharedSets are used for sharing criterion exclusions across multiple campaigns.
Protobuf typegoogle.ads.googleads.v9.resources.SharedSet
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SharedSet.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
SharedSet
build()
SharedSet
buildPartial()
SharedSet.Builder
clear()
SharedSet.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
SharedSet.Builder
clearId()
Output only.SharedSet.Builder
clearMemberCount()
Output only.SharedSet.Builder
clearName()
The name of this shared set.SharedSet.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SharedSet.Builder
clearReferenceCount()
Output only.SharedSet.Builder
clearResourceName()
Immutable.SharedSet.Builder
clearStatus()
Output only.SharedSet.Builder
clearType()
Immutable.SharedSet.Builder
clone()
SharedSet
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
long
getId()
Output only.long
getMemberCount()
Output only.java.lang.String
getName()
The name of this shared set.com.google.protobuf.ByteString
getNameBytes()
The name of this shared set.long
getReferenceCount()
Output only.java.lang.String
getResourceName()
Immutable.com.google.protobuf.ByteString
getResourceNameBytes()
Immutable.SharedSetStatusEnum.SharedSetStatus
getStatus()
Output only.int
getStatusValue()
Output only.SharedSetTypeEnum.SharedSetType
getType()
Immutable.int
getTypeValue()
Immutable.boolean
hasId()
Output only.boolean
hasMemberCount()
Output only.boolean
hasName()
The name of this shared set.boolean
hasReferenceCount()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
SharedSet.Builder
mergeFrom(SharedSet other)
SharedSet.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SharedSet.Builder
mergeFrom(com.google.protobuf.Message other)
SharedSet.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
SharedSet.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
SharedSet.Builder
setId(long value)
Output only.SharedSet.Builder
setMemberCount(long value)
Output only.SharedSet.Builder
setName(java.lang.String value)
The name of this shared set.SharedSet.Builder
setNameBytes(com.google.protobuf.ByteString value)
The name of this shared set.SharedSet.Builder
setReferenceCount(long value)
Output only.SharedSet.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
SharedSet.Builder
setResourceName(java.lang.String value)
Immutable.SharedSet.Builder
setResourceNameBytes(com.google.protobuf.ByteString value)
Immutable.SharedSet.Builder
setStatus(SharedSetStatusEnum.SharedSetStatus value)
Output only.SharedSet.Builder
setStatusValue(int value)
Output only.SharedSet.Builder
setType(SharedSetTypeEnum.SharedSetType value)
Immutable.SharedSet.Builder
setTypeValue(int value)
Immutable.SharedSet.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<SharedSet.Builder>
-
clear
public SharedSet.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<SharedSet.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<SharedSet.Builder>
-
getDefaultInstanceForType
public SharedSet getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SharedSet build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SharedSet buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SharedSet.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<SharedSet.Builder>
-
setField
public SharedSet.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SharedSet.Builder>
-
clearField
public SharedSet.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SharedSet.Builder>
-
clearOneof
public SharedSet.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<SharedSet.Builder>
-
setRepeatedField
public SharedSet.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SharedSet.Builder>
-
addRepeatedField
public SharedSet.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SharedSet.Builder>
-
mergeFrom
public SharedSet.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SharedSet.Builder>
-
mergeFrom
public SharedSet.Builder mergeFrom(SharedSet other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<SharedSet.Builder>
-
mergeFrom
public SharedSet.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SharedSet.Builder>
- Throws:
java.io.IOException
-
getResourceName
public java.lang.String getResourceName()
Immutable. The resource name of the shared set. Shared set resource names have the form: `customers/{customer_id}/sharedSets/{shared_set_id}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getResourceName
in interfaceSharedSetOrBuilder
- Returns:
- The resourceName.
-
getResourceNameBytes
public com.google.protobuf.ByteString getResourceNameBytes()
Immutable. The resource name of the shared set. Shared set resource names have the form: `customers/{customer_id}/sharedSets/{shared_set_id}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Specified by:
getResourceNameBytes
in interfaceSharedSetOrBuilder
- Returns:
- The bytes for resourceName.
-
setResourceName
public SharedSet.Builder setResourceName(java.lang.String value)
Immutable. The resource name of the shared set. Shared set resource names have the form: `customers/{customer_id}/sharedSets/{shared_set_id}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The resourceName to set.- Returns:
- This builder for chaining.
-
clearResourceName
public SharedSet.Builder clearResourceName()
Immutable. The resource name of the shared set. Shared set resource names have the form: `customers/{customer_id}/sharedSets/{shared_set_id}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Returns:
- This builder for chaining.
-
setResourceNameBytes
public SharedSet.Builder setResourceNameBytes(com.google.protobuf.ByteString value)
Immutable. The resource name of the shared set. Shared set resource names have the form: `customers/{customer_id}/sharedSets/{shared_set_id}`
string resource_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
- Parameters:
value
- The bytes for resourceName to set.- Returns:
- This builder for chaining.
-
hasId
public boolean hasId()
Output only. The ID of this shared set. Read only.
optional int64 id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasId
in interfaceSharedSetOrBuilder
- Returns:
- Whether the id field is set.
-
getId
public long getId()
Output only. The ID of this shared set. Read only.
optional int64 id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getId
in interfaceSharedSetOrBuilder
- Returns:
- The id.
-
setId
public SharedSet.Builder setId(long value)
Output only. The ID of this shared set. Read only.
optional int64 id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
public SharedSet.Builder clearId()
Output only. The ID of this shared set. Read only.
optional int64 id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
getTypeValue
public int getTypeValue()
Immutable. The type of this shared set: each shared set holds only a single kind of resource. Required. Immutable.
.google.ads.googleads.v9.enums.SharedSetTypeEnum.SharedSetType type = 3 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getTypeValue
in interfaceSharedSetOrBuilder
- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public SharedSet.Builder setTypeValue(int value)
Immutable. The type of this shared set: each shared set holds only a single kind of resource. Required. Immutable.
.google.ads.googleads.v9.enums.SharedSetTypeEnum.SharedSetType type = 3 [(.google.api.field_behavior) = IMMUTABLE];
- Parameters:
value
- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
public SharedSetTypeEnum.SharedSetType getType()
Immutable. The type of this shared set: each shared set holds only a single kind of resource. Required. Immutable.
.google.ads.googleads.v9.enums.SharedSetTypeEnum.SharedSetType type = 3 [(.google.api.field_behavior) = IMMUTABLE];
- Specified by:
getType
in interfaceSharedSetOrBuilder
- Returns:
- The type.
-
setType
public SharedSet.Builder setType(SharedSetTypeEnum.SharedSetType value)
Immutable. The type of this shared set: each shared set holds only a single kind of resource. Required. Immutable.
.google.ads.googleads.v9.enums.SharedSetTypeEnum.SharedSetType type = 3 [(.google.api.field_behavior) = IMMUTABLE];
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
clearType
public SharedSet.Builder clearType()
Immutable. The type of this shared set: each shared set holds only a single kind of resource. Required. Immutable.
.google.ads.googleads.v9.enums.SharedSetTypeEnum.SharedSetType type = 3 [(.google.api.field_behavior) = IMMUTABLE];
- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()
The name of this shared set. Required. Shared Sets must have names that are unique among active shared sets of the same type. The length of this string should be between 1 and 255 UTF-8 bytes, inclusive.
optional string name = 9;
- Specified by:
hasName
in interfaceSharedSetOrBuilder
- Returns:
- Whether the name field is set.
-
getName
public java.lang.String getName()
The name of this shared set. Required. Shared Sets must have names that are unique among active shared sets of the same type. The length of this string should be between 1 and 255 UTF-8 bytes, inclusive.
optional string name = 9;
- Specified by:
getName
in interfaceSharedSetOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name of this shared set. Required. Shared Sets must have names that are unique among active shared sets of the same type. The length of this string should be between 1 and 255 UTF-8 bytes, inclusive.
optional string name = 9;
- Specified by:
getNameBytes
in interfaceSharedSetOrBuilder
- Returns:
- The bytes for name.
-
setName
public SharedSet.Builder setName(java.lang.String value)
The name of this shared set. Required. Shared Sets must have names that are unique among active shared sets of the same type. The length of this string should be between 1 and 255 UTF-8 bytes, inclusive.
optional string name = 9;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public SharedSet.Builder clearName()
The name of this shared set. Required. Shared Sets must have names that are unique among active shared sets of the same type. The length of this string should be between 1 and 255 UTF-8 bytes, inclusive.
optional string name = 9;
- Returns:
- This builder for chaining.
-
setNameBytes
public SharedSet.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of this shared set. Required. Shared Sets must have names that are unique among active shared sets of the same type. The length of this string should be between 1 and 255 UTF-8 bytes, inclusive.
optional string name = 9;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getStatusValue
public int getStatusValue()
Output only. The status of this shared set. Read only.
.google.ads.googleads.v9.enums.SharedSetStatusEnum.SharedSetStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStatusValue
in interfaceSharedSetOrBuilder
- Returns:
- The enum numeric value on the wire for status.
-
setStatusValue
public SharedSet.Builder setStatusValue(int value)
Output only. The status of this shared set. Read only.
.google.ads.googleads.v9.enums.SharedSetStatusEnum.SharedSetStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The enum numeric value on the wire for status to set.- Returns:
- This builder for chaining.
-
getStatus
public SharedSetStatusEnum.SharedSetStatus getStatus()
Output only. The status of this shared set. Read only.
.google.ads.googleads.v9.enums.SharedSetStatusEnum.SharedSetStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStatus
in interfaceSharedSetOrBuilder
- Returns:
- The status.
-
setStatus
public SharedSet.Builder setStatus(SharedSetStatusEnum.SharedSetStatus value)
Output only. The status of this shared set. Read only.
.google.ads.googleads.v9.enums.SharedSetStatusEnum.SharedSetStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The status to set.- Returns:
- This builder for chaining.
-
clearStatus
public SharedSet.Builder clearStatus()
Output only. The status of this shared set. Read only.
.google.ads.googleads.v9.enums.SharedSetStatusEnum.SharedSetStatus status = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
hasMemberCount
public boolean hasMemberCount()
Output only. The number of shared criteria within this shared set. Read only.
optional int64 member_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasMemberCount
in interfaceSharedSetOrBuilder
- Returns:
- Whether the memberCount field is set.
-
getMemberCount
public long getMemberCount()
Output only. The number of shared criteria within this shared set. Read only.
optional int64 member_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getMemberCount
in interfaceSharedSetOrBuilder
- Returns:
- The memberCount.
-
setMemberCount
public SharedSet.Builder setMemberCount(long value)
Output only. The number of shared criteria within this shared set. Read only.
optional int64 member_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The memberCount to set.- Returns:
- This builder for chaining.
-
clearMemberCount
public SharedSet.Builder clearMemberCount()
Output only. The number of shared criteria within this shared set. Read only.
optional int64 member_count = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
hasReferenceCount
public boolean hasReferenceCount()
Output only. The number of campaigns associated with this shared set. Read only.
optional int64 reference_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasReferenceCount
in interfaceSharedSetOrBuilder
- Returns:
- Whether the referenceCount field is set.
-
getReferenceCount
public long getReferenceCount()
Output only. The number of campaigns associated with this shared set. Read only.
optional int64 reference_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getReferenceCount
in interfaceSharedSetOrBuilder
- Returns:
- The referenceCount.
-
setReferenceCount
public SharedSet.Builder setReferenceCount(long value)
Output only. The number of campaigns associated with this shared set. Read only.
optional int64 reference_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Parameters:
value
- The referenceCount to set.- Returns:
- This builder for chaining.
-
clearReferenceCount
public SharedSet.Builder clearReferenceCount()
Output only. The number of campaigns associated with this shared set. Read only.
optional int64 reference_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- This builder for chaining.
-
setUnknownFields
public final SharedSet.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SharedSet.Builder>
-
mergeUnknownFields
public final SharedSet.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SharedSet.Builder>
-
-