Interface SchemaOrBuilder (1.129.6)

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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
Schema.Type

The type.

getTypeValue()

public abstract int getTypeValue()

The type of the schema definition.

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

Returns
Type Description
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
Type Description
boolean

Whether the revisionCreateTime field is set.