Class CreateVersionRequest.Builder (0.56.0)

public static final class CreateVersionRequest.Builder extends GeneratedMessageV3.Builder<CreateVersionRequest.Builder> implements CreateVersionRequestOrBuilder

The request message for Versions.CreateVersion.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateVersionRequest build()
Returns
Type Description
CreateVersionRequest

buildPartial()

public CreateVersionRequest buildPartial()
Returns
Type Description
CreateVersionRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateVersionRequest.Builder clearParent()

Required. The Flow to create an Version for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

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

Returns
Type Description
CreateVersionRequest.Builder

This builder for chaining.

clearVersion()

public CreateVersionRequest.Builder clearVersion()

Required. The version to create.

.google.cloud.dialogflow.cx.v3.Version version = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateVersionRequest.Builder

clone()

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

getDefaultInstanceForType()

public CreateVersionRequest getDefaultInstanceForType()
Returns
Type Description
CreateVersionRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The Flow to create an Version for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow 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 Flow to create an Version for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.

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

Returns
Type Description
ByteString

The bytes for parent.

getVersion()

public Version getVersion()

Required. The version to create.

.google.cloud.dialogflow.cx.v3.Version version = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Version

The version.

getVersionBuilder()

public Version.Builder getVersionBuilder()

Required. The version to create.

.google.cloud.dialogflow.cx.v3.Version version = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Version.Builder

getVersionOrBuilder()

public VersionOrBuilder getVersionOrBuilder()

Required. The version to create.

.google.cloud.dialogflow.cx.v3.Version version = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
VersionOrBuilder

hasVersion()

public boolean hasVersion()

Required. The version to create.

.google.cloud.dialogflow.cx.v3.Version version = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the version field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateVersionRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeVersion(Version value)

public CreateVersionRequest.Builder mergeVersion(Version value)

Required. The version to create.

.google.cloud.dialogflow.cx.v3.Version version = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Version
Returns
Type Description
CreateVersionRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateVersionRequest.Builder setParent(String value)

Required. The Flow to create an Version for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow 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
CreateVersionRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateVersionRequest.Builder setParentBytes(ByteString value)

Required. The Flow to create an Version for. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow 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
CreateVersionRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(Version value)

public CreateVersionRequest.Builder setVersion(Version value)

Required. The version to create.

.google.cloud.dialogflow.cx.v3.Version version = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Version
Returns
Type Description
CreateVersionRequest.Builder

setVersion(Version.Builder builderForValue)

public CreateVersionRequest.Builder setVersion(Version.Builder builderForValue)

Required. The version to create.

.google.cloud.dialogflow.cx.v3.Version version = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Version.Builder
Returns
Type Description
CreateVersionRequest.Builder