Class PublisherModel (3.38.0)

public final class PublisherModel extends GeneratedMessageV3 implements PublisherModelOrBuilder

A Model Garden Publisher Model.

Protobuf type google.cloud.aiplatform.v1beta1.PublisherModel

Static Fields

FRAMEWORKS_FIELD_NUMBER

public static final int FRAMEWORKS_FIELD_NUMBER
Field Value
TypeDescription
int

LAUNCH_STAGE_FIELD_NUMBER

public static final int LAUNCH_STAGE_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

OPEN_SOURCE_CATEGORY_FIELD_NUMBER

public static final int OPEN_SOURCE_CATEGORY_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

PREDICT_SCHEMATA_FIELD_NUMBER

public static final int PREDICT_SCHEMATA_FIELD_NUMBER
Field Value
TypeDescription
int

PUBLISHER_MODEL_TEMPLATE_FIELD_NUMBER

public static final int PUBLISHER_MODEL_TEMPLATE_FIELD_NUMBER
Field Value
TypeDescription
int

SUPPORTED_ACTIONS_FIELD_NUMBER

public static final int SUPPORTED_ACTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

VERSION_ID_FIELD_NUMBER

public static final int VERSION_ID_FIELD_NUMBER
Field Value
TypeDescription
int

VERSION_STATE_FIELD_NUMBER

public static final int VERSION_STATE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PublisherModel getDefaultInstance()
Returns
TypeDescription
PublisherModel

getDescriptor()

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

newBuilder()

public static PublisherModel.Builder newBuilder()
Returns
TypeDescription
PublisherModel.Builder

newBuilder(PublisherModel prototype)

public static PublisherModel.Builder newBuilder(PublisherModel prototype)
Parameter
NameDescription
prototypePublisherModel
Returns
TypeDescription
PublisherModel.Builder

parseDelimitedFrom(InputStream input)

public static PublisherModel parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PublisherModel
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static PublisherModel parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PublisherModel
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static PublisherModel parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PublisherModel
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static PublisherModel parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PublisherModel
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static PublisherModel parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PublisherModel
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<PublisherModel> parser()
Returns
TypeDescription
Parser<PublisherModel>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public PublisherModel getDefaultInstanceForType()
Returns
TypeDescription
PublisherModel

getFrameworks(int index)

public String getFrameworks(int index)

Optional. Additional information about the model's Frameworks.

repeated string frameworks = 23 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The frameworks at the given index.

getFrameworksBytes(int index)

public ByteString getFrameworksBytes(int index)

Optional. Additional information about the model's Frameworks.

repeated string frameworks = 23 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the frameworks at the given index.

getFrameworksCount()

public int getFrameworksCount()

Optional. Additional information about the model's Frameworks.

repeated string frameworks = 23 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The count of frameworks.

getFrameworksList()

public ProtocolStringList getFrameworksList()

Optional. Additional information about the model's Frameworks.

repeated string frameworks = 23 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ProtocolStringList

A list containing the frameworks.

getLaunchStage()

public PublisherModel.LaunchStage getLaunchStage()

Optional. Indicates the launch stage of the model.

.google.cloud.aiplatform.v1beta1.PublisherModel.LaunchStage launch_stage = 29 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PublisherModel.LaunchStage

The launchStage.

getLaunchStageValue()

public int getLaunchStageValue()

Optional. Indicates the launch stage of the model.

.google.cloud.aiplatform.v1beta1.PublisherModel.LaunchStage launch_stage = 29 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The enum numeric value on the wire for launchStage.

getName()

public String getName()

Output only. The resource name of the PublisherModel.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource name of the PublisherModel.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getOpenSourceCategory()

public PublisherModel.OpenSourceCategory getOpenSourceCategory()

Required. Indicates the open source category of the publisher model.

.google.cloud.aiplatform.v1beta1.PublisherModel.OpenSourceCategory open_source_category = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
PublisherModel.OpenSourceCategory

The openSourceCategory.

getOpenSourceCategoryValue()

public int getOpenSourceCategoryValue()

Required. Indicates the open source category of the publisher model.

.google.cloud.aiplatform.v1beta1.PublisherModel.OpenSourceCategory open_source_category = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for openSourceCategory.

getParent()

public PublisherModel.Parent getParent()

Optional. The parent that this model was customized from. E.g., Vision API, Natural Language API, LaMDA, T5, etc. Foundation models don't have parents.

