Interface CreateVersionRequestOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
CreateVersionRequest, CreateVersionRequest.Builder

@Generated public interface CreateVersionRequestOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Required.
    com.google.protobuf.ByteString
    Required.
    Required.
    Optional.
    com.google.protobuf.ByteString
    Optional.
    Required.
    boolean
    Required.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getParent

      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:
      The parent.
    • getParentBytes

      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) = { ... }
      Returns:
      The bytes for parent.
    • getVersionId

      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];
      Returns:
      The versionId.
    • getVersionIdBytes

      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];
      Returns:
      The bytes for versionId.
    • hasVersion

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

      Version getVersion()
       Required. The version to create.
       
      .google.cloud.apihub.v1.Version version = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      The version.
    • getVersionOrBuilder

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