Class DeleteAllContextsRequest.Builder (4.5.11)

public static final class DeleteAllContextsRequest.Builder extends GeneratedMessageV3.Builder<DeleteAllContextsRequest.Builder> implements DeleteAllContextsRequestOrBuilder

The request message for Contexts.DeleteAllContexts.

Protobuf type google.cloud.dialogflow.v2.DeleteAllContextsRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DeleteAllContextsRequest build()
Returns
TypeDescription
DeleteAllContextsRequest

buildPartial()

public DeleteAllContextsRequest buildPartial()
Returns
TypeDescription
DeleteAllContextsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public DeleteAllContextsRequest.Builder clearParent()

Required. The name of the session to delete all contexts from. 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
DeleteAllContextsRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DeleteAllContextsRequest getDefaultInstanceForType()
Returns
TypeDescription
DeleteAllContextsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. The name of the session to delete all contexts from. 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 name of the session to delete all contexts from. 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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DeleteAllContextsRequest other)

public DeleteAllContextsRequest.Builder mergeFrom(DeleteAllContextsRequest other)
Parameter
NameDescription
otherDeleteAllContextsRequest
Returns
TypeDescription
DeleteAllContextsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public DeleteAllContextsRequest.Builder setParent(String value)

Required. The name of the session to delete all contexts from. 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
DeleteAllContextsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public DeleteAllContextsRequest.Builder setParentBytes(ByteString value)

Required. The name of the session to delete all contexts from. 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
DeleteAllContextsRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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