Class ImportFlowRequest.Builder (0.14.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.v3beta1.ImportFlowRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImportFlowRequest build()
Returns
TypeDescription
ImportFlowRequest

buildPartial()

public ImportFlowRequest buildPartial()
Returns
TypeDescription
ImportFlowRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFlow()

public ImportFlowRequest.Builder clearFlow()
Returns
TypeDescription
ImportFlowRequest.Builder

clearFlowContent()

public ImportFlowRequest.Builder clearFlowContent()

Uncompressed raw byte content for flow.

bytes flow_content = 3;

Returns
TypeDescription
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
TypeDescription
ImportFlowRequest.Builder

This builder for chaining.

clearImportOption()

public ImportFlowRequest.Builder clearImportOption()

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

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

Returns
TypeDescription
ImportFlowRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ImportFlowRequest getDefaultInstanceForType()
Returns
TypeDescription
ImportFlowRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFlowCase()

public ImportFlowRequest.FlowCase getFlowCase()
Returns
TypeDescription
ImportFlowRequest.FlowCase

getFlowContent()

public ByteString getFlowContent()

Uncompressed raw byte content for flow.

bytes flow_content = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for flowUri.

getImportOption()

public ImportFlowRequest.ImportOption getImportOption()

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

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

Returns
TypeDescription
ImportFlowRequest.ImportOption

The importOption.

getImportOptionValue()

public int getImportOptionValue()

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

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for parent.

hasFlowContent()

public boolean hasFlowContent()

Uncompressed raw byte content for flow.

bytes flow_content = 3;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the flowUri field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImportFlowRequest other)

public ImportFlowRequest.Builder mergeFrom(ImportFlowRequest other)
Parameter
NameDescription
otherImportFlowRequest
Returns
TypeDescription
ImportFlowRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFlowContent(ByteString value)

public ImportFlowRequest.Builder setFlowContent(ByteString value)

Uncompressed raw byte content for flow.

bytes flow_content = 3;

Parameter
NameDescription
valueByteString

The flowContent to set.

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

The flowUri to set.

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

The bytes for flowUri to set.

Returns
TypeDescription
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.v3beta1.ImportFlowRequest.ImportOption import_option = 4;

Parameter
NameDescription
valueImportFlowRequest.ImportOption

The importOption to set.

Returns
TypeDescription
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.v3beta1.ImportFlowRequest.ImportOption import_option = 4;

Parameter
NameDescription
valueint

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

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

The parent to set.

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

The bytes for parent to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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