Class PublisherModel.CallToAction.RegionalResourceReferences.Builder (3.46.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PublisherModel.CallToAction.RegionalResourceReferences build()
Returns
Type Description
PublisherModel.CallToAction.RegionalResourceReferences

buildPartial()

public PublisherModel.CallToAction.RegionalResourceReferences buildPartial()
Returns
Type Description
PublisherModel.CallToAction.RegionalResourceReferences

clear()

public PublisherModel.CallToAction.RegionalResourceReferences.Builder clear()
Returns
Type Description
PublisherModel.CallToAction.RegionalResourceReferences.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public PublisherModel.CallToAction.RegionalResourceReferences.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PublisherModel.CallToAction.RegionalResourceReferences.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PublisherModel.CallToAction.RegionalResourceReferences.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PublisherModel.CallToAction.RegionalResourceReferences.Builder
Overrides

clearReferences()

public PublisherModel.CallToAction.RegionalResourceReferences.Builder clearReferences()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
PublisherModel.CallToAction.RegionalResourceReferences.Builder

This builder for chaining.

clone()

public PublisherModel.CallToAction.RegionalResourceReferences.Builder clone()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public PublisherModel.CallToAction.RegionalResourceReferences getDefaultInstanceForType()
Returns
Type Description
PublisherModel.CallToAction.RegionalResourceReferences

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutableReferences() (deprecated)

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

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,ResourceReference>

getReferences() (deprecated)

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

Use #getReferencesMap() instead.

Returns
Type Description
Map<String,ResourceReference>

getReferencesCount()

public int getReferencesCount()

Required.

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

Returns
Type Description
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
Type Description
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
Name Description
key String
defaultValue PublisherModel.ResourceReference
Returns
Type Description
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
Name Description
key String
Returns
Type Description
PublisherModel.ResourceReference

getResourceDescription()

public String getResourceDescription()

Optional. Description of the resource.

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

Returns
Type Description
String

The resourceDescription.

getResourceDescriptionBytes()

public ByteString getResourceDescriptionBytes()

Optional. Description of the resource.

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

Returns
Type Description
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
Type Description
String

The resourceTitle.

getResourceTitleBytes()

public ByteString getResourceTitleBytes()

Optional. Title of the resource.

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

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for resourceUseCase.

getTitle()

public String getTitle()

Required.

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

Returns
Type Description
String

The title.

getTitleBytes()

public ByteString getTitleBytes()

Required.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the resourceUseCase field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PublisherModel.CallToAction.RegionalResourceReferences other)

public PublisherModel.CallToAction.RegionalResourceReferences.Builder mergeFrom(PublisherModel.CallToAction.RegionalResourceReferences other)
Parameter
Name Description
other PublisherModel.CallToAction.RegionalResourceReferences
Returns
Type Description
PublisherModel.CallToAction.RegionalResourceReferences.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PublisherModel.CallToAction.RegionalResourceReferences.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PublisherModel.CallToAction.RegionalResourceReferences.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PublisherModel.CallToAction.RegionalResourceReferences.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PublisherModel.CallToAction.RegionalResourceReferences.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PublisherModel.CallToAction.RegionalResourceReferences.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
values Map<String,ResourceReference>
Returns
Type Description
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
Name Description
key String
value PublisherModel.ResourceReference
Returns
Type Description
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
Name Description
key String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
PublisherModel.CallToAction.RegionalResourceReferences.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PublisherModel.CallToAction.RegionalResourceReferences.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value String

The resourceDescription to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for resourceDescription to set.

Returns
Type Description
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
Name Description
value String

The resourceTitle to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for resourceTitle to set.

Returns
Type Description
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
Name Description
value String

The resourceUseCase to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for resourceUseCase to set.

Returns
Type Description
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
Name Description
value String

The title to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for title to set.

Returns
Type Description
PublisherModel.CallToAction.RegionalResourceReferences.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PublisherModel.CallToAction.RegionalResourceReferences.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PublisherModel.CallToAction.RegionalResourceReferences.Builder
Overrides