public static final class Guardrail.Supervisor.Builder extends GeneratedMessage.Builder<Guardrail.Supervisor.Builder> implements Guardrail.SupervisorOrBuilderGuardrail that runs supervisor intervention.
Protobuf type google.cloud.ces.v1beta.Guardrail.Supervisor
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Guardrail.Supervisor.BuilderImplements
Guardrail.SupervisorOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Guardrail.Supervisor build()| Returns | |
|---|---|
| Type | Description |
Guardrail.Supervisor |
|
buildPartial()
public Guardrail.Supervisor buildPartial()| Returns | |
|---|---|
| Type | Description |
Guardrail.Supervisor |
|
clear()
public Guardrail.Supervisor.Builder clear()| Returns | |
|---|---|
| Type | Description |
Guardrail.Supervisor.Builder |
|
clearDetectionMode()
public Guardrail.Supervisor.Builder clearDetectionMode()Optional. The detection mode of the supervisor.
.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode detection_mode = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Guardrail.Supervisor.Builder |
This builder for chaining. |
clearType()
public Guardrail.Supervisor.Builder clearType()Optional. The type of the supervisor.
.google.cloud.ces.v1beta.Guardrail.Supervisor.Type type = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Guardrail.Supervisor.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Guardrail.Supervisor getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Guardrail.Supervisor |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDetectionMode()
public Guardrail.Supervisor.DetectionMode getDetectionMode()Optional. The detection mode of the supervisor.
.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode detection_mode = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Guardrail.Supervisor.DetectionMode |
The detectionMode. |
getDetectionModeValue()
public int getDetectionModeValue()Optional. The detection mode of the supervisor.
.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode detection_mode = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for detectionMode. |
getType()
public Guardrail.Supervisor.Type getType()Optional. The type of the supervisor.
.google.cloud.ces.v1beta.Guardrail.Supervisor.Type type = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Guardrail.Supervisor.Type |
The type. |
getTypeValue()
public int getTypeValue()Optional. The type of the supervisor.
.google.cloud.ces.v1beta.Guardrail.Supervisor.Type type = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for type. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Guardrail.Supervisor other)
public Guardrail.Supervisor.Builder mergeFrom(Guardrail.Supervisor other)| Parameter | |
|---|---|
| Name | Description |
other |
Guardrail.Supervisor |
| Returns | |
|---|---|
| Type | Description |
Guardrail.Supervisor.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Guardrail.Supervisor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Guardrail.Supervisor.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Guardrail.Supervisor.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Guardrail.Supervisor.Builder |
|
setDetectionMode(Guardrail.Supervisor.DetectionMode value)
public Guardrail.Supervisor.Builder setDetectionMode(Guardrail.Supervisor.DetectionMode value)Optional. The detection mode of the supervisor.
.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode detection_mode = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Guardrail.Supervisor.DetectionModeThe detectionMode to set. |
| Returns | |
|---|---|
| Type | Description |
Guardrail.Supervisor.Builder |
This builder for chaining. |
setDetectionModeValue(int value)
public Guardrail.Supervisor.Builder setDetectionModeValue(int value)Optional. The detection mode of the supervisor.
.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode detection_mode = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for detectionMode to set. |
| Returns | |
|---|---|
| Type | Description |
Guardrail.Supervisor.Builder |
This builder for chaining. |
setType(Guardrail.Supervisor.Type value)
public Guardrail.Supervisor.Builder setType(Guardrail.Supervisor.Type value)Optional. The type of the supervisor.
.google.cloud.ces.v1beta.Guardrail.Supervisor.Type type = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Guardrail.Supervisor.TypeThe type to set. |
| Returns | |
|---|---|
| Type | Description |
Guardrail.Supervisor.Builder |
This builder for chaining. |
setTypeValue(int value)
public Guardrail.Supervisor.Builder setTypeValue(int value)Optional. The type of the supervisor.
.google.cloud.ces.v1beta.Guardrail.Supervisor.Type type = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
Guardrail.Supervisor.Builder |
This builder for chaining. |