public static final class SafetyInput.Builder extends GeneratedMessageV3.Builder<SafetyInput.Builder> implements SafetyInputOrBuilder
Input for safety metric.
Protobuf type google.cloud.aiplatform.v1beta1.SafetyInput
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public SafetyInput.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public SafetyInput build()
public SafetyInput buildPartial()
public SafetyInput.Builder clear()
Overrides
public SafetyInput.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public SafetyInput.Builder clearInstance()
Required. Safety instance.
.google.cloud.aiplatform.v1beta1.SafetyInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];
public SafetyInput.Builder clearMetricSpec()
Required. Spec for safety metric.
.google.cloud.aiplatform.v1beta1.SafetySpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];
public SafetyInput.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public SafetyInput.Builder clone()
Overrides
public SafetyInput getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public SafetyInstance getInstance()
Required. Safety instance.
.google.cloud.aiplatform.v1beta1.SafetyInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];
public SafetyInstance.Builder getInstanceBuilder()
Required. Safety instance.
.google.cloud.aiplatform.v1beta1.SafetyInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];
public SafetyInstanceOrBuilder getInstanceOrBuilder()
Required. Safety instance.
.google.cloud.aiplatform.v1beta1.SafetyInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];
public SafetySpec getMetricSpec()
Required. Spec for safety metric.
.google.cloud.aiplatform.v1beta1.SafetySpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];
public SafetySpec.Builder getMetricSpecBuilder()
Required. Spec for safety metric.
.google.cloud.aiplatform.v1beta1.SafetySpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];
public SafetySpecOrBuilder getMetricSpecOrBuilder()
Required. Spec for safety metric.
.google.cloud.aiplatform.v1beta1.SafetySpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public SafetyInput.Builder mergeFrom(SafetyInput other)
public SafetyInput.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public SafetyInput.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public SafetyInput.Builder mergeInstance(SafetyInstance value)
Required. Safety instance.
.google.cloud.aiplatform.v1beta1.SafetyInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];
public SafetyInput.Builder mergeMetricSpec(SafetySpec value)
Required. Spec for safety metric.
.google.cloud.aiplatform.v1beta1.SafetySpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];
public final SafetyInput.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public SafetyInput.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public SafetyInput.Builder setInstance(SafetyInstance value)
Required. Safety instance.
.google.cloud.aiplatform.v1beta1.SafetyInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];
public SafetyInput.Builder setInstance(SafetyInstance.Builder builderForValue)
Required. Safety instance.
.google.cloud.aiplatform.v1beta1.SafetyInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];
public SafetyInput.Builder setMetricSpec(SafetySpec value)
Required. Spec for safety metric.
.google.cloud.aiplatform.v1beta1.SafetySpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];
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];
public SafetyInput.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final SafetyInput.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides