Package com.google.pubsub.v1
Interface CreateSchemaRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CreateSchemaRequest
,CreateSchemaRequest.Builder
public interface CreateSchemaRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionRequired.com.google.protobuf.ByteString
Required.Required.The ID to use for the schema, which will become the final component of the schema's resource name.com.google.protobuf.ByteString
The ID to use for the schema, which will become the final component of the schema's resource name.Required.boolean
Required.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods 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 name of the project in which to create the schema. Format is `projects/{project-id}`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Returns:
- The parent.
-
getParentBytes
com.google.protobuf.ByteString getParentBytes()Required. The name of the project in which to create the schema. Format is `projects/{project-id}`.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- Returns:
- The bytes for parent.
-
hasSchema
boolean hasSchema()Required. The schema object to create. This schema's `name` parameter is ignored. The schema object returned by CreateSchema will have a `name` made using the given `parent` and `schema_id`.
.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- Whether the schema field is set.
-
getSchema
Schema getSchema()Required. The schema object to create. This schema's `name` parameter is ignored. The schema object returned by CreateSchema will have a `name` made using the given `parent` and `schema_id`.
.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The schema.
-
getSchemaOrBuilder
SchemaOrBuilder getSchemaOrBuilder()Required. The schema object to create. This schema's `name` parameter is ignored. The schema object returned by CreateSchema will have a `name` made using the given `parent` and `schema_id`.
.google.pubsub.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED];
-
getSchemaId
String getSchemaId()The ID to use for the schema, which will become the final component of the schema's resource name. See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for resource name constraints.
string schema_id = 3;
- Returns:
- The schemaId.
-
getSchemaIdBytes
com.google.protobuf.ByteString getSchemaIdBytes()The ID to use for the schema, which will become the final component of the schema's resource name. See https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names for resource name constraints.
string schema_id = 3;
- Returns:
- The bytes for schemaId.
-