Class ProviderConfig.Builder (0.62.0)

public static final class ProviderConfig.Builder extends GeneratedMessage.Builder<ProviderConfig.Builder> implements ProviderConfigOrBuilder

ProviderConfig contains the provider configurations.

Protobuf type google.cloud.config.v1.ProviderConfig

Static Methods

getDescriptor()

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

Methods

build()

public ProviderConfig build()
Returns
Type Description
ProviderConfig

buildPartial()

public ProviderConfig buildPartial()
Returns
Type Description
ProviderConfig

clear()

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

clearSourceType()

public ProviderConfig.Builder clearSourceType()

Optional. ProviderSource specifies the source type of the provider.

optional .google.cloud.config.v1.ProviderConfig.ProviderSource source_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProviderConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public ProviderConfig getDefaultInstanceForType()
Returns
Type Description
ProviderConfig

getDescriptorForType()

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

getSourceType()

public ProviderConfig.ProviderSource getSourceType()

Optional. ProviderSource specifies the source type of the provider.

optional .google.cloud.config.v1.ProviderConfig.ProviderSource source_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProviderConfig.ProviderSource

The sourceType.

getSourceTypeValue()

public int getSourceTypeValue()

Optional. ProviderSource specifies the source type of the provider.

optional .google.cloud.config.v1.ProviderConfig.ProviderSource source_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for sourceType.

hasSourceType()

public boolean hasSourceType()

Optional. ProviderSource specifies the source type of the provider.

optional .google.cloud.config.v1.ProviderConfig.ProviderSource source_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the sourceType field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ProviderConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setSourceType(ProviderConfig.ProviderSource value)

public ProviderConfig.Builder setSourceType(ProviderConfig.ProviderSource value)

Optional. ProviderSource specifies the source type of the provider.

optional .google.cloud.config.v1.ProviderConfig.ProviderSource source_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ProviderConfig.ProviderSource

The sourceType to set.

Returns
Type Description
ProviderConfig.Builder

This builder for chaining.

setSourceTypeValue(int value)

public ProviderConfig.Builder setSourceTypeValue(int value)

Optional. ProviderSource specifies the source type of the provider.

optional .google.cloud.config.v1.ProviderConfig.ProviderSource source_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for sourceType to set.

Returns
Type Description
ProviderConfig.Builder

This builder for chaining.