Class UpdateKnowledgeBaseRequest.Builder (4.7.2)

public static final class UpdateKnowledgeBaseRequest.Builder extends GeneratedMessageV3.Builder<UpdateKnowledgeBaseRequest.Builder> implements UpdateKnowledgeBaseRequestOrBuilder

Request message for KnowledgeBases.UpdateKnowledgeBase.

Protobuf type google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateKnowledgeBaseRequest build()
Returns
TypeDescription
UpdateKnowledgeBaseRequest

buildPartial()

public UpdateKnowledgeBaseRequest buildPartial()
Returns
TypeDescription
UpdateKnowledgeBaseRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKnowledgeBase()

public UpdateKnowledgeBaseRequest.Builder clearKnowledgeBase()

Required. The knowledge base to update.

.google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
UpdateKnowledgeBaseRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateKnowledgeBaseRequest.Builder clearUpdateMask()

Optional. Not specified means update all. Currently, only display_name can be updated, an InvalidArgument will be returned for attempting to update other fields.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
UpdateKnowledgeBaseRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateKnowledgeBaseRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateKnowledgeBaseRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKnowledgeBase()

public KnowledgeBase getKnowledgeBase()

Required. The knowledge base to update.

.google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
KnowledgeBase

The knowledgeBase.

getKnowledgeBaseBuilder()

public KnowledgeBase.Builder getKnowledgeBaseBuilder()

Required. The knowledge base to update.

.google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
KnowledgeBase.Builder

getKnowledgeBaseOrBuilder()

public KnowledgeBaseOrBuilder getKnowledgeBaseOrBuilder()

Required. The knowledge base to update.

.google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
KnowledgeBaseOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Optional. Not specified means update all. Currently, only display_name can be updated, an InvalidArgument will be returned for attempting to update other fields.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Optional. Not specified means update all. Currently, only display_name can be updated, an InvalidArgument will be returned for attempting to update other fields.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Optional. Not specified means update all. Currently, only display_name can be updated, an InvalidArgument will be returned for attempting to update other fields.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
FieldMaskOrBuilder

hasKnowledgeBase()

public boolean hasKnowledgeBase()

Required. The knowledge base to update.

.google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the knowledgeBase field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Optional. Not specified means update all. Currently, only display_name can be updated, an InvalidArgument will be returned for attempting to update other fields.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UpdateKnowledgeBaseRequest other)

public UpdateKnowledgeBaseRequest.Builder mergeFrom(UpdateKnowledgeBaseRequest other)
Parameter
NameDescription
otherUpdateKnowledgeBaseRequest
Returns
TypeDescription
UpdateKnowledgeBaseRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeKnowledgeBase(KnowledgeBase value)

public UpdateKnowledgeBaseRequest.Builder mergeKnowledgeBase(KnowledgeBase value)

Required. The knowledge base to update.

.google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueKnowledgeBase
Returns
TypeDescription
UpdateKnowledgeBaseRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateKnowledgeBaseRequest.Builder mergeUpdateMask(FieldMask value)

Optional. Not specified means update all. Currently, only display_name can be updated, an InvalidArgument will be returned for attempting to update other fields.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateKnowledgeBaseRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setKnowledgeBase(KnowledgeBase value)

public UpdateKnowledgeBaseRequest.Builder setKnowledgeBase(KnowledgeBase value)

Required. The knowledge base to update.

.google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueKnowledgeBase
Returns
TypeDescription
UpdateKnowledgeBaseRequest.Builder

setKnowledgeBase(KnowledgeBase.Builder builderForValue)

public UpdateKnowledgeBaseRequest.Builder setKnowledgeBase(KnowledgeBase.Builder builderForValue)

Required. The knowledge base to update.

.google.cloud.dialogflow.v2.KnowledgeBase knowledge_base = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueKnowledgeBase.Builder
Returns
TypeDescription
UpdateKnowledgeBaseRequest.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateKnowledgeBaseRequest.Builder setUpdateMask(FieldMask value)

Optional. Not specified means update all. Currently, only display_name can be updated, an InvalidArgument will be returned for attempting to update other fields.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueFieldMask
Returns
TypeDescription
UpdateKnowledgeBaseRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateKnowledgeBaseRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Optional. Not specified means update all. Currently, only display_name can be updated, an InvalidArgument will be returned for attempting to update other fields.

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
UpdateKnowledgeBaseRequest.Builder