Class Model.BaseModelSource (3.41.0)

public static final class Model.BaseModelSource extends GeneratedMessageV3 implements Model.BaseModelSourceOrBuilder

User input field to specify the base model source. Currently it only supports specifing the Model Garden models and Genie models.

Protobuf type google.cloud.aiplatform.v1.Model.BaseModelSource

Static Fields

GENIE_SOURCE_FIELD_NUMBER

public static final int GENIE_SOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

MODEL_GARDEN_SOURCE_FIELD_NUMBER

public static final int MODEL_GARDEN_SOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Model.BaseModelSource getDefaultInstance()
Returns
TypeDescription
Model.BaseModelSource

getDescriptor()

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

newBuilder()

public static Model.BaseModelSource.Builder newBuilder()
Returns
TypeDescription
Model.BaseModelSource.Builder

newBuilder(Model.BaseModelSource prototype)

public static Model.BaseModelSource.Builder newBuilder(Model.BaseModelSource prototype)
Parameter
NameDescription
prototypeModel.BaseModelSource
Returns
TypeDescription
Model.BaseModelSource.Builder

parseDelimitedFrom(InputStream input)

public static Model.BaseModelSource parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Model.BaseModelSource
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Model.BaseModelSource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Model.BaseModelSource
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Model.BaseModelSource parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Model.BaseModelSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Model.BaseModelSource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Model.BaseModelSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Model.BaseModelSource parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Model.BaseModelSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Model.BaseModelSource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Model.BaseModelSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Model.BaseModelSource parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Model.BaseModelSource
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Model.BaseModelSource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Model.BaseModelSource
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Model.BaseModelSource parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Model.BaseModelSource
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Model.BaseModelSource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Model.BaseModelSource
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Model.BaseModelSource parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Model.BaseModelSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Model.BaseModelSource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Model.BaseModelSource
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Model.BaseModelSource> parser()
Returns
TypeDescription
Parser<BaseModelSource>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Model.BaseModelSource getDefaultInstanceForType()
Returns
TypeDescription
Model.BaseModelSource

getGenieSource()

public GenieSource getGenieSource()

Information about the base model of Genie models.

.google.cloud.aiplatform.v1.GenieSource genie_source = 2;

Returns
TypeDescription
GenieSource

The genieSource.

getGenieSourceOrBuilder()

public GenieSourceOrBuilder getGenieSourceOrBuilder()

Information about the base model of Genie models.

.google.cloud.aiplatform.v1.GenieSource genie_source = 2;

Returns
TypeDescription
GenieSourceOrBuilder

getModelGardenSource()

public ModelGardenSource getModelGardenSource()

Source information of Model Garden models.

.google.cloud.aiplatform.v1.ModelGardenSource model_garden_source = 1;

Returns
TypeDescription
ModelGardenSource

The modelGardenSource.

getModelGardenSourceOrBuilder()

public ModelGardenSourceOrBuilder getModelGardenSourceOrBuilder()

Source information of Model Garden models.

.google.cloud.aiplatform.v1.ModelGardenSource model_garden_source = 1;

Returns
TypeDescription
ModelGardenSourceOrBuilder

getParserForType()

public Parser<Model.BaseModelSource> getParserForType()
Returns
TypeDescription
Parser<BaseModelSource>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSourceCase()

public Model.BaseModelSource.SourceCase getSourceCase()
Returns
TypeDescription
Model.BaseModelSource.SourceCase

hasGenieSource()

public boolean hasGenieSource()

Information about the base model of Genie models.

.google.cloud.aiplatform.v1.GenieSource genie_source = 2;

Returns
TypeDescription
boolean

Whether the genieSource field is set.

hasModelGardenSource()

public boolean hasModelGardenSource()

Source information of Model Garden models.

.google.cloud.aiplatform.v1.ModelGardenSource model_garden_source = 1;

Returns
TypeDescription
boolean

Whether the modelGardenSource field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Model.BaseModelSource.Builder newBuilderForType()
Returns
TypeDescription
Model.BaseModelSource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Model.BaseModelSource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Model.BaseModelSource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Model.BaseModelSource.Builder toBuilder()
Returns
TypeDescription
Model.BaseModelSource.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException