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
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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateVersionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateVersionRequest build()
Returns
buildPartial()
public CreateVersionRequest buildPartial()
Returns
clear()
public CreateVersionRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CreateVersionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateVersionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clearVersion()
public CreateVersionRequest.Builder clearVersion()
Required. The version to create.
.google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clone()
public CreateVersionRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public CreateVersionRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
getVersion()
public Version getVersion()
Required. The version to create.
.google.cloud.dialogflow.v2.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.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getVersionOrBuilder()
public VersionOrBuilder getVersionOrBuilder()
Required. The version to create.
.google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
hasVersion()
public boolean hasVersion()
Required. The version to create.
.google.cloud.dialogflow.v2.Version version = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type |
Description |
boolean |
Whether the version field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(CreateVersionRequest other)
public CreateVersionRequest.Builder mergeFrom(CreateVersionRequest other)
Parameter
Returns
public CreateVersionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateVersionRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateVersionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public CreateVersionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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.
|
Returns
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.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateVersionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateVersionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns