Class DeleteAssistantRequest.Builder (0.90.0)

public static final class DeleteAssistantRequest.Builder extends GeneratedMessage.Builder<DeleteAssistantRequest.Builder> implements DeleteAssistantRequestOrBuilder

Request message for the AssistantService.DeleteAssistant method.

Protobuf type google.cloud.discoveryengine.v1beta.DeleteAssistantRequest

Static Methods

getDescriptor()

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

Methods

build()

public DeleteAssistantRequest build()
Returns
Type Description
DeleteAssistantRequest

buildPartial()

public DeleteAssistantRequest buildPartial()
Returns
Type Description
DeleteAssistantRequest

clear()

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

clearName()

public DeleteAssistantRequest.Builder clearName()

Required. Resource name of Assistant. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}

If the caller does not have permission to delete the Assistant, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

If the Assistant to delete does not exist, a NOT_FOUND error is returned.

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

Returns
Type Description
DeleteAssistantRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public DeleteAssistantRequest getDefaultInstanceForType()
Returns
Type Description
DeleteAssistantRequest

getDescriptorForType()

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

getName()

public String getName()

Required. Resource name of Assistant. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}

If the caller does not have permission to delete the Assistant, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

If the Assistant to delete does not exist, a NOT_FOUND error is returned.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Resource name of Assistant. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}

If the caller does not have permission to delete the Assistant, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

If the Assistant to delete does not exist, a NOT_FOUND error is returned.

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DeleteAssistantRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setName(String value)

public DeleteAssistantRequest.Builder setName(String value)

Required. Resource name of Assistant. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}

If the caller does not have permission to delete the Assistant, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

If the Assistant to delete does not exist, a NOT_FOUND error is returned.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DeleteAssistantRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeleteAssistantRequest.Builder setNameBytes(ByteString value)

Required. Resource name of Assistant. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}

If the caller does not have permission to delete the Assistant, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

If the Assistant to delete does not exist, a NOT_FOUND error is returned.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DeleteAssistantRequest.Builder

This builder for chaining.