- 1.54.0 (latest)
- 1.53.0
- 1.52.0
- 1.51.0
- 1.49.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.37.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.6
- 1.2.1
- 1.1.0
- 1.0.1
- 0.5.4
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ConfigSync.BuilderImplements
ConfigSyncOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ConfigSync.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ConfigSync.Builder |
build()
public ConfigSync build()
Returns | |
---|---|
Type | Description |
ConfigSync |
buildPartial()
public ConfigSync buildPartial()
Returns | |
---|---|
Type | Description |
ConfigSync |
clear()
public ConfigSync.Builder clear()
Returns | |
---|---|
Type | Description |
ConfigSync.Builder |
clearEnabled()
public ConfigSync.Builder 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 | |
---|---|
Type | Description |
ConfigSync.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public ConfigSync.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
ConfigSync.Builder |
clearGit()
public ConfigSync.Builder clearGit()
Git repo configuration for the cluster.
.google.cloud.gkehub.configmanagement.v1.GitConfig git = 7;
Returns | |
---|---|
Type | Description |
ConfigSync.Builder |
clearMetricsGcpServiceAccountEmail()
public ConfigSync.Builder 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 | |
---|---|
Type | Description |
ConfigSync.Builder |
This builder for chaining. |
clearOci()
public ConfigSync.Builder clearOci()
OCI repo configuration for the cluster
.google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12;
Returns | |
---|---|
Type | Description |
ConfigSync.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ConfigSync.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
ConfigSync.Builder |
clearPreventDrift()
public ConfigSync.Builder 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 | |
---|---|
Type | Description |
ConfigSync.Builder |
This builder for chaining. |
clearSourceFormat()
public ConfigSync.Builder clearSourceFormat()
Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode.
string source_format = 8;
Returns | |
---|---|
Type | Description |
ConfigSync.Builder |
This builder for chaining. |
clone()
public ConfigSync.Builder clone()
Returns | |
---|---|
Type | Description |
ConfigSync.Builder |
getDefaultInstanceForType()
public ConfigSync getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ConfigSync |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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;
Returns | |
---|---|
Type | Description |
boolean |
The enabled. |
getGit()
public GitConfig getGit()
Git repo configuration for the cluster.
.google.cloud.gkehub.configmanagement.v1.GitConfig git = 7;
Returns | |
---|---|
Type | Description |
GitConfig |
The git. |
getGitBuilder()
public GitConfig.Builder getGitBuilder()
Git repo configuration for the cluster.
.google.cloud.gkehub.configmanagement.v1.GitConfig git = 7;
Returns | |
---|---|
Type | Description |
GitConfig.Builder |
getGitOrBuilder()
public GitConfigOrBuilder getGitOrBuilder()
Git repo configuration for the cluster.
.google.cloud.gkehub.configmanagement.v1.GitConfig git = 7;
Returns | |
---|---|
Type | Description |
GitConfigOrBuilder |
getMetricsGcpServiceAccountEmail()
public String 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;
Returns | |
---|---|
Type | Description |
String |
The metricsGcpServiceAccountEmail. |
getMetricsGcpServiceAccountEmailBytes()
public 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;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for metricsGcpServiceAccountEmail. |
getOci()
public OciConfig getOci()
OCI repo configuration for the cluster
.google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12;
Returns | |
---|---|
Type | Description |
OciConfig |
The oci. |
getOciBuilder()
public OciConfig.Builder getOciBuilder()
OCI repo configuration for the cluster
.google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12;
Returns | |
---|---|
Type | Description |
OciConfig.Builder |
getOciOrBuilder()
public OciConfigOrBuilder getOciOrBuilder()
OCI repo configuration for the cluster
.google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12;
Returns | |
---|---|
Type | Description |
OciConfigOrBuilder |
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;
Returns | |
---|---|
Type | Description |
boolean |
The preventDrift. |
getSourceFormat()
public String getSourceFormat()
Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode.
string source_format = 8;
Returns | |
---|---|
Type | Description |
String |
The sourceFormat. |
getSourceFormatBytes()
public ByteString getSourceFormatBytes()
Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode.
string source_format = 8;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for sourceFormat. |
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;
Returns | |
---|---|
Type | Description |
boolean |
Whether the enabled field is set. |
hasGit()
public boolean hasGit()
Git repo configuration for the cluster.
.google.cloud.gkehub.configmanagement.v1.GitConfig git = 7;
Returns | |
---|---|
Type | Description |
boolean |
Whether the git field is set. |
hasOci()
public boolean hasOci()
OCI repo configuration for the cluster
.google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12;
Returns | |
---|---|
Type | Description |
boolean |
Whether the oci field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(ConfigSync other)
public ConfigSync.Builder mergeFrom(ConfigSync other)
Parameter | |
---|---|
Name | Description |
other |
ConfigSync |
Returns | |
---|---|
Type | Description |
ConfigSync.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ConfigSync.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ConfigSync.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ConfigSync.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
ConfigSync.Builder |
mergeGit(GitConfig value)
public ConfigSync.Builder mergeGit(GitConfig value)
Git repo configuration for the cluster.
.google.cloud.gkehub.configmanagement.v1.GitConfig git = 7;
Parameter | |
---|---|
Name | Description |
value |
GitConfig |
Returns | |
---|---|
Type | Description |
ConfigSync.Builder |
mergeOci(OciConfig value)
public ConfigSync.Builder mergeOci(OciConfig value)
OCI repo configuration for the cluster
.google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12;
Parameter | |
---|---|
Name | Description |
value |
OciConfig |
Returns | |
---|---|
Type | Description |
ConfigSync.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ConfigSync.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ConfigSync.Builder |
setEnabled(boolean value)
public ConfigSync.Builder setEnabled(boolean value)
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;
Parameter | |
---|---|
Name | Description |
value |
boolean The enabled to set. |
Returns | |
---|---|
Type | Description |
ConfigSync.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public ConfigSync.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ConfigSync.Builder |
setGit(GitConfig value)
public ConfigSync.Builder setGit(GitConfig value)
Git repo configuration for the cluster.
.google.cloud.gkehub.configmanagement.v1.GitConfig git = 7;
Parameter | |
---|---|
Name | Description |
value |
GitConfig |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
builderForValue |
GitConfig.Builder |
Returns | |
---|---|
Type | Description |
ConfigSync.Builder |
setMetricsGcpServiceAccountEmail(String value)
public ConfigSync.Builder setMetricsGcpServiceAccountEmail(String 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;
Parameter | |
---|---|
Name | Description |
value |
String The metricsGcpServiceAccountEmail to set. |
Returns | |
---|---|
Type | Description |
ConfigSync.Builder |
This builder for chaining. |
setMetricsGcpServiceAccountEmailBytes(ByteString value)
public ConfigSync.Builder setMetricsGcpServiceAccountEmailBytes(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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for metricsGcpServiceAccountEmail to set. |
Returns | |
---|---|
Type | Description |
ConfigSync.Builder |
This builder for chaining. |
setOci(OciConfig value)
public ConfigSync.Builder setOci(OciConfig value)
OCI repo configuration for the cluster
.google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12;
Parameter | |
---|---|
Name | Description |
value |
OciConfig |
Returns | |
---|---|
Type | Description |
ConfigSync.Builder |
setOci(OciConfig.Builder builderForValue)
public ConfigSync.Builder setOci(OciConfig.Builder builderForValue)
OCI repo configuration for the cluster
.google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12;
Parameter | |
---|---|
Name | Description |
builderForValue |
OciConfig.Builder |
Returns | |
---|---|
Type | Description |
ConfigSync.Builder |
setPreventDrift(boolean value)
public ConfigSync.Builder setPreventDrift(boolean value)
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;
Parameter | |
---|---|
Name | Description |
value |
boolean The preventDrift to set. |
Returns | |
---|---|
Type | Description |
ConfigSync.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ConfigSync.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
ConfigSync.Builder |
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 | |
---|---|
Name | Description |
value |
String The sourceFormat to set. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
value |
ByteString The bytes for sourceFormat to set. |
Returns | |
---|---|
Type | Description |
ConfigSync.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ConfigSync.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ConfigSync.Builder |