public static final class CreateVersionRequest.Builder extends GeneratedMessageV3.Builder<CreateVersionRequest.Builder> implements CreateVersionRequestOrBuilder
The request message for
Versions.CreateVersion.
Protobuf type google.cloud.dialogflow.v2beta1.CreateVersionRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateVersionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateVersionRequest build()
buildPartial()
public CreateVersionRequest buildPartial()
clear()
public CreateVersionRequest.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateVersionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateVersionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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) = { ... }
clearVersion()
public CreateVersionRequest.Builder clearVersion()
Required. The version to create.
.google.cloud.dialogflow.v2beta1.Version version = 2 [(.google.api.field_behavior) = REQUIRED];
clone()
public CreateVersionRequest.Builder clone()
Overrides
getDefaultInstanceForType()
public CreateVersionRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
Type |
Description |
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 |
Type |
Description |
ByteString |
The bytes for parent.
|
getVersion()
public Version getVersion()
Required. The version to create.
.google.cloud.dialogflow.v2beta1.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.v2beta1.Version version = 2 [(.google.api.field_behavior) = REQUIRED];
getVersionOrBuilder()
public VersionOrBuilder getVersionOrBuilder()
Required. The version to create.
.google.cloud.dialogflow.v2beta1.Version version = 2 [(.google.api.field_behavior) = REQUIRED];
hasVersion()
public boolean hasVersion()
Required. The version to create.
.google.cloud.dialogflow.v2beta1.Version version = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the version field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CreateVersionRequest other)
public CreateVersionRequest.Builder mergeFrom(CreateVersionRequest other)
public CreateVersionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateVersionRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateVersionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
mergeVersion(Version value)
public CreateVersionRequest.Builder mergeVersion(Version value)
Required. The version to create.
.google.cloud.dialogflow.v2beta1.Version version = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
Version
|
setField(Descriptors.FieldDescriptor field, Object value)
public CreateVersionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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 |
Name |
Description |
value |
String
The parent to set.
|
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 |
Name |
Description |
value |
ByteString
The bytes for parent to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateVersionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateVersionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
setVersion(Version value)
public CreateVersionRequest.Builder setVersion(Version value)
Required. The version to create.
.google.cloud.dialogflow.v2beta1.Version version = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
Version
|
setVersion(Version.Builder builderForValue)
public CreateVersionRequest.Builder setVersion(Version.Builder builderForValue)
Required. The version to create.
.google.cloud.dialogflow.v2beta1.Version version = 2 [(.google.api.field_behavior) = REQUIRED];