Class GetSessionEntityTypeRequest.Builder (4.6.0)

public static final class GetSessionEntityTypeRequest.Builder extends GeneratedMessageV3.Builder<GetSessionEntityTypeRequest.Builder> implements GetSessionEntityTypeRequestOrBuilder

The request message for SessionEntityTypes.GetSessionEntityType.

Protobuf type google.cloud.dialogflow.v2beta1.GetSessionEntityTypeRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetSessionEntityTypeRequest build()
Returns
TypeDescription
GetSessionEntityTypeRequest

buildPartial()

public GetSessionEntityTypeRequest buildPartial()
Returns
TypeDescription
GetSessionEntityTypeRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public GetSessionEntityTypeRequest.Builder clearName()

Required. The name of the session entity type. Supported formats:

  • projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>
  • projects/<Project ID>/locations/<Location ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>
  • projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>
  • projects/<Project ID>/locations/<Location ID>/agent/environments/ <Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name> If Location ID is not specified we assume default 'us' location. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

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

Returns
TypeDescription
GetSessionEntityTypeRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetSessionEntityTypeRequest getDefaultInstanceForType()
Returns
TypeDescription
GetSessionEntityTypeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The name of the session entity type. Supported formats:

  • projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>
  • projects/<Project ID>/locations/<Location ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>
  • projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>
  • projects/<Project ID>/locations/<Location ID>/agent/environments/ <Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name> If Location ID is not specified we assume default 'us' location. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the session entity type. Supported formats:

  • projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>
  • projects/<Project ID>/locations/<Location ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>
  • projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>
  • projects/<Project ID>/locations/<Location ID>/agent/environments/ <Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name> If Location ID is not specified we assume default 'us' location. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

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

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetSessionEntityTypeRequest other)

public GetSessionEntityTypeRequest.Builder mergeFrom(GetSessionEntityTypeRequest other)
Parameter
NameDescription
otherGetSessionEntityTypeRequest
Returns
TypeDescription
GetSessionEntityTypeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetSessionEntityTypeRequest.Builder setName(String value)

Required. The name of the session entity type. Supported formats:

  • projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>
  • projects/<Project ID>/locations/<Location ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>
  • projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>
  • projects/<Project ID>/locations/<Location ID>/agent/environments/ <Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name> If Location ID is not specified we assume default 'us' location. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetSessionEntityTypeRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetSessionEntityTypeRequest.Builder setNameBytes(ByteString value)

Required. The name of the session entity type. Supported formats:

  • projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>
  • projects/<Project ID>/locations/<Location ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>
  • projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>
  • projects/<Project ID>/locations/<Location ID>/agent/environments/ <Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name> If Location ID is not specified we assume default 'us' location. If Environment ID is not specified, we assume default 'draft' environment. If User ID is not specified, we assume default '-' user.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetSessionEntityTypeRequest.Builder

This builder for chaining.

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

public GetSessionEntityTypeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetSessionEntityTypeRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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