Class CreateKnowledgeBaseRequest.Builder (4.14.0)

public static final class CreateKnowledgeBaseRequest.Builder extends GeneratedMessageV3.Builder<CreateKnowledgeBaseRequest.Builder> implements CreateKnowledgeBaseRequestOrBuilder

Request message for KnowledgeBases.CreateKnowledgeBase.

Protobuf type google.cloud.dialogflow.v2beta1.CreateKnowledgeBaseRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateKnowledgeBaseRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateKnowledgeBaseRequest.Builder
Overrides

build()

public CreateKnowledgeBaseRequest build()
Returns
Type Description
CreateKnowledgeBaseRequest

buildPartial()

public CreateKnowledgeBaseRequest buildPartial()
Returns
Type Description
CreateKnowledgeBaseRequest

clear()

public CreateKnowledgeBaseRequest.Builder clear()
Returns
Type Description
CreateKnowledgeBaseRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateKnowledgeBaseRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateKnowledgeBaseRequest.Builder
Overrides

clearKnowledgeBase()

public CreateKnowledgeBaseRequest.Builder clearKnowledgeBase()

Required. The knowledge base to create.

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

Returns
Type Description
CreateKnowledgeBaseRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateKnowledgeBaseRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateKnowledgeBaseRequest.Builder
Overrides

clearParent()

public CreateKnowledgeBaseRequest.Builder clearParent()

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
CreateKnowledgeBaseRequest.Builder

This builder for chaining.

clone()

public CreateKnowledgeBaseRequest.Builder clone()
Returns
Type Description
CreateKnowledgeBaseRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateKnowledgeBaseRequest getDefaultInstanceForType()
Returns
Type Description
CreateKnowledgeBaseRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getKnowledgeBase()

public KnowledgeBase getKnowledgeBase()

Required. The knowledge base to create.

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

Returns
Type Description
KnowledgeBase

The knowledgeBase.

getKnowledgeBaseBuilder()

public KnowledgeBase.Builder getKnowledgeBaseBuilder()

Required. The knowledge base to create.

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

Returns
Type Description
KnowledgeBase.Builder

getKnowledgeBaseOrBuilder()

public KnowledgeBaseOrBuilder getKnowledgeBaseOrBuilder()

Required. The knowledge base to create.

.google.cloud.dialogflow.v2beta1.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.

hasKnowledgeBase()

public boolean hasKnowledgeBase()

Required. The knowledge base to create.

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

Returns
Type Description
boolean

Whether the knowledgeBase field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateKnowledgeBaseRequest other)

public CreateKnowledgeBaseRequest.Builder mergeFrom(CreateKnowledgeBaseRequest other)
Parameter
Name Description
other CreateKnowledgeBaseRequest
Returns
Type Description
CreateKnowledgeBaseRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateKnowledgeBaseRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateKnowledgeBaseRequest.Builder
Overrides Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateKnowledgeBaseRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateKnowledgeBaseRequest.Builder
Overrides

mergeKnowledgeBase(KnowledgeBase value)

public CreateKnowledgeBaseRequest.Builder mergeKnowledgeBase(KnowledgeBase value)

Required. The knowledge base to create.

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

Parameter
Name Description
value KnowledgeBase
Returns
Type Description
CreateKnowledgeBaseRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateKnowledgeBaseRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateKnowledgeBaseRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateKnowledgeBaseRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateKnowledgeBaseRequest.Builder
Overrides

setKnowledgeBase(KnowledgeBase value)

public CreateKnowledgeBaseRequest.Builder setKnowledgeBase(KnowledgeBase value)

Required. The knowledge base to create.

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

Parameter
Name Description
value KnowledgeBase
Returns
Type Description
CreateKnowledgeBaseRequest.Builder

setKnowledgeBase(KnowledgeBase.Builder builderForValue)

public CreateKnowledgeBaseRequest.Builder setKnowledgeBase(KnowledgeBase.Builder builderForValue)

Required. The knowledge base to create.

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

Parameter
Name Description
builderForValue KnowledgeBase.Builder
Returns
Type Description
CreateKnowledgeBaseRequest.Builder

setParent(String value)

public CreateKnowledgeBaseRequest.Builder setParent(String value)

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) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateKnowledgeBaseRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateKnowledgeBaseRequest.Builder setParentBytes(ByteString value)

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) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateKnowledgeBaseRequest.Builder

This builder for chaining.

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

public CreateKnowledgeBaseRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateKnowledgeBaseRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateKnowledgeBaseRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateKnowledgeBaseRequest.Builder
Overrides