public final class Schema extends GeneratedMessageV3 implements SchemaOrBuilder
A schema resource.
Protobuf type google.pubsub.v1.Schema
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > SchemaImplements
SchemaOrBuilderStatic Fields
DEFINITION_FIELD_NUMBER
public static final int DEFINITION_FIELD_NUMBER
Type | Description |
int |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Type | Description |
int |
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static Schema getDefaultInstance()
Type | Description |
Schema |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static Schema.Builder newBuilder()
Type | Description |
Schema.Builder |
newBuilder(Schema prototype)
public static Schema.Builder newBuilder(Schema prototype)
Name | Description |
prototype | Schema |
Type | Description |
Schema.Builder |
parseDelimitedFrom(InputStream input)
public static Schema parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Schema |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Schema parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Schema |
Type | Description |
IOException |
parseFrom(byte[] data)
public static Schema parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
Schema |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Schema parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Schema |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static Schema parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
Schema |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Schema parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Schema |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static Schema parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
Schema |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Schema parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Schema |
Type | Description |
IOException |
parseFrom(InputStream input)
public static Schema parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Schema |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Schema parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Schema |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static Schema parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
Schema |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Schema parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Schema |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<Schema> parser()
Type | Description |
Parser<Schema> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public Schema getDefaultInstanceForType()
Type | Description |
Schema |
getDefinition()
public 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;
Type | Description |
String | The definition. |
getDefinitionBytes()
public 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;
Type | Description |
ByteString | The bytes for definition. |
getName()
public String getName()
Required. Name of the schema.
Format is projects/{project}/schemas/{schema}
.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Required. Name of the schema.
Format is projects/{project}/schemas/{schema}
.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ByteString | The bytes for name. |
getParserForType()
public Parser<Schema> getParserForType()
Type | Description |
Parser<Schema> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getType()
public Schema.Type getType()
The type of the schema definition.
.google.pubsub.v1.Schema.Type type = 2;
Type | Description |
Schema.Type | The type. |
getTypeValue()
public int getTypeValue()
The type of the schema definition.
.google.pubsub.v1.Schema.Type type = 2;
Type | Description |
int | The enum numeric value on the wire for type. |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public Schema.Builder newBuilderForType()
Type | Description |
Schema.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Schema.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
Schema.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public Schema.Builder toBuilder()
Type | Description |
Schema.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |