Class CreateFlowRequest.Builder (0.14.0)

public static final class CreateFlowRequest.Builder extends GeneratedMessageV3.Builder<CreateFlowRequest.Builder> implements CreateFlowRequestOrBuilder

The request message for Flows.CreateFlow.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateFlowRequest build()
Returns
TypeDescription
CreateFlowRequest

buildPartial()

public CreateFlowRequest buildPartial()
Returns
TypeDescription
CreateFlowRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CreateFlowRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateFlowRequest.Builder
Overrides

clearFlow()

public CreateFlowRequest.Builder clearFlow()

Required. The flow to create.

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

Returns
TypeDescription
CreateFlowRequest.Builder

clearLanguageCode()

public CreateFlowRequest.Builder clearLanguageCode()

The language of the following fields in flow:

  • Flow.event_handlers.trigger_fulfillment.messages
  • Flow.event_handlers.trigger_fulfillment.conditional_cases
  • Flow.transition_routes.trigger_fulfillment.messages
  • Flow.transition_routes.trigger_fulfillment.conditional_cases If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used.

string language_code = 3;

Returns
TypeDescription
CreateFlowRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateFlowRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CreateFlowRequest.Builder
Overrides

clearParent()

public CreateFlowRequest.Builder clearParent()

Required. The agent to create a flow for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

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

Returns
TypeDescription
CreateFlowRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateFlowRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateFlowRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFlow()

public Flow getFlow()

Required. The flow to create.

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

Returns
TypeDescription
Flow

The flow.

getFlowBuilder()

public Flow.Builder getFlowBuilder()

Required. The flow to create.

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

Returns
TypeDescription
Flow.Builder

getFlowOrBuilder()

public FlowOrBuilder getFlowOrBuilder()

Required. The flow to create.

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

Returns
TypeDescription
FlowOrBuilder

getLanguageCode()

public String getLanguageCode()

The language of the following fields in flow:

  • Flow.event_handlers.trigger_fulfillment.messages
  • Flow.event_handlers.trigger_fulfillment.conditional_cases
  • Flow.transition_routes.trigger_fulfillment.messages
  • Flow.transition_routes.trigger_fulfillment.conditional_cases If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used.

string language_code = 3;

Returns
TypeDescription
String

The languageCode.

getLanguageCodeBytes()

public ByteString getLanguageCodeBytes()

The language of the following fields in flow:

  • Flow.event_handlers.trigger_fulfillment.messages
  • Flow.event_handlers.trigger_fulfillment.conditional_cases
  • Flow.transition_routes.trigger_fulfillment.messages
  • Flow.transition_routes.trigger_fulfillment.conditional_cases If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used.

string language_code = 3;

Returns
TypeDescription
ByteString

The bytes for languageCode.

getParent()

public String getParent()

Required. The agent to create a flow for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

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

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The agent to create a flow for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

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

Returns
TypeDescription
ByteString

The bytes for parent.

hasFlow()

public boolean hasFlow()

Required. The flow to create.

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

Returns
TypeDescription
boolean

Whether the flow field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFlow(Flow value)

public CreateFlowRequest.Builder mergeFlow(Flow value)

Required. The flow to create.

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

Parameter
NameDescription
valueFlow
Returns
TypeDescription
CreateFlowRequest.Builder

mergeFrom(CreateFlowRequest other)

public CreateFlowRequest.Builder mergeFrom(CreateFlowRequest other)
Parameter
NameDescription
otherCreateFlowRequest
Returns
TypeDescription
CreateFlowRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateFlowRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateFlowRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFlow(Flow value)

public CreateFlowRequest.Builder setFlow(Flow value)

Required. The flow to create.

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

Parameter
NameDescription
valueFlow
Returns
TypeDescription
CreateFlowRequest.Builder

setFlow(Flow.Builder builderForValue)

public CreateFlowRequest.Builder setFlow(Flow.Builder builderForValue)

Required. The flow to create.

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

Parameter
NameDescription
builderForValueFlow.Builder
Returns
TypeDescription
CreateFlowRequest.Builder

setLanguageCode(String value)

public CreateFlowRequest.Builder setLanguageCode(String value)

The language of the following fields in flow:

  • Flow.event_handlers.trigger_fulfillment.messages
  • Flow.event_handlers.trigger_fulfillment.conditional_cases
  • Flow.transition_routes.trigger_fulfillment.messages
  • Flow.transition_routes.trigger_fulfillment.conditional_cases If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used.

string language_code = 3;

Parameter
NameDescription
valueString

The languageCode to set.

Returns
TypeDescription
CreateFlowRequest.Builder

This builder for chaining.

setLanguageCodeBytes(ByteString value)

public CreateFlowRequest.Builder setLanguageCodeBytes(ByteString value)

The language of the following fields in flow:

  • Flow.event_handlers.trigger_fulfillment.messages
  • Flow.event_handlers.trigger_fulfillment.conditional_cases
  • Flow.transition_routes.trigger_fulfillment.messages
  • Flow.transition_routes.trigger_fulfillment.conditional_cases If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used.

string language_code = 3;

Parameter
NameDescription
valueByteString

The bytes for languageCode to set.

Returns
TypeDescription
CreateFlowRequest.Builder

This builder for chaining.

setParent(String value)

public CreateFlowRequest.Builder setParent(String value)

Required. The agent to create a flow for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateFlowRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateFlowRequest.Builder setParentBytes(ByteString value)

Required. The agent to create a flow for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
CreateFlowRequest.Builder

This builder for chaining.

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

public CreateFlowRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateFlowRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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