Class ConfigSyncState.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ConfigSyncState.Builder>
com.google.cloud.gkehub.configmanagement.v1.ConfigSyncState.Builder
All Implemented Interfaces:
ConfigSyncStateOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ConfigSyncState

public static final class ConfigSyncState.Builder extends com.google.protobuf.GeneratedMessage.Builder<ConfigSyncState.Builder> implements ConfigSyncStateOrBuilder
 State information for ConfigSync
 
Protobuf type google.cloud.gkehub.configmanagement.v1.ConfigSyncState
  • 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.Builder<ConfigSyncState.Builder>
    • clear

      public ConfigSyncState.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ConfigSyncState.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ConfigSyncState.Builder>
    • getDefaultInstanceForType

      public ConfigSyncState getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ConfigSyncState build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ConfigSyncState buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ConfigSyncState.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConfigSyncState.Builder>
    • mergeFrom

      public ConfigSyncState.Builder mergeFrom(ConfigSyncState other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ConfigSyncState.Builder>
    • mergeFrom

      public ConfigSyncState.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConfigSyncState.Builder>
      Throws:
      IOException
    • hasVersion

      public boolean hasVersion()
       The version of ConfigSync deployed
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1;
      Specified by:
      hasVersion in interface ConfigSyncStateOrBuilder
      Returns:
      Whether the version field is set.
    • getVersion

      public ConfigSyncVersion getVersion()
       The version of ConfigSync deployed
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1;
      Specified by:
      getVersion in interface ConfigSyncStateOrBuilder
      Returns:
      The version.
    • setVersion

      public ConfigSyncState.Builder setVersion(ConfigSyncVersion value)
       The version of ConfigSync deployed
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1;
    • setVersion

      public ConfigSyncState.Builder setVersion(ConfigSyncVersion.Builder builderForValue)
       The version of ConfigSync deployed
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1;
    • mergeVersion

      public ConfigSyncState.Builder mergeVersion(ConfigSyncVersion value)
       The version of ConfigSync deployed
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1;
    • clearVersion

      public ConfigSyncState.Builder clearVersion()
       The version of ConfigSync deployed
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1;
    • getVersionBuilder

      public ConfigSyncVersion.Builder getVersionBuilder()
       The version of ConfigSync deployed
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1;
    • getVersionOrBuilder

      public ConfigSyncVersionOrBuilder getVersionOrBuilder()
       The version of ConfigSync deployed
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1;
      Specified by:
      getVersionOrBuilder in interface ConfigSyncStateOrBuilder
    • hasDeploymentState

      public boolean hasDeploymentState()
       Information about the deployment of ConfigSync, including the version
       of the various Pods deployed
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2;
      Specified by:
      hasDeploymentState in interface ConfigSyncStateOrBuilder
      Returns:
      Whether the deploymentState field is set.
    • getDeploymentState

      public ConfigSyncDeploymentState getDeploymentState()
       Information about the deployment of ConfigSync, including the version
       of the various Pods deployed
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2;
      Specified by:
      getDeploymentState in interface ConfigSyncStateOrBuilder
      Returns:
      The deploymentState.
    • setDeploymentState

      public ConfigSyncState.Builder setDeploymentState(ConfigSyncDeploymentState value)
       Information about the deployment of ConfigSync, including the version
       of the various Pods deployed
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2;
    • setDeploymentState

      public ConfigSyncState.Builder setDeploymentState(ConfigSyncDeploymentState.Builder builderForValue)
       Information about the deployment of ConfigSync, including the version
       of the various Pods deployed
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2;
    • mergeDeploymentState

      public ConfigSyncState.Builder mergeDeploymentState(ConfigSyncDeploymentState value)
       Information about the deployment of ConfigSync, including the version
       of the various Pods deployed
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2;
    • clearDeploymentState

      public ConfigSyncState.Builder clearDeploymentState()
       Information about the deployment of ConfigSync, including the version
       of the various Pods deployed
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2;
    • getDeploymentStateBuilder

      public ConfigSyncDeploymentState.Builder getDeploymentStateBuilder()
       Information about the deployment of ConfigSync, including the version
       of the various Pods deployed
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2;
    • getDeploymentStateOrBuilder

      public ConfigSyncDeploymentStateOrBuilder getDeploymentStateOrBuilder()
       Information about the deployment of ConfigSync, including the version
       of the various Pods deployed
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2;
      Specified by:
      getDeploymentStateOrBuilder in interface ConfigSyncStateOrBuilder
    • hasSyncState

      public boolean hasSyncState()
       The state of ConfigSync's process to sync configs to a cluster
       
      .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3;
      Specified by:
      hasSyncState in interface ConfigSyncStateOrBuilder
      Returns:
      Whether the syncState field is set.
    • getSyncState

      public SyncState getSyncState()
       The state of ConfigSync's process to sync configs to a cluster
       
      .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3;
      Specified by:
      getSyncState in interface ConfigSyncStateOrBuilder
      Returns:
      The syncState.
    • setSyncState

      public ConfigSyncState.Builder setSyncState(SyncState value)
       The state of ConfigSync's process to sync configs to a cluster
       
      .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3;
    • setSyncState

      public ConfigSyncState.Builder setSyncState(SyncState.Builder builderForValue)
       The state of ConfigSync's process to sync configs to a cluster
       
      .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3;
    • mergeSyncState

      public ConfigSyncState.Builder mergeSyncState(SyncState value)
       The state of ConfigSync's process to sync configs to a cluster
       
      .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3;
    • clearSyncState

      public ConfigSyncState.Builder clearSyncState()
       The state of ConfigSync's process to sync configs to a cluster
       
      .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3;
    • getSyncStateBuilder

      public SyncState.Builder getSyncStateBuilder()
       The state of ConfigSync's process to sync configs to a cluster
       
      .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3;
    • getSyncStateOrBuilder

      public SyncStateOrBuilder getSyncStateOrBuilder()
       The state of ConfigSync's process to sync configs to a cluster
       
      .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3;
      Specified by:
      getSyncStateOrBuilder in interface ConfigSyncStateOrBuilder
    • getErrorsList

      public List<ConfigSyncError> getErrorsList()
       Errors pertaining to the installation of Config Sync.
       
      repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4;
      Specified by:
      getErrorsList in interface ConfigSyncStateOrBuilder
    • getErrorsCount

      public int getErrorsCount()
       Errors pertaining to the installation of Config Sync.
       
      repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4;
      Specified by:
      getErrorsCount in interface ConfigSyncStateOrBuilder
    • getErrors

      public ConfigSyncError getErrors(int index)
       Errors pertaining to the installation of Config Sync.
       
      repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4;
      Specified by:
      getErrors in interface ConfigSyncStateOrBuilder
    • setErrors

      public ConfigSyncState.Builder setErrors(int index, ConfigSyncError value)
       Errors pertaining to the installation of Config Sync.
       
      repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4;
    • setErrors

      public ConfigSyncState.Builder setErrors(int index, ConfigSyncError.Builder builderForValue)
       Errors pertaining to the installation of Config Sync.
       
      repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4;
    • addErrors

      public ConfigSyncState.Builder addErrors(ConfigSyncError value)
       Errors pertaining to the installation of Config Sync.
       
      repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4;
    • addErrors

      public ConfigSyncState.Builder addErrors(int index, ConfigSyncError value)
       Errors pertaining to the installation of Config Sync.
       
      repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4;
    • addErrors

      public ConfigSyncState.Builder addErrors(ConfigSyncError.Builder builderForValue)
       Errors pertaining to the installation of Config Sync.
       
      repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4;
    • addErrors

      public ConfigSyncState.Builder addErrors(int index, ConfigSyncError.Builder builderForValue)
       Errors pertaining to the installation of Config Sync.
       
      repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4;
    • addAllErrors

      public ConfigSyncState.Builder addAllErrors(Iterable<? extends ConfigSyncError> values)
       Errors pertaining to the installation of Config Sync.
       
      repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4;
    • clearErrors

      public ConfigSyncState.Builder clearErrors()
       Errors pertaining to the installation of Config Sync.
       
      repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4;
    • removeErrors

      public ConfigSyncState.Builder removeErrors(int index)
       Errors pertaining to the installation of Config Sync.
       
      repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4;
    • getErrorsBuilder

      public ConfigSyncError.Builder getErrorsBuilder(int index)
       Errors pertaining to the installation of Config Sync.
       
      repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4;
    • getErrorsOrBuilder

      public ConfigSyncErrorOrBuilder getErrorsOrBuilder(int index)
       Errors pertaining to the installation of Config Sync.
       
      repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4;
      Specified by:
      getErrorsOrBuilder in interface ConfigSyncStateOrBuilder
    • getErrorsOrBuilderList

      public List<? extends ConfigSyncErrorOrBuilder> getErrorsOrBuilderList()
       Errors pertaining to the installation of Config Sync.
       
      repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4;
      Specified by:
      getErrorsOrBuilderList in interface ConfigSyncStateOrBuilder
    • addErrorsBuilder

      public ConfigSyncError.Builder addErrorsBuilder()
       Errors pertaining to the installation of Config Sync.
       
      repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4;
    • addErrorsBuilder

      public ConfigSyncError.Builder addErrorsBuilder(int index)
       Errors pertaining to the installation of Config Sync.
       
      repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4;
    • getErrorsBuilderList

      public List<ConfigSyncError.Builder> getErrorsBuilderList()
       Errors pertaining to the installation of Config Sync.
       
      repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4;
    • getRootsyncCrdValue

      public int getRootsyncCrdValue()
       The state of the RootSync CRD
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState rootsync_crd = 5;
      Specified by:
      getRootsyncCrdValue in interface ConfigSyncStateOrBuilder
      Returns:
      The enum numeric value on the wire for rootsyncCrd.
    • setRootsyncCrdValue

      public ConfigSyncState.Builder setRootsyncCrdValue(int value)
       The state of the RootSync CRD
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState rootsync_crd = 5;
      Parameters:
      value - The enum numeric value on the wire for rootsyncCrd to set.
      Returns:
      This builder for chaining.
    • getRootsyncCrd

      public ConfigSyncState.CRDState getRootsyncCrd()
       The state of the RootSync CRD
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState rootsync_crd = 5;
      Specified by:
      getRootsyncCrd in interface ConfigSyncStateOrBuilder
      Returns:
      The rootsyncCrd.
    • setRootsyncCrd

      public ConfigSyncState.Builder setRootsyncCrd(ConfigSyncState.CRDState value)
       The state of the RootSync CRD
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState rootsync_crd = 5;
      Parameters:
      value - The rootsyncCrd to set.
      Returns:
      This builder for chaining.
    • clearRootsyncCrd

      public ConfigSyncState.Builder clearRootsyncCrd()
       The state of the RootSync CRD
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState rootsync_crd = 5;
      Returns:
      This builder for chaining.
    • getReposyncCrdValue

      public int getReposyncCrdValue()
       The state of the Reposync CRD
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState reposync_crd = 6;
      Specified by:
      getReposyncCrdValue in interface ConfigSyncStateOrBuilder
      Returns:
      The enum numeric value on the wire for reposyncCrd.
    • setReposyncCrdValue

      public ConfigSyncState.Builder setReposyncCrdValue(int value)
       The state of the Reposync CRD
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState reposync_crd = 6;
      Parameters:
      value - The enum numeric value on the wire for reposyncCrd to set.
      Returns:
      This builder for chaining.
    • getReposyncCrd

      public ConfigSyncState.CRDState getReposyncCrd()
       The state of the Reposync CRD
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState reposync_crd = 6;
      Specified by:
      getReposyncCrd in interface ConfigSyncStateOrBuilder
      Returns:
      The reposyncCrd.
    • setReposyncCrd

      public ConfigSyncState.Builder setReposyncCrd(ConfigSyncState.CRDState value)
       The state of the Reposync CRD
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState reposync_crd = 6;
      Parameters:
      value - The reposyncCrd to set.
      Returns:
      This builder for chaining.
    • clearReposyncCrd

      public ConfigSyncState.Builder clearReposyncCrd()
       The state of the Reposync CRD
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState reposync_crd = 6;
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       The state of CS
       This field summarizes the other fields in this message.
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State state = 7;
      Specified by:
      getStateValue in interface ConfigSyncStateOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public ConfigSyncState.Builder setStateValue(int value)
       The state of CS
       This field summarizes the other fields in this message.
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State state = 7;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public ConfigSyncState.State getState()
       The state of CS
       This field summarizes the other fields in this message.
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State state = 7;
      Specified by:
      getState in interface ConfigSyncStateOrBuilder
      Returns:
      The state.
    • setState

       The state of CS
       This field summarizes the other fields in this message.
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State state = 7;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public ConfigSyncState.Builder clearState()
       The state of CS
       This field summarizes the other fields in this message.
       
      .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State state = 7;
      Returns:
      This builder for chaining.