Class ImportFlowRequest.Builder (0.28.0)

public static final class ImportFlowRequest.Builder extends GeneratedMessageV3.Builder<ImportFlowRequest.Builder> implements ImportFlowRequestOrBuilder

The request message for Flows.ImportFlow.

Protobuf type google.cloud.dialogflow.cx.v3.ImportFlowRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportFlowRequest build()
Returns
Type Description
ImportFlowRequest

buildPartial()

public ImportFlowRequest buildPartial()
Returns
Type Description
ImportFlowRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFlow()

public ImportFlowRequest.Builder clearFlow()
Returns
Type Description
ImportFlowRequest.Builder

clearFlowContent()

public ImportFlowRequest.Builder clearFlowContent()

Uncompressed raw byte content for flow.

bytes flow_content = 3;

Returns
Type Description
ImportFlowRequest.Builder

This builder for chaining.

clearFlowUri()

public ImportFlowRequest.Builder clearFlowUri()

The Google Cloud Storage URI to import flow from. The format of this URI must be gs://<bucket-name>/<object-name>. Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see Dialogflow access control.

string flow_uri = 2;

Returns
Type Description
ImportFlowRequest.Builder

This builder for chaining.

clearImportOption()

public ImportFlowRequest.Builder clearImportOption()

Flow import mode. If not specified, KEEP is assumed.

.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption import_option = 4;

Returns
Type Description
ImportFlowRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public ImportFlowRequest.Builder clearParent()

Required. The agent to import the flow into. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

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

Returns
Type Description
ImportFlowRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ImportFlowRequest getDefaultInstanceForType()
Returns
Type Description
ImportFlowRequest

getDescriptorForType()

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

getFlowCase()

public ImportFlowRequest.FlowCase getFlowCase()
Returns
Type Description
ImportFlowRequest.FlowCase

getFlowContent()

public ByteString getFlowContent()

Uncompressed raw byte content for flow.

bytes flow_content = 3;

Returns
Type Description
ByteString

The flowContent.

getFlowUri()

public String getFlowUri()

The Google Cloud Storage URI to import flow from. The format of this URI must be gs://<bucket-name>/<object-name>. Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see Dialogflow access control.

string flow_uri = 2;

Returns
Type Description
String

The flowUri.

getFlowUriBytes()

public ByteString getFlowUriBytes()

The Google Cloud Storage URI to import flow from. The format of this URI must be gs://<bucket-name>/<object-name>. Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see Dialogflow access control.

string flow_uri = 2;

Returns
Type Description
ByteString

The bytes for flowUri.

getImportOption()

public ImportFlowRequest.ImportOption getImportOption()

Flow import mode. If not specified, KEEP is assumed.

.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption import_option = 4;

Returns
Type Description
ImportFlowRequest.ImportOption

The importOption.

getImportOptionValue()

public int getImportOptionValue()

Flow import mode. If not specified, KEEP is assumed.

.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption import_option = 4;

Returns
Type Description
int

The enum numeric value on the wire for importOption.

getParent()

public String getParent()

Required. The agent to import the flow into. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent 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 agent to import the flow into. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

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

Returns
Type Description
ByteString

The bytes for parent.

hasFlowContent()

public boolean hasFlowContent()

Uncompressed raw byte content for flow.

bytes flow_content = 3;

Returns
Type Description
boolean

Whether the flowContent field is set.

hasFlowUri()

public boolean hasFlowUri()

The Google Cloud Storage URI to import flow from. The format of this URI must be gs://<bucket-name>/<object-name>. Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see Dialogflow access control.

string flow_uri = 2;

Returns
Type Description
boolean

Whether the flowUri field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImportFlowRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFlowContent(ByteString value)

public ImportFlowRequest.Builder setFlowContent(ByteString value)

Uncompressed raw byte content for flow.

bytes flow_content = 3;

Parameter
Name Description
value ByteString

The flowContent to set.

Returns
Type Description
ImportFlowRequest.Builder

This builder for chaining.

setFlowUri(String value)

public ImportFlowRequest.Builder setFlowUri(String value)

The Google Cloud Storage URI to import flow from. The format of this URI must be gs://<bucket-name>/<object-name>. Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see Dialogflow access control.

string flow_uri = 2;

Parameter
Name Description
value String

The flowUri to set.

Returns
Type Description
ImportFlowRequest.Builder

This builder for chaining.

setFlowUriBytes(ByteString value)

public ImportFlowRequest.Builder setFlowUriBytes(ByteString value)

The Google Cloud Storage URI to import flow from. The format of this URI must be gs://<bucket-name>/<object-name>. Dialogflow performs a read operation for the Cloud Storage object on the caller's behalf, so your request authentication must have read permissions for the object. For more information, see Dialogflow access control.

string flow_uri = 2;

Parameter
Name Description
value ByteString

The bytes for flowUri to set.

Returns
Type Description
ImportFlowRequest.Builder

This builder for chaining.

setImportOption(ImportFlowRequest.ImportOption value)

public ImportFlowRequest.Builder setImportOption(ImportFlowRequest.ImportOption value)

Flow import mode. If not specified, KEEP is assumed.

.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption import_option = 4;

Parameter
Name Description
value ImportFlowRequest.ImportOption

The importOption to set.

Returns
Type Description
ImportFlowRequest.Builder

This builder for chaining.

setImportOptionValue(int value)

public ImportFlowRequest.Builder setImportOptionValue(int value)

Flow import mode. If not specified, KEEP is assumed.

.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption import_option = 4;

Parameter
Name Description
value int

The enum numeric value on the wire for importOption to set.

Returns
Type Description
ImportFlowRequest.Builder

This builder for chaining.

setParent(String value)

public ImportFlowRequest.Builder setParent(String value)

Required. The agent to import the flow into. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent 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
ImportFlowRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ImportFlowRequest.Builder setParentBytes(ByteString value)

Required. The agent to import the flow into. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent 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
ImportFlowRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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