public static final class CreateVersionRequest.Builder extends GeneratedMessageV3.Builder<CreateVersionRequest.Builder> implements CreateVersionRequestOrBuilderThe CreateVersion method's request.
 Protobuf type google.cloud.apihub.v1.CreateVersionRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CreateVersionRequest.BuilderImplements
CreateVersionRequestOrBuilderStatic 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 | |
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 | |
clearField(Descriptors.FieldDescriptor field)
public CreateVersionRequest.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| CreateVersionRequest.Builder | |
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateVersionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
| oneof | OneofDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| CreateVersionRequest.Builder | |
clearParent()
public CreateVersionRequest.Builder clearParent() Required. The parent resource for API version.
 Format: projects/{project}/locations/{location}/apis/{api}
 
 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.apihub.v1.Version version = 3 [(.google.api.field_behavior) = REQUIRED];
 
| Returns | |
|---|---|
| Type | Description | 
| CreateVersionRequest.Builder | |
clearVersionId()
public CreateVersionRequest.Builder clearVersionId()Optional. The ID to use for the API version, which will become the final component of the version's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified id is already used by another version in the API resource.
- If not provided, a system generated id will be used. - This value should be 4-500 characters, overall resource name which will be of format - projects/{project}/locations/{location}/apis/{api}/versions/{version}, its length is limited to 700 characters and valid characters are /a-z[0-9]-_/.
 string version_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
| CreateVersionRequest.Builder | This builder for chaining. | 
clone()
public CreateVersionRequest.Builder clone()| Returns | |
|---|---|
| Type | Description | 
| CreateVersionRequest.Builder | |
getDefaultInstanceForType()
public CreateVersionRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description | 
| CreateVersionRequest | |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description | 
| Descriptor | |
getParent()
public String getParent() Required. The parent resource for API version.
 Format: projects/{project}/locations/{location}/apis/{api}
 
 string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
 
| Returns | |
|---|---|
| Type | Description | 
| String | The parent. | 
getParentBytes()
public ByteString getParentBytes() Required. The parent resource for API version.
 Format: projects/{project}/locations/{location}/apis/{api}
 
 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.apihub.v1.Version version = 3 [(.google.api.field_behavior) = REQUIRED];
 
| Returns | |
|---|---|
| Type | Description | 
| Version | The version. | 
getVersionBuilder()
public Version.Builder getVersionBuilder()Required. The version to create.
 .google.cloud.apihub.v1.Version version = 3 [(.google.api.field_behavior) = REQUIRED];
 
| Returns | |
|---|---|
| Type | Description | 
| Version.Builder | |
getVersionId()
public String getVersionId()Optional. The ID to use for the API version, which will become the final component of the version's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified id is already used by another version in the API resource.
- If not provided, a system generated id will be used. - This value should be 4-500 characters, overall resource name which will be of format - projects/{project}/locations/{location}/apis/{api}/versions/{version}, its length is limited to 700 characters and valid characters are /a-z[0-9]-_/.
 string version_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
| String | The versionId. | 
getVersionIdBytes()
public ByteString getVersionIdBytes()Optional. The ID to use for the API version, which will become the final component of the version's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified id is already used by another version in the API resource.
- If not provided, a system generated id will be used. - This value should be 4-500 characters, overall resource name which will be of format - projects/{project}/locations/{location}/apis/{api}/versions/{version}, its length is limited to 700 characters and valid characters are /a-z[0-9]-_/.
 string version_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
| ByteString | The bytes for versionId. | 
getVersionOrBuilder()
public VersionOrBuilder getVersionOrBuilder()Required. The version to create.
 .google.cloud.apihub.v1.Version version = 3 [(.google.api.field_behavior) = REQUIRED];
 
| Returns | |
|---|---|
| Type | Description | 
| VersionOrBuilder | |
hasVersion()
public boolean hasVersion()Required. The version to create.
 .google.cloud.apihub.v1.Version version = 3 [(.google.api.field_behavior) = REQUIRED];
 
| Returns | |
|---|---|
| Type | Description | 
| boolean | Whether the version field is set. | 
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
| FieldAccessorTable | |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
| boolean | |
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 | |
| Exceptions | |
|---|---|
| Type | Description | 
| IOException | |
mergeFrom(Message other)
public CreateVersionRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
| other | Message | 
| Returns | |
|---|---|
| Type | Description | 
| CreateVersionRequest.Builder | |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateVersionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
| unknownFields | UnknownFieldSet | 
| Returns | |
|---|---|
| Type | Description | 
| CreateVersionRequest.Builder | |
mergeVersion(Version value)
public CreateVersionRequest.Builder mergeVersion(Version value)Required. The version to create.
 .google.cloud.apihub.v1.Version version = 3 [(.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 | |
setParent(String value)
public CreateVersionRequest.Builder setParent(String value) Required. The parent resource for API version.
 Format: projects/{project}/locations/{location}/apis/{api}
 
 string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
 
| Parameter | |
|---|---|
| Name | Description | 
| value | StringThe parent to set. | 
| Returns | |
|---|---|
| Type | Description | 
| CreateVersionRequest.Builder | This builder for chaining. | 
setParentBytes(ByteString value)
public CreateVersionRequest.Builder setParentBytes(ByteString value) Required. The parent resource for API version.
 Format: projects/{project}/locations/{location}/apis/{api}
 
 string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
 
| Parameter | |
|---|---|
| Name | Description | 
| value | ByteStringThe 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 | |
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateVersionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
| unknownFields | UnknownFieldSet | 
| Returns | |
|---|---|
| Type | Description | 
| CreateVersionRequest.Builder | |
setVersion(Version value)
public CreateVersionRequest.Builder setVersion(Version value)Required. The version to create.
 .google.cloud.apihub.v1.Version version = 3 [(.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.apihub.v1.Version version = 3 [(.google.api.field_behavior) = REQUIRED];
 
| Parameter | |
|---|---|
| Name | Description | 
| builderForValue | Version.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| CreateVersionRequest.Builder | |
setVersionId(String value)
public CreateVersionRequest.Builder setVersionId(String value)Optional. The ID to use for the API version, which will become the final component of the version's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified id is already used by another version in the API resource.
- If not provided, a system generated id will be used. - This value should be 4-500 characters, overall resource name which will be of format - projects/{project}/locations/{location}/apis/{api}/versions/{version}, its length is limited to 700 characters and valid characters are /a-z[0-9]-_/.
 string version_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
| value | StringThe versionId to set. | 
| Returns | |
|---|---|
| Type | Description | 
| CreateVersionRequest.Builder | This builder for chaining. | 
setVersionIdBytes(ByteString value)
public CreateVersionRequest.Builder setVersionIdBytes(ByteString value)Optional. The ID to use for the API version, which will become the final component of the version's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if the specified id is already used by another version in the API resource.
- If not provided, a system generated id will be used. - This value should be 4-500 characters, overall resource name which will be of format - projects/{project}/locations/{location}/apis/{api}/versions/{version}, its length is limited to 700 characters and valid characters are /a-z[0-9]-_/.
 string version_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
| value | ByteStringThe bytes for versionId to set. | 
| Returns | |
|---|---|
| Type | Description | 
| CreateVersionRequest.Builder | This builder for chaining. |