Class CreateKnowledgeBaseRequest.Builder (4.7.4)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateKnowledgeBaseRequest build()
Returns
TypeDescription
CreateKnowledgeBaseRequest

buildPartial()

public CreateKnowledgeBaseRequest buildPartial()
Returns
TypeDescription
CreateKnowledgeBaseRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CreateKnowledgeBaseRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
CreateKnowledgeBaseRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateKnowledgeBaseRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateKnowledgeBaseRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateKnowledgeBaseRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateKnowledgeBaseRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the knowledgeBase field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateKnowledgeBaseRequest other)

public CreateKnowledgeBaseRequest.Builder mergeFrom(CreateKnowledgeBaseRequest other)
Parameter
NameDescription
otherCreateKnowledgeBaseRequest
Returns
TypeDescription
CreateKnowledgeBaseRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateKnowledgeBaseRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueKnowledgeBase
Returns
TypeDescription
CreateKnowledgeBaseRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public CreateKnowledgeBaseRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueKnowledgeBase
Returns
TypeDescription
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
NameDescription
builderForValueKnowledgeBase.Builder
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateKnowledgeBaseRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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