Interface CreateExternalApiRequestOrBuilder (0.6.0)

public interface CreateExternalApiRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getExternalApi()

public abstract ExternalApi getExternalApi()

Required. The External API resource to create.

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

Returns
Type Description
ExternalApi

The externalApi.

getExternalApiId()

public abstract String getExternalApiId()

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

Returns
Type Description
String

The externalApiId.

getExternalApiIdBytes()

public abstract ByteString getExternalApiIdBytes()

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

Returns
Type Description
ByteString

The bytes for externalApiId.

getExternalApiOrBuilder()

public abstract ExternalApiOrBuilder getExternalApiOrBuilder()

Required. The External API resource to create.

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

Returns
Type Description
ExternalApiOrBuilder

getParent()

public abstract String getParent()

Required. The parent resource for the External 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 External 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.

hasExternalApi()

public abstract boolean hasExternalApi()

Required. The External API resource to create.

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

Returns
Type Description
boolean

Whether the externalApi field is set.