Class KnowledgeOperationMetadata.Builder (4.3.1)

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

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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

getDescriptor()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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