Class ConfigSync.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ConfigSync.Builder>
com.google.cloud.gkehub.configmanagement.v1.ConfigSync.Builder
- All Implemented Interfaces:
ConfigSyncOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ConfigSync
public static final class ConfigSync.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ConfigSync.Builder>
implements ConfigSyncOrBuilder
Configuration for Config SyncProtobuf type
google.cloud.gkehub.configmanagement.v1.ConfigSync-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Enables the installation of ConfigSync.clearGit()Git repo configuration for the cluster.The Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring when Workload Identity is enabled.clearOci()OCI repo configuration for the clusterSet to true to enable the Config Sync admission webhook to prevent drifts.Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanEnables the installation of ConfigSync.getGit()Git repo configuration for the cluster.Git repo configuration for the cluster.Git repo configuration for the cluster.The Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring when Workload Identity is enabled.com.google.protobuf.ByteStringThe Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring when Workload Identity is enabled.getOci()OCI repo configuration for the clusterOCI repo configuration for the clusterOCI repo configuration for the clusterbooleanSet to true to enable the Config Sync admission webhook to prevent drifts.Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode.com.google.protobuf.ByteStringSpecifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode.booleanEnables the installation of ConfigSync.booleanhasGit()Git repo configuration for the cluster.booleanhasOci()OCI repo configuration for the clusterprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ConfigSync other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Git repo configuration for the cluster.OCI repo configuration for the clustersetEnabled(boolean value) Enables the installation of ConfigSync.Git repo configuration for the cluster.setGit(GitConfig.Builder builderForValue) Git repo configuration for the cluster.The Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring when Workload Identity is enabled.setMetricsGcpServiceAccountEmailBytes(com.google.protobuf.ByteString value) The Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring when Workload Identity is enabled.OCI repo configuration for the clustersetOci(OciConfig.Builder builderForValue) OCI repo configuration for the clustersetPreventDrift(boolean value) Set to true to enable the Config Sync admission webhook to prevent drifts.setSourceFormat(String value) Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode.setSourceFormatBytes(com.google.protobuf.ByteString value) Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ConfigSync.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ConfigSync.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ConfigSync.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConfigSync.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ConfigSync.Builder>
-
mergeFrom
public ConfigSync.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConfigSync.Builder>- Throws:
IOException
-
hasGit
public boolean hasGit()Git repo configuration for the cluster.
.google.cloud.gkehub.configmanagement.v1.GitConfig git = 7;- Specified by:
hasGitin interfaceConfigSyncOrBuilder- Returns:
- Whether the git field is set.
-
getGit
Git repo configuration for the cluster.
.google.cloud.gkehub.configmanagement.v1.GitConfig git = 7;- Specified by:
getGitin interfaceConfigSyncOrBuilder- Returns:
- The git.
-
setGit
Git repo configuration for the cluster.
.google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; -
setGit
Git repo configuration for the cluster.
.google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; -
mergeGit
Git repo configuration for the cluster.
.google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; -
clearGit
Git repo configuration for the cluster.
.google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; -
getGitBuilder
Git repo configuration for the cluster.
.google.cloud.gkehub.configmanagement.v1.GitConfig git = 7; -
getGitOrBuilder
Git repo configuration for the cluster.
.google.cloud.gkehub.configmanagement.v1.GitConfig git = 7;- Specified by:
getGitOrBuilderin interfaceConfigSyncOrBuilder
-
getSourceFormat
Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode.
string source_format = 8;- Specified by:
getSourceFormatin interfaceConfigSyncOrBuilder- Returns:
- The sourceFormat.
-
getSourceFormatBytes
public com.google.protobuf.ByteString getSourceFormatBytes()Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode.
string source_format = 8;- Specified by:
getSourceFormatBytesin interfaceConfigSyncOrBuilder- Returns:
- The bytes for sourceFormat.
-
setSourceFormat
Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode.
string source_format = 8;- Parameters:
value- The sourceFormat to set.- Returns:
- This builder for chaining.
-
clearSourceFormat
Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode.
string source_format = 8;- Returns:
- This builder for chaining.
-
setSourceFormatBytes
Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode.
string source_format = 8;- Parameters:
value- The bytes for sourceFormat to set.- Returns:
- This builder for chaining.
-
hasEnabled
public boolean hasEnabled()Enables the installation of ConfigSync. If set to true, ConfigSync resources will be created and the other ConfigSync fields will be applied if exist. If set to false, all other ConfigSync fields will be ignored, ConfigSync resources will be deleted. If omitted, ConfigSync resources will be managed depends on the presence of the git or oci field.
optional bool enabled = 10;- Specified by:
hasEnabledin interfaceConfigSyncOrBuilder- Returns:
- Whether the enabled field is set.
-
getEnabled
public boolean getEnabled()Enables the installation of ConfigSync. If set to true, ConfigSync resources will be created and the other ConfigSync fields will be applied if exist. If set to false, all other ConfigSync fields will be ignored, ConfigSync resources will be deleted. If omitted, ConfigSync resources will be managed depends on the presence of the git or oci field.
optional bool enabled = 10;- Specified by:
getEnabledin interfaceConfigSyncOrBuilder- Returns:
- The enabled.
-
setEnabled
Enables the installation of ConfigSync. If set to true, ConfigSync resources will be created and the other ConfigSync fields will be applied if exist. If set to false, all other ConfigSync fields will be ignored, ConfigSync resources will be deleted. If omitted, ConfigSync resources will be managed depends on the presence of the git or oci field.
optional bool enabled = 10;- Parameters:
value- The enabled to set.- Returns:
- This builder for chaining.
-
clearEnabled
Enables the installation of ConfigSync. If set to true, ConfigSync resources will be created and the other ConfigSync fields will be applied if exist. If set to false, all other ConfigSync fields will be ignored, ConfigSync resources will be deleted. If omitted, ConfigSync resources will be managed depends on the presence of the git or oci field.
optional bool enabled = 10;- Returns:
- This builder for chaining.
-
getPreventDrift
public boolean getPreventDrift()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.
bool prevent_drift = 11;- Specified by:
getPreventDriftin interfaceConfigSyncOrBuilder- Returns:
- The preventDrift.
-
setPreventDrift
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.
bool prevent_drift = 11;- Parameters:
value- The preventDrift to set.- Returns:
- This builder for chaining.
-
clearPreventDrift
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.
bool prevent_drift = 11;- Returns:
- This builder for chaining.
-
hasOci
public boolean hasOci()OCI repo configuration for the cluster
.google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12;- Specified by:
hasOciin interfaceConfigSyncOrBuilder- Returns:
- Whether the oci field is set.
-
getOci
OCI repo configuration for the cluster
.google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12;- Specified by:
getOciin interfaceConfigSyncOrBuilder- Returns:
- The oci.
-
setOci
OCI repo configuration for the cluster
.google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12; -
setOci
OCI repo configuration for the cluster
.google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12; -
mergeOci
OCI repo configuration for the cluster
.google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12; -
clearOci
OCI repo configuration for the cluster
.google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12; -
getOciBuilder
OCI repo configuration for the cluster
.google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12; -
getOciOrBuilder
OCI repo configuration for the cluster
.google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12;- Specified by:
getOciOrBuilderin interfaceConfigSyncOrBuilder
-
getMetricsGcpServiceAccountEmail
The Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring when Workload Identity is enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be bound to the GSA.
string metrics_gcp_service_account_email = 15;- Specified by:
getMetricsGcpServiceAccountEmailin interfaceConfigSyncOrBuilder- Returns:
- The metricsGcpServiceAccountEmail.
-
getMetricsGcpServiceAccountEmailBytes
public com.google.protobuf.ByteString getMetricsGcpServiceAccountEmailBytes()The Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring when Workload Identity is enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be bound to the GSA.
string metrics_gcp_service_account_email = 15;- Specified by:
getMetricsGcpServiceAccountEmailBytesin interfaceConfigSyncOrBuilder- Returns:
- The bytes for metricsGcpServiceAccountEmail.
-
setMetricsGcpServiceAccountEmail
The Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring when Workload Identity is enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be bound to the GSA.
string metrics_gcp_service_account_email = 15;- Parameters:
value- The metricsGcpServiceAccountEmail to set.- Returns:
- This builder for chaining.
-
clearMetricsGcpServiceAccountEmail
The Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring when Workload Identity is enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be bound to the GSA.
string metrics_gcp_service_account_email = 15;- Returns:
- This builder for chaining.
-
setMetricsGcpServiceAccountEmailBytes
public ConfigSync.Builder setMetricsGcpServiceAccountEmailBytes(com.google.protobuf.ByteString value) The Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring when Workload Identity is enabled. The GSA should have the Monitoring Metric Writer (roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be bound to the GSA.
string metrics_gcp_service_account_email = 15;- Parameters:
value- The bytes for metricsGcpServiceAccountEmail to set.- Returns:
- This builder for chaining.
-