Class PublisherModel.CallToAction.RegionalResourceReferences.Builder (3.37.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

clearResourceDescription()

public PublisherModel.CallToAction.RegionalResourceReferences.Builder clearResourceDescription()

Optional. Description of the resource.

optional string resource_description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder

This builder for chaining.

clearResourceTitle()

public PublisherModel.CallToAction.RegionalResourceReferences.Builder clearResourceTitle()

Optional. Title of the resource.

optional string resource_title = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder

This builder for chaining.

clearResourceUseCase()

public PublisherModel.CallToAction.RegionalResourceReferences.Builder clearResourceUseCase()

Optional. Use case (CUJ) of the resource.

optional string resource_use_case = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder

This builder for chaining.

clearTitle()

public PublisherModel.CallToAction.RegionalResourceReferences.Builder clearTitle()

Required.

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

getResourceDescription()

public String getResourceDescription()

Optional. Description of the resource.

optional string resource_description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The resourceDescription.

getResourceDescriptionBytes()

public ByteString getResourceDescriptionBytes()

Optional. Description of the resource.

optional string resource_description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for resourceDescription.

getResourceTitle()

public String getResourceTitle()

Optional. Title of the resource.

optional string resource_title = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The resourceTitle.

getResourceTitleBytes()

public ByteString getResourceTitleBytes()

Optional. Title of the resource.

optional string resource_title = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for resourceTitle.

getResourceUseCase()

public String getResourceUseCase()

Optional. Use case (CUJ) of the resource.

optional string resource_use_case = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The resourceUseCase.

getResourceUseCaseBytes()

public ByteString getResourceUseCaseBytes()

Optional. Use case (CUJ) of the resource.

optional string resource_use_case = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for resourceUseCase.

getTitle()

public String getTitle()

Required.

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

Returns
TypeDescription
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Required.

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

Returns
TypeDescription
ByteString

The bytes for title.

hasResourceDescription()

public boolean hasResourceDescription()

Optional. Description of the resource.

optional string resource_description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the resourceDescription field is set.

hasResourceTitle()

public boolean hasResourceTitle()

Optional. Title of the resource.

optional string resource_title = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the resourceTitle field is set.

hasResourceUseCase()

public boolean hasResourceUseCase()

Optional. Use case (CUJ) of the resource.

optional string resource_use_case = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the resourceUseCase field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

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

putReferencesBuilderIfAbsent(String key)

public PublisherModel.ResourceReference.Builder putReferencesBuilderIfAbsent(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.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

setResourceDescription(String value)

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

Optional. Description of the resource.

optional string resource_description = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The resourceDescription to set.

Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder

This builder for chaining.

setResourceDescriptionBytes(ByteString value)

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

Optional. Description of the resource.

optional string resource_description = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for resourceDescription to set.

Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder

This builder for chaining.

setResourceTitle(String value)

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

Optional. Title of the resource.

optional string resource_title = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The resourceTitle to set.

Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder

This builder for chaining.

setResourceTitleBytes(ByteString value)

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

Optional. Title of the resource.

optional string resource_title = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for resourceTitle to set.

Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder

This builder for chaining.

setResourceUseCase(String value)

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

Optional. Use case (CUJ) of the resource.

optional string resource_use_case = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The resourceUseCase to set.

Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder

This builder for chaining.

setResourceUseCaseBytes(ByteString value)

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

Optional. Use case (CUJ) of the resource.

optional string resource_use_case = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for resourceUseCase to set.

Returns
TypeDescription
PublisherModel.CallToAction.RegionalResourceReferences.Builder

This builder for chaining.

setTitle(String value)

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

Required.

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.

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