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
     A Cloud Storage location.
     
    Protobuf type google.cloud.asset.v1p7beta1.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
      • hasUri

        public boolean hasUri()
         The URI of the Cloud Storage object. It's the same URI that is used by
         gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
         Editing Object
         Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
         for more information.
         
        string uri = 1;
        Specified by:
        hasUri in interface GcsDestinationOrBuilder
        Returns:
        Whether the uri field is set.
      • getUri

        public String getUri()
         The URI of the Cloud Storage object. It's the same URI that is used by
         gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
         Editing Object
         Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
         for more information.
         
        string uri = 1;
        Specified by:
        getUri in interface GcsDestinationOrBuilder
        Returns:
        The uri.
      • getUriBytes

        public com.google.protobuf.ByteString getUriBytes()
         The URI of the Cloud Storage object. It's the same URI that is used by
         gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
         Editing Object
         Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
         for more information.
         
        string uri = 1;
        Specified by:
        getUriBytes in interface GcsDestinationOrBuilder
        Returns:
        The bytes for uri.
      • setUri

        public GcsDestination.Builder setUri​(String value)
         The URI of the Cloud Storage object. It's the same URI that is used by
         gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
         Editing Object
         Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
         for more information.
         
        string uri = 1;
        Parameters:
        value - The uri to set.
        Returns:
        This builder for chaining.
      • clearUri

        public GcsDestination.Builder clearUri()
         The URI of the Cloud Storage object. It's the same URI that is used by
         gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
         Editing Object
         Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
         for more information.
         
        string uri = 1;
        Returns:
        This builder for chaining.
      • setUriBytes

        public GcsDestination.Builder setUriBytes​(com.google.protobuf.ByteString value)
         The URI of the Cloud Storage object. It's the same URI that is used by
         gsutil. Example: "gs://bucket_name/object_name". See [Viewing and
         Editing Object
         Metadata](https://cloud.google.com/storage/docs/viewing-editing-metadata)
         for more information.
         
        string uri = 1;
        Parameters:
        value - The bytes for uri to set.
        Returns:
        This builder for chaining.
      • hasUriPrefix

        public boolean hasUriPrefix()
         The URI prefix of all generated Cloud Storage objects. Example:
         "gs://bucket_name/object_name_prefix". Each object URI is in format:
         "gs://bucket_name/object_name_prefix/{ASSET_TYPE}/{SHARD_NUMBER} and only
         contains assets for that type. <shard number> starts from 0. Example:
         "gs://bucket_name/object_name_prefix/compute.googleapis.com/Disk/0" is
         the first shard of output objects containing all
         compute.googleapis.com/Disk assets. An INVALID_ARGUMENT error will be
         returned if file with the same name "gs://bucket_name/object_name_prefix"
         already exists.
         
        string uri_prefix = 2;
        Specified by:
        hasUriPrefix in interface GcsDestinationOrBuilder
        Returns:
        Whether the uriPrefix field is set.
      • getUriPrefix

        public String getUriPrefix()
         The URI prefix of all generated Cloud Storage objects. Example:
         "gs://bucket_name/object_name_prefix". Each object URI is in format:
         "gs://bucket_name/object_name_prefix/{ASSET_TYPE}/{SHARD_NUMBER} and only
         contains assets for that type. <shard number> starts from 0. Example:
         "gs://bucket_name/object_name_prefix/compute.googleapis.com/Disk/0" is
         the first shard of output objects containing all
         compute.googleapis.com/Disk assets. An INVALID_ARGUMENT error will be
         returned if file with the same name "gs://bucket_name/object_name_prefix"
         already exists.
         
        string uri_prefix = 2;
        Specified by:
        getUriPrefix in interface GcsDestinationOrBuilder
        Returns:
        The uriPrefix.
      • getUriPrefixBytes

        public com.google.protobuf.ByteString getUriPrefixBytes()
         The URI prefix of all generated Cloud Storage objects. Example:
         "gs://bucket_name/object_name_prefix". Each object URI is in format:
         "gs://bucket_name/object_name_prefix/{ASSET_TYPE}/{SHARD_NUMBER} and only
         contains assets for that type. <shard number> starts from 0. Example:
         "gs://bucket_name/object_name_prefix/compute.googleapis.com/Disk/0" is
         the first shard of output objects containing all
         compute.googleapis.com/Disk assets. An INVALID_ARGUMENT error will be
         returned if file with the same name "gs://bucket_name/object_name_prefix"
         already exists.
         
        string uri_prefix = 2;
        Specified by:
        getUriPrefixBytes in interface GcsDestinationOrBuilder
        Returns:
        The bytes for uriPrefix.
      • setUriPrefix

        public GcsDestination.Builder setUriPrefix​(String value)
         The URI prefix of all generated Cloud Storage objects. Example:
         "gs://bucket_name/object_name_prefix". Each object URI is in format:
         "gs://bucket_name/object_name_prefix/{ASSET_TYPE}/{SHARD_NUMBER} and only
         contains assets for that type. <shard number> starts from 0. Example:
         "gs://bucket_name/object_name_prefix/compute.googleapis.com/Disk/0" is
         the first shard of output objects containing all
         compute.googleapis.com/Disk assets. An INVALID_ARGUMENT error will be
         returned if file with the same name "gs://bucket_name/object_name_prefix"
         already exists.
         
        string uri_prefix = 2;
        Parameters:
        value - The uriPrefix to set.
        Returns:
        This builder for chaining.
      • clearUriPrefix

        public GcsDestination.Builder clearUriPrefix()
         The URI prefix of all generated Cloud Storage objects. Example:
         "gs://bucket_name/object_name_prefix". Each object URI is in format:
         "gs://bucket_name/object_name_prefix/{ASSET_TYPE}/{SHARD_NUMBER} and only
         contains assets for that type. <shard number> starts from 0. Example:
         "gs://bucket_name/object_name_prefix/compute.googleapis.com/Disk/0" is
         the first shard of output objects containing all
         compute.googleapis.com/Disk assets. An INVALID_ARGUMENT error will be
         returned if file with the same name "gs://bucket_name/object_name_prefix"
         already exists.
         
        string uri_prefix = 2;
        Returns:
        This builder for chaining.
      • setUriPrefixBytes

        public GcsDestination.Builder setUriPrefixBytes​(com.google.protobuf.ByteString value)
         The URI prefix of all generated Cloud Storage objects. Example:
         "gs://bucket_name/object_name_prefix". Each object URI is in format:
         "gs://bucket_name/object_name_prefix/{ASSET_TYPE}/{SHARD_NUMBER} and only
         contains assets for that type. <shard number> starts from 0. Example:
         "gs://bucket_name/object_name_prefix/compute.googleapis.com/Disk/0" is
         the first shard of output objects containing all
         compute.googleapis.com/Disk assets. An INVALID_ARGUMENT error will be
         returned if file with the same name "gs://bucket_name/object_name_prefix"
         already exists.
         
        string uri_prefix = 2;
        Parameters:
        value - The bytes for uriPrefix 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>