Class ExportDocumentRequest.Builder (4.7.5)

public static final class ExportDocumentRequest.Builder extends GeneratedMessageV3.Builder<ExportDocumentRequest.Builder> implements ExportDocumentRequestOrBuilder

Request message for Documents.ExportDocument.

Protobuf type google.cloud.dialogflow.v2.ExportDocumentRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ExportDocumentRequest build()
Returns
TypeDescription
ExportDocumentRequest

buildPartial()

public ExportDocumentRequest buildPartial()
Returns
TypeDescription
ExportDocumentRequest

clear()

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

clearDestination()

public ExportDocumentRequest.Builder clearDestination()
Returns
TypeDescription
ExportDocumentRequest.Builder

clearExportFullContent()

public ExportDocumentRequest.Builder clearExportFullContent()

When enabled, export the full content of the document including empirical probability.

bool export_full_content = 3;

Returns
TypeDescription
ExportDocumentRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGcsDestination()

public ExportDocumentRequest.Builder clearGcsDestination()

Cloud Storage file path to export the document.

.google.cloud.dialogflow.v2.GcsDestination gcs_destination = 2;

Returns
TypeDescription
ExportDocumentRequest.Builder

clearName()

public ExportDocumentRequest.Builder clearName()

Required. The name of the document to export. Format: projects/<Project ID>/locations/<Location ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>.

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

Returns
TypeDescription
ExportDocumentRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSmartMessagingPartialUpdate()

public ExportDocumentRequest.Builder clearSmartMessagingPartialUpdate()

When enabled, export the smart messaging allowlist document for partial update.

bool smart_messaging_partial_update = 5;

Returns
TypeDescription
ExportDocumentRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ExportDocumentRequest getDefaultInstanceForType()
Returns
TypeDescription
ExportDocumentRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDestinationCase()

public ExportDocumentRequest.DestinationCase getDestinationCase()
Returns
TypeDescription
ExportDocumentRequest.DestinationCase

getExportFullContent()

public boolean getExportFullContent()

When enabled, export the full content of the document including empirical probability.

bool export_full_content = 3;

Returns
TypeDescription
boolean

The exportFullContent.

getGcsDestination()

public GcsDestination getGcsDestination()

Cloud Storage file path to export the document.

.google.cloud.dialogflow.v2.GcsDestination gcs_destination = 2;

Returns
TypeDescription
GcsDestination

The gcsDestination.

getGcsDestinationBuilder()

public GcsDestination.Builder getGcsDestinationBuilder()

Cloud Storage file path to export the document.

.google.cloud.dialogflow.v2.GcsDestination gcs_destination = 2;

Returns
TypeDescription
GcsDestination.Builder

getGcsDestinationOrBuilder()

public GcsDestinationOrBuilder getGcsDestinationOrBuilder()

Cloud Storage file path to export the document.

.google.cloud.dialogflow.v2.GcsDestination gcs_destination = 2;

Returns
TypeDescription
GcsDestinationOrBuilder

getName()

public String getName()

Required. The name of the document to export. Format: projects/<Project ID>/locations/<Location ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>.

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 document to export. Format: projects/<Project ID>/locations/<Location ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>.

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

Returns
TypeDescription
ByteString

The bytes for name.

getSmartMessagingPartialUpdate()

public boolean getSmartMessagingPartialUpdate()

When enabled, export the smart messaging allowlist document for partial update.

bool smart_messaging_partial_update = 5;

Returns
TypeDescription
boolean

The smartMessagingPartialUpdate.

hasGcsDestination()

public boolean hasGcsDestination()

Cloud Storage file path to export the document.

.google.cloud.dialogflow.v2.GcsDestination gcs_destination = 2;

Returns
TypeDescription
boolean

Whether the gcsDestination field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ExportDocumentRequest other)

public ExportDocumentRequest.Builder mergeFrom(ExportDocumentRequest other)
Parameter
NameDescription
otherExportDocumentRequest
Returns
TypeDescription
ExportDocumentRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGcsDestination(GcsDestination value)

public ExportDocumentRequest.Builder mergeGcsDestination(GcsDestination value)

Cloud Storage file path to export the document.

.google.cloud.dialogflow.v2.GcsDestination gcs_destination = 2;

Parameter
NameDescription
valueGcsDestination
Returns
TypeDescription
ExportDocumentRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setExportFullContent(boolean value)

public ExportDocumentRequest.Builder setExportFullContent(boolean value)

When enabled, export the full content of the document including empirical probability.

bool export_full_content = 3;

Parameter
NameDescription
valueboolean

The exportFullContent to set.

Returns
TypeDescription
ExportDocumentRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcsDestination(GcsDestination value)

public ExportDocumentRequest.Builder setGcsDestination(GcsDestination value)

Cloud Storage file path to export the document.

.google.cloud.dialogflow.v2.GcsDestination gcs_destination = 2;

Parameter
NameDescription
valueGcsDestination
Returns
TypeDescription
ExportDocumentRequest.Builder

setGcsDestination(GcsDestination.Builder builderForValue)

public ExportDocumentRequest.Builder setGcsDestination(GcsDestination.Builder builderForValue)

Cloud Storage file path to export the document.

.google.cloud.dialogflow.v2.GcsDestination gcs_destination = 2;

Parameter
NameDescription
builderForValueGcsDestination.Builder
Returns
TypeDescription
ExportDocumentRequest.Builder

setName(String value)

public ExportDocumentRequest.Builder setName(String value)

Required. The name of the document to export. Format: projects/<Project ID>/locations/<Location ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ExportDocumentRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ExportDocumentRequest.Builder setNameBytes(ByteString value)

Required. The name of the document to export. Format: projects/<Project ID>/locations/<Location ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ExportDocumentRequest.Builder

This builder for chaining.

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

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

setSmartMessagingPartialUpdate(boolean value)

public ExportDocumentRequest.Builder setSmartMessagingPartialUpdate(boolean value)

When enabled, export the smart messaging allowlist document for partial update.

bool smart_messaging_partial_update = 5;

Parameter
NameDescription
valueboolean

The smartMessagingPartialUpdate to set.

Returns
TypeDescription
ExportDocumentRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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