public static final class CustomFieldOption.Builder extends GeneratedMessageV3.Builder<CustomFieldOption.Builder> implements CustomFieldOptionOrBuilder
An option for a drop-down CustomField
.
Protobuf type google.ads.admanager.v1.CustomFieldOption
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CustomFieldOption.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CustomFieldOption build()
buildPartial()
public CustomFieldOption buildPartial()
clear()
public CustomFieldOption.Builder clear()
Overrides
clearCustomFieldOptionId()
public CustomFieldOption.Builder clearCustomFieldOptionId()
Output only. CustomFieldOption
ID.
int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
clearDisplayName()
public CustomFieldOption.Builder clearDisplayName()
Required. The display name of the CustomFieldOption
.
This value has a maximum length of 127 characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
clearField(Descriptors.FieldDescriptor field)
public CustomFieldOption.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CustomFieldOption.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public CustomFieldOption.Builder clone()
Overrides
getCustomFieldOptionId()
public long getCustomFieldOptionId()
Output only. CustomFieldOption
ID.
int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
long |
The customFieldOptionId.
|
getDefaultInstanceForType()
public CustomFieldOption getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getDisplayName()
public String getDisplayName()
Required. The display name of the CustomFieldOption
.
This value has a maximum length of 127 characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The displayName.
|
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
Required. The display name of the CustomFieldOption
.
This value has a maximum length of 127 characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for displayName.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CustomFieldOption other)
public CustomFieldOption.Builder mergeFrom(CustomFieldOption other)
public CustomFieldOption.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CustomFieldOption.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CustomFieldOption.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setCustomFieldOptionId(long value)
public CustomFieldOption.Builder setCustomFieldOptionId(long value)
Output only. CustomFieldOption
ID.
int64 custom_field_option_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter |
Name |
Description |
value |
long
The customFieldOptionId to set.
|
setDisplayName(String value)
public CustomFieldOption.Builder setDisplayName(String value)
Required. The display name of the CustomFieldOption
.
This value has a maximum length of 127 characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
String
The displayName to set.
|
setDisplayNameBytes(ByteString value)
public CustomFieldOption.Builder setDisplayNameBytes(ByteString value)
Required. The display name of the CustomFieldOption
.
This value has a maximum length of 127 characters.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
ByteString
The bytes for displayName to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public CustomFieldOption.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CustomFieldOption.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CustomFieldOption.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides