Class GcsDestination.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GcsDestination.Builder>
com.google.cloud.asset.v1.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.GeneratedMessage.Builder<GcsDestination.Builder> implements GcsDestinationOrBuilder
 A Cloud Storage location.
 
Protobuf type google.cloud.asset.v1.GcsDestination
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
     
    The URI of the Cloud Storage object.
    The URI prefix of all generated Cloud Storage objects.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
     
    The URI of the Cloud Storage object.
    com.google.protobuf.ByteString
    The URI of the Cloud Storage object.
    The URI prefix of all generated Cloud Storage objects.
    com.google.protobuf.ByteString
    The URI prefix of all generated Cloud Storage objects.
    boolean
    The URI of the Cloud Storage object.
    boolean
    The URI prefix of all generated Cloud Storage objects.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setUri(String value)
    The URI of the Cloud Storage object.
    setUriBytes(com.google.protobuf.ByteString value)
    The URI of the Cloud Storage object.
    The URI prefix of all generated Cloud Storage objects.
    setUriPrefixBytes(com.google.protobuf.ByteString value)
    The URI prefix of all generated Cloud Storage objects.

    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<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.GeneratedMessage.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.GeneratedMessage.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
    • 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>
    • mergeFrom

      public GcsDestination.Builder mergeFrom(GcsDestination other)
    • isInitialized

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

      public GcsDestination.ObjectUriCase getObjectUriCase()
      Specified by:
      getObjectUriCase in interface GcsDestinationOrBuilder
    • clearObjectUri

      public GcsDestination.Builder clearObjectUri()
    • 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.
      
       If the specified Cloud Storage object already exists and there is no
       [hold](https://cloud.google.com/storage/docs/object-holds), it will be
       overwritten with the exported result.
       
      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.
      
       If the specified Cloud Storage object already exists and there is no
       [hold](https://cloud.google.com/storage/docs/object-holds), it will be
       overwritten with the exported result.
       
      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.
      
       If the specified Cloud Storage object already exists and there is no
       [hold](https://cloud.google.com/storage/docs/object-holds), it will be
       overwritten with the exported result.
       
      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.
      
       If the specified Cloud Storage object already exists and there is no
       [hold](https://cloud.google.com/storage/docs/object-holds), it will be
       overwritten with the exported result.
       
      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.
      
       If the specified Cloud Storage object already exists and there is no
       [hold](https://cloud.google.com/storage/docs/object-holds), it will be
       overwritten with the exported result.
       
      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.
      
       If the specified Cloud Storage object already exists and there is no
       [hold](https://cloud.google.com/storage/docs/object-holds), it will be
       overwritten with the exported result.
       
      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.