Class ModelGardenSource.Builder (3.40.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ModelGardenSource build()
Returns
TypeDescription
ModelGardenSource

buildPartial()

public ModelGardenSource buildPartial()
Returns
TypeDescription
ModelGardenSource

clear()

public ModelGardenSource.Builder clear()
Returns
TypeDescription
ModelGardenSource.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ModelGardenSource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ModelGardenSource.Builder

This builder for chaining.

clone()

public ModelGardenSource.Builder clone()
Returns
TypeDescription
ModelGardenSource.Builder
Overrides

getDefaultInstanceForType()

public ModelGardenSource getDefaultInstanceForType()
Returns
TypeDescription
ModelGardenSource

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for publicModelName.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ModelGardenSource other)

public ModelGardenSource.Builder mergeFrom(ModelGardenSource other)
Parameter
NameDescription
otherModelGardenSource
Returns
TypeDescription
ModelGardenSource.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The publicModelName to set.

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

The bytes for publicModelName to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ModelGardenSource.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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