Class ConfigSync.Builder (1.21.0)

public static final class ConfigSync.Builder extends GeneratedMessageV3.Builder<ConfigSync.Builder> implements ConfigSyncOrBuilder

Configuration for Config Sync

Protobuf type google.cloud.gkehub.configmanagement.v1.ConfigSync

Implements

ConfigSyncOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ConfigSync.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ConfigSync.Builder
Overrides

build()

public ConfigSync build()
Returns
TypeDescription
ConfigSync

buildPartial()

public ConfigSync buildPartial()
Returns
TypeDescription
ConfigSync

clear()

public ConfigSync.Builder clear()
Returns
TypeDescription
ConfigSync.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ConfigSync.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ConfigSync.Builder
Overrides

clearGit()

public ConfigSync.Builder clearGit()

Git repo configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.GitConfig git = 7;

Returns
TypeDescription
ConfigSync.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ConfigSync.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ConfigSync.Builder
Overrides

clearSourceFormat()

public ConfigSync.Builder clearSourceFormat()

Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode.

string source_format = 8;

Returns
TypeDescription
ConfigSync.Builder

This builder for chaining.

clone()

public ConfigSync.Builder clone()
Returns
TypeDescription
ConfigSync.Builder
Overrides

getDefaultInstanceForType()

public ConfigSync getDefaultInstanceForType()
Returns
TypeDescription
ConfigSync

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGit()

public GitConfig getGit()

Git repo configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.GitConfig git = 7;

Returns
TypeDescription
GitConfig

The git.

getGitBuilder()

public GitConfig.Builder getGitBuilder()

Git repo configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.GitConfig git = 7;

Returns
TypeDescription
GitConfig.Builder

getGitOrBuilder()

public GitConfigOrBuilder getGitOrBuilder()

Git repo configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.GitConfig git = 7;

Returns
TypeDescription
GitConfigOrBuilder

getSourceFormat()

public String getSourceFormat()

Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode.

string source_format = 8;

Returns
TypeDescription
String

The sourceFormat.

getSourceFormatBytes()

public ByteString getSourceFormatBytes()

Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode.

string source_format = 8;

Returns
TypeDescription
ByteString

The bytes for sourceFormat.

hasGit()

public boolean hasGit()

Git repo configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.GitConfig git = 7;

Returns
TypeDescription
boolean

Whether the git field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ConfigSync other)

public ConfigSync.Builder mergeFrom(ConfigSync other)
Parameter
NameDescription
otherConfigSync
Returns
TypeDescription
ConfigSync.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ConfigSync.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConfigSync.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ConfigSync.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ConfigSync.Builder
Overrides

mergeGit(GitConfig value)

public ConfigSync.Builder mergeGit(GitConfig value)

Git repo configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.GitConfig git = 7;

Parameter
NameDescription
valueGitConfig
Returns
TypeDescription
ConfigSync.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ConfigSync.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConfigSync.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ConfigSync.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ConfigSync.Builder
Overrides

setGit(GitConfig value)

public ConfigSync.Builder setGit(GitConfig value)

Git repo configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.GitConfig git = 7;

Parameter
NameDescription
valueGitConfig
Returns
TypeDescription
ConfigSync.Builder

setGit(GitConfig.Builder builderForValue)

public ConfigSync.Builder setGit(GitConfig.Builder builderForValue)

Git repo configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1.GitConfig git = 7;

Parameter
NameDescription
builderForValueGitConfig.Builder
Returns
TypeDescription
ConfigSync.Builder

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

public ConfigSync.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ConfigSync.Builder
Overrides

setSourceFormat(String value)

public ConfigSync.Builder setSourceFormat(String value)

Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode.

string source_format = 8;

Parameter
NameDescription
valueString

The sourceFormat to set.

Returns
TypeDescription
ConfigSync.Builder

This builder for chaining.

setSourceFormatBytes(ByteString value)

public ConfigSync.Builder setSourceFormatBytes(ByteString value)

Specifies whether the Config Sync Repo is in “hierarchical” or “unstructured” mode.

string source_format = 8;

Parameter
NameDescription
valueByteString

The bytes for sourceFormat to set.

Returns
TypeDescription
ConfigSync.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ConfigSync.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ConfigSync.Builder
Overrides