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 Type
    Method
    Description
    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.
    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.
    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.
    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.
    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.
     
     
     
    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.
    int
    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.
    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.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    getHeaders(int index)
    The list of headers for data columns in a CSV file.
    com.google.protobuf.ByteString
    getHeadersBytes(int index)
    The list of headers for data columns in a CSV file.
    int
    The list of headers for data columns in a CSV file.
    com.google.protobuf.ProtocolStringList
    The list of headers for data columns in a CSV file.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeFrom(Csv other)
     
    mergeFrom(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, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Csv.Builder>
    • clear

      public Csv.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Csv.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Csv.Builder>
    • getDefaultInstanceForType

      public Csv getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Csv build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Csv buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Csv.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Csv.Builder>
    • mergeFrom

      public Csv.Builder mergeFrom(Csv other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      getHeadersList in interface CsvOrBuilder
      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:
      getHeadersCount in interface CsvOrBuilder
      Returns:
      The count of headers.
    • getHeaders

      public String getHeaders(int index)
       The list of headers for data columns in a CSV file.
       
      repeated string headers = 1;
      Specified by:
      getHeaders in interface CsvOrBuilder
      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:
      getHeadersBytes in interface CsvOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the headers at the given index.
    • setHeaders

      public Csv.Builder setHeaders(int index, String value)
       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

      public Csv.Builder addHeaders(String value)
       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

      public Csv.Builder addAllHeaders(Iterable<String> values)
       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

      public Csv.Builder clearHeaders()
       The list of headers for data columns in a CSV file.
       
      repeated string headers = 1;
      Returns:
      This builder for chaining.
    • addHeadersBytes

      public Csv.Builder addHeadersBytes(com.google.protobuf.ByteString value)
       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

      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;
      Specified by:
      getDataRowsList in interface CsvOrBuilder
    • 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:
      getDataRowsCount in interface CsvOrBuilder
    • getDataRows

      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;
      Specified by:
      getDataRows in interface CsvOrBuilder
    • setDataRows

      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;
    • setDataRows

      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;
    • addDataRows

      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;
    • addDataRows

      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;
    • addDataRows

      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;
    • addDataRows

      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;
    • addAllDataRows

      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;
    • 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;
    • removeDataRows

      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;
    • getDataRowsBuilder

      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;
    • getDataRowsOrBuilder

      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;
      Specified by:
      getDataRowsOrBuilder in interface CsvOrBuilder
    • 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;
      Specified by:
      getDataRowsOrBuilderList in interface CsvOrBuilder
    • 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;
    • addDataRowsBuilder

      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;
    • 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;