Class AugmentPromptRequest.Model.Builder (3.88.0)

public static final class AugmentPromptRequest.Model.Builder extends GeneratedMessage.Builder<AugmentPromptRequest.Model.Builder> implements AugmentPromptRequest.ModelOrBuilder

Metadata of the backend deployed model.

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

Static Methods

getDescriptor()

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

Methods

build()

public AugmentPromptRequest.Model build()
Returns
Type Description
AugmentPromptRequest.Model

buildPartial()

public AugmentPromptRequest.Model buildPartial()
Returns
Type Description
AugmentPromptRequest.Model

clear()

public AugmentPromptRequest.Model.Builder clear()
Returns
Type Description
AugmentPromptRequest.Model.Builder
Overrides

clearModel()

public AugmentPromptRequest.Model.Builder clearModel()

Optional. The model that the user will send the augmented prompt for content generation.

string model = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AugmentPromptRequest.Model.Builder

This builder for chaining.

clearModelVersion()

public AugmentPromptRequest.Model.Builder clearModelVersion()

Optional. The model version of the backend deployed model.

string model_version = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AugmentPromptRequest.Model.Builder

This builder for chaining.

getDefaultInstanceForType()

public AugmentPromptRequest.Model getDefaultInstanceForType()
Returns
Type Description
AugmentPromptRequest.Model

getDescriptorForType()

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

getModel()

public String getModel()

Optional. The model that the user will send the augmented prompt for content generation.

string model = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The model.

getModelBytes()

public ByteString getModelBytes()

Optional. The model that the user will send the augmented prompt for content generation.

string model = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for model.

getModelVersion()

public String getModelVersion()

Optional. The model version of the backend deployed model.

string model_version = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The modelVersion.

getModelVersionBytes()

public ByteString getModelVersionBytes()

Optional. The model version of the backend deployed model.

string model_version = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for modelVersion.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AugmentPromptRequest.Model other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setModel(String value)

public AugmentPromptRequest.Model.Builder setModel(String value)

Optional. The model that the user will send the augmented prompt for content generation.

string model = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The model to set.

Returns
Type Description
AugmentPromptRequest.Model.Builder

This builder for chaining.

setModelBytes(ByteString value)

public AugmentPromptRequest.Model.Builder setModelBytes(ByteString value)

Optional. The model that the user will send the augmented prompt for content generation.

string model = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for model to set.

Returns
Type Description
AugmentPromptRequest.Model.Builder

This builder for chaining.

setModelVersion(String value)

public AugmentPromptRequest.Model.Builder setModelVersion(String value)

Optional. The model version of the backend deployed model.

string model_version = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The modelVersion to set.

Returns
Type Description
AugmentPromptRequest.Model.Builder

This builder for chaining.

setModelVersionBytes(ByteString value)

public AugmentPromptRequest.Model.Builder setModelVersionBytes(ByteString value)

Optional. The model version of the backend deployed model.

string model_version = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for modelVersion to set.

Returns
Type Description
AugmentPromptRequest.Model.Builder

This builder for chaining.