Class ConfigSync
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.gkehub.configmanagement.v1.ConfigSync
- All Implemented Interfaces:
ConfigSyncOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class ConfigSync
extends com.google.protobuf.GeneratedMessage
implements ConfigSyncOrBuilder
Configuration for Config SyncProtobuf type
google.cloud.gkehub.configmanagement.v1.ConfigSync- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classConfiguration for Config SyncNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ConfigSyncstatic final com.google.protobuf.Descriptors.DescriptorbooleanEnables the installation of ConfigSync.getGit()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 clustercom.google.protobuf.Parser<ConfigSync>booleanSet to true to enable the Config Sync admission webhook to prevent drifts.intSpecifies 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.inthashCode()booleanhasOci()OCI repo configuration for the clusterprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic ConfigSync.Builderstatic ConfigSync.BuildernewBuilder(ConfigSync prototype) protected ConfigSync.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ConfigSyncparseDelimitedFrom(InputStream input) static ConfigSyncparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ConfigSyncparseFrom(byte[] data) static ConfigSyncparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ConfigSyncparseFrom(com.google.protobuf.ByteString data) static ConfigSyncparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ConfigSyncparseFrom(com.google.protobuf.CodedInputStream input) static ConfigSyncparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ConfigSyncparseFrom(InputStream input) static ConfigSyncparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ConfigSyncparseFrom(ByteBuffer data) static ConfigSyncparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ConfigSync>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
GIT_FIELD_NUMBER
public static final int GIT_FIELD_NUMBER- See Also:
-
SOURCE_FORMAT_FIELD_NUMBER
public static final int SOURCE_FORMAT_FIELD_NUMBER- See Also:
-
ENABLED_FIELD_NUMBER
public static final int ENABLED_FIELD_NUMBER- See Also:
-
PREVENT_DRIFT_FIELD_NUMBER
public static final int PREVENT_DRIFT_FIELD_NUMBER- See Also:
-
OCI_FIELD_NUMBER
public static final int OCI_FIELD_NUMBER- See Also:
-
METRICS_GCP_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER
public static final int METRICS_GCP_SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER- See Also:
-
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ConfigSync parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConfigSync parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConfigSync parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConfigSync parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConfigSync parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConfigSync parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ConfigSync parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ConfigSync parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ConfigSync parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ConfigSync.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-