Package com.google.cloud.asset.v1
Class TableFieldSchema.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TableFieldSchema.Builder>
com.google.cloud.asset.v1.TableFieldSchema.Builder
- All Implemented Interfaces:
TableFieldSchemaOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TableFieldSchema
public static final class TableFieldSchema.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TableFieldSchema.Builder>
implements TableFieldSchemaOrBuilder
A field in TableSchema.Protobuf type
google.cloud.asset.v1.TableFieldSchema-
Method Summary
Modifier and TypeMethodDescriptionaddAllFields(Iterable<? extends TableFieldSchema> values) Describes the nested schema fields if the type property is set to RECORD.addFields(int index, TableFieldSchema value) Describes the nested schema fields if the type property is set to RECORD.addFields(int index, TableFieldSchema.Builder builderForValue) Describes the nested schema fields if the type property is set to RECORD.addFields(TableFieldSchema value) Describes the nested schema fields if the type property is set to RECORD.addFields(TableFieldSchema.Builder builderForValue) Describes the nested schema fields if the type property is set to RECORD.Describes the nested schema fields if the type property is set to RECORD.addFieldsBuilder(int index) Describes the nested schema fields if the type property is set to RECORD.build()clear()The field name.Describes the nested schema fields if the type property is set to RECORD.The field mode.The field data type.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetField()The field name.com.google.protobuf.ByteStringThe field name.getFields(int index) Describes the nested schema fields if the type property is set to RECORD.getFieldsBuilder(int index) Describes the nested schema fields if the type property is set to RECORD.Describes the nested schema fields if the type property is set to RECORD.intDescribes the nested schema fields if the type property is set to RECORD.Describes the nested schema fields if the type property is set to RECORD.getFieldsOrBuilder(int index) Describes the nested schema fields if the type property is set to RECORD.List<? extends TableFieldSchemaOrBuilder>Describes the nested schema fields if the type property is set to RECORD.getMode()The field mode.com.google.protobuf.ByteStringThe field mode.getType()The field data type.com.google.protobuf.ByteStringThe field data type.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(TableFieldSchema other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeFields(int index) Describes the nested schema fields if the type property is set to RECORD.The field name.setFieldBytes(com.google.protobuf.ByteString value) The field name.setFields(int index, TableFieldSchema value) Describes the nested schema fields if the type property is set to RECORD.setFields(int index, TableFieldSchema.Builder builderForValue) Describes the nested schema fields if the type property is set to RECORD.The field mode.setModeBytes(com.google.protobuf.ByteString value) The field mode.The field data type.setTypeBytes(com.google.protobuf.ByteString value) The field data type.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TableFieldSchema.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TableFieldSchema.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<TableFieldSchema.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TableFieldSchema.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TableFieldSchema.Builder>
-
mergeFrom
public TableFieldSchema.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TableFieldSchema.Builder>- Throws:
IOException
-
getField
The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.
string field = 1;- Specified by:
getFieldin interfaceTableFieldSchemaOrBuilder- Returns:
- The field.
-
getFieldBytes
public com.google.protobuf.ByteString getFieldBytes()The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.
string field = 1;- Specified by:
getFieldBytesin interfaceTableFieldSchemaOrBuilder- Returns:
- The bytes for field.
-
setField
The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.
string field = 1;- Parameters:
value- The field to set.- Returns:
- This builder for chaining.
-
clearField
The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.
string field = 1;- Returns:
- This builder for chaining.
-
setFieldBytes
The field name. The name must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_), and must start with a letter or underscore. The maximum length is 128 characters.
string field = 1;- Parameters:
value- The bytes for field to set.- Returns:
- This builder for chaining.
-
getType
The field data type. Possible values include * STRING * BYTES * INTEGER * FLOAT * BOOLEAN * TIMESTAMP * DATE * TIME * DATETIME * GEOGRAPHY, * NUMERIC, * BIGNUMERIC, * RECORD (where RECORD indicates that the field contains a nested schema).
string type = 2;- Specified by:
getTypein interfaceTableFieldSchemaOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()The field data type. Possible values include * STRING * BYTES * INTEGER * FLOAT * BOOLEAN * TIMESTAMP * DATE * TIME * DATETIME * GEOGRAPHY, * NUMERIC, * BIGNUMERIC, * RECORD (where RECORD indicates that the field contains a nested schema).
string type = 2;- Specified by:
getTypeBytesin interfaceTableFieldSchemaOrBuilder- Returns:
- The bytes for type.
-
setType
The field data type. Possible values include * STRING * BYTES * INTEGER * FLOAT * BOOLEAN * TIMESTAMP * DATE * TIME * DATETIME * GEOGRAPHY, * NUMERIC, * BIGNUMERIC, * RECORD (where RECORD indicates that the field contains a nested schema).
string type = 2;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
The field data type. Possible values include * STRING * BYTES * INTEGER * FLOAT * BOOLEAN * TIMESTAMP * DATE * TIME * DATETIME * GEOGRAPHY, * NUMERIC, * BIGNUMERIC, * RECORD (where RECORD indicates that the field contains a nested schema).
string type = 2;- Returns:
- This builder for chaining.
-
setTypeBytes
The field data type. Possible values include * STRING * BYTES * INTEGER * FLOAT * BOOLEAN * TIMESTAMP * DATE * TIME * DATETIME * GEOGRAPHY, * NUMERIC, * BIGNUMERIC, * RECORD (where RECORD indicates that the field contains a nested schema).
string type = 2;- Parameters:
value- The bytes for type to set.- Returns:
- This builder for chaining.
-
getMode
The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
string mode = 3;- Specified by:
getModein interfaceTableFieldSchemaOrBuilder- Returns:
- The mode.
-
getModeBytes
public com.google.protobuf.ByteString getModeBytes()The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
string mode = 3;- Specified by:
getModeBytesin interfaceTableFieldSchemaOrBuilder- Returns:
- The bytes for mode.
-
setMode
The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
string mode = 3;- Parameters:
value- The mode to set.- Returns:
- This builder for chaining.
-
clearMode
The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
string mode = 3;- Returns:
- This builder for chaining.
-
setModeBytes
The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
string mode = 3;- Parameters:
value- The bytes for mode to set.- Returns:
- This builder for chaining.
-
getFieldsList
Describes the nested schema fields if the type property is set to RECORD.
repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;- Specified by:
getFieldsListin interfaceTableFieldSchemaOrBuilder
-
getFieldsCount
public int getFieldsCount()Describes the nested schema fields if the type property is set to RECORD.
repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;- Specified by:
getFieldsCountin interfaceTableFieldSchemaOrBuilder
-
getFields
Describes the nested schema fields if the type property is set to RECORD.
repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;- Specified by:
getFieldsin interfaceTableFieldSchemaOrBuilder
-
setFields
Describes the nested schema fields if the type property is set to RECORD.
repeated .google.cloud.asset.v1.TableFieldSchema fields = 4; -
setFields
Describes the nested schema fields if the type property is set to RECORD.
repeated .google.cloud.asset.v1.TableFieldSchema fields = 4; -
addFields
Describes the nested schema fields if the type property is set to RECORD.
repeated .google.cloud.asset.v1.TableFieldSchema fields = 4; -
addFields
Describes the nested schema fields if the type property is set to RECORD.
repeated .google.cloud.asset.v1.TableFieldSchema fields = 4; -
addFields
Describes the nested schema fields if the type property is set to RECORD.
repeated .google.cloud.asset.v1.TableFieldSchema fields = 4; -
addFields
Describes the nested schema fields if the type property is set to RECORD.
repeated .google.cloud.asset.v1.TableFieldSchema fields = 4; -
addAllFields
Describes the nested schema fields if the type property is set to RECORD.
repeated .google.cloud.asset.v1.TableFieldSchema fields = 4; -
clearFields
Describes the nested schema fields if the type property is set to RECORD.
repeated .google.cloud.asset.v1.TableFieldSchema fields = 4; -
removeFields
Describes the nested schema fields if the type property is set to RECORD.
repeated .google.cloud.asset.v1.TableFieldSchema fields = 4; -
getFieldsBuilder
Describes the nested schema fields if the type property is set to RECORD.
repeated .google.cloud.asset.v1.TableFieldSchema fields = 4; -
getFieldsOrBuilder
Describes the nested schema fields if the type property is set to RECORD.
repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;- Specified by:
getFieldsOrBuilderin interfaceTableFieldSchemaOrBuilder
-
getFieldsOrBuilderList
Describes the nested schema fields if the type property is set to RECORD.
repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;- Specified by:
getFieldsOrBuilderListin interfaceTableFieldSchemaOrBuilder
-
addFieldsBuilder
Describes the nested schema fields if the type property is set to RECORD.
repeated .google.cloud.asset.v1.TableFieldSchema fields = 4; -
addFieldsBuilder
Describes the nested schema fields if the type property is set to RECORD.
repeated .google.cloud.asset.v1.TableFieldSchema fields = 4; -
getFieldsBuilderList
Describes the nested schema fields if the type property is set to RECORD.
repeated .google.cloud.asset.v1.TableFieldSchema fields = 4;
-