.google.cloud.aiplatform.v1beta1.PublisherModel.Parent parent = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PublisherModel.Parent

The parent.

getParentOrBuilder()

public PublisherModel.ParentOrBuilder getParentOrBuilder()

Optional. The parent that this model was customized from. E.g., Vision API, Natural Language API, LaMDA, T5, etc. Foundation models don't have parents.

.google.cloud.aiplatform.v1beta1.PublisherModel.Parent parent = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PublisherModel.ParentOrBuilder

getParserForType()

public Parser<PublisherModel> getParserForType()
Returns
TypeDescription
Parser<PublisherModel>
Overrides

getPredictSchemata()

public PredictSchemata getPredictSchemata()

Optional. The schemata that describes formats of the PublisherModel's predictions and explanations as given and returned via PredictionService.Predict.

.google.cloud.aiplatform.v1beta1.PredictSchemata predict_schemata = 31 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PredictSchemata

The predictSchemata.

getPredictSchemataOrBuilder()

public PredictSchemataOrBuilder getPredictSchemataOrBuilder()

Optional. The schemata that describes formats of the PublisherModel's predictions and explanations as given and returned via PredictionService.Predict.

.google.cloud.aiplatform.v1beta1.PredictSchemata predict_schemata = 31 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PredictSchemataOrBuilder

getPublisherModelTemplate()

public String getPublisherModelTemplate()

Optional. Output only. Immutable. Used to indicate this model has a publisher model and provide the template of the publisher model resource name.

string publisher_model_template = 30 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The publisherModelTemplate.

getPublisherModelTemplateBytes()

public ByteString getPublisherModelTemplateBytes()

Optional. Output only. Immutable. Used to indicate this model has a publisher model and provide the template of the publisher model resource name.

string publisher_model_template = 30 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for publisherModelTemplate.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSupportedActions()

public PublisherModel.CallToAction getSupportedActions()

Optional. Supported call-to-action options.

.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction supported_actions = 19 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PublisherModel.CallToAction

The supportedActions.

getSupportedActionsOrBuilder()

public PublisherModel.CallToActionOrBuilder getSupportedActionsOrBuilder()

Optional. Supported call-to-action options.

.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction supported_actions = 19 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PublisherModel.CallToActionOrBuilder

getVersionId()

public String getVersionId()

Output only. Immutable. The version ID of the PublisherModel. A new version is committed when a new model version is uploaded under an existing model id. It is an auto-incrementing decimal number in string representation.

string version_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The versionId.

getVersionIdBytes()

public ByteString getVersionIdBytes()

Output only. Immutable. The version ID of the PublisherModel. A new version is committed when a new model version is uploaded under an existing model id. It is an auto-incrementing decimal number in string representation.

string version_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for versionId.

getVersionState()

public PublisherModel.VersionState getVersionState()

Optional. Indicates the state of the model version.

.google.cloud.aiplatform.v1beta1.PublisherModel.VersionState version_state = 37 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
PublisherModel.VersionState

The versionState.

getVersionStateValue()

public int getVersionStateValue()

Optional. Indicates the state of the model version.

.google.cloud.aiplatform.v1beta1.PublisherModel.VersionState version_state = 37 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The enum numeric value on the wire for versionState.

hasParent()

public boolean hasParent()

Optional. The parent that this model was customized from. E.g., Vision API, Natural Language API, LaMDA, T5, etc. Foundation models don't have parents.

.google.cloud.aiplatform.v1beta1.PublisherModel.Parent parent = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the parent field is set.

hasPredictSchemata()

public boolean hasPredictSchemata()

Optional. The schemata that describes formats of the PublisherModel's predictions and explanations as given and returned via PredictionService.Predict.

.google.cloud.aiplatform.v1beta1.PredictSchemata predict_schemata = 31 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the predictSchemata field is set.

hasSupportedActions()

public boolean hasSupportedActions()

Optional. Supported call-to-action options.

.google.cloud.aiplatform.v1beta1.PublisherModel.CallToAction supported_actions = 19 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the supportedActions 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 PublisherModel.Builder newBuilderForType()
Returns
TypeDescription
PublisherModel.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public PublisherModel.Builder toBuilder()
Returns
TypeDescription
PublisherModel.Builder

writeTo(CodedOutputStream output)

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