Package com.google.cloud.apihub.v1
Interface CreateSpecRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CreateSpecRequest,CreateSpecRequest.Builder
@Generated
public interface CreateSpecRequestOrBuilder
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 Spec. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}`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 Spec. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}`string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Returns:
- The bytes for parent.
-
getSpecId
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, overall resource name which will be of format `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`, its length is limited to 1000 characters and valid characters are /[a-z][A-Z][0-9]-_/.string spec_id = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The specId.
-
getSpecIdBytes
com.google.protobuf.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, overall resource name which will be of format `projects/{project}/locations/{location}/apis/{api}/versions/{version}/specs/{spec}`, its length is limited to 1000 characters and valid characters are /[a-z][A-Z][0-9]-_/.string spec_id = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The bytes for specId.
-
hasSpec
boolean hasSpec()Required. The spec to create.
.google.cloud.apihub.v1.Spec spec = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- Whether the spec field is set.
-
getSpec
Spec getSpec()Required. The spec to create.
.google.cloud.apihub.v1.Spec spec = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The spec.
-
getSpecOrBuilder
SpecOrBuilder getSpecOrBuilder()Required. The spec to create.
.google.cloud.apihub.v1.Spec spec = 3 [(.google.api.field_behavior) = REQUIRED];
-