Interface CreateSpecRequestOrBuilder (0.2.0)

public interface CreateSpecRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getParent()

public abstract String getParent()

Required. The parent resource for Spec. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}

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 Spec. Format: projects/{project}/locations/{location}/apis/{api}/versions/{version}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getSpec()

public abstract Spec getSpec()

Required. The spec to create.

.google.cloud.apihub.v1.Spec spec = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Spec

The spec.

getSpecId()

public abstract String getSpecId()

Optional. The ID to use for the spec, which will become the final component of the spec'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 spec 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 spec_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The specId.

getSpecIdBytes()

public abstract ByteString getSpecIdBytes()

Optional. The ID to use for the spec, which will become the final component of the spec'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 spec 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 spec_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for specId.

getSpecOrBuilder()

public abstract SpecOrBuilder getSpecOrBuilder()

Required. The spec to create.

.google.cloud.apihub.v1.Spec spec = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SpecOrBuilder

hasSpec()

public abstract boolean hasSpec()

Required. The spec to create.

.google.cloud.apihub.v1.Spec spec = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the spec field is set.