public static final class CustomFieldValue.Builder extends GeneratedMessage.Builder<CustomFieldValue.Builder> implements CustomFieldValueOrBuilderA value for a CustomField on a resource.
Protobuf type google.ads.admanager.v1.CustomFieldValue
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CustomFieldValue.BuilderImplements
CustomFieldValueOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CustomFieldValue build()| Returns | |
|---|---|
| Type | Description |
CustomFieldValue |
|
buildPartial()
public CustomFieldValue buildPartial()| Returns | |
|---|---|
| Type | Description |
CustomFieldValue |
|
clear()
public CustomFieldValue.Builder clear()| Returns | |
|---|---|
| Type | Description |
CustomFieldValue.Builder |
|
clearCustomField()
public CustomFieldValue.Builder clearCustomField()Required. The custom field for which this is a value. Format: "networks/{network_code}/customFields/{custom_field_id}"
string custom_field = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
CustomFieldValue.Builder |
This builder for chaining. |
clearValue()
public CustomFieldValue.Builder clearValue()Required. A typed value representation of the value.
optional .google.ads.admanager.v1.CustomFieldValue.Value value = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CustomFieldValue.Builder |
|
getCustomField()
public String getCustomField()Required. The custom field for which this is a value. Format: "networks/{network_code}/customFields/{custom_field_id}"
string custom_field = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The customField. |
getCustomFieldBytes()
public ByteString getCustomFieldBytes()Required. The custom field for which this is a value. Format: "networks/{network_code}/customFields/{custom_field_id}"
string custom_field = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for customField. |
getDefaultInstanceForType()
public CustomFieldValue getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CustomFieldValue |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getValue()
public CustomFieldValue.Value getValue()Required. A typed value representation of the value.
optional .google.ads.admanager.v1.CustomFieldValue.Value value = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CustomFieldValue.Value |
The value. |
getValueBuilder()
public CustomFieldValue.Value.Builder getValueBuilder()Required. A typed value representation of the value.
optional .google.ads.admanager.v1.CustomFieldValue.Value value = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CustomFieldValue.Value.Builder |
|
getValueOrBuilder()
public CustomFieldValue.ValueOrBuilder getValueOrBuilder()Required. A typed value representation of the value.
optional .google.ads.admanager.v1.CustomFieldValue.Value value = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
CustomFieldValue.ValueOrBuilder |
|
hasValue()
public boolean hasValue()Required. A typed value representation of the value.
optional .google.ads.admanager.v1.CustomFieldValue.Value value = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the value field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CustomFieldValue other)
public CustomFieldValue.Builder mergeFrom(CustomFieldValue other)| Parameter | |
|---|---|
| Name | Description |
other |
CustomFieldValue |
| Returns | |
|---|---|
| Type | Description |
CustomFieldValue.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CustomFieldValue.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CustomFieldValue.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CustomFieldValue.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CustomFieldValue.Builder |
|
mergeValue(CustomFieldValue.Value value)
public CustomFieldValue.Builder mergeValue(CustomFieldValue.Value value)Required. A typed value representation of the value.
optional .google.ads.admanager.v1.CustomFieldValue.Value value = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
CustomFieldValue.Value |
| Returns | |
|---|---|
| Type | Description |
CustomFieldValue.Builder |
|
setCustomField(String value)
public CustomFieldValue.Builder setCustomField(String value)Required. The custom field for which this is a value. Format: "networks/{network_code}/customFields/{custom_field_id}"
string custom_field = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe customField to set. |
| Returns | |
|---|---|
| Type | Description |
CustomFieldValue.Builder |
This builder for chaining. |
setCustomFieldBytes(ByteString value)
public CustomFieldValue.Builder setCustomFieldBytes(ByteString value)Required. The custom field for which this is a value. Format: "networks/{network_code}/customFields/{custom_field_id}"
string custom_field = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for customField to set. |
| Returns | |
|---|---|
| Type | Description |
CustomFieldValue.Builder |
This builder for chaining. |
setValue(CustomFieldValue.Value value)
public CustomFieldValue.Builder setValue(CustomFieldValue.Value value)Required. A typed value representation of the value.
optional .google.ads.admanager.v1.CustomFieldValue.Value value = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
CustomFieldValue.Value |
| Returns | |
|---|---|
| Type | Description |
CustomFieldValue.Builder |
|
setValue(CustomFieldValue.Value.Builder builderForValue)
public CustomFieldValue.Builder setValue(CustomFieldValue.Value.Builder builderForValue)Required. A typed value representation of the value.
optional .google.ads.admanager.v1.CustomFieldValue.Value value = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
CustomFieldValue.Value.Builder |
| Returns | |
|---|---|
| Type | Description |
CustomFieldValue.Builder |
|