Class StorageCredential.Builder

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

public static final class StorageCredential.Builder extends com.google.protobuf.GeneratedMessage.Builder<StorageCredential.Builder> implements StorageCredentialOrBuilder
 The storage credential for a path in the table.
 
Protobuf type google.cloud.biglake.v1.StorageCredential
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<StorageCredential.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<StorageCredential.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<StorageCredential.Builder>
    • clear

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

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

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

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

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

      public StorageCredential.Builder mergeFrom(StorageCredential other)
    • isInitialized

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

      public StorageCredential.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<StorageCredential.Builder>
      Throws:
      IOException
    • getPrefix

      public String getPrefix()
       Indicates a storage location prefix where the credential is relevant.
       
      string prefix = 1;
      Specified by:
      getPrefix in interface StorageCredentialOrBuilder
      Returns:
      The prefix.
    • getPrefixBytes

      public com.google.protobuf.ByteString getPrefixBytes()
       Indicates a storage location prefix where the credential is relevant.
       
      string prefix = 1;
      Specified by:
      getPrefixBytes in interface StorageCredentialOrBuilder
      Returns:
      The bytes for prefix.
    • setPrefix

      public StorageCredential.Builder setPrefix(String value)
       Indicates a storage location prefix where the credential is relevant.
       
      string prefix = 1;
      Parameters:
      value - The prefix to set.
      Returns:
      This builder for chaining.
    • clearPrefix

      public StorageCredential.Builder clearPrefix()
       Indicates a storage location prefix where the credential is relevant.
       
      string prefix = 1;
      Returns:
      This builder for chaining.
    • setPrefixBytes

      public StorageCredential.Builder setPrefixBytes(com.google.protobuf.ByteString value)
       Indicates a storage location prefix where the credential is relevant.
       
      string prefix = 1;
      Parameters:
      value - The bytes for prefix to set.
      Returns:
      This builder for chaining.
    • getConfigCount

      public int getConfigCount()
      Description copied from interface: StorageCredentialOrBuilder
       The credentials for the storage location. The keys that are populated are:
       - `gcs.oauth2.token`
       - `gcs.oauth2.token_expires_at`
       - `expiration-time` (to support federation from Polaris).
       
      map<string, string> config = 2;
      Specified by:
      getConfigCount in interface StorageCredentialOrBuilder
    • containsConfig

      public boolean containsConfig(String key)
       The credentials for the storage location. The keys that are populated are:
       - `gcs.oauth2.token`
       - `gcs.oauth2.token_expires_at`
       - `expiration-time` (to support federation from Polaris).
       
      map<string, string> config = 2;
      Specified by:
      containsConfig in interface StorageCredentialOrBuilder
    • getConfig

      @Deprecated public Map<String,String> getConfig()
      Deprecated.
      Use getConfigMap() instead.
      Specified by:
      getConfig in interface StorageCredentialOrBuilder
    • getConfigMap

      public Map<String,String> getConfigMap()
       The credentials for the storage location. The keys that are populated are:
       - `gcs.oauth2.token`
       - `gcs.oauth2.token_expires_at`
       - `expiration-time` (to support federation from Polaris).
       
      map<string, string> config = 2;
      Specified by:
      getConfigMap in interface StorageCredentialOrBuilder
    • getConfigOrDefault

      public String getConfigOrDefault(String key, String defaultValue)
       The credentials for the storage location. The keys that are populated are:
       - `gcs.oauth2.token`
       - `gcs.oauth2.token_expires_at`
       - `expiration-time` (to support federation from Polaris).
       
      map<string, string> config = 2;
      Specified by:
      getConfigOrDefault in interface StorageCredentialOrBuilder
    • getConfigOrThrow

      public String getConfigOrThrow(String key)
       The credentials for the storage location. The keys that are populated are:
       - `gcs.oauth2.token`
       - `gcs.oauth2.token_expires_at`
       - `expiration-time` (to support federation from Polaris).
       
      map<string, string> config = 2;
      Specified by:
      getConfigOrThrow in interface StorageCredentialOrBuilder
    • clearConfig

      public StorageCredential.Builder clearConfig()
    • removeConfig

      public StorageCredential.Builder removeConfig(String key)
       The credentials for the storage location. The keys that are populated are:
       - `gcs.oauth2.token`
       - `gcs.oauth2.token_expires_at`
       - `expiration-time` (to support federation from Polaris).
       
      map<string, string> config = 2;
    • getMutableConfig

      @Deprecated public Map<String,String> getMutableConfig()
      Deprecated.
      Use alternate mutation accessors instead.
    • putConfig

      public StorageCredential.Builder putConfig(String key, String value)
       The credentials for the storage location. The keys that are populated are:
       - `gcs.oauth2.token`
       - `gcs.oauth2.token_expires_at`
       - `expiration-time` (to support federation from Polaris).
       
      map<string, string> config = 2;
    • putAllConfig

      public StorageCredential.Builder putAllConfig(Map<String,String> values)
       The credentials for the storage location. The keys that are populated are:
       - `gcs.oauth2.token`
       - `gcs.oauth2.token_expires_at`
       - `expiration-time` (to support federation from Polaris).
       
      map<string, string> config = 2;