Class ModelEvaluationSlice.Slice.SliceSpec.Value.Builder (3.42.0)

public static final class ModelEvaluationSlice.Slice.SliceSpec.Value.Builder extends GeneratedMessageV3.Builder<ModelEvaluationSlice.Slice.SliceSpec.Value.Builder> implements ModelEvaluationSlice.Slice.SliceSpec.ValueOrBuilder

Single value that supports strings and floats.

Protobuf type google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.Slice.SliceSpec.Value

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ModelEvaluationSlice.Slice.SliceSpec.Value.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder
Overrides

build()

public ModelEvaluationSlice.Slice.SliceSpec.Value build()
Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpec.Value

buildPartial()

public ModelEvaluationSlice.Slice.SliceSpec.Value buildPartial()
Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpec.Value

clear()

public ModelEvaluationSlice.Slice.SliceSpec.Value.Builder clear()
Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ModelEvaluationSlice.Slice.SliceSpec.Value.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder
Overrides

clearFloatValue()

public ModelEvaluationSlice.Slice.SliceSpec.Value.Builder clearFloatValue()

Float type.

float float_value = 2;

Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder

This builder for chaining.

clearKind()

public ModelEvaluationSlice.Slice.SliceSpec.Value.Builder clearKind()
Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ModelEvaluationSlice.Slice.SliceSpec.Value.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder
Overrides

clearStringValue()

public ModelEvaluationSlice.Slice.SliceSpec.Value.Builder clearStringValue()

String type.

string string_value = 1;

Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder

This builder for chaining.

clone()

public ModelEvaluationSlice.Slice.SliceSpec.Value.Builder clone()
Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder
Overrides

getDefaultInstanceForType()

public ModelEvaluationSlice.Slice.SliceSpec.Value getDefaultInstanceForType()
Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpec.Value

getDescriptorForType()

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

getFloatValue()

public float getFloatValue()

Float type.

float float_value = 2;

Returns
Type Description
float

The floatValue.

getKindCase()

public ModelEvaluationSlice.Slice.SliceSpec.Value.KindCase getKindCase()
Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpec.Value.KindCase

getStringValue()

public String getStringValue()

String type.

string string_value = 1;

Returns
Type Description
String

The stringValue.

getStringValueBytes()

public ByteString getStringValueBytes()

String type.

string string_value = 1;

Returns
Type Description
ByteString

The bytes for stringValue.

hasFloatValue()

public boolean hasFloatValue()

Float type.

float float_value = 2;

Returns
Type Description
boolean

Whether the floatValue field is set.

hasStringValue()

public boolean hasStringValue()

String type.

string string_value = 1;

Returns
Type Description
boolean

Whether the stringValue field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ModelEvaluationSlice.Slice.SliceSpec.Value other)

public ModelEvaluationSlice.Slice.SliceSpec.Value.Builder mergeFrom(ModelEvaluationSlice.Slice.SliceSpec.Value other)
Parameter
Name Description
other ModelEvaluationSlice.Slice.SliceSpec.Value
Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ModelEvaluationSlice.Slice.SliceSpec.Value.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ModelEvaluationSlice.Slice.SliceSpec.Value.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ModelEvaluationSlice.Slice.SliceSpec.Value.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ModelEvaluationSlice.Slice.SliceSpec.Value.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder
Overrides

setFloatValue(float value)

public ModelEvaluationSlice.Slice.SliceSpec.Value.Builder setFloatValue(float value)

Float type.

float float_value = 2;

Parameter
Name Description
value float

The floatValue to set.

Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder

This builder for chaining.

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

public ModelEvaluationSlice.Slice.SliceSpec.Value.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder
Overrides

setStringValue(String value)

public ModelEvaluationSlice.Slice.SliceSpec.Value.Builder setStringValue(String value)

String type.

string string_value = 1;

Parameter
Name Description
value String

The stringValue to set.

Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder

This builder for chaining.

setStringValueBytes(ByteString value)

public ModelEvaluationSlice.Slice.SliceSpec.Value.Builder setStringValueBytes(ByteString value)

String type.

string string_value = 1;

Parameter
Name Description
value ByteString

The bytes for stringValue to set.

Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ModelEvaluationSlice.Slice.SliceSpec.Value.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder
Overrides