Interface SchemaOrBuilder (1.116.4)

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.

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.