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 Sync
 
Protobuf type google.cloud.gkehub.configmanagement.v1.ConfigSync
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Configuration for Config Sync

    Nested 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.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    static ConfigSync
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    boolean
    Enables the installation of ConfigSync.
    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.ByteString
    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 cluster
    OCI repo configuration for the cluster
    com.google.protobuf.Parser<ConfigSync>
     
    boolean
    Set to true to enable the Config Sync admission webhook to prevent drifts.
    int
     
    Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode.
    com.google.protobuf.ByteString
    Specifies whether the Config Sync Repo is in "hierarchical" or "unstructured" mode.
    boolean
    Enables the installation of ConfigSync.
    boolean
    Git repo configuration for the cluster.
    int
     
    boolean
    OCI repo configuration for the cluster
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
    static ConfigSync
     
    static ConfigSync
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static ConfigSync
    parseFrom(byte[] data)
     
    static ConfigSync
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static ConfigSync
    parseFrom(com.google.protobuf.ByteString data)
     
    static ConfigSync
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static ConfigSync
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static ConfigSync
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static ConfigSync
     
    static ConfigSync
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static ConfigSync
     
    static ConfigSync
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<ConfigSync>
     
     
    void
    writeTo(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, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • hasGit

      public boolean hasGit()
       Git repo configuration for the cluster.
       
      .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7;
      Specified by:
      hasGit in interface ConfigSyncOrBuilder
      Returns:
      Whether the git field is set.
    • getGit

      public GitConfig getGit()
       Git repo configuration for the cluster.
       
      .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7;
      Specified by:
      getGit in interface ConfigSyncOrBuilder
      Returns:
      The git.
    • getGitOrBuilder

      public GitConfigOrBuilder getGitOrBuilder()
       Git repo configuration for the cluster.
       
      .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7;
      Specified by:
      getGitOrBuilder in interface ConfigSyncOrBuilder
    • getSourceFormat

      public String getSourceFormat()
       Specifies whether the Config Sync Repo is
       in "hierarchical" or "unstructured" mode.
       
      string source_format = 8;
      Specified by:
      getSourceFormat in interface ConfigSyncOrBuilder
      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:
      getSourceFormatBytes in interface ConfigSyncOrBuilder
      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:
      hasEnabled in interface ConfigSyncOrBuilder
      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:
      getEnabled in interface ConfigSyncOrBuilder
      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:
      getPreventDrift in interface ConfigSyncOrBuilder
      Returns:
      The preventDrift.
    • hasOci

      public boolean hasOci()
       OCI repo configuration for the cluster
       
      .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12;
      Specified by:
      hasOci in interface ConfigSyncOrBuilder
      Returns:
      Whether the oci field is set.
    • getOci

      public OciConfig getOci()
       OCI repo configuration for the cluster
       
      .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12;
      Specified by:
      getOci in interface ConfigSyncOrBuilder
      Returns:
      The oci.
    • getOciOrBuilder

      public OciConfigOrBuilder getOciOrBuilder()
       OCI repo configuration for the cluster
       
      .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12;
      Specified by:
      getOciOrBuilder in interface ConfigSyncOrBuilder
    • 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;
      Specified by:
      getMetricsGcpServiceAccountEmail in interface ConfigSyncOrBuilder
      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:
      getMetricsGcpServiceAccountEmailBytes in interface ConfigSyncOrBuilder
      Returns:
      The bytes for metricsGcpServiceAccountEmail.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static ConfigSync parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConfigSync parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ConfigSync parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ConfigSync parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConfigSync parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConfigSync parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ConfigSync.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ConfigSync.Builder newBuilder()
    • newBuilder

      public static ConfigSync.Builder newBuilder(ConfigSync prototype)
    • toBuilder

      public ConfigSync.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ConfigSync.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ConfigSync getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ConfigSync> parser()
    • getParserForType

      public com.google.protobuf.Parser<ConfigSync> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ConfigSync getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder