public static final class Csv.Builder extends GeneratedMessageV3.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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllDataRows(Iterable<? extends Csv.CsvRow> values)
public Csv.Builder addAllDataRows(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.
repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.advisorynotifications.v1.Csv.CsvRow>
|
Returns
public Csv.Builder addAllHeaders(Iterable<String> values)
The list of headers for data columns in a CSV file.
repeated string headers = 1;
Parameter
Returns
addDataRows(Csv.CsvRow value)
public Csv.Builder addDataRows(Csv.CsvRow value)
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;
Parameter
Returns
addDataRows(Csv.CsvRow.Builder builderForValue)
public Csv.Builder 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.
repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;
Parameter
Returns
addDataRows(int index, Csv.CsvRow value)
public Csv.Builder 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.
repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;
Parameters
Returns
addDataRows(int index, Csv.CsvRow.Builder builderForValue)
public Csv.Builder 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.
repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;
Parameters
Returns
addDataRowsBuilder()
public Csv.CsvRow.Builder 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;
Returns
addDataRowsBuilder(int index)
public Csv.CsvRow.Builder addDataRowsBuilder(int index)
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;
Parameter
Returns
public Csv.Builder addHeaders(String value)
The list of headers for data columns in a CSV file.
repeated string headers = 1;
Parameter
Name | Description |
value | String
The headers to add.
|
Returns
public Csv.Builder addHeadersBytes(ByteString value)
The list of headers for data columns in a CSV file.
repeated string headers = 1;
Parameter
Name | Description |
value | ByteString
The bytes of the headers to add.
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Csv.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public Csv buildPartial()
Returns
clear()
public Csv.Builder clear()
Returns
Overrides
clearDataRows()
public Csv.Builder 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;
Returns
clearField(Descriptors.FieldDescriptor field)
public Csv.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public Csv.Builder clearHeaders()
The list of headers for data columns in a CSV file.
repeated string headers = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public Csv.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public Csv.Builder clone()
Returns
Overrides
getDataRows(int index)
public Csv.CsvRow getDataRows(int index)
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;
Parameter
Returns
getDataRowsBuilder(int index)
public Csv.CsvRow.Builder getDataRowsBuilder(int index)
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;
Parameter
Returns
getDataRowsBuilderList()
public List<Csv.CsvRow.Builder> 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;
Returns
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;
Returns
getDataRowsList()
public List<Csv.CsvRow> 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;
Returns
getDataRowsOrBuilder(int index)
public Csv.CsvRowOrBuilder getDataRowsOrBuilder(int index)
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;
Parameter
Returns
getDataRowsOrBuilderList()
public List<? extends Csv.CsvRowOrBuilder> 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;
Returns
Type | Description |
List<? extends com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder> | |
getDefaultInstanceForType()
public Csv getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public String getHeaders(int index)
The list of headers for data columns in a CSV file.
repeated string headers = 1;
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The headers at the given index.
|
public ByteString getHeadersBytes(int index)
The list of headers for data columns in a CSV file.
repeated string headers = 1;
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the headers at the given index.
|
public int getHeadersCount()
The list of headers for data columns in a CSV file.
repeated string headers = 1;
Returns
Type | Description |
int | The count of headers.
|
public ProtocolStringList getHeadersList()
The list of headers for data columns in a CSV file.
repeated string headers = 1;
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Csv other)
public Csv.Builder mergeFrom(Csv other)
Parameter
Returns
public Csv.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Csv.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Csv.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeDataRows(int index)
public Csv.Builder removeDataRows(int index)
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;
Parameter
Returns
setDataRows(int index, Csv.CsvRow value)
public Csv.Builder 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.
repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;
Parameters
Returns
setDataRows(int index, Csv.CsvRow.Builder builderForValue)
public Csv.Builder 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.
repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;
Parameters
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Csv.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public Csv.Builder setHeaders(int index, String value)
The list of headers for data columns in a CSV file.
repeated string headers = 1;
Parameters
Name | Description |
index | int
The index to set the value at.
|
value | String
The headers to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Csv.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Csv.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides