Class Csv.Builder (0.2.0)

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

Implements

CsvOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

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
NameDescription
valuesIterable<? extends com.google.cloud.advisorynotifications.v1.Csv.CsvRow>
Returns
TypeDescription
Csv.Builder

addAllHeaders(Iterable<String> values)

public Csv.Builder addAllHeaders(Iterable<String> values)

The list of headers for data columns in a CSV file.

repeated string headers = 1;

Parameter
NameDescription
valuesIterable<String>

The headers to add.

Returns
TypeDescription
Csv.Builder

This builder for chaining.

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
NameDescription
valueCsv.CsvRow
Returns
TypeDescription
Csv.Builder

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
NameDescription
builderForValueCsv.CsvRow.Builder
Returns
TypeDescription
Csv.Builder

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
NameDescription
indexint
valueCsv.CsvRow
Returns
TypeDescription
Csv.Builder

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
NameDescription
indexint
builderForValueCsv.CsvRow.Builder
Returns
TypeDescription
Csv.Builder

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
TypeDescription
Csv.CsvRow.Builder

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
NameDescription
indexint
Returns
TypeDescription
Csv.CsvRow.Builder

addHeaders(String value)

public Csv.Builder addHeaders(String value)

The list of headers for data columns in a CSV file.

repeated string headers = 1;

Parameter
NameDescription
valueString

The headers to add.

Returns
TypeDescription
Csv.Builder

This builder for chaining.

addHeadersBytes(ByteString value)

public Csv.Builder addHeadersBytes(ByteString value)

The list of headers for data columns in a CSV file.

repeated string headers = 1;

Parameter
NameDescription
valueByteString

The bytes of the headers to add.

Returns
TypeDescription
Csv.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Csv.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Csv.Builder
Overrides

build()

public Csv build()
Returns
TypeDescription
Csv

buildPartial()

public Csv buildPartial()
Returns
TypeDescription
Csv

clear()

public Csv.Builder clear()
Returns
TypeDescription
Csv.Builder
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
TypeDescription
Csv.Builder

clearField(Descriptors.FieldDescriptor field)

public Csv.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Csv.Builder
Overrides

clearHeaders()

public Csv.Builder clearHeaders()

The list of headers for data columns in a CSV file.

repeated string headers = 1;

Returns
TypeDescription
Csv.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Csv.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Csv.Builder
Overrides

clone()

public Csv.Builder clone()
Returns
TypeDescription
Csv.Builder
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
NameDescription
indexint
Returns
TypeDescription
Csv.CsvRow

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
NameDescription
indexint
Returns
TypeDescription
Csv.CsvRow.Builder

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
TypeDescription
List<Builder>

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
TypeDescription
int

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
TypeDescription
List<CsvRow>

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
NameDescription
indexint
Returns
TypeDescription
Csv.CsvRowOrBuilder

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
TypeDescription
List<? extends com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder>

getDefaultInstanceForType()

public Csv getDefaultInstanceForType()
Returns
TypeDescription
Csv

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHeaders(int index)

public String getHeaders(int index)

The list of headers for data columns in a CSV file.

repeated string headers = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The headers at the given index.

getHeadersBytes(int index)

public ByteString getHeadersBytes(int index)

The list of headers for data columns in a CSV file.

repeated string headers = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the headers at the given index.

getHeadersCount()

public int getHeadersCount()

The list of headers for data columns in a CSV file.

repeated string headers = 1;

Returns
TypeDescription
int

The count of headers.

getHeadersList()

public ProtocolStringList getHeadersList()

The list of headers for data columns in a CSV file.

repeated string headers = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the headers.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Csv other)

public Csv.Builder mergeFrom(Csv other)
Parameter
NameDescription
otherCsv
Returns
TypeDescription
Csv.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Csv.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Csv.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Csv.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Csv.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Csv.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Csv.Builder
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
NameDescription
indexint
Returns
TypeDescription
Csv.Builder

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
NameDescription
indexint
valueCsv.CsvRow
Returns
TypeDescription
Csv.Builder

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
NameDescription
indexint
builderForValueCsv.CsvRow.Builder
Returns
TypeDescription
Csv.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Csv.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Csv.Builder
Overrides

setHeaders(int index, String value)

public Csv.Builder setHeaders(int index, String value)

The list of headers for data columns in a CSV file.

repeated string headers = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The headers to set.

Returns
TypeDescription
Csv.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Csv.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Csv.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Csv.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Csv.Builder
Overrides