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

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.

clone()

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

getDefaultInstanceForType()

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

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.

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.

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

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.