Class SafetySpec.Builder (3.41.0)

public static final class SafetySpec.Builder extends GeneratedMessageV3.Builder<SafetySpec.Builder> implements SafetySpecOrBuilder

Spec for safety metric.

Protobuf type google.cloud.aiplatform.v1beta1.SafetySpec

Implements

SafetySpecOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SafetySpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SafetySpec.Builder
Overrides

build()

public SafetySpec build()
Returns
TypeDescription
SafetySpec

buildPartial()

public SafetySpec buildPartial()
Returns
TypeDescription
SafetySpec

clear()

public SafetySpec.Builder clear()
Returns
TypeDescription
SafetySpec.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SafetySpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SafetySpec.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SafetySpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SafetySpec.Builder
Overrides

clearVersion()

public SafetySpec.Builder clearVersion()

Optional. Which version to use for evaluation.

int32 version = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SafetySpec.Builder

This builder for chaining.

clone()

public SafetySpec.Builder clone()
Returns
TypeDescription
SafetySpec.Builder
Overrides

getDefaultInstanceForType()

public SafetySpec getDefaultInstanceForType()
Returns
TypeDescription
SafetySpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getVersion()

public int getVersion()

Optional. Which version to use for evaluation.

int32 version = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SafetySpec other)

public SafetySpec.Builder mergeFrom(SafetySpec other)
Parameter
NameDescription
otherSafetySpec
Returns
TypeDescription
SafetySpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SafetySpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SafetySpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SafetySpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SafetySpec.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SafetySpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SafetySpec.Builder
Overrides

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

public SafetySpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SafetySpec.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SafetySpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SafetySpec.Builder
Overrides

setVersion(int value)

public SafetySpec.Builder setVersion(int value)

Optional. Which version to use for evaluation.

int32 version = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueint

The version to set.

Returns
TypeDescription
SafetySpec.Builder

This builder for chaining.