Class CreateVersionRequest.Builder (4.7.5)

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

The request message for Versions.CreateVersion.

Protobuf type google.cloud.dialogflow.v2.CreateVersionRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateVersionRequest build()
Returns
TypeDescription
CreateVersionRequest

buildPartial()

public CreateVersionRequest buildPartial()
Returns
TypeDescription
CreateVersionRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateVersionRequest.Builder clearParent()

Required. The agent to create a version for. Supported formats:

  • projects/<Project ID>/agent
  • projects/<Project ID>/locations/<Location ID>/agent

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

Returns
TypeDescription
CreateVersionRequest.Builder

This builder for chaining.

clearVersion()

public CreateVersionRequest.Builder clearVersion()

Required. The version to create.

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

Returns
TypeDescription
CreateVersionRequest.Builder

clone()

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

getDefaultInstanceForType()

public CreateVersionRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateVersionRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getParent()

public String getParent()

Required. The agent to create a version for. Supported formats:

  • projects/<Project ID>/agent
  • projects/<Project ID>/locations/<Location ID>/agent

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 version for. Supported formats:

  • projects/<Project ID>/agent
  • projects/<Project ID>/locations/<Location ID>/agent

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

Returns
TypeDescription
ByteString

The bytes for parent.

getVersion()

public Version getVersion()

Required. The version to create.

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

Returns
TypeDescription
Version

The version.

getVersionBuilder()

public Version.Builder getVersionBuilder()

Required. The version to create.

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

Returns
TypeDescription
Version.Builder

getVersionOrBuilder()

public VersionOrBuilder getVersionOrBuilder()

Required. The version to create.

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

Returns
TypeDescription
VersionOrBuilder

hasVersion()

public boolean hasVersion()

Required. The version to create.

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

Returns
TypeDescription
boolean

Whether the version field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateVersionRequest other)

public CreateVersionRequest.Builder mergeFrom(CreateVersionRequest other)
Parameter
NameDescription
otherCreateVersionRequest
Returns
TypeDescription
CreateVersionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeVersion(Version value)

public CreateVersionRequest.Builder mergeVersion(Version value)

Required. The version to create.

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

Parameter
NameDescription
valueVersion
Returns
TypeDescription
CreateVersionRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateVersionRequest.Builder setParent(String value)

Required. The agent to create a version for. Supported formats:

  • projects/<Project ID>/agent
  • projects/<Project ID>/locations/<Location ID>/agent

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

Parameter
NameDescription
valueString

The parent to set.

Returns
TypeDescription
CreateVersionRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateVersionRequest.Builder setParentBytes(ByteString value)

Required. The agent to create a version for. Supported formats:

  • projects/<Project ID>/agent
  • projects/<Project ID>/locations/<Location ID>/agent

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersion(Version value)

public CreateVersionRequest.Builder setVersion(Version value)

Required. The version to create.

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

Parameter
NameDescription
valueVersion
Returns
TypeDescription
CreateVersionRequest.Builder

setVersion(Version.Builder builderForValue)

public CreateVersionRequest.Builder setVersion(Version.Builder builderForValue)

Required. The version to create.

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

Parameter
NameDescription
builderForValueVersion.Builder
Returns
TypeDescription
CreateVersionRequest.Builder