Class KnowledgeOperationMetadata.Builder (4.61.0)

public static final class KnowledgeOperationMetadata.Builder extends GeneratedMessageV3.Builder<KnowledgeOperationMetadata.Builder> implements KnowledgeOperationMetadataOrBuilder

Metadata in google::longrunning::Operation for Knowledge operations.

Protobuf type google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public KnowledgeOperationMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
KnowledgeOperationMetadata.Builder
Overrides

build()

public KnowledgeOperationMetadata build()
Returns
Type Description
KnowledgeOperationMetadata

buildPartial()

public KnowledgeOperationMetadata buildPartial()
Returns
Type Description
KnowledgeOperationMetadata

clear()

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

clearExportOperationMetadata()

public KnowledgeOperationMetadata.Builder clearExportOperationMetadata()

Metadata for the Export Data Operation such as the destination of export.

.google.cloud.dialogflow.v2beta1.ExportOperationMetadata export_operation_metadata = 4;

Returns
Type Description
KnowledgeOperationMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

public KnowledgeOperationMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
KnowledgeOperationMetadata.Builder
Overrides

clearKnowledgeBase()

public KnowledgeOperationMetadata.Builder clearKnowledgeBase()

The name of the knowledge base interacted with during the operation.

string knowledge_base = 3;

Returns
Type Description
KnowledgeOperationMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public KnowledgeOperationMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
KnowledgeOperationMetadata.Builder
Overrides

clearOperationMetadata()

public KnowledgeOperationMetadata.Builder clearOperationMetadata()
Returns
Type Description
KnowledgeOperationMetadata.Builder

clearState()

public KnowledgeOperationMetadata.Builder clearState()

Required. Output only. The current state of this operation.

.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
KnowledgeOperationMetadata.Builder

This builder for chaining.

clone()

public KnowledgeOperationMetadata.Builder clone()
Returns
Type Description
KnowledgeOperationMetadata.Builder
Overrides

getDefaultInstanceForType()

public KnowledgeOperationMetadata getDefaultInstanceForType()
Returns
Type Description
KnowledgeOperationMetadata

getDescriptorForType()

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

getExportOperationMetadata()

public ExportOperationMetadata getExportOperationMetadata()

Metadata for the Export Data Operation such as the destination of export.

.google.cloud.dialogflow.v2beta1.ExportOperationMetadata export_operation_metadata = 4;

Returns
Type Description
ExportOperationMetadata

The exportOperationMetadata.

getExportOperationMetadataBuilder()

public ExportOperationMetadata.Builder getExportOperationMetadataBuilder()

Metadata for the Export Data Operation such as the destination of export.

.google.cloud.dialogflow.v2beta1.ExportOperationMetadata export_operation_metadata = 4;

Returns
Type Description
ExportOperationMetadata.Builder

getExportOperationMetadataOrBuilder()

public ExportOperationMetadataOrBuilder getExportOperationMetadataOrBuilder()

Metadata for the Export Data Operation such as the destination of export.

.google.cloud.dialogflow.v2beta1.ExportOperationMetadata export_operation_metadata = 4;

Returns
Type Description
ExportOperationMetadataOrBuilder

getKnowledgeBase()

public String getKnowledgeBase()

The name of the knowledge base interacted with during the operation.

string knowledge_base = 3;

Returns
Type Description
String

The knowledgeBase.

getKnowledgeBaseBytes()

public ByteString getKnowledgeBaseBytes()

The name of the knowledge base interacted with during the operation.

string knowledge_base = 3;

Returns
Type Description
ByteString

The bytes for knowledgeBase.

getOperationMetadataCase()

public KnowledgeOperationMetadata.OperationMetadataCase getOperationMetadataCase()
Returns
Type Description
KnowledgeOperationMetadata.OperationMetadataCase

getState()

public KnowledgeOperationMetadata.State getState()

Required. Output only. The current state of this operation.

.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
KnowledgeOperationMetadata.State

The state.

getStateValue()

public int getStateValue()

Required. Output only. The current state of this operation.

.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

hasExportOperationMetadata()

public boolean hasExportOperationMetadata()

Metadata for the Export Data Operation such as the destination of export.

.google.cloud.dialogflow.v2beta1.ExportOperationMetadata export_operation_metadata = 4;

Returns
Type Description
boolean

Whether the exportOperationMetadata field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExportOperationMetadata(ExportOperationMetadata value)

public KnowledgeOperationMetadata.Builder mergeExportOperationMetadata(ExportOperationMetadata value)

Metadata for the Export Data Operation such as the destination of export.

.google.cloud.dialogflow.v2beta1.ExportOperationMetadata export_operation_metadata = 4;

Parameter
Name Description
value ExportOperationMetadata
Returns
Type Description
KnowledgeOperationMetadata.Builder

mergeFrom(KnowledgeOperationMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final KnowledgeOperationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
KnowledgeOperationMetadata.Builder
Overrides

setExportOperationMetadata(ExportOperationMetadata value)

public KnowledgeOperationMetadata.Builder setExportOperationMetadata(ExportOperationMetadata value)

Metadata for the Export Data Operation such as the destination of export.

.google.cloud.dialogflow.v2beta1.ExportOperationMetadata export_operation_metadata = 4;

Parameter
Name Description
value ExportOperationMetadata
Returns
Type Description
KnowledgeOperationMetadata.Builder

setExportOperationMetadata(ExportOperationMetadata.Builder builderForValue)

public KnowledgeOperationMetadata.Builder setExportOperationMetadata(ExportOperationMetadata.Builder builderForValue)

Metadata for the Export Data Operation such as the destination of export.

.google.cloud.dialogflow.v2beta1.ExportOperationMetadata export_operation_metadata = 4;

Parameter
Name Description
builderForValue ExportOperationMetadata.Builder
Returns
Type Description
KnowledgeOperationMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public KnowledgeOperationMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
KnowledgeOperationMetadata.Builder
Overrides

setKnowledgeBase(String value)

public KnowledgeOperationMetadata.Builder setKnowledgeBase(String value)

The name of the knowledge base interacted with during the operation.

string knowledge_base = 3;

Parameter
Name Description
value String

The knowledgeBase to set.

Returns
Type Description
KnowledgeOperationMetadata.Builder

This builder for chaining.

setKnowledgeBaseBytes(ByteString value)

public KnowledgeOperationMetadata.Builder setKnowledgeBaseBytes(ByteString value)

The name of the knowledge base interacted with during the operation.

string knowledge_base = 3;

Parameter
Name Description
value ByteString

The bytes for knowledgeBase to set.

Returns
Type Description
KnowledgeOperationMetadata.Builder

This builder for chaining.

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

public KnowledgeOperationMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
KnowledgeOperationMetadata.Builder
Overrides

setState(KnowledgeOperationMetadata.State value)

public KnowledgeOperationMetadata.Builder setState(KnowledgeOperationMetadata.State value)

Required. Output only. The current state of this operation.

.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value KnowledgeOperationMetadata.State

The state to set.

Returns
Type Description
KnowledgeOperationMetadata.Builder

This builder for chaining.

setStateValue(int value)

public KnowledgeOperationMetadata.Builder setStateValue(int value)

Required. Output only. The current state of this operation.

.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
KnowledgeOperationMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final KnowledgeOperationMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
KnowledgeOperationMetadata.Builder
Overrides