Interface CreateApiRequestOrBuilder (0.8.0)

public interface CreateApiRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getApi()

public abstract Api getApi()

Required. The API resource to create.

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

Returns
Type Description
Api

The api.

getApiId()

public abstract String getApiId()

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

Returns
Type Description
String

The apiId.

getApiIdBytes()

public abstract ByteString getApiIdBytes()

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

Returns
Type Description
ByteString

The bytes for apiId.

getApiOrBuilder()

public abstract ApiOrBuilder getApiOrBuilder()

Required. The API resource to create.

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

Returns
Type Description
ApiOrBuilder

getParent()

public abstract String getParent()

Required. The parent resource for the API resource. Format: projects/{project}/locations/{location}

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 the API resource. Format: projects/{project}/locations/{location}

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

Returns
Type Description
ByteString

The bytes for parent.

hasApi()

public abstract boolean hasApi()

Required. The API resource to create.

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

Returns
Type Description
boolean

Whether the api field is set.