Class CreateKnowledgeBaseRequest (4.60.0)

public final class CreateKnowledgeBaseRequest extends GeneratedMessageV3 implements CreateKnowledgeBaseRequestOrBuilder

Request message for KnowledgeBases.CreateKnowledgeBase.

Protobuf type google.cloud.dialogflow.v2.CreateKnowledgeBaseRequest

Static Fields

KNOWLEDGE_BASE_FIELD_NUMBER

public static final int KNOWLEDGE_BASE_FIELD_NUMBER
Field Value
Type Description
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CreateKnowledgeBaseRequest getDefaultInstance()
Returns
Type Description
CreateKnowledgeBaseRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static CreateKnowledgeBaseRequest.Builder newBuilder()
Returns
Type Description
CreateKnowledgeBaseRequest.Builder

newBuilder(CreateKnowledgeBaseRequest prototype)

public static CreateKnowledgeBaseRequest.Builder newBuilder(CreateKnowledgeBaseRequest prototype)
Parameter
Name Description
prototype CreateKnowledgeBaseRequest
Returns
Type Description
CreateKnowledgeBaseRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateKnowledgeBaseRequest parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateKnowledgeBaseRequest
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateKnowledgeBaseRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateKnowledgeBaseRequest
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CreateKnowledgeBaseRequest parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CreateKnowledgeBaseRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateKnowledgeBaseRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateKnowledgeBaseRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateKnowledgeBaseRequest parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CreateKnowledgeBaseRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateKnowledgeBaseRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateKnowledgeBaseRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateKnowledgeBaseRequest parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CreateKnowledgeBaseRequest
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateKnowledgeBaseRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateKnowledgeBaseRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CreateKnowledgeBaseRequest parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CreateKnowledgeBaseRequest
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateKnowledgeBaseRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateKnowledgeBaseRequest
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CreateKnowledgeBaseRequest parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CreateKnowledgeBaseRequest
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateKnowledgeBaseRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateKnowledgeBaseRequest
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CreateKnowledgeBaseRequest> parser()
Returns
Type Description
Parser<CreateKnowledgeBaseRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public CreateKnowledgeBaseRequest getDefaultInstanceForType()
Returns
Type Description
CreateKnowledgeBaseRequest

getKnowledgeBase()

public KnowledgeBase getKnowledgeBase()

Required. The knowledge base to create.

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

Returns
Type Description
KnowledgeBase

The knowledgeBase.

getKnowledgeBaseOrBuilder()

public KnowledgeBaseOrBuilder getKnowledgeBaseOrBuilder()

Required. The knowledge base to create.

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

Returns
Type Description
KnowledgeBaseOrBuilder

getParent()

public String getParent()

Required. The project to create a knowledge base for. Format: projects/<Project ID>/locations/<Location ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The project to create a knowledge base for. Format: projects/<Project ID>/locations/<Location ID>.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getParserForType()

public Parser<CreateKnowledgeBaseRequest> getParserForType()
Returns
Type Description
Parser<CreateKnowledgeBaseRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasKnowledgeBase()

public boolean hasKnowledgeBase()

Required. The knowledge base to create.

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

Returns
Type Description
boolean

Whether the knowledgeBase field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CreateKnowledgeBaseRequest.Builder newBuilderForType()
Returns
Type Description
CreateKnowledgeBaseRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateKnowledgeBaseRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CreateKnowledgeBaseRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CreateKnowledgeBaseRequest.Builder toBuilder()
Returns
Type Description
CreateKnowledgeBaseRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException