Class GcsDestination.Builder

  • All Implemented Interfaces:
    GcsDestinationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    GcsDestination

    public static final class GcsDestination.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<GcsDestination.Builder>
    implements GcsDestinationOrBuilder
     The Google Cloud Storage location where the output will be written to.
     
    Protobuf type google.cloud.vision.v1p4beta1.GcsDestination
    • 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<GcsDestination.Builder>
      • clear

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

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

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

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

        public GcsDestination.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<GcsDestination.Builder>
      • setField

        public GcsDestination.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<GcsDestination.Builder>
      • clearField

        public GcsDestination.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<GcsDestination.Builder>
      • clearOneof

        public GcsDestination.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<GcsDestination.Builder>
      • setRepeatedField

        public GcsDestination.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<GcsDestination.Builder>
      • addRepeatedField

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

        public GcsDestination.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<GcsDestination.Builder>
      • isInitialized

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

        public GcsDestination.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<GcsDestination.Builder>
        Throws:
        IOException
      • getUri

        public String getUri()
         Google Cloud Storage URI prefix where the results will be stored. Results
         will be in JSON format and preceded by its corresponding input URI prefix.
         This field can either represent a gcs file prefix or gcs directory. In
         either case, the uri should be unique because in order to get all of the
         output files, you will need to do a wildcard gcs search on the uri prefix
         you provide.
        
         Examples:
        
         *    File Prefix: gs://bucket-name/here/filenameprefix   The output files
         will be created in gs://bucket-name/here/ and the names of the
         output files will begin with "filenameprefix".
        
         *    Directory Prefix: gs://bucket-name/some/location/   The output files
         will be created in gs://bucket-name/some/location/ and the names of the
         output files could be anything because there was no filename prefix
         specified.
        
         If multiple outputs, each response is still AnnotateFileResponse, each of
         which contains some subset of the full list of AnnotateImageResponse.
         Multiple outputs can happen if, for example, the output JSON is too large
         and overflows into multiple sharded files.
         
        string uri = 1;
        Specified by:
        getUri in interface GcsDestinationOrBuilder
        Returns:
        The uri.
      • getUriBytes

        public com.google.protobuf.ByteString getUriBytes()
         Google Cloud Storage URI prefix where the results will be stored. Results
         will be in JSON format and preceded by its corresponding input URI prefix.
         This field can either represent a gcs file prefix or gcs directory. In
         either case, the uri should be unique because in order to get all of the
         output files, you will need to do a wildcard gcs search on the uri prefix
         you provide.
        
         Examples:
        
         *    File Prefix: gs://bucket-name/here/filenameprefix   The output files
         will be created in gs://bucket-name/here/ and the names of the
         output files will begin with "filenameprefix".
        
         *    Directory Prefix: gs://bucket-name/some/location/   The output files
         will be created in gs://bucket-name/some/location/ and the names of the
         output files could be anything because there was no filename prefix
         specified.
        
         If multiple outputs, each response is still AnnotateFileResponse, each of
         which contains some subset of the full list of AnnotateImageResponse.
         Multiple outputs can happen if, for example, the output JSON is too large
         and overflows into multiple sharded files.
         
        string uri = 1;
        Specified by:
        getUriBytes in interface GcsDestinationOrBuilder
        Returns:
        The bytes for uri.
      • setUri

        public GcsDestination.Builder setUri​(String value)
         Google Cloud Storage URI prefix where the results will be stored. Results
         will be in JSON format and preceded by its corresponding input URI prefix.
         This field can either represent a gcs file prefix or gcs directory. In
         either case, the uri should be unique because in order to get all of the
         output files, you will need to do a wildcard gcs search on the uri prefix
         you provide.
        
         Examples:
        
         *    File Prefix: gs://bucket-name/here/filenameprefix   The output files
         will be created in gs://bucket-name/here/ and the names of the
         output files will begin with "filenameprefix".
        
         *    Directory Prefix: gs://bucket-name/some/location/   The output files
         will be created in gs://bucket-name/some/location/ and the names of the
         output files could be anything because there was no filename prefix
         specified.
        
         If multiple outputs, each response is still AnnotateFileResponse, each of
         which contains some subset of the full list of AnnotateImageResponse.
         Multiple outputs can happen if, for example, the output JSON is too large
         and overflows into multiple sharded files.
         
        string uri = 1;
        Parameters:
        value - The uri to set.
        Returns:
        This builder for chaining.
      • clearUri

        public GcsDestination.Builder clearUri()
         Google Cloud Storage URI prefix where the results will be stored. Results
         will be in JSON format and preceded by its corresponding input URI prefix.
         This field can either represent a gcs file prefix or gcs directory. In
         either case, the uri should be unique because in order to get all of the
         output files, you will need to do a wildcard gcs search on the uri prefix
         you provide.
        
         Examples:
        
         *    File Prefix: gs://bucket-name/here/filenameprefix   The output files
         will be created in gs://bucket-name/here/ and the names of the
         output files will begin with "filenameprefix".
        
         *    Directory Prefix: gs://bucket-name/some/location/   The output files
         will be created in gs://bucket-name/some/location/ and the names of the
         output files could be anything because there was no filename prefix
         specified.
        
         If multiple outputs, each response is still AnnotateFileResponse, each of
         which contains some subset of the full list of AnnotateImageResponse.
         Multiple outputs can happen if, for example, the output JSON is too large
         and overflows into multiple sharded files.
         
        string uri = 1;
        Returns:
        This builder for chaining.
      • setUriBytes

        public GcsDestination.Builder setUriBytes​(com.google.protobuf.ByteString value)
         Google Cloud Storage URI prefix where the results will be stored. Results
         will be in JSON format and preceded by its corresponding input URI prefix.
         This field can either represent a gcs file prefix or gcs directory. In
         either case, the uri should be unique because in order to get all of the
         output files, you will need to do a wildcard gcs search on the uri prefix
         you provide.
        
         Examples:
        
         *    File Prefix: gs://bucket-name/here/filenameprefix   The output files
         will be created in gs://bucket-name/here/ and the names of the
         output files will begin with "filenameprefix".
        
         *    Directory Prefix: gs://bucket-name/some/location/   The output files
         will be created in gs://bucket-name/some/location/ and the names of the
         output files could be anything because there was no filename prefix
         specified.
        
         If multiple outputs, each response is still AnnotateFileResponse, each of
         which contains some subset of the full list of AnnotateImageResponse.
         Multiple outputs can happen if, for example, the output JSON is too large
         and overflows into multiple sharded files.
         
        string uri = 1;
        Parameters:
        value - The bytes for uri to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final GcsDestination.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<GcsDestination.Builder>
      • mergeUnknownFields

        public final GcsDestination.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<GcsDestination.Builder>