Class KnowledgeOperationMetadata.Builder (4.6.0)

See more code actions.
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 Overrides

build()

public KnowledgeOperationMetadata build()
Returns

buildPartial()

public KnowledgeOperationMetadata buildPartial()
Returns

clear()

public KnowledgeOperationMetadata.Builder clear()
Returns 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

clearField(Descriptors.FieldDescriptor field)

public KnowledgeOperationMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns 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 Overrides

clearOperationMetadata()

public KnowledgeOperationMetadata.Builder clearOperationMetadata()
Returns

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 Overrides

getDefaultInstanceForType()

public KnowledgeOperationMetadata getDefaultInstanceForType()
Returns

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

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

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

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

mergeFrom(KnowledgeOperationMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final KnowledgeOperationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns 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

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

setField(Descriptors.FieldDescriptor field, Object value)

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