Class AugmentPromptRequest.Model.Builder (3.56.0)

public static final class AugmentPromptRequest.Model.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public AugmentPromptRequest.Model.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public AugmentPromptRequest.Model.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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