Class LoadVersionRequest.Builder (0.14.1)

public static final class LoadVersionRequest.Builder extends GeneratedMessageV3.Builder<LoadVersionRequest.Builder> implements LoadVersionRequestOrBuilder

The request message for Versions.LoadVersion.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LoadVersionRequest build()
Returns
TypeDescription
LoadVersionRequest

buildPartial()

public LoadVersionRequest buildPartial()
Returns
TypeDescription
LoadVersionRequest

clear()

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

clearAllowOverrideAgentResources()

public LoadVersionRequest.Builder clearAllowOverrideAgentResources()

This field is used to prevent accidental overwrite of other agent resources, which can potentially impact other flow's behavior. If allow_override_agent_resources is false, conflicted agent-level resources will not be overridden (i.e. intents, entities, webhooks).

bool allow_override_agent_resources = 2;

Returns
TypeDescription
LoadVersionRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public LoadVersionRequest.Builder clearName()

Required. The Version to be loaded to draft flow. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>.

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

Returns
TypeDescription
LoadVersionRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAllowOverrideAgentResources()

public boolean getAllowOverrideAgentResources()

This field is used to prevent accidental overwrite of other agent resources, which can potentially impact other flow's behavior. If allow_override_agent_resources is false, conflicted agent-level resources will not be overridden (i.e. intents, entities, webhooks).

bool allow_override_agent_resources = 2;

Returns
TypeDescription
boolean

The allowOverrideAgentResources.

getDefaultInstanceForType()

public LoadVersionRequest getDefaultInstanceForType()
Returns
TypeDescription
LoadVersionRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The Version to be loaded to draft flow. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The Version to be loaded to draft flow. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>.

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

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LoadVersionRequest other)

public LoadVersionRequest.Builder mergeFrom(LoadVersionRequest other)
Parameter
NameDescription
otherLoadVersionRequest
Returns
TypeDescription
LoadVersionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAllowOverrideAgentResources(boolean value)

public LoadVersionRequest.Builder setAllowOverrideAgentResources(boolean value)

This field is used to prevent accidental overwrite of other agent resources, which can potentially impact other flow's behavior. If allow_override_agent_resources is false, conflicted agent-level resources will not be overridden (i.e. intents, entities, webhooks).

bool allow_override_agent_resources = 2;

Parameter
NameDescription
valueboolean

The allowOverrideAgentResources to set.

Returns
TypeDescription
LoadVersionRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public LoadVersionRequest.Builder setName(String value)

Required. The Version to be loaded to draft flow. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
LoadVersionRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public LoadVersionRequest.Builder setNameBytes(ByteString value)

Required. The Version to be loaded to draft flow. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
LoadVersionRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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