Class PublisherModel.CallToAction.RegionalResourceReferences.Builder (3.34.0)

public static final class PublisherModel.CallToAction.RegionalResourceReferences.Builder extends GeneratedMessageV3.Builder<PublisherModel.CallToAction.RegionalResourceReferences.Builder> implements PublisherModel.CallToAction.RegionalResourceReferencesOrBuilder

The regional resource name or the URI. Key is region, e.g., us-central1, europe-west2, global, etc..

Protobuf type google.cloud.aiplatform.v1.PublisherModel.CallToAction.RegionalResourceReferences

Inheritance

Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > PublisherModel.CallToAction.RegionalResourceReferences.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PublisherModel.CallToAction.RegionalResourceReferences.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder
Overrides

build()

public PublisherModel.CallToAction.RegionalResourceReferences build()
Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences

buildPartial()

public PublisherModel.CallToAction.RegionalResourceReferences buildPartial()
Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences

clear()

public PublisherModel.CallToAction.RegionalResourceReferences.Builder clear()
Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public PublisherModel.CallToAction.RegionalResourceReferences.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PublisherModel.CallToAction.RegionalResourceReferences.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder
Overrides

clearReferences()

public PublisherModel.CallToAction.RegionalResourceReferences.Builder clearReferences()
Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder

clearTitle()

public PublisherModel.CallToAction.RegionalResourceReferences.Builder clearTitle()

Required. The title of the regional resource reference.

string title = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder

This builder for chaining.

clone()

public PublisherModel.CallToAction.RegionalResourceReferences.Builder clone()
Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder
Overrides

containsReferences(String key)

public boolean containsReferences(String key)

Required.

map<string, .google.cloud.aiplatform.v1.PublisherModel.ResourceReference> references = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public PublisherModel.CallToAction.RegionalResourceReferences getDefaultInstanceForType()
Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableReferences() (deprecated)

public Map<String,PublisherModel.ResourceReference> getMutableReferences()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,ResourceReference>

getReferences() (deprecated)

public Map<String,PublisherModel.ResourceReference> getReferences()

Use #getReferencesMap() instead.

Returns
TypeDescription
Map<String,ResourceReference>

getReferencesCount()

public int getReferencesCount()

Required.

map<string, .google.cloud.aiplatform.v1.PublisherModel.ResourceReference> references = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

getReferencesMap()

public Map<String,PublisherModel.ResourceReference> getReferencesMap()

Required.

map<string, .google.cloud.aiplatform.v1.PublisherModel.ResourceReference> references = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Map<String,ResourceReference>

getReferencesOrDefault(String key, PublisherModel.ResourceReference defaultValue)

public PublisherModel.ResourceReference getReferencesOrDefault(String key, PublisherModel.ResourceReference defaultValue)

Required.

map<string, .google.cloud.aiplatform.v1.PublisherModel.ResourceReference> references = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
keyString
defaultValuePublisherModel.ResourceReference
Returns
TypeDescription
PublisherModel.ResourceReference

getReferencesOrThrow(String key)

public PublisherModel.ResourceReference getReferencesOrThrow(String key)

Required.

map<string, .google.cloud.aiplatform.v1.PublisherModel.ResourceReference> references = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
keyString
Returns
TypeDescription
PublisherModel.ResourceReference

getTitle()

public String getTitle()

Required. The title of the regional resource reference.

string title = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Required. The title of the regional resource reference.

string title = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for title.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PublisherModel.CallToAction.RegionalResourceReferences other)

public PublisherModel.CallToAction.RegionalResourceReferences.Builder mergeFrom(PublisherModel.CallToAction.RegionalResourceReferences other)
Parameter
NameDescription
otherPublisherModel.CallToAction.RegionalResourceReferences
Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PublisherModel.CallToAction.RegionalResourceReferences.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PublisherModel.CallToAction.RegionalResourceReferences.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PublisherModel.CallToAction.RegionalResourceReferences.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder
Overrides

putAllReferences(Map<String,PublisherModel.ResourceReference> values)

public PublisherModel.CallToAction.RegionalResourceReferences.Builder putAllReferences(Map<String,PublisherModel.ResourceReference> values)

Required.

map<string, .google.cloud.aiplatform.v1.PublisherModel.ResourceReference> references = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesMap<String,ResourceReference>
Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder

putReferences(String key, PublisherModel.ResourceReference value)

public PublisherModel.CallToAction.RegionalResourceReferences.Builder putReferences(String key, PublisherModel.ResourceReference value)

Required.

map<string, .google.cloud.aiplatform.v1.PublisherModel.ResourceReference> references = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
keyString
valuePublisherModel.ResourceReference
Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder

removeReferences(String key)

public PublisherModel.CallToAction.RegionalResourceReferences.Builder removeReferences(String key)

Required.

map<string, .google.cloud.aiplatform.v1.PublisherModel.ResourceReference> references = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
keyString
Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PublisherModel.CallToAction.RegionalResourceReferences.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder
Overrides

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

public PublisherModel.CallToAction.RegionalResourceReferences.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder
Overrides

setTitle(String value)

public PublisherModel.CallToAction.RegionalResourceReferences.Builder setTitle(String value)

Required. The title of the regional resource reference.

string title = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The title to set.

Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder

This builder for chaining.

setTitleBytes(ByteString value)

public PublisherModel.CallToAction.RegionalResourceReferences.Builder setTitleBytes(ByteString value)

Required. The title of the regional resource reference.

string title = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for title to set.

Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PublisherModel.CallToAction.RegionalResourceReferences.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder
Overrides