Class CreateSessionEntityTypeRequest.Builder (0.52.0)

public static final class CreateSessionEntityTypeRequest.Builder extends GeneratedMessageV3.Builder<CreateSessionEntityTypeRequest.Builder> implements CreateSessionEntityTypeRequestOrBuilder

The request message for SessionEntityTypes.CreateSessionEntityType.

Protobuf type google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateSessionEntityTypeRequest build()
Returns
Type Description
CreateSessionEntityTypeRequest

buildPartial()

public CreateSessionEntityTypeRequest buildPartial()
Returns
Type Description
CreateSessionEntityTypeRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateSessionEntityTypeRequest.Builder clearParent()

Required. The session to create a session entity type for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/sessions/<Session ID> or projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>/sessions/<Session ID>. If Environment ID is not specified, we assume default 'draft' environment.

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

Returns
Type Description
CreateSessionEntityTypeRequest.Builder

This builder for chaining.

clearSessionEntityType()

public CreateSessionEntityTypeRequest.Builder clearSessionEntityType()

Required. The session entity type to create.

.google.cloud.dialogflow.cx.v3.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateSessionEntityTypeRequest.Builder

clone()

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

getDefaultInstanceForType()

public CreateSessionEntityTypeRequest getDefaultInstanceForType()
Returns
Type Description
CreateSessionEntityTypeRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The session to create a session entity type for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/sessions/<Session ID> or projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>/sessions/<Session ID>. If Environment ID is not specified, we assume default 'draft' environment.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The session to create a session entity type for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/sessions/<Session ID> or projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>/sessions/<Session ID>. If Environment ID is not specified, we assume default 'draft' environment.

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

Returns
Type Description
ByteString

The bytes for parent.

getSessionEntityType()

public SessionEntityType getSessionEntityType()

Required. The session entity type to create.

.google.cloud.dialogflow.cx.v3.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SessionEntityType

The sessionEntityType.

getSessionEntityTypeBuilder()

public SessionEntityType.Builder getSessionEntityTypeBuilder()

Required. The session entity type to create.

.google.cloud.dialogflow.cx.v3.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SessionEntityType.Builder

getSessionEntityTypeOrBuilder()

public SessionEntityTypeOrBuilder getSessionEntityTypeOrBuilder()

Required. The session entity type to create.

.google.cloud.dialogflow.cx.v3.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SessionEntityTypeOrBuilder

hasSessionEntityType()

public boolean hasSessionEntityType()

Required. The session entity type to create.

.google.cloud.dialogflow.cx.v3.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the sessionEntityType field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateSessionEntityTypeRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSessionEntityType(SessionEntityType value)

public CreateSessionEntityTypeRequest.Builder mergeSessionEntityType(SessionEntityType value)

Required. The session entity type to create.

.google.cloud.dialogflow.cx.v3.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SessionEntityType
Returns
Type Description
CreateSessionEntityTypeRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateSessionEntityTypeRequest.Builder setParent(String value)

Required. The session to create a session entity type for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/sessions/<Session ID> or projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>/sessions/<Session ID>. If Environment ID is not specified, we assume default 'draft' environment.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateSessionEntityTypeRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateSessionEntityTypeRequest.Builder setParentBytes(ByteString value)

Required. The session to create a session entity type for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/sessions/<Session ID> or projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>/sessions/<Session ID>. If Environment ID is not specified, we assume default 'draft' environment.

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
CreateSessionEntityTypeRequest.Builder

This builder for chaining.

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

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

setSessionEntityType(SessionEntityType value)

public CreateSessionEntityTypeRequest.Builder setSessionEntityType(SessionEntityType value)

Required. The session entity type to create.

.google.cloud.dialogflow.cx.v3.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value SessionEntityType
Returns
Type Description
CreateSessionEntityTypeRequest.Builder

setSessionEntityType(SessionEntityType.Builder builderForValue)

public CreateSessionEntityTypeRequest.Builder setSessionEntityType(SessionEntityType.Builder builderForValue)

Required. The session entity type to create.

.google.cloud.dialogflow.cx.v3.SessionEntityType session_entity_type = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue SessionEntityType.Builder
Returns
Type Description
CreateSessionEntityTypeRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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