Interface CreateVersionRequestOrBuilder (0.2.0)

public interface CreateVersionRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getParent()

public abstract 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 abstract 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 abstract 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.

getVersionId()

public abstract 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, 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 abstract 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, 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 abstract 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 abstract 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.