Class CreateSessionEntityTypeRequest.Builder (4.5.11)

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

The request message for SessionEntityTypes.CreateSessionEntityType.

Protobuf type google.cloud.dialogflow.v2.CreateSessionEntityTypeRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateSessionEntityTypeRequest build()
Returns
TypeDescription
CreateSessionEntityTypeRequest

buildPartial()

public CreateSessionEntityTypeRequest buildPartial()
Returns
TypeDescription
CreateSessionEntityTypeRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateSessionEntityTypeRequest.Builder clearParent()

Required. The session to create a session entity type for. Format: projects/<Project ID>/agent/sessions/<Session ID> or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/ sessions/<Session ID>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

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

Returns
TypeDescription
CreateSessionEntityTypeRequest.Builder

This builder for chaining.

clearSessionEntityType()

public CreateSessionEntityTypeRequest.Builder clearSessionEntityType()

Required. The session entity type to create.

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

Returns
TypeDescription
CreateSessionEntityTypeRequest.Builder

clone()

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

getDefaultInstanceForType()

public CreateSessionEntityTypeRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateSessionEntityTypeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. The session to create a session entity type for. Format: projects/<Project ID>/agent/sessions/<Session ID> or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/ sessions/<Session ID>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The session to create a session entity type for. Format: projects/<Project ID>/agent/sessions/<Session ID> or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/ sessions/<Session ID>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

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

Returns
TypeDescription
ByteString

The bytes for parent.

getSessionEntityType()

public SessionEntityType getSessionEntityType()

Required. The session entity type to create.

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

Returns
TypeDescription
SessionEntityType

The sessionEntityType.

getSessionEntityTypeBuilder()

public SessionEntityType.Builder getSessionEntityTypeBuilder()

Required. The session entity type to create.

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

Returns
TypeDescription
SessionEntityType.Builder

getSessionEntityTypeOrBuilder()

public SessionEntityTypeOrBuilder getSessionEntityTypeOrBuilder()

Required. The session entity type to create.

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

Returns
TypeDescription
SessionEntityTypeOrBuilder

hasSessionEntityType()

public boolean hasSessionEntityType()

Required. The session entity type to create.

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

Returns
TypeDescription
boolean

Whether the sessionEntityType field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateSessionEntityTypeRequest other)

public CreateSessionEntityTypeRequest.Builder mergeFrom(CreateSessionEntityTypeRequest other)
Parameter
NameDescription
otherCreateSessionEntityTypeRequest
Returns
TypeDescription
CreateSessionEntityTypeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateSessionEntityTypeRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateSessionEntityTypeRequest.Builder
Overrides

mergeSessionEntityType(SessionEntityType value)

public CreateSessionEntityTypeRequest.Builder mergeSessionEntityType(SessionEntityType value)

Required. The session entity type to create.

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

Parameter
NameDescription
valueSessionEntityType
Returns
TypeDescription
CreateSessionEntityTypeRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public CreateSessionEntityTypeRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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>/agent/sessions/<Session ID> or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/ sessions/<Session ID>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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>/agent/sessions/<Session ID> or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/ sessions/<Session ID>. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateSessionEntityTypeRequest.Builder
Overrides

setSessionEntityType(SessionEntityType value)

public CreateSessionEntityTypeRequest.Builder setSessionEntityType(SessionEntityType value)

Required. The session entity type to create.

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

Parameter
NameDescription
valueSessionEntityType
Returns
TypeDescription
CreateSessionEntityTypeRequest.Builder

setSessionEntityType(SessionEntityType.Builder builderForValue)

public CreateSessionEntityTypeRequest.Builder setSessionEntityType(SessionEntityType.Builder builderForValue)

Required. The session entity type to create.

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

Parameter
NameDescription
builderForValueSessionEntityType.Builder
Returns
TypeDescription
CreateSessionEntityTypeRequest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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