Class UpdateKnowledgeBaseRequest (4.5.11)

public final class UpdateKnowledgeBaseRequest extends GeneratedMessageV3 implements UpdateKnowledgeBaseRequestOrBuilder

Request message for KnowledgeBases.UpdateKnowledgeBase.

Protobuf type google.cloud.dialogflow.v2.UpdateKnowledgeBaseRequest

Static Fields

KNOWLEDGE_BASE_FIELD_NUMBER

public static final int KNOWLEDGE_BASE_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_MASK_FIELD_NUMBER

public static final int UPDATE_MASK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static UpdateKnowledgeBaseRequest getDefaultInstance()
Returns
TypeDescription
UpdateKnowledgeBaseRequest

getDescriptor()

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

newBuilder()

public static UpdateKnowledgeBaseRequest.Builder newBuilder()
Returns
TypeDescription
UpdateKnowledgeBaseRequest.Builder

newBuilder(UpdateKnowledgeBaseRequest prototype)

public static UpdateKnowledgeBaseRequest.Builder newBuilder(UpdateKnowledgeBaseRequest prototype)
Parameter
NameDescription
prototypeUpdateKnowledgeBaseRequest
Returns
TypeDescription
UpdateKnowledgeBaseRequest.Builder

parseDelimitedFrom(InputStream input)

public static UpdateKnowledgeBaseRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UpdateKnowledgeBaseRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateKnowledgeBaseRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateKnowledgeBaseRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static UpdateKnowledgeBaseRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
UpdateKnowledgeBaseRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static UpdateKnowledgeBaseRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateKnowledgeBaseRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static UpdateKnowledgeBaseRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
UpdateKnowledgeBaseRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static UpdateKnowledgeBaseRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateKnowledgeBaseRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static UpdateKnowledgeBaseRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
UpdateKnowledgeBaseRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateKnowledgeBaseRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateKnowledgeBaseRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static UpdateKnowledgeBaseRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UpdateKnowledgeBaseRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UpdateKnowledgeBaseRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateKnowledgeBaseRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static UpdateKnowledgeBaseRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
UpdateKnowledgeBaseRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static UpdateKnowledgeBaseRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UpdateKnowledgeBaseRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<UpdateKnowledgeBaseRequest> parser()
Returns
TypeDescription
Parser<UpdateKnowledgeBaseRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public UpdateKnowledgeBaseRequest getDefaultInstanceForType()
Returns
TypeDescription
UpdateKnowledgeBaseRequest

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.

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

getParserForType()

public Parser<UpdateKnowledgeBaseRequest> getParserForType()
Returns
TypeDescription
Parser<UpdateKnowledgeBaseRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public UpdateKnowledgeBaseRequest.Builder newBuilderForType()
Returns
TypeDescription
UpdateKnowledgeBaseRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected UpdateKnowledgeBaseRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
UpdateKnowledgeBaseRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public UpdateKnowledgeBaseRequest.Builder toBuilder()
Returns
TypeDescription
UpdateKnowledgeBaseRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException