Class SafetyInput.Builder (3.56.0)

public static final class SafetyInput.Builder extends GeneratedMessageV3.Builder<SafetyInput.Builder> implements SafetyInputOrBuilder

Input for safety metric.

Protobuf type google.cloud.aiplatform.v1beta1.SafetyInput

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SafetyInput build()
Returns
Type Description
SafetyInput

buildPartial()

public SafetyInput buildPartial()
Returns
Type Description
SafetyInput

clear()

public SafetyInput.Builder clear()
Returns
Type Description
SafetyInput.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SafetyInput.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SafetyInput.Builder
Overrides

clearInstance()

public SafetyInput.Builder clearInstance()

Required. Safety instance.

.google.cloud.aiplatform.v1beta1.SafetyInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SafetyInput.Builder

clearMetricSpec()

public SafetyInput.Builder clearMetricSpec()

Required. Spec for safety metric.

.google.cloud.aiplatform.v1beta1.SafetySpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SafetyInput.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public SafetyInput.Builder clone()
Returns
Type Description
SafetyInput.Builder
Overrides

getDefaultInstanceForType()

public SafetyInput getDefaultInstanceForType()
Returns
Type Description
SafetyInput

getDescriptorForType()

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

getInstance()

public SafetyInstance getInstance()

Required. Safety instance.

.google.cloud.aiplatform.v1beta1.SafetyInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SafetyInstance

The instance.

getInstanceBuilder()

public SafetyInstance.Builder getInstanceBuilder()

Required. Safety instance.

.google.cloud.aiplatform.v1beta1.SafetyInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SafetyInstance.Builder

getInstanceOrBuilder()

public SafetyInstanceOrBuilder getInstanceOrBuilder()

Required. Safety instance.

.google.cloud.aiplatform.v1beta1.SafetyInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SafetyInstanceOrBuilder

getMetricSpec()

public SafetySpec getMetricSpec()

Required. Spec for safety metric.

.google.cloud.aiplatform.v1beta1.SafetySpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SafetySpec

The metricSpec.

getMetricSpecBuilder()

public SafetySpec.Builder getMetricSpecBuilder()

Required. Spec for safety metric.

.google.cloud.aiplatform.v1beta1.SafetySpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SafetySpec.Builder

getMetricSpecOrBuilder()

public SafetySpecOrBuilder getMetricSpecOrBuilder()

Required. Spec for safety metric.

.google.cloud.aiplatform.v1beta1.SafetySpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SafetySpecOrBuilder

hasInstance()

public boolean hasInstance()

Required. Safety instance.

.google.cloud.aiplatform.v1beta1.SafetyInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the instance field is set.

hasMetricSpec()

public boolean hasMetricSpec()

Required. Spec for safety metric.

.google.cloud.aiplatform.v1beta1.SafetySpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the metricSpec field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SafetyInput other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInstance(SafetyInstance value)

public SafetyInput.Builder mergeInstance(SafetyInstance value)

Required. Safety instance.

.google.cloud.aiplatform.v1beta1.SafetyInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SafetyInstance
Returns
Type Description
SafetyInput.Builder

mergeMetricSpec(SafetySpec value)

public SafetyInput.Builder mergeMetricSpec(SafetySpec value)

Required. Spec for safety metric.

.google.cloud.aiplatform.v1beta1.SafetySpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SafetySpec
Returns
Type Description
SafetyInput.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public SafetyInput.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SafetyInput.Builder
Overrides

setInstance(SafetyInstance value)

public SafetyInput.Builder setInstance(SafetyInstance value)

Required. Safety instance.

.google.cloud.aiplatform.v1beta1.SafetyInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SafetyInstance
Returns
Type Description
SafetyInput.Builder

setInstance(SafetyInstance.Builder builderForValue)

public SafetyInput.Builder setInstance(SafetyInstance.Builder builderForValue)

Required. Safety instance.

.google.cloud.aiplatform.v1beta1.SafetyInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue SafetyInstance.Builder
Returns
Type Description
SafetyInput.Builder

setMetricSpec(SafetySpec value)

public SafetyInput.Builder setMetricSpec(SafetySpec value)

Required. Spec for safety metric.

.google.cloud.aiplatform.v1beta1.SafetySpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SafetySpec
Returns
Type Description
SafetyInput.Builder

setMetricSpec(SafetySpec.Builder builderForValue)

public SafetyInput.Builder setMetricSpec(SafetySpec.Builder builderForValue)

Required. Spec for safety metric.

.google.cloud.aiplatform.v1beta1.SafetySpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue SafetySpec.Builder
Returns
Type Description
SafetyInput.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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