Class KnowledgeOperationMetadata.Builder (4.6.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.v2.KnowledgeOperationMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public KnowledgeOperationMetadata build()
Returns
TypeDescription
KnowledgeOperationMetadata

buildPartial()

public KnowledgeOperationMetadata buildPartial()
Returns
TypeDescription
KnowledgeOperationMetadata

clear()

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

clearExportOperationMetadata()

public KnowledgeOperationMetadata.Builder clearExportOperationMetadata()

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

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

Returns
TypeDescription
KnowledgeOperationMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearKnowledgeBase()

public KnowledgeOperationMetadata.Builder clearKnowledgeBase()

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

string knowledge_base = 3;

Returns
TypeDescription
KnowledgeOperationMetadata.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOperationMetadata()

public KnowledgeOperationMetadata.Builder clearOperationMetadata()
Returns
TypeDescription
KnowledgeOperationMetadata.Builder

clearState()

public KnowledgeOperationMetadata.Builder clearState()

Output only. The current state of this operation.

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

Returns
TypeDescription
KnowledgeOperationMetadata.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public KnowledgeOperationMetadata getDefaultInstanceForType()
Returns
TypeDescription
KnowledgeOperationMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExportOperationMetadata()

public ExportOperationMetadata getExportOperationMetadata()

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

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

Returns
TypeDescription
ExportOperationMetadata

The exportOperationMetadata.

getExportOperationMetadataBuilder()

public ExportOperationMetadata.Builder getExportOperationMetadataBuilder()

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

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

Returns
TypeDescription
ExportOperationMetadata.Builder

getExportOperationMetadataOrBuilder()

public ExportOperationMetadataOrBuilder getExportOperationMetadataOrBuilder()

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

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

Returns
TypeDescription
ExportOperationMetadataOrBuilder

getKnowledgeBase()

public String getKnowledgeBase()

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

string knowledge_base = 3;

Returns
TypeDescription
String

The knowledgeBase.

getKnowledgeBaseBytes()

public ByteString getKnowledgeBaseBytes()

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

string knowledge_base = 3;

Returns
TypeDescription
ByteString

The bytes for knowledgeBase.

getOperationMetadataCase()

public KnowledgeOperationMetadata.OperationMetadataCase getOperationMetadataCase()
Returns
TypeDescription
KnowledgeOperationMetadata.OperationMetadataCase

getState()

public KnowledgeOperationMetadata.State getState()

Output only. The current state of this operation.

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

Returns
TypeDescription
KnowledgeOperationMetadata.State

The state.

getStateValue()

public int getStateValue()

Output only. The current state of this operation.

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

Returns
TypeDescription
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.v2.ExportOperationMetadata export_operation_metadata = 4;

Returns
TypeDescription
boolean

Whether the exportOperationMetadata field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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.v2.ExportOperationMetadata export_operation_metadata = 4;

Parameter
NameDescription
valueExportOperationMetadata
Returns
TypeDescription
KnowledgeOperationMetadata.Builder

mergeFrom(KnowledgeOperationMetadata other)

public KnowledgeOperationMetadata.Builder mergeFrom(KnowledgeOperationMetadata other)
Parameter
NameDescription
otherKnowledgeOperationMetadata
Returns
TypeDescription
KnowledgeOperationMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final KnowledgeOperationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v2.ExportOperationMetadata export_operation_metadata = 4;

Parameter
NameDescription
valueExportOperationMetadata
Returns
TypeDescription
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.v2.ExportOperationMetadata export_operation_metadata = 4;

Parameter
NameDescription
builderForValueExportOperationMetadata.Builder
Returns
TypeDescription
KnowledgeOperationMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public KnowledgeOperationMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The knowledgeBase to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for knowledgeBase to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
KnowledgeOperationMetadata.Builder
Overrides

setState(KnowledgeOperationMetadata.State value)

public KnowledgeOperationMetadata.Builder setState(KnowledgeOperationMetadata.State value)

Output only. The current state of this operation.

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

Parameter
NameDescription
valueKnowledgeOperationMetadata.State

The state to set.

Returns
TypeDescription
KnowledgeOperationMetadata.Builder

This builder for chaining.

setStateValue(int value)

public KnowledgeOperationMetadata.Builder setStateValue(int value)

Output only. The current state of this operation.

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
KnowledgeOperationMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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