Class FieldSchema (0.76.0)

public final class FieldSchema extends GeneratedMessage implements FieldSchemaOrBuilder

Field schema information.

Protobuf type google.cloud.biglake.hive.v1beta.FieldSchema

Static Fields

COMMENT_FIELD_NUMBER

public static final int COMMENT_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static FieldSchema getDefaultInstance()
Returns
Type Description
FieldSchema

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static FieldSchema.Builder newBuilder()
Returns
Type Description
FieldSchema.Builder

newBuilder(FieldSchema prototype)

public static FieldSchema.Builder newBuilder(FieldSchema prototype)
Parameter
Name Description
prototype FieldSchema
Returns
Type Description
FieldSchema.Builder

parseDelimitedFrom(InputStream input)

public static FieldSchema parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FieldSchema
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FieldSchema parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FieldSchema
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static FieldSchema parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
FieldSchema
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FieldSchema parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FieldSchema
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FieldSchema parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
FieldSchema
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FieldSchema parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FieldSchema
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FieldSchema parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
FieldSchema
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FieldSchema parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FieldSchema
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static FieldSchema parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FieldSchema
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FieldSchema parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FieldSchema
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static FieldSchema parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
FieldSchema
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FieldSchema parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FieldSchema
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<FieldSchema> parser()
Returns
Type Description
Parser<FieldSchema>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getComment()

public String getComment()

Optional. Comment of the field. The maximum length is 256 characters.

string comment = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The comment.

getCommentBytes()

public ByteString getCommentBytes()

Optional. Comment of the field. The maximum length is 256 characters.

string comment = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for comment.

getDefaultInstanceForType()

public FieldSchema getDefaultInstanceForType()
Returns
Type Description
FieldSchema

getName()

public String getName()

Required. Name of the field. The maximum length is 767 characters.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Name of the field. The maximum length is 767 characters.

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

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<FieldSchema> getParserForType()
Returns
Type Description
Parser<FieldSchema>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getType()

public String getType()

Required. Type of the field. The maximum length is 128 characters.

string type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Required. Type of the field. The maximum length is 128 characters.

string type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for type.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public FieldSchema.Builder newBuilderForType()
Returns
Type Description
FieldSchema.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected FieldSchema.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
FieldSchema.Builder
Overrides

toBuilder()

public FieldSchema.Builder toBuilder()
Returns
Type Description
FieldSchema.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException