java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.gkehub.configmanagement.v1beta.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.v1beta.ConfigSync
See Also:
  • 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:
    • STOP_SYNCING_FIELD_NUMBER

      public static final int STOP_SYNCING_FIELD_NUMBER
      See Also:
    • DEPLOYMENT_OVERRIDES_FIELD_NUMBER

      public static final int DEPLOYMENT_OVERRIDES_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()
       Optional. Git repo configuration for the cluster.
       
      .google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasGit in interface ConfigSyncOrBuilder
      Returns:
      Whether the git field is set.
    • getGit

      public GitConfig getGit()
       Optional. Git repo configuration for the cluster.
       
      .google.cloud.gkehub.configmanagement.v1beta.GitConfig git = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGit in interface ConfigSyncOrBuilder
      Returns:
      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];
      Specified by:
      getGitOrBuilder in interface ConfigSyncOrBuilder
    • 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];
      Specified by:
      getSourceFormat in interface ConfigSyncOrBuilder
      Returns:
      The sourceFormat.
    • getSourceFormatBytes

      public com.google.protobuf.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];
      Specified by:
      getSourceFormatBytes in interface ConfigSyncOrBuilder
      Returns:
      The bytes for sourceFormat.
    • 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];
      Specified by:
      hasEnabled in interface ConfigSyncOrBuilder
      Returns:
      Whether the enabled field is set.
    • 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];
      Specified by:
      getEnabled in interface ConfigSyncOrBuilder
      Returns:
      The enabled.
    • 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];
      Specified by:
      getPreventDrift in interface ConfigSyncOrBuilder
      Returns:
      The preventDrift.
    • hasOci

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

      public OciConfig getOci()
       Optional. OCI repo configuration for the cluster
       
      .google.cloud.gkehub.configmanagement.v1beta.OciConfig oci = 12 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOci in interface ConfigSyncOrBuilder
      Returns:
      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];
      Specified by:
      getOciOrBuilder in interface ConfigSyncOrBuilder
    • 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];
      Specified by:
      getStopSyncing in interface ConfigSyncOrBuilder
      Returns:
      The stopSyncing.
    • 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];
      Specified by:
      getDeploymentOverridesList in interface ConfigSyncOrBuilder
    • 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];
      Specified by:
      getDeploymentOverridesOrBuilderList in interface ConfigSyncOrBuilder
    • 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];
      Specified by:
      getDeploymentOverridesCount in interface ConfigSyncOrBuilder
    • getDeploymentOverrides

      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];
      Specified by:
      getDeploymentOverrides in interface ConfigSyncOrBuilder
    • getDeploymentOverridesOrBuilder

      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];
      Specified by:
      getDeploymentOverridesOrBuilder in interface ConfigSyncOrBuilder
    • 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