public static final class AudienceSegment.Builder extends GeneratedMessage.Builder<AudienceSegment.Builder> implements AudienceSegmentOrBuilder The AudienceSegment resource.
Protobuf type google.ads.admanager.v1.AudienceSegment
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AudienceSegment.BuilderImplements
AudienceSegmentOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AudienceSegment build()| Returns | |
|---|---|
| Type | Description |
AudienceSegment |
|
buildPartial()
public AudienceSegment buildPartial()| Returns | |
|---|---|
| Type | Description |
AudienceSegment |
|
clear()
public AudienceSegment.Builder clear()| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Builder |
|
clearDisplayName()
public AudienceSegment.Builder clearDisplayName() Required. Display name of the AudienceSegment. The attribute has a
maximum length of 255 characters.
optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Builder |
This builder for chaining. |
clearName()
public AudienceSegment.Builder clearName() Identifier. The resource name of the AudienceSegment.
Format: networks/{network_code}/audienceSegments/{audience_segment_id}
The audience_segment_id may have up to 1 of the following suffixes:
~directfor directly licensed third-party segments~globalfor globally licensed third-party segments
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public AudienceSegment getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AudienceSegment |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDisplayName()
public String getDisplayName() Required. Display name of the AudienceSegment. The attribute has a
maximum length of 255 characters.
optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes() Required. Display name of the AudienceSegment. The attribute has a
maximum length of 255 characters.
optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for displayName. |
getName()
public String getName() Identifier. The resource name of the AudienceSegment.
Format: networks/{network_code}/audienceSegments/{audience_segment_id}
The audience_segment_id may have up to 1 of the following suffixes:
~directfor directly licensed third-party segments~globalfor globally licensed third-party segments
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() Identifier. The resource name of the AudienceSegment.
Format: networks/{network_code}/audienceSegments/{audience_segment_id}
The audience_segment_id may have up to 1 of the following suffixes:
~directfor directly licensed third-party segments~globalfor globally licensed third-party segments
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
hasDisplayName()
public boolean hasDisplayName() Required. Display name of the AudienceSegment. The attribute has a
maximum length of 255 characters.
optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the displayName field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AudienceSegment other)
public AudienceSegment.Builder mergeFrom(AudienceSegment other)| Parameter | |
|---|---|
| Name | Description |
other |
AudienceSegment |
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AudienceSegment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AudienceSegment.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Builder |
|
setDisplayName(String value)
public AudienceSegment.Builder setDisplayName(String value) Required. Display name of the AudienceSegment. The attribute has a
maximum length of 255 characters.
optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe displayName to set. |
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Builder |
This builder for chaining. |
setDisplayNameBytes(ByteString value)
public AudienceSegment.Builder setDisplayNameBytes(ByteString value) Required. Display name of the AudienceSegment. The attribute has a
maximum length of 255 characters.
optional string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for displayName to set. |
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Builder |
This builder for chaining. |
setName(String value)
public AudienceSegment.Builder setName(String value) Identifier. The resource name of the AudienceSegment.
Format: networks/{network_code}/audienceSegments/{audience_segment_id}
The audience_segment_id may have up to 1 of the following suffixes:
~directfor directly licensed third-party segments~globalfor globally licensed third-party segments
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public AudienceSegment.Builder setNameBytes(ByteString value) Identifier. The resource name of the AudienceSegment.
Format: networks/{network_code}/audienceSegments/{audience_segment_id}
The audience_segment_id may have up to 1 of the following suffixes:
~directfor directly licensed third-party segments~globalfor globally licensed third-party segments
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
AudienceSegment.Builder |
This builder for chaining. |