Class Attachment.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Attachment.Builder>
com.google.cloud.advisorynotifications.v1.Attachment.Builder
All Implemented Interfaces:
AttachmentOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Attachment

public static final class Attachment.Builder extends com.google.protobuf.GeneratedMessage.Builder<Attachment.Builder> implements AttachmentOrBuilder
 Attachment with specific information about the issue.
 
Protobuf type google.cloud.advisorynotifications.v1.Attachment
  • 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<Attachment.Builder>
    • clear

      public Attachment.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<Attachment.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<Attachment.Builder>
    • getDefaultInstanceForType

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

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

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

      public Attachment.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<Attachment.Builder>
    • mergeFrom

      public Attachment.Builder mergeFrom(Attachment other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Attachment.Builder>
    • mergeFrom

      public Attachment.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<Attachment.Builder>
      Throws:
      IOException
    • getDataCase

      public Attachment.DataCase getDataCase()
      Specified by:
      getDataCase in interface AttachmentOrBuilder
    • clearData

      public Attachment.Builder clearData()
    • hasCsv

      public boolean hasCsv()
       A CSV file attachment. Max size is 10 MB.
       
      .google.cloud.advisorynotifications.v1.Csv csv = 2;
      Specified by:
      hasCsv in interface AttachmentOrBuilder
      Returns:
      Whether the csv field is set.
    • getCsv

      public Csv getCsv()
       A CSV file attachment. Max size is 10 MB.
       
      .google.cloud.advisorynotifications.v1.Csv csv = 2;
      Specified by:
      getCsv in interface AttachmentOrBuilder
      Returns:
      The csv.
    • setCsv

      public Attachment.Builder setCsv(Csv value)
       A CSV file attachment. Max size is 10 MB.
       
      .google.cloud.advisorynotifications.v1.Csv csv = 2;
    • setCsv

      public Attachment.Builder setCsv(Csv.Builder builderForValue)
       A CSV file attachment. Max size is 10 MB.
       
      .google.cloud.advisorynotifications.v1.Csv csv = 2;
    • mergeCsv

      public Attachment.Builder mergeCsv(Csv value)
       A CSV file attachment. Max size is 10 MB.
       
      .google.cloud.advisorynotifications.v1.Csv csv = 2;
    • clearCsv

      public Attachment.Builder clearCsv()
       A CSV file attachment. Max size is 10 MB.
       
      .google.cloud.advisorynotifications.v1.Csv csv = 2;
    • getCsvBuilder

      public Csv.Builder getCsvBuilder()
       A CSV file attachment. Max size is 10 MB.
       
      .google.cloud.advisorynotifications.v1.Csv csv = 2;
    • getCsvOrBuilder

      public CsvOrBuilder getCsvOrBuilder()
       A CSV file attachment. Max size is 10 MB.
       
      .google.cloud.advisorynotifications.v1.Csv csv = 2;
      Specified by:
      getCsvOrBuilder in interface AttachmentOrBuilder
    • getDisplayName

      public String getDisplayName()
       The title of the attachment.
       
      string display_name = 1;
      Specified by:
      getDisplayName in interface AttachmentOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       The title of the attachment.
       
      string display_name = 1;
      Specified by:
      getDisplayNameBytes in interface AttachmentOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public Attachment.Builder setDisplayName(String value)
       The title of the attachment.
       
      string display_name = 1;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public Attachment.Builder clearDisplayName()
       The title of the attachment.
       
      string display_name = 1;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Attachment.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       The title of the attachment.
       
      string display_name = 1;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.