Package com.google.pubsub.v1
Interface SchemaOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Schema
,Schema.Builder
public interface SchemaOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionThe definition of the schema.com.google.protobuf.ByteString
The definition of the schema.getName()
Required.com.google.protobuf.ByteString
Required.com.google.protobuf.Timestamp
Output only.com.google.protobuf.TimestampOrBuilder
Output only.Output only.com.google.protobuf.ByteString
Output only.getType()
The type of the schema definition.int
The type of the schema definition.boolean
Output only.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
-
getName
String getName()Required. Name of the schema. Format is `projects/{project}/schemas/{schema}`.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Required. Name of the schema. Format is `projects/{project}/schemas/{schema}`.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
- Returns:
- The bytes for name.
-
getTypeValue
int getTypeValue()The type of the schema definition.
.google.pubsub.v1.Schema.Type type = 2;
- Returns:
- The enum numeric value on the wire for type.
-
getType
Schema.Type getType()The type of the schema definition.
.google.pubsub.v1.Schema.Type type = 2;
- Returns:
- The type.
-
getDefinition
String getDefinition()The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in `type`.
string definition = 3;
- Returns:
- The definition.
-
getDefinitionBytes
com.google.protobuf.ByteString getDefinitionBytes()The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in `type`.
string definition = 3;
- Returns:
- The bytes for definition.
-
getRevisionId
String getRevisionId()Output only. Immutable. The revision ID of the schema.
string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- The revisionId.
-
getRevisionIdBytes
com.google.protobuf.ByteString getRevisionIdBytes()Output only. Immutable. The revision ID of the schema.
string revision_id = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- The bytes for revisionId.
-
hasRevisionCreateTime
boolean hasRevisionCreateTime()Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- Whether the revisionCreateTime field is set.
-
getRevisionCreateTime
com.google.protobuf.Timestamp getRevisionCreateTime()Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Returns:
- The revisionCreateTime.
-
getRevisionCreateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getRevisionCreateTimeOrBuilder()Output only. The timestamp that the revision was created.
.google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
-