Class CustomFieldValue.Builder (0.11.0)

public static final class CustomFieldValue.Builder extends GeneratedMessageV3.Builder<CustomFieldValue.Builder> implements CustomFieldValueOrBuilder

A value for a CustomField on a resource.

Protobuf type google.ads.admanager.v1.CustomFieldValue

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CustomFieldValue.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CustomFieldValue.Builder
Overrides

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
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public CustomFieldValue.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CustomFieldValue.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CustomFieldValue.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CustomFieldValue.Builder
Overrides

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

clone()

public CustomFieldValue.Builder clone()
Returns
Type Description
CustomFieldValue.Builder
Overrides

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
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CustomFieldValue.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CustomFieldValue.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CustomFieldValue.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CustomFieldValue.Builder
Overrides

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 String

The 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 ByteString

The bytes for customField to set.

Returns
Type Description
CustomFieldValue.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CustomFieldValue.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CustomFieldValue.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CustomFieldValue.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CustomFieldValue.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CustomFieldValue.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CustomFieldValue.Builder
Overrides

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