Class ModelEvaluationSlice.Slice.SliceSpec.Value.Builder (3.25.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.v1.ModelEvaluationSlice.Slice.SliceSpec.Value

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ModelEvaluationSlice.Slice.SliceSpec.Value.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder
Overrides

build()

public ModelEvaluationSlice.Slice.SliceSpec.Value build()
Returns
TypeDescription
ModelEvaluationSlice.Slice.SliceSpec.Value

buildPartial()

public ModelEvaluationSlice.Slice.SliceSpec.Value buildPartial()
Returns
TypeDescription
ModelEvaluationSlice.Slice.SliceSpec.Value

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ModelEvaluationSlice.Slice.SliceSpec.Value.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder
Overrides

clearFloatValue()

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

Float type.

float float_value = 2;

Returns
TypeDescription
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder

This builder for chaining.

clearKind()

public ModelEvaluationSlice.Slice.SliceSpec.Value.Builder clearKind()
Returns
TypeDescription
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ModelEvaluationSlice.Slice.SliceSpec.Value.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder
Overrides

clearStringValue()

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

String type.

string string_value = 1;

Returns
TypeDescription
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ModelEvaluationSlice.Slice.SliceSpec.Value getDefaultInstanceForType()
Returns
TypeDescription
ModelEvaluationSlice.Slice.SliceSpec.Value

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFloatValue()

public float getFloatValue()

Float type.

float float_value = 2;

Returns
TypeDescription
float

The floatValue.

getKindCase()

public ModelEvaluationSlice.Slice.SliceSpec.Value.KindCase getKindCase()
Returns
TypeDescription
ModelEvaluationSlice.Slice.SliceSpec.Value.KindCase

getStringValue()

public String getStringValue()

String type.

string string_value = 1;

Returns
TypeDescription
String

The stringValue.

getStringValueBytes()

public ByteString getStringValueBytes()

String type.

string string_value = 1;

Returns
TypeDescription
ByteString

The bytes for stringValue.

hasFloatValue()

public boolean hasFloatValue()

Float type.

float float_value = 2;

Returns
TypeDescription
boolean

Whether the floatValue field is set.

hasStringValue()

public boolean hasStringValue()

String type.

string string_value = 1;

Returns
TypeDescription
boolean

Whether the stringValue field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ModelEvaluationSlice.Slice.SliceSpec.Value other)

public ModelEvaluationSlice.Slice.SliceSpec.Value.Builder mergeFrom(ModelEvaluationSlice.Slice.SliceSpec.Value other)
Parameter
NameDescription
otherModelEvaluationSlice.Slice.SliceSpec.Value
Returns
TypeDescription
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ModelEvaluationSlice.Slice.SliceSpec.Value.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ModelEvaluationSlice.Slice.SliceSpec.Value.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ModelEvaluationSlice.Slice.SliceSpec.Value.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuefloat

The floatValue to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The stringValue to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for stringValue to set.

Returns
TypeDescription
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ModelEvaluationSlice.Slice.SliceSpec.Value.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ModelEvaluationSlice.Slice.SliceSpec.Value.Builder
Overrides