Class FieldSchema.Builder (0.76.0)

public static final class FieldSchema.Builder extends GeneratedMessage.Builder<FieldSchema.Builder> implements FieldSchemaOrBuilder

Field schema information.

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

Static Methods

getDescriptor()

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

Methods

build()

public FieldSchema build()
Returns
Type Description
FieldSchema

buildPartial()

public FieldSchema buildPartial()
Returns
Type Description
FieldSchema

clear()

public FieldSchema.Builder clear()
Returns
Type Description
FieldSchema.Builder
Overrides

clearComment()

public FieldSchema.Builder clearComment()

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

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

Returns
Type Description
FieldSchema.Builder

This builder for chaining.

clearName()

public FieldSchema.Builder clearName()

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

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

Returns
Type Description
FieldSchema.Builder

This builder for chaining.

clearType()

public FieldSchema.Builder clearType()

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

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

Returns
Type Description
FieldSchema.Builder

This builder for chaining.

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FieldSchema other)

public FieldSchema.Builder mergeFrom(FieldSchema other)
Parameter
Name Description
other FieldSchema
Returns
Type Description
FieldSchema.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FieldSchema.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FieldSchema.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public FieldSchema.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
FieldSchema.Builder
Overrides

setComment(String value)

public FieldSchema.Builder setComment(String value)

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

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

Parameter
Name Description
value String

The comment to set.

Returns
Type Description
FieldSchema.Builder

This builder for chaining.

setCommentBytes(ByteString value)

public FieldSchema.Builder setCommentBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for comment to set.

Returns
Type Description
FieldSchema.Builder

This builder for chaining.

setName(String value)

public FieldSchema.Builder setName(String value)

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

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
FieldSchema.Builder

This builder for chaining.

setNameBytes(ByteString value)

public FieldSchema.Builder setNameBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
FieldSchema.Builder

This builder for chaining.

setType(String value)

public FieldSchema.Builder setType(String value)

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

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

Parameter
Name Description
value String

The type to set.

Returns
Type Description
FieldSchema.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public FieldSchema.Builder setTypeBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
FieldSchema.Builder

This builder for chaining.