Interface SchemaOrBuilder (1.125.13)

public interface SchemaOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDefinition()

public abstract 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
TypeDescription
String

The definition.

getDefinitionBytes()

public abstract 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
TypeDescription
ByteString

The bytes for definition.

getName()

public abstract String getName()

Required. Name of the schema. Format is projects/{project}/schemas/{schema}.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Required. Name of the schema. Format is projects/{project}/schemas/{schema}.

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for name.

getRevisionCreateTime()

public abstract 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
TypeDescription
Timestamp

The revisionCreateTime.

getRevisionCreateTimeOrBuilder()

public abstract TimestampOrBuilder getRevisionCreateTimeOrBuilder()

Output only. The timestamp that the revision was created.

.google.protobuf.Timestamp revision_create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getRevisionId()

public abstract 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
TypeDescription
String

The revisionId.

getRevisionIdBytes()

public abstract 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
TypeDescription
ByteString

The bytes for revisionId.

getType()

public abstract Schema.Type getType()

The type of the schema definition.

.google.pubsub.v1.Schema.Type type = 2;

Returns
TypeDescription
Schema.Type

The type.

getTypeValue()

public abstract int getTypeValue()

The type of the schema definition.

.google.pubsub.v1.Schema.Type type = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for type.

hasRevisionCreateTime()

public abstract 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
TypeDescription
boolean

Whether the revisionCreateTime field is set.