Class ConfigSync (1.87.0)

public final class ConfigSync extends GeneratedMessage implements ConfigSyncOrBuilder

Configuration for Config Sync

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

Implements

ConfigSyncOrBuilder

Static Fields

DEPLOYMENT_OVERRIDES_FIELD_NUMBER

public static final int DEPLOYMENT_OVERRIDES_FIELD_NUMBER
Field Value
Type Description
int

ENABLED_FIELD_NUMBER

public static final int ENABLED_FIELD_NUMBER
Field Value
Type Description
int

GIT_FIELD_NUMBER

public static final int GIT_FIELD_NUMBER
Field Value
Type Description
int

OCI_FIELD_NUMBER

public static final int OCI_FIELD_NUMBER
Field Value
Type Description
int

PREVENT_DRIFT_FIELD_NUMBER

public static final int PREVENT_DRIFT_FIELD_NUMBER
Field Value
Type Description
int

SOURCE_FORMAT_FIELD_NUMBER

public static final int SOURCE_FORMAT_FIELD_NUMBER
Field Value
Type Description
int

STOP_SYNCING_FIELD_NUMBER

public static final int STOP_SYNCING_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ConfigSync getDefaultInstance()
Returns
Type Description
ConfigSync

getDescriptor()

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

newBuilder()

public static ConfigSync.Builder newBuilder()
Returns
Type Description
ConfigSync.Builder

newBuilder(ConfigSync prototype)

public static ConfigSync.Builder newBuilder(ConfigSync prototype)
Parameter
Name Description
prototype ConfigSync
Returns
Type Description
ConfigSync.Builder

parseDelimitedFrom(InputStream input)

public static ConfigSync parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ConfigSync
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConfigSync parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConfigSync
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ConfigSync parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ConfigSync
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ConfigSync parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConfigSync
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ConfigSync parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ConfigSync
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ConfigSync parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConfigSync
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ConfigSync parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ConfigSync
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ConfigSync parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConfigSync
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ConfigSync parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ConfigSync
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConfigSync parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConfigSync
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ConfigSync parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ConfigSync
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ConfigSync parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ConfigSync
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ConfigSync> parser()
Returns
Type Description
Parser<ConfigSync>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public ConfigSync getDefaultInstanceForType()
Returns
Type Description
ConfigSync

getDeploymentOverrides(int index)

public DeploymentOverride getDeploymentOverrides(int index)

Optional. Configuration for deployment overrides. Applies only to Config Sync deployments with containers that are not a root or namespace reconciler: reconciler-manager, otel-collector, resource-group-controller-manager, admission-webhook. To override a root or namespace reconciler, use the rootsync or reposync fields at https://docs.cloud.google.com/kubernetes-engine/config-sync/docs/reference/rootsync-reposync-fields#override-resources instead.

repeated .google.cloud.gkehub.configmanagement.v1beta.DeploymentOverride deployment_overrides = 17 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
DeploymentOverride

getDeploymentOverridesCount()

public int getDeploymentOverridesCount()

Optional. Configuration for deployment overrides. Applies only to Config Sync deployments with containers that are not a root or namespace reconciler: reconciler-manager, otel-collector, resource-group-controller-manager, admission-webhook. To override a root or namespace reconciler, use the rootsync or reposync fields at https://docs.cloud.google.com/kubernetes-engine/config-sync/docs/reference/rootsync-reposync-fields#override-resources instead.

repeated .google.cloud.gkehub.configmanagement.v1beta.DeploymentOverride deployment_overrides = 17 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getDeploymentOverridesList()

public List<DeploymentOverride> getDeploymentOverridesList()

Optional. Configuration for deployment overrides. Applies only to Config Sync deployments with containers that are not a root or namespace reconciler: reconciler-manager, otel-collector, resource-group-controller-manager, admission-webhook. To override a root or namespace reconciler, use the rootsync or reposync fields at https://docs.cloud.google.com/kubernetes-engine/config-sync/docs/reference/rootsync-reposync-fields#override-resources instead.

repeated .google.cloud.gkehub.configmanagement.v1beta.DeploymentOverride deployment_overrides = 17 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<DeploymentOverride>

getDeploymentOverridesOrBuilder(int index)

public DeploymentOverrideOrBuilder getDeploymentOverridesOrBuilder(int index)

Optional. Configuration for deployment overrides. Applies only to Config Sync deployments with containers that are not a root or namespace reconciler: reconciler-manager, otel-collector, resource-group-controller-manager, admission-webhook. To override a root or namespace reconciler, use the rootsync or reposync fields at https://docs.cloud.google.com/kubernetes-engine/config-sync/docs/reference/rootsync-reposync-fields#override-resources instead.

repeated .google.cloud.gkehub.configmanagement.v1beta.DeploymentOverride deployment_overrides = 17 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
DeploymentOverrideOrBuilder

getDeploymentOverridesOrBuilderList()

public List<? extends DeploymentOverrideOrBuilder> getDeploymentOverridesOrBuilderList()

Optional. Configuration for deployment overrides. Applies only to Config Sync deployments with containers that are not a root or namespace reconciler: reconciler-manager, otel-collector, resource-group-controller-manager, admission-webhook. To override a root or namespace reconciler, use the rootsync or reposync fields at https://docs.cloud.google.com/kubernetes-engine/config-sync/docs/reference/rootsync-reposync-fields#override-resources instead.

repeated .google.cloud.gkehub.configmanagement.v1beta.DeploymentOverride deployment_overrides = 17 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.gkehub.configmanagement.v1beta.DeploymentOverrideOrBuilder>

getEnabled()

public boolean getEnabled()

Optional. Enables the installation of Config Sync. If set to true, the Feature will manage Config Sync resources, and apply the other ConfigSync fields if they exist. If set to false, the Feature will ignore all other ConfigSync fields and delete the Config Sync resources. If omitted, ConfigSync is considered enabled if the git or oci field is present.

optional bool enabled = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The enabled.

getGit()

public GitConfig getGit()

Optional. Git repo configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GitConfig

The git.

getGitOrBuilder()

public GitConfigOrBuilder getGitOrBuilder()

Optional. Git repo configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GitConfigOrBuilder

getOci()

public OciConfig getOci()

Optional. OCI repo configuration for the cluster

.google.cloud.gkehub.configmanagement.v1beta.OciConfig oci = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OciConfig

The oci.

getOciOrBuilder()

public OciConfigOrBuilder getOciOrBuilder()

Optional. OCI repo configuration for the cluster

.google.cloud.gkehub.configmanagement.v1beta.OciConfig oci = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
OciConfigOrBuilder

getParserForType()

public Parser<ConfigSync> getParserForType()
Returns
Type Description
Parser<ConfigSync>
Overrides

getPreventDrift()

public boolean getPreventDrift()

Optional. Set to true to enable the Config Sync admission webhook to prevent drifts. If set to false, disables the Config Sync admission webhook and does not prevent drifts. Defaults to false. See https://docs.cloud.google.com/kubernetes-engine/config-sync/docs/how-to/prevent-config-drift for details.

bool prevent_drift = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The preventDrift.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSourceFormat()

public String getSourceFormat()

Optional. Specifies whether the Config Sync repo is in hierarchical or unstructured mode. Defaults to hierarchical. See https://docs.cloud.google.com/kubernetes-engine/config-sync/docs/concepts/configs#organize-configs for an explanation.

string source_format = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The sourceFormat.

getSourceFormatBytes()

public ByteString getSourceFormatBytes()

Optional. Specifies whether the Config Sync repo is in hierarchical or unstructured mode. Defaults to hierarchical. See https://docs.cloud.google.com/kubernetes-engine/config-sync/docs/concepts/configs#organize-configs for an explanation.

string source_format = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for sourceFormat.

getStopSyncing()

public boolean getStopSyncing()

Optional. Set to true to stop syncing configs for a single cluster. Default to false.

bool stop_syncing = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The stopSyncing.

hasEnabled()

public boolean hasEnabled()

Optional. Enables the installation of Config Sync. If set to true, the Feature will manage Config Sync resources, and apply the other ConfigSync fields if they exist. If set to false, the Feature will ignore all other ConfigSync fields and delete the Config Sync resources. If omitted, ConfigSync is considered enabled if the git or oci field is present.

optional bool enabled = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the enabled field is set.

hasGit()

public boolean hasGit()

Optional. Git repo configuration for the cluster.

.google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the git field is set.

hasOci()

public boolean hasOci()

Optional. OCI repo configuration for the cluster

.google.cloud.gkehub.configmanagement.v1beta.OciConfig oci = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the oci field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ConfigSync.Builder newBuilderForType()
Returns
Type Description
ConfigSync.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected ConfigSync.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ConfigSync.Builder
Overrides

toBuilder()

public ConfigSync.Builder toBuilder()
Returns
Type Description
ConfigSync.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException