Class CreateExampleRequest.Builder (0.65.0)

public static final class CreateExampleRequest.Builder extends GeneratedMessageV3.Builder<CreateExampleRequest.Builder> implements CreateExampleRequestOrBuilder

The request message for Examples.CreateExample.

Protobuf type google.cloud.dialogflow.cx.v3beta1.CreateExampleRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateExampleRequest build()
Returns
Type Description
CreateExampleRequest

buildPartial()

public CreateExampleRequest buildPartial()
Returns
Type Description
CreateExampleRequest

clear()

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

clearExample()

public CreateExampleRequest.Builder clearExample()

Required. The example to create.

.google.cloud.dialogflow.cx.v3beta1.Example example = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateExampleRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateExampleRequest.Builder clearParent()

Required. The playbook to create an example for. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>.

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

Returns
Type Description
CreateExampleRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateExampleRequest getDefaultInstanceForType()
Returns
Type Description
CreateExampleRequest

getDescriptorForType()

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

getExample()

public Example getExample()

Required. The example to create.

.google.cloud.dialogflow.cx.v3beta1.Example example = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Example

The example.

getExampleBuilder()

public Example.Builder getExampleBuilder()

Required. The example to create.

.google.cloud.dialogflow.cx.v3beta1.Example example = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Example.Builder

getExampleOrBuilder()

public ExampleOrBuilder getExampleOrBuilder()

Required. The example to create.

.google.cloud.dialogflow.cx.v3beta1.Example example = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ExampleOrBuilder

getParent()

public String getParent()

Required. The playbook to create an example for. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The playbook to create an example for. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>.

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

Returns
Type Description
ByteString

The bytes for parent.

hasExample()

public boolean hasExample()

Required. The example to create.

.google.cloud.dialogflow.cx.v3beta1.Example example = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the example field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExample(Example value)

public CreateExampleRequest.Builder mergeExample(Example value)

Required. The example to create.

.google.cloud.dialogflow.cx.v3beta1.Example example = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Example
Returns
Type Description
CreateExampleRequest.Builder

mergeFrom(CreateExampleRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setExample(Example value)

public CreateExampleRequest.Builder setExample(Example value)

Required. The example to create.

.google.cloud.dialogflow.cx.v3beta1.Example example = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Example
Returns
Type Description
CreateExampleRequest.Builder

setExample(Example.Builder builderForValue)

public CreateExampleRequest.Builder setExample(Example.Builder builderForValue)

Required. The example to create.

.google.cloud.dialogflow.cx.v3beta1.Example example = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Example.Builder
Returns
Type Description
CreateExampleRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateExampleRequest.Builder setParent(String value)

Required. The playbook to create an example for. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateExampleRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateExampleRequest.Builder setParentBytes(ByteString value)

Required. The playbook to create an example for. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>.

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

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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