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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetParent()Required.com.google.protobuf.ByteStringgetParentBytes()Required.SchemagetSchema()Required.StringgetSchemaId()The ID to use for the schema, which will become the final component of the schema's resource name.com.google.protobuf.ByteStringgetSchemaIdBytes()The ID to use for the schema, which will become the final component of the schema's resource name.SchemaOrBuildergetSchemaOrBuilder()Required.booleanhasSchema()Required.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
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/admin#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/admin#resource_names for resource name constraints.
string schema_id = 3;- Returns:
- The bytes for schemaId.
-
-