Class CreateGuardrailRequest.Builder (0.1.0)

public static final class CreateGuardrailRequest.Builder extends GeneratedMessage.Builder<CreateGuardrailRequest.Builder> implements CreateGuardrailRequestOrBuilder

Request message for AgentService.CreateGuardrail.

Protobuf type google.cloud.ces.v1.CreateGuardrailRequest

Static Methods

getDescriptor()

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

Methods

build()

public CreateGuardrailRequest build()
Returns
Type Description
CreateGuardrailRequest

buildPartial()

public CreateGuardrailRequest buildPartial()
Returns
Type Description
CreateGuardrailRequest

clear()

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

clearGuardrail()

public CreateGuardrailRequest.Builder clearGuardrail()

Required. The guardrail to create.

.google.cloud.ces.v1.Guardrail guardrail = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateGuardrailRequest.Builder

clearGuardrailId()

public CreateGuardrailRequest.Builder clearGuardrailId()

Optional. The ID to use for the guardrail, which will become the final component of the guardrail's resource name. If not provided, a unique ID will be automatically assigned for the guardrail.

string guardrail_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateGuardrailRequest.Builder

This builder for chaining.

clearParent()

public CreateGuardrailRequest.Builder clearParent()

Required. The resource name of the app to create a guardrail in.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateGuardrailRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public CreateGuardrailRequest getDefaultInstanceForType()
Returns
Type Description
CreateGuardrailRequest

getDescriptorForType()

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

getGuardrail()

public Guardrail getGuardrail()

Required. The guardrail to create.

.google.cloud.ces.v1.Guardrail guardrail = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Guardrail

The guardrail.

getGuardrailBuilder()

public Guardrail.Builder getGuardrailBuilder()

Required. The guardrail to create.

.google.cloud.ces.v1.Guardrail guardrail = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Guardrail.Builder

getGuardrailId()

public String getGuardrailId()

Optional. The ID to use for the guardrail, which will become the final component of the guardrail's resource name. If not provided, a unique ID will be automatically assigned for the guardrail.

string guardrail_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The guardrailId.

getGuardrailIdBytes()

public ByteString getGuardrailIdBytes()

Optional. The ID to use for the guardrail, which will become the final component of the guardrail's resource name. If not provided, a unique ID will be automatically assigned for the guardrail.

string guardrail_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for guardrailId.

getGuardrailOrBuilder()

public GuardrailOrBuilder getGuardrailOrBuilder()

Required. The guardrail to create.

.google.cloud.ces.v1.Guardrail guardrail = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GuardrailOrBuilder

getParent()

public String getParent()

Required. The resource name of the app to create a guardrail in.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The resource name of the app to create a guardrail in.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasGuardrail()

public boolean hasGuardrail()

Required. The guardrail to create.

.google.cloud.ces.v1.Guardrail guardrail = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the guardrail field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateGuardrailRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGuardrail(Guardrail value)

public CreateGuardrailRequest.Builder mergeGuardrail(Guardrail value)

Required. The guardrail to create.

.google.cloud.ces.v1.Guardrail guardrail = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Guardrail
Returns
Type Description
CreateGuardrailRequest.Builder

setGuardrail(Guardrail value)

public CreateGuardrailRequest.Builder setGuardrail(Guardrail value)

Required. The guardrail to create.

.google.cloud.ces.v1.Guardrail guardrail = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Guardrail
Returns
Type Description
CreateGuardrailRequest.Builder

setGuardrail(Guardrail.Builder builderForValue)

public CreateGuardrailRequest.Builder setGuardrail(Guardrail.Builder builderForValue)

Required. The guardrail to create.

.google.cloud.ces.v1.Guardrail guardrail = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Guardrail.Builder
Returns
Type Description
CreateGuardrailRequest.Builder

setGuardrailId(String value)

public CreateGuardrailRequest.Builder setGuardrailId(String value)

Optional. The ID to use for the guardrail, which will become the final component of the guardrail's resource name. If not provided, a unique ID will be automatically assigned for the guardrail.

string guardrail_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The guardrailId to set.

Returns
Type Description
CreateGuardrailRequest.Builder

This builder for chaining.

setGuardrailIdBytes(ByteString value)

public CreateGuardrailRequest.Builder setGuardrailIdBytes(ByteString value)

Optional. The ID to use for the guardrail, which will become the final component of the guardrail's resource name. If not provided, a unique ID will be automatically assigned for the guardrail.

string guardrail_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for guardrailId to set.

Returns
Type Description
CreateGuardrailRequest.Builder

This builder for chaining.

setParent(String value)

public CreateGuardrailRequest.Builder setParent(String value)

Required. The resource name of the app to create a guardrail in.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateGuardrailRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateGuardrailRequest.Builder setParentBytes(ByteString value)

Required. The resource name of the app to create a guardrail in.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateGuardrailRequest.Builder

This builder for chaining.