Class Csv.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Csv.Builder>
com.google.cloud.advisorynotifications.v1.Csv.Builder
- All Implemented Interfaces:
CsvOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Csv
public static final class Csv.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Csv.Builder>
implements CsvOrBuilder
A representation of a CSV file attachment, as a list of column headers and a list of data rows.Protobuf type
google.cloud.advisorynotifications.v1.Csv-
Method Summary
Modifier and TypeMethodDescriptionaddAllDataRows(Iterable<? extends Csv.CsvRow> values) The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.addAllHeaders(Iterable<String> values) The list of headers for data columns in a CSV file.addDataRows(int index, Csv.CsvRow value) The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.addDataRows(int index, Csv.CsvRow.Builder builderForValue) The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.addDataRows(Csv.CsvRow value) The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.addDataRows(Csv.CsvRow.Builder builderForValue) The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.addDataRowsBuilder(int index) The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.addHeaders(String value) The list of headers for data columns in a CSV file.addHeadersBytes(com.google.protobuf.ByteString value) The list of headers for data columns in a CSV file.build()clear()The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.The list of headers for data columns in a CSV file.getDataRows(int index) The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.getDataRowsBuilder(int index) The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.intThe list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.getDataRowsOrBuilder(int index) The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.List<? extends Csv.CsvRowOrBuilder>The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetHeaders(int index) The list of headers for data columns in a CSV file.com.google.protobuf.ByteStringgetHeadersBytes(int index) The list of headers for data columns in a CSV file.intThe list of headers for data columns in a CSV file.com.google.protobuf.ProtocolStringListThe list of headers for data columns in a CSV file.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeDataRows(int index) The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.setDataRows(int index, Csv.CsvRow value) The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.setDataRows(int index, Csv.CsvRow.Builder builderForValue) The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.setHeaders(int index, String value) The list of headers for data columns in a CSV file.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<Csv.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<Csv.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<Csv.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<Csv.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Csv.Builder>
-
mergeFrom
public Csv.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<Csv.Builder>- Throws:
IOException
-
getHeadersList
public com.google.protobuf.ProtocolStringList getHeadersList()The list of headers for data columns in a CSV file.
repeated string headers = 1;- Specified by:
getHeadersListin interfaceCsvOrBuilder- Returns:
- A list containing the headers.
-
getHeadersCount
public int getHeadersCount()The list of headers for data columns in a CSV file.
repeated string headers = 1;- Specified by:
getHeadersCountin interfaceCsvOrBuilder- Returns:
- The count of headers.
-
getHeaders
The list of headers for data columns in a CSV file.
repeated string headers = 1;- Specified by:
getHeadersin interfaceCsvOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The headers at the given index.
-
getHeadersBytes
public com.google.protobuf.ByteString getHeadersBytes(int index) The list of headers for data columns in a CSV file.
repeated string headers = 1;- Specified by:
getHeadersBytesin interfaceCsvOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the headers at the given index.
-
setHeaders
The list of headers for data columns in a CSV file.
repeated string headers = 1;- Parameters:
index- The index to set the value at.value- The headers to set.- Returns:
- This builder for chaining.
-
addHeaders
The list of headers for data columns in a CSV file.
repeated string headers = 1;- Parameters:
value- The headers to add.- Returns:
- This builder for chaining.
-
addAllHeaders
The list of headers for data columns in a CSV file.
repeated string headers = 1;- Parameters:
values- The headers to add.- Returns:
- This builder for chaining.
-
clearHeaders
The list of headers for data columns in a CSV file.
repeated string headers = 1;- Returns:
- This builder for chaining.
-
addHeadersBytes
The list of headers for data columns in a CSV file.
repeated string headers = 1;- Parameters:
value- The bytes of the headers to add.- Returns:
- This builder for chaining.
-
getDataRowsList
The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.
repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;- Specified by:
getDataRowsListin interfaceCsvOrBuilder
-
getDataRowsCount
public int getDataRowsCount()The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.
repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;- Specified by:
getDataRowsCountin interfaceCsvOrBuilder
-
getDataRows
The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.
repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;- Specified by:
getDataRowsin interfaceCsvOrBuilder
-
setDataRows
The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.
repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2; -
setDataRows
The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.
repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2; -
addDataRows
The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.
repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2; -
addDataRows
The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.
repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2; -
addDataRows
The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.
repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2; -
addDataRows
The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.
repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2; -
addAllDataRows
The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.
repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2; -
clearDataRows
The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.
repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2; -
removeDataRows
The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.
repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2; -
getDataRowsBuilder
The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.
repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2; -
getDataRowsOrBuilder
The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.
repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;- Specified by:
getDataRowsOrBuilderin interfaceCsvOrBuilder
-
getDataRowsOrBuilderList
The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.
repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;- Specified by:
getDataRowsOrBuilderListin interfaceCsvOrBuilder
-
addDataRowsBuilder
The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.
repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2; -
addDataRowsBuilder
The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.
repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2; -
getDataRowsBuilderList
The list of data rows in a CSV file, as string arrays rather than as a single comma-separated string.
repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;
-