Class PublisherModel.ResourceReference.Builder (3.56.0)

public static final class PublisherModel.ResourceReference.Builder extends GeneratedMessageV3.Builder<PublisherModel.ResourceReference.Builder> implements PublisherModel.ResourceReferenceOrBuilder

Reference to a resource.

Protobuf type google.cloud.aiplatform.v1.PublisherModel.ResourceReference

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PublisherModel.ResourceReference build()
Returns
Type Description
PublisherModel.ResourceReference

buildPartial()

public PublisherModel.ResourceReference buildPartial()
Returns
Type Description
PublisherModel.ResourceReference

clear()

public PublisherModel.ResourceReference.Builder clear()
Returns
Type Description
PublisherModel.ResourceReference.Builder
Overrides

clearDescription() (deprecated)

public PublisherModel.ResourceReference.Builder clearDescription()

Deprecated. google.cloud.aiplatform.v1.PublisherModel.ResourceReference.description is deprecated. See google/cloud/aiplatform/v1/publisher_model.proto;l=51

Description of the resource.

string description = 4 [deprecated = true];

Returns
Type Description
PublisherModel.ResourceReference.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReference()

public PublisherModel.ResourceReference.Builder clearReference()
Returns
Type Description
PublisherModel.ResourceReference.Builder

clearResourceName()

public PublisherModel.ResourceReference.Builder clearResourceName()

The resource name of the Google Cloud resource.

string resource_name = 2;

Returns
Type Description
PublisherModel.ResourceReference.Builder

This builder for chaining.

clearUri()

public PublisherModel.ResourceReference.Builder clearUri()

The URI of the resource.

string uri = 1;

Returns
Type Description
PublisherModel.ResourceReference.Builder

This builder for chaining.

clearUseCase() (deprecated)

public PublisherModel.ResourceReference.Builder clearUseCase()

Deprecated. google.cloud.aiplatform.v1.PublisherModel.ResourceReference.use_case is deprecated. See google/cloud/aiplatform/v1/publisher_model.proto;l=48

Use case (CUJ) of the resource.

string use_case = 3 [deprecated = true];

Returns
Type Description
PublisherModel.ResourceReference.Builder

This builder for chaining.

clone()

public PublisherModel.ResourceReference.Builder clone()
Returns
Type Description
PublisherModel.ResourceReference.Builder
Overrides

getDefaultInstanceForType()

public PublisherModel.ResourceReference getDefaultInstanceForType()
Returns
Type Description
PublisherModel.ResourceReference

getDescription() (deprecated)

public String getDescription()

Deprecated. google.cloud.aiplatform.v1.PublisherModel.ResourceReference.description is deprecated. See google/cloud/aiplatform/v1/publisher_model.proto;l=51

Description of the resource.

string description = 4 [deprecated = true];

Returns
Type Description
String

The description.

getDescriptionBytes() (deprecated)

public ByteString getDescriptionBytes()

Deprecated. google.cloud.aiplatform.v1.PublisherModel.ResourceReference.description is deprecated. See google/cloud/aiplatform/v1/publisher_model.proto;l=51

Description of the resource.

string description = 4 [deprecated = true];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getReferenceCase()

public PublisherModel.ResourceReference.ReferenceCase getReferenceCase()
Returns
Type Description
PublisherModel.ResourceReference.ReferenceCase

getResourceName()

public String getResourceName()

The resource name of the Google Cloud resource.

string resource_name = 2;

Returns
Type Description
String

The resourceName.

getResourceNameBytes()

public ByteString getResourceNameBytes()

The resource name of the Google Cloud resource.

string resource_name = 2;

Returns
Type Description
ByteString

The bytes for resourceName.

getUri()

public String getUri()

The URI of the resource.

string uri = 1;

Returns
Type Description
String

The uri.

getUriBytes()

public ByteString getUriBytes()

The URI of the resource.

string uri = 1;

Returns
Type Description
ByteString

The bytes for uri.

getUseCase() (deprecated)

public String getUseCase()

Deprecated. google.cloud.aiplatform.v1.PublisherModel.ResourceReference.use_case is deprecated. See google/cloud/aiplatform/v1/publisher_model.proto;l=48

Use case (CUJ) of the resource.

string use_case = 3 [deprecated = true];

Returns
Type Description
String

The useCase.

getUseCaseBytes() (deprecated)

public ByteString getUseCaseBytes()

Deprecated. google.cloud.aiplatform.v1.PublisherModel.ResourceReference.use_case is deprecated. See google/cloud/aiplatform/v1/publisher_model.proto;l=48

Use case (CUJ) of the resource.

string use_case = 3 [deprecated = true];

Returns
Type Description
ByteString

The bytes for useCase.

hasDescription() (deprecated)

public boolean hasDescription()

Deprecated. google.cloud.aiplatform.v1.PublisherModel.ResourceReference.description is deprecated. See google/cloud/aiplatform/v1/publisher_model.proto;l=51

Description of the resource.

string description = 4 [deprecated = true];

Returns
Type Description
boolean

Whether the description field is set.

hasResourceName()

public boolean hasResourceName()

The resource name of the Google Cloud resource.

string resource_name = 2;

Returns
Type Description
boolean

Whether the resourceName field is set.

hasUri()

public boolean hasUri()

The URI of the resource.

string uri = 1;

Returns
Type Description
boolean

Whether the uri field is set.

hasUseCase() (deprecated)

public boolean hasUseCase()

Deprecated. google.cloud.aiplatform.v1.PublisherModel.ResourceReference.use_case is deprecated. See google/cloud/aiplatform/v1/publisher_model.proto;l=48

Use case (CUJ) of the resource.

string use_case = 3 [deprecated = true];

Returns
Type Description
boolean

Whether the useCase field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PublisherModel.ResourceReference other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDescription(String value) (deprecated)

public PublisherModel.ResourceReference.Builder setDescription(String value)

Deprecated. google.cloud.aiplatform.v1.PublisherModel.ResourceReference.description is deprecated. See google/cloud/aiplatform/v1/publisher_model.proto;l=51

Description of the resource.

string description = 4 [deprecated = true];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
PublisherModel.ResourceReference.Builder

This builder for chaining.

setDescriptionBytes(ByteString value) (deprecated)

public PublisherModel.ResourceReference.Builder setDescriptionBytes(ByteString value)

Deprecated. google.cloud.aiplatform.v1.PublisherModel.ResourceReference.description is deprecated. See google/cloud/aiplatform/v1/publisher_model.proto;l=51

Description of the resource.

string description = 4 [deprecated = true];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
PublisherModel.ResourceReference.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setResourceName(String value)

public PublisherModel.ResourceReference.Builder setResourceName(String value)

The resource name of the Google Cloud resource.

string resource_name = 2;

Parameter
Name Description
value String

The resourceName to set.

Returns
Type Description
PublisherModel.ResourceReference.Builder

This builder for chaining.

setResourceNameBytes(ByteString value)

public PublisherModel.ResourceReference.Builder setResourceNameBytes(ByteString value)

The resource name of the Google Cloud resource.

string resource_name = 2;

Parameter
Name Description
value ByteString

The bytes for resourceName to set.

Returns
Type Description
PublisherModel.ResourceReference.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public PublisherModel.ResourceReference.Builder setUri(String value)

The URI of the resource.

string uri = 1;

Parameter
Name Description
value String

The uri to set.

Returns
Type Description
PublisherModel.ResourceReference.Builder

This builder for chaining.

setUriBytes(ByteString value)

public PublisherModel.ResourceReference.Builder setUriBytes(ByteString value)

The URI of the resource.

string uri = 1;

Parameter
Name Description
value ByteString

The bytes for uri to set.

Returns
Type Description
PublisherModel.ResourceReference.Builder

This builder for chaining.

setUseCase(String value) (deprecated)

public PublisherModel.ResourceReference.Builder setUseCase(String value)

Deprecated. google.cloud.aiplatform.v1.PublisherModel.ResourceReference.use_case is deprecated. See google/cloud/aiplatform/v1/publisher_model.proto;l=48

Use case (CUJ) of the resource.

string use_case = 3 [deprecated = true];

Parameter
Name Description
value String

The useCase to set.

Returns
Type Description
PublisherModel.ResourceReference.Builder

This builder for chaining.

setUseCaseBytes(ByteString value) (deprecated)

public PublisherModel.ResourceReference.Builder setUseCaseBytes(ByteString value)

Deprecated. google.cloud.aiplatform.v1.PublisherModel.ResourceReference.use_case is deprecated. See google/cloud/aiplatform/v1/publisher_model.proto;l=48

Use case (CUJ) of the resource.

string use_case = 3 [deprecated = true];

Parameter
Name Description
value ByteString

The bytes for useCase to set.

Returns
Type Description
PublisherModel.ResourceReference.Builder

This builder for chaining.