Class PublisherModel.ResourceReference.Builder (3.35.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.v1beta1.PublisherModel.ResourceReference

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PublisherModel.ResourceReference build()
Returns
TypeDescription
PublisherModel.ResourceReference

buildPartial()

public PublisherModel.ResourceReference buildPartial()
Returns
TypeDescription
PublisherModel.ResourceReference

clear()

public PublisherModel.ResourceReference.Builder clear()
Returns
TypeDescription
PublisherModel.ResourceReference.Builder
Overrides

clearDescription()

public PublisherModel.ResourceReference.Builder clearDescription()

Description of the resource.

string description = 4;

Returns
TypeDescription
PublisherModel.ResourceReference.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearReference()

public PublisherModel.ResourceReference.Builder clearReference()
Returns
TypeDescription
PublisherModel.ResourceReference.Builder

clearResourceName()

public PublisherModel.ResourceReference.Builder clearResourceName()

The resource name of the Google Cloud resource.

string resource_name = 2;

Returns
TypeDescription
PublisherModel.ResourceReference.Builder

This builder for chaining.

clearUri()

public PublisherModel.ResourceReference.Builder clearUri()

The URI of the resource.

string uri = 1;

Returns
TypeDescription
PublisherModel.ResourceReference.Builder

This builder for chaining.

clearUseCase()

public PublisherModel.ResourceReference.Builder clearUseCase()

Use case (CUJ) of the resource.

string use_case = 3;

Returns
TypeDescription
PublisherModel.ResourceReference.Builder

This builder for chaining.

clone()

public PublisherModel.ResourceReference.Builder clone()
Returns
TypeDescription
PublisherModel.ResourceReference.Builder
Overrides

getDefaultInstanceForType()

public PublisherModel.ResourceReference getDefaultInstanceForType()
Returns
TypeDescription
PublisherModel.ResourceReference

getDescription()

public String getDescription()

Description of the resource.

string description = 4;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Description of the resource.

string description = 4;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getReferenceCase()

public PublisherModel.ResourceReference.ReferenceCase getReferenceCase()
Returns
TypeDescription
PublisherModel.ResourceReference.ReferenceCase

getResourceName()

public String getResourceName()

The resource name of the Google Cloud resource.

string resource_name = 2;

Returns
TypeDescription
String

The resourceName.

getResourceNameBytes()

public ByteString getResourceNameBytes()

The resource name of the Google Cloud resource.

string resource_name = 2;

Returns
TypeDescription
ByteString

The bytes for resourceName.

getUri()

public String getUri()

The URI of the resource.

string uri = 1;

Returns
TypeDescription
String

The uri.

getUriBytes()

public ByteString getUriBytes()

The URI of the resource.

string uri = 1;

Returns
TypeDescription
ByteString

The bytes for uri.

getUseCase()

public String getUseCase()

Use case (CUJ) of the resource.

string use_case = 3;

Returns
TypeDescription
String

The useCase.

getUseCaseBytes()

public ByteString getUseCaseBytes()

Use case (CUJ) of the resource.

string use_case = 3;

Returns
TypeDescription
ByteString

The bytes for useCase.

hasDescription()

public boolean hasDescription()

Description of the resource.

string description = 4;

Returns
TypeDescription
boolean

Whether the description field is set.

hasResourceName()

public boolean hasResourceName()

The resource name of the Google Cloud resource.

string resource_name = 2;

Returns
TypeDescription
boolean

Whether the resourceName field is set.

hasUri()

public boolean hasUri()

The URI of the resource.

string uri = 1;

Returns
TypeDescription
boolean

Whether the uri field is set.

hasUseCase()

public boolean hasUseCase()

Use case (CUJ) of the resource.

string use_case = 3;

Returns
TypeDescription
boolean

Whether the useCase field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PublisherModel.ResourceReference other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDescription(String value)

public PublisherModel.ResourceReference.Builder setDescription(String value)

Description of the resource.

string description = 4;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
PublisherModel.ResourceReference.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public PublisherModel.ResourceReference.Builder setDescriptionBytes(ByteString value)

Description of the resource.

string description = 4;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
PublisherModel.ResourceReference.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PublisherModel.ResourceReference.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The resourceName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for resourceName to set.

Returns
TypeDescription
PublisherModel.ResourceReference.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUri(String value)

public PublisherModel.ResourceReference.Builder setUri(String value)

The URI of the resource.

string uri = 1;

Parameter
NameDescription
valueString

The uri to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for uri to set.

Returns
TypeDescription
PublisherModel.ResourceReference.Builder

This builder for chaining.

setUseCase(String value)

public PublisherModel.ResourceReference.Builder setUseCase(String value)

Use case (CUJ) of the resource.

string use_case = 3;

Parameter
NameDescription
valueString

The useCase to set.

Returns
TypeDescription
PublisherModel.ResourceReference.Builder

This builder for chaining.

setUseCaseBytes(ByteString value)

public PublisherModel.ResourceReference.Builder setUseCaseBytes(ByteString value)

Use case (CUJ) of the resource.

string use_case = 3;

Parameter
NameDescription
valueByteString

The bytes for useCase to set.

Returns
TypeDescription
PublisherModel.ResourceReference.Builder

This builder for chaining.