Class ModelGardenSource.Builder (3.52.0)

public static final class ModelGardenSource.Builder extends GeneratedMessageV3.Builder<ModelGardenSource.Builder> implements ModelGardenSourceOrBuilder

Contains information about the source of the models generated from Model Garden.

Protobuf type google.cloud.aiplatform.v1.ModelGardenSource

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ModelGardenSource build()
Returns
Type Description
ModelGardenSource

buildPartial()

public ModelGardenSource buildPartial()
Returns
Type Description
ModelGardenSource

clear()

public ModelGardenSource.Builder clear()
Returns
Type Description
ModelGardenSource.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPublicModelName()

public ModelGardenSource.Builder clearPublicModelName()

Required. The model garden source model resource name.

string public_model_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ModelGardenSource.Builder

This builder for chaining.

clone()

public ModelGardenSource.Builder clone()
Returns
Type Description
ModelGardenSource.Builder
Overrides

getDefaultInstanceForType()

public ModelGardenSource getDefaultInstanceForType()
Returns
Type Description
ModelGardenSource

getDescriptorForType()

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

getPublicModelName()

public String getPublicModelName()

Required. The model garden source model resource name.

string public_model_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The publicModelName.

getPublicModelNameBytes()

public ByteString getPublicModelNameBytes()

Required. The model garden source model resource name.

string public_model_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for publicModelName.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ModelGardenSource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPublicModelName(String value)

public ModelGardenSource.Builder setPublicModelName(String value)

Required. The model garden source model resource name.

string public_model_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The publicModelName to set.

Returns
Type Description
ModelGardenSource.Builder

This builder for chaining.

setPublicModelNameBytes(ByteString value)

public ModelGardenSource.Builder setPublicModelNameBytes(ByteString value)

Required. The model garden source model resource name.

string public_model_name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for publicModelName to set.

Returns
Type Description
ModelGardenSource.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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