Class StorageCredential.Builder (0.62.0)

public static final class StorageCredential.Builder extends GeneratedMessageV3.Builder<StorageCredential.Builder> implements StorageCredentialOrBuilder

The storage credential for a path in the table.

Protobuf type google.cloud.biglake.v1.StorageCredential

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StorageCredential.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StorageCredential.Builder
Overrides

build()

public StorageCredential build()
Returns
Type Description
StorageCredential

buildPartial()

public StorageCredential buildPartial()
Returns
Type Description
StorageCredential

clear()

public StorageCredential.Builder clear()
Returns
Type Description
StorageCredential.Builder
Overrides

clearConfig()

public StorageCredential.Builder clearConfig()
Returns
Type Description
StorageCredential.Builder

clearField(Descriptors.FieldDescriptor field)

public StorageCredential.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StorageCredential.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StorageCredential.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StorageCredential.Builder
Overrides

clearPrefix()

public StorageCredential.Builder clearPrefix()

Indicates a storage location prefix where the credential is relevant.

string prefix = 1;

Returns
Type Description
StorageCredential.Builder

This builder for chaining.

clone()

public StorageCredential.Builder clone()
Returns
Type Description
StorageCredential.Builder
Overrides

containsConfig(String key)

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;

Parameter
Name Description
key String
Returns
Type Description
boolean

getConfig() (deprecated)

public Map<String,String> getConfig()

Use #getConfigMap() instead.

Returns
Type Description
Map<String,String>

getConfigCount()

public int getConfigCount()

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;

Returns
Type Description
int

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;

Returns
Type Description
Map<String,String>

getConfigOrDefault(String key, String defaultValue)

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;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getConfigOrThrow(String key)

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;

Parameter
Name Description
key String
Returns
Type Description
String

getDefaultInstanceForType()

public StorageCredential getDefaultInstanceForType()
Returns
Type Description
StorageCredential

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutableConfig() (deprecated)

public Map<String,String> getMutableConfig()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getPrefix()

public String getPrefix()

Indicates a storage location prefix where the credential is relevant.

string prefix = 1;

Returns
Type Description
String

The prefix.

getPrefixBytes()

public ByteString getPrefixBytes()

Indicates a storage location prefix where the credential is relevant.

string prefix = 1;

Returns
Type Description
ByteString

The bytes for prefix.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StorageCredential other)

public StorageCredential.Builder mergeFrom(StorageCredential other)
Parameter
Name Description
other StorageCredential
Returns
Type Description
StorageCredential.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StorageCredential.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StorageCredential.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StorageCredential.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StorageCredential.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StorageCredential.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StorageCredential.Builder
Overrides

putAllConfig(Map<String,String> values)

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;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
StorageCredential.Builder

putConfig(String key, String value)

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;

Parameters
Name Description
key String
value String
Returns
Type Description
StorageCredential.Builder

removeConfig(String key)

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;

Parameter
Name Description
key String
Returns
Type Description
StorageCredential.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public StorageCredential.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StorageCredential.Builder
Overrides

setPrefix(String value)

public StorageCredential.Builder setPrefix(String value)

Indicates a storage location prefix where the credential is relevant.

string prefix = 1;

Parameter
Name Description
value String

The prefix to set.

Returns
Type Description
StorageCredential.Builder

This builder for chaining.

setPrefixBytes(ByteString value)

public StorageCredential.Builder setPrefixBytes(ByteString value)

Indicates a storage location prefix where the credential is relevant.

string prefix = 1;

Parameter
Name Description
value ByteString

The bytes for prefix to set.

Returns
Type Description
StorageCredential.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public StorageCredential.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StorageCredential.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StorageCredential.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StorageCredential.Builder
Overrides