Package com.google.cloud.apihub.v1
Interface CreateApiRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CreateApiRequest,CreateApiRequest.Builder
@Generated
public interface CreateApiRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods 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 the API resource. Format: `projects/{project}/locations/{location}`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 the API resource. Format: `projects/{project}/locations/{location}`string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The bytes for parent.
-
getApiId
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][A-Z][0-9]-_/.
string api_id = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The apiId.
-
getApiIdBytes
com.google.protobuf.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][A-Z][0-9]-_/.
string api_id = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for apiId.
-
hasApi
boolean hasApi()Required. The API resource to create.
.google.cloud.apihub.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- Whether the api field is set.
-
getApi
Api getApi()Required. The API resource to create.
.google.cloud.apihub.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The api.
-
getApiOrBuilder
ApiOrBuilder getApiOrBuilder()Required. The API resource to create.
.google.cloud.apihub.v1.Api api = 3 [(.google.api.field_behavior) = REQUIRED];
-