Class CreateVersionRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateVersionRequest.Builder>
com.google.cloud.apihub.v1.CreateVersionRequest.Builder
All Implemented Interfaces:
CreateVersionRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateVersionRequest

public static final class CreateVersionRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateVersionRequest.Builder> implements CreateVersionRequestOrBuilder
 The [CreateVersion][google.cloud.apihub.v1.ApiHub.CreateVersion] method's
 request.
 
Protobuf type google.cloud.apihub.v1.CreateVersionRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CreateVersionRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CreateVersionRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CreateVersionRequest.Builder>
    • getDefaultInstanceForType

      public CreateVersionRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CreateVersionRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CreateVersionRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CreateVersionRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateVersionRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CreateVersionRequest.Builder>
    • mergeFrom

      public CreateVersionRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateVersionRequest.Builder>
      Throws:
      IOException
    • 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) = { ... }
      Specified by:
      getParent in interface CreateVersionRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.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) = { ... }
      Specified by:
      getParentBytes in interface CreateVersionRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      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) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setParentBytes

      public CreateVersionRequest.Builder setParentBytes(com.google.protobuf.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) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • 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][A-Z][0-9]-_/.
       
      string version_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVersionId in interface CreateVersionRequestOrBuilder
      Returns:
      The versionId.
    • getVersionIdBytes

      public com.google.protobuf.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][A-Z][0-9]-_/.
       
      string version_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVersionIdBytes in interface CreateVersionRequestOrBuilder
      Returns:
      The bytes for versionId.
    • setVersionId

      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][A-Z][0-9]-_/.
       
      string version_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The versionId to set.
      Returns:
      This builder for chaining.
    • 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][A-Z][0-9]-_/.
       
      string version_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setVersionIdBytes

      public CreateVersionRequest.Builder setVersionIdBytes(com.google.protobuf.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][A-Z][0-9]-_/.
       
      string version_id = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for versionId to set.
      Returns:
      This builder for chaining.
    • hasVersion

      public boolean hasVersion()
       Required. The version to create.
       
      .google.cloud.apihub.v1.Version version = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasVersion in interface CreateVersionRequestOrBuilder
      Returns:
      Whether the version field is set.
    • getVersion

      public Version getVersion()
       Required. The version to create.
       
      .google.cloud.apihub.v1.Version version = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getVersion in interface CreateVersionRequestOrBuilder
      Returns:
      The version.
    • setVersion

      public CreateVersionRequest.Builder setVersion(Version value)
       Required. The version to create.
       
      .google.cloud.apihub.v1.Version version = 3 [(.google.api.field_behavior) = REQUIRED];
    • setVersion

      public CreateVersionRequest.Builder setVersion(Version.Builder builderForValue)
       Required. The version to create.
       
      .google.cloud.apihub.v1.Version version = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeVersion

      public CreateVersionRequest.Builder mergeVersion(Version value)
       Required. The version to create.
       
      .google.cloud.apihub.v1.Version version = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearVersion

      public CreateVersionRequest.Builder clearVersion()
       Required. The version to create.
       
      .google.cloud.apihub.v1.Version version = 3 [(.google.api.field_behavior) = REQUIRED];
    • getVersionBuilder

      public Version.Builder getVersionBuilder()
       Required. The version to create.
       
      .google.cloud.apihub.v1.Version version = 3 [(.google.api.field_behavior) = REQUIRED];
    • getVersionOrBuilder

      public VersionOrBuilder getVersionOrBuilder()
       Required. The version to create.
       
      .google.cloud.apihub.v1.Version version = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getVersionOrBuilder in interface CreateVersionRequestOrBuilder