Class SafetyInput.Builder (3.40.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SafetyInput build()
Returns
TypeDescription
SafetyInput

buildPartial()

public SafetyInput buildPartial()
Returns
TypeDescription
SafetyInput

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstance()

public SafetyInput.Builder clearInstance()

Required. Safety instance.

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

Returns
TypeDescription
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
TypeDescription
SafetyInput.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public SafetyInput getDefaultInstanceForType()
Returns
TypeDescription
SafetyInput

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstance()

public SafetyInstance getInstance()

Required. Safety instance.

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

Returns
TypeDescription
SafetyInstance

The instance.

getInstanceBuilder()

public SafetyInstance.Builder getInstanceBuilder()

Required. Safety instance.

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

Returns
TypeDescription
SafetyInstance.Builder

getInstanceOrBuilder()

public SafetyInstanceOrBuilder getInstanceOrBuilder()

Required. Safety instance.

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

Returns
TypeDescription
SafetyInstanceOrBuilder

getMetricSpec()

public SafetySpec getMetricSpec()

Required. Spec for safety metric.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
SafetySpecOrBuilder

hasInstance()

public boolean hasInstance()

Required. Safety instance.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the metricSpec field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SafetyInput other)

public SafetyInput.Builder mergeFrom(SafetyInput other)
Parameter
NameDescription
otherSafetyInput
Returns
TypeDescription
SafetyInput.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public SafetyInput.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueSafetyInstance
Returns
TypeDescription
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
NameDescription
valueSafetySpec
Returns
TypeDescription
SafetyInput.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public SafetyInput.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueSafetyInstance
Returns
TypeDescription
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
NameDescription
builderForValueSafetyInstance.Builder
Returns
TypeDescription
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
NameDescription
valueSafetySpec
Returns
TypeDescription
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
NameDescription
builderForValueSafetySpec.Builder
Returns
TypeDescription
SafetyInput.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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