Class 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.GeneratedMessageV3.Builder<Attachment.Builder>
    implements AttachmentOrBuilder
     Attachment with specific information about the issue.
     
    Protobuf type google.cloud.advisorynotifications.v1.Attachment
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public Attachment.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
      • setField

        public Attachment.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                           Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
      • clearField

        public Attachment.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
      • clearOneof

        public Attachment.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
      • setRepeatedField

        public Attachment.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   int index,
                                                   Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
      • addRepeatedField

        public Attachment.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Attachment.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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;
      • 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.
      • setUnknownFields

        public final Attachment.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>
      • mergeUnknownFields

        public final Attachment.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Attachment.Builder>