Class SyncState.Builder

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

public static final class SyncState.Builder extends com.google.protobuf.GeneratedMessage.Builder<SyncState.Builder> implements SyncStateOrBuilder
 State indicating an ACM's progress syncing configurations to a cluster
 
Protobuf type google.cloud.gkehub.configmanagement.v1beta.SyncState
  • 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<SyncState.Builder>
    • clear

      public SyncState.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<SyncState.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<SyncState.Builder>
    • getDefaultInstanceForType

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

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

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

      public SyncState.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<SyncState.Builder>
    • mergeFrom

      public SyncState.Builder mergeFrom(SyncState other)
    • isInitialized

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

      public SyncState.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<SyncState.Builder>
      Throws:
      IOException
    • getSourceToken

      public String getSourceToken()
       Token indicating the state of the repo.
       
      string source_token = 1;
      Specified by:
      getSourceToken in interface SyncStateOrBuilder
      Returns:
      The sourceToken.
    • getSourceTokenBytes

      public com.google.protobuf.ByteString getSourceTokenBytes()
       Token indicating the state of the repo.
       
      string source_token = 1;
      Specified by:
      getSourceTokenBytes in interface SyncStateOrBuilder
      Returns:
      The bytes for sourceToken.
    • setSourceToken

      public SyncState.Builder setSourceToken(String value)
       Token indicating the state of the repo.
       
      string source_token = 1;
      Parameters:
      value - The sourceToken to set.
      Returns:
      This builder for chaining.
    • clearSourceToken

      public SyncState.Builder clearSourceToken()
       Token indicating the state of the repo.
       
      string source_token = 1;
      Returns:
      This builder for chaining.
    • setSourceTokenBytes

      public SyncState.Builder setSourceTokenBytes(com.google.protobuf.ByteString value)
       Token indicating the state of the repo.
       
      string source_token = 1;
      Parameters:
      value - The bytes for sourceToken to set.
      Returns:
      This builder for chaining.
    • getImportToken

      public String getImportToken()
       Token indicating the state of the importer.
       
      string import_token = 2;
      Specified by:
      getImportToken in interface SyncStateOrBuilder
      Returns:
      The importToken.
    • getImportTokenBytes

      public com.google.protobuf.ByteString getImportTokenBytes()
       Token indicating the state of the importer.
       
      string import_token = 2;
      Specified by:
      getImportTokenBytes in interface SyncStateOrBuilder
      Returns:
      The bytes for importToken.
    • setImportToken

      public SyncState.Builder setImportToken(String value)
       Token indicating the state of the importer.
       
      string import_token = 2;
      Parameters:
      value - The importToken to set.
      Returns:
      This builder for chaining.
    • clearImportToken

      public SyncState.Builder clearImportToken()
       Token indicating the state of the importer.
       
      string import_token = 2;
      Returns:
      This builder for chaining.
    • setImportTokenBytes

      public SyncState.Builder setImportTokenBytes(com.google.protobuf.ByteString value)
       Token indicating the state of the importer.
       
      string import_token = 2;
      Parameters:
      value - The bytes for importToken to set.
      Returns:
      This builder for chaining.
    • getSyncToken

      public String getSyncToken()
       Token indicating the state of the syncer.
       
      string sync_token = 3;
      Specified by:
      getSyncToken in interface SyncStateOrBuilder
      Returns:
      The syncToken.
    • getSyncTokenBytes

      public com.google.protobuf.ByteString getSyncTokenBytes()
       Token indicating the state of the syncer.
       
      string sync_token = 3;
      Specified by:
      getSyncTokenBytes in interface SyncStateOrBuilder
      Returns:
      The bytes for syncToken.
    • setSyncToken

      public SyncState.Builder setSyncToken(String value)
       Token indicating the state of the syncer.
       
      string sync_token = 3;
      Parameters:
      value - The syncToken to set.
      Returns:
      This builder for chaining.
    • clearSyncToken

      public SyncState.Builder clearSyncToken()
       Token indicating the state of the syncer.
       
      string sync_token = 3;
      Returns:
      This builder for chaining.
    • setSyncTokenBytes

      public SyncState.Builder setSyncTokenBytes(com.google.protobuf.ByteString value)
       Token indicating the state of the syncer.
       
      string sync_token = 3;
      Parameters:
      value - The bytes for syncToken to set.
      Returns:
      This builder for chaining.
    • getLastSync

      @Deprecated public String getLastSync()
      Deprecated.
      google.cloud.gkehub.configmanagement.v1beta.SyncState.last_sync is deprecated. See google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto;l=603
       Deprecated: use last_sync_time instead.
       Timestamp of when ACM last successfully synced the repo
       The time format is specified in https://golang.org/pkg/time/#Time.String
       
      string last_sync = 4 [deprecated = true];
      Specified by:
      getLastSync in interface SyncStateOrBuilder
      Returns:
      The lastSync.
    • getLastSyncBytes

      @Deprecated public com.google.protobuf.ByteString getLastSyncBytes()
      Deprecated.
      google.cloud.gkehub.configmanagement.v1beta.SyncState.last_sync is deprecated. See google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto;l=603
       Deprecated: use last_sync_time instead.
       Timestamp of when ACM last successfully synced the repo
       The time format is specified in https://golang.org/pkg/time/#Time.String
       
      string last_sync = 4 [deprecated = true];
      Specified by:
      getLastSyncBytes in interface SyncStateOrBuilder
      Returns:
      The bytes for lastSync.
    • setLastSync

      @Deprecated public SyncState.Builder setLastSync(String value)
      Deprecated.
      google.cloud.gkehub.configmanagement.v1beta.SyncState.last_sync is deprecated. See google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto;l=603
       Deprecated: use last_sync_time instead.
       Timestamp of when ACM last successfully synced the repo
       The time format is specified in https://golang.org/pkg/time/#Time.String
       
      string last_sync = 4 [deprecated = true];
      Parameters:
      value - The lastSync to set.
      Returns:
      This builder for chaining.
    • clearLastSync

      @Deprecated public SyncState.Builder clearLastSync()
      Deprecated.
      google.cloud.gkehub.configmanagement.v1beta.SyncState.last_sync is deprecated. See google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto;l=603
       Deprecated: use last_sync_time instead.
       Timestamp of when ACM last successfully synced the repo
       The time format is specified in https://golang.org/pkg/time/#Time.String
       
      string last_sync = 4 [deprecated = true];
      Returns:
      This builder for chaining.
    • setLastSyncBytes

      @Deprecated public SyncState.Builder setLastSyncBytes(com.google.protobuf.ByteString value)
      Deprecated.
      google.cloud.gkehub.configmanagement.v1beta.SyncState.last_sync is deprecated. See google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto;l=603
       Deprecated: use last_sync_time instead.
       Timestamp of when ACM last successfully synced the repo
       The time format is specified in https://golang.org/pkg/time/#Time.String
       
      string last_sync = 4 [deprecated = true];
      Parameters:
      value - The bytes for lastSync to set.
      Returns:
      This builder for chaining.
    • hasLastSyncTime

      public boolean hasLastSyncTime()
       Timestamp type of when ACM last successfully synced the repo
       
      .google.protobuf.Timestamp last_sync_time = 7;
      Specified by:
      hasLastSyncTime in interface SyncStateOrBuilder
      Returns:
      Whether the lastSyncTime field is set.
    • getLastSyncTime

      public com.google.protobuf.Timestamp getLastSyncTime()
       Timestamp type of when ACM last successfully synced the repo
       
      .google.protobuf.Timestamp last_sync_time = 7;
      Specified by:
      getLastSyncTime in interface SyncStateOrBuilder
      Returns:
      The lastSyncTime.
    • setLastSyncTime

      public SyncState.Builder setLastSyncTime(com.google.protobuf.Timestamp value)
       Timestamp type of when ACM last successfully synced the repo
       
      .google.protobuf.Timestamp last_sync_time = 7;
    • setLastSyncTime

      public SyncState.Builder setLastSyncTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Timestamp type of when ACM last successfully synced the repo
       
      .google.protobuf.Timestamp last_sync_time = 7;
    • mergeLastSyncTime

      public SyncState.Builder mergeLastSyncTime(com.google.protobuf.Timestamp value)
       Timestamp type of when ACM last successfully synced the repo
       
      .google.protobuf.Timestamp last_sync_time = 7;
    • clearLastSyncTime

      public SyncState.Builder clearLastSyncTime()
       Timestamp type of when ACM last successfully synced the repo
       
      .google.protobuf.Timestamp last_sync_time = 7;
    • getLastSyncTimeBuilder

      public com.google.protobuf.Timestamp.Builder getLastSyncTimeBuilder()
       Timestamp type of when ACM last successfully synced the repo
       
      .google.protobuf.Timestamp last_sync_time = 7;
    • getLastSyncTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder()
       Timestamp type of when ACM last successfully synced the repo
       
      .google.protobuf.Timestamp last_sync_time = 7;
      Specified by:
      getLastSyncTimeOrBuilder in interface SyncStateOrBuilder
    • getCodeValue

      public int getCodeValue()
       Sync status code
       
      .google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5;
      Specified by:
      getCodeValue in interface SyncStateOrBuilder
      Returns:
      The enum numeric value on the wire for code.
    • setCodeValue

      public SyncState.Builder setCodeValue(int value)
       Sync status code
       
      .google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5;
      Parameters:
      value - The enum numeric value on the wire for code to set.
      Returns:
      This builder for chaining.
    • getCode

      public SyncState.SyncCode getCode()
       Sync status code
       
      .google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5;
      Specified by:
      getCode in interface SyncStateOrBuilder
      Returns:
      The code.
    • setCode

      public SyncState.Builder setCode(SyncState.SyncCode value)
       Sync status code
       
      .google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5;
      Parameters:
      value - The code to set.
      Returns:
      This builder for chaining.
    • clearCode

      public SyncState.Builder clearCode()
       Sync status code
       
      .google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5;
      Returns:
      This builder for chaining.
    • getErrorsList

      public List<SyncError> getErrorsList()
       A list of errors resulting from problematic configs.
       This list will be truncated after 100 errors, although it is
       unlikely for that many errors to simultaneously exist.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
      Specified by:
      getErrorsList in interface SyncStateOrBuilder
    • getErrorsCount

      public int getErrorsCount()
       A list of errors resulting from problematic configs.
       This list will be truncated after 100 errors, although it is
       unlikely for that many errors to simultaneously exist.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
      Specified by:
      getErrorsCount in interface SyncStateOrBuilder
    • getErrors

      public SyncError getErrors(int index)
       A list of errors resulting from problematic configs.
       This list will be truncated after 100 errors, although it is
       unlikely for that many errors to simultaneously exist.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
      Specified by:
      getErrors in interface SyncStateOrBuilder
    • setErrors

      public SyncState.Builder setErrors(int index, SyncError value)
       A list of errors resulting from problematic configs.
       This list will be truncated after 100 errors, although it is
       unlikely for that many errors to simultaneously exist.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
    • setErrors

      public SyncState.Builder setErrors(int index, SyncError.Builder builderForValue)
       A list of errors resulting from problematic configs.
       This list will be truncated after 100 errors, although it is
       unlikely for that many errors to simultaneously exist.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
    • addErrors

      public SyncState.Builder addErrors(SyncError value)
       A list of errors resulting from problematic configs.
       This list will be truncated after 100 errors, although it is
       unlikely for that many errors to simultaneously exist.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
    • addErrors

      public SyncState.Builder addErrors(int index, SyncError value)
       A list of errors resulting from problematic configs.
       This list will be truncated after 100 errors, although it is
       unlikely for that many errors to simultaneously exist.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
    • addErrors

      public SyncState.Builder addErrors(SyncError.Builder builderForValue)
       A list of errors resulting from problematic configs.
       This list will be truncated after 100 errors, although it is
       unlikely for that many errors to simultaneously exist.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
    • addErrors

      public SyncState.Builder addErrors(int index, SyncError.Builder builderForValue)
       A list of errors resulting from problematic configs.
       This list will be truncated after 100 errors, although it is
       unlikely for that many errors to simultaneously exist.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
    • addAllErrors

      public SyncState.Builder addAllErrors(Iterable<? extends SyncError> values)
       A list of errors resulting from problematic configs.
       This list will be truncated after 100 errors, although it is
       unlikely for that many errors to simultaneously exist.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
    • clearErrors

      public SyncState.Builder clearErrors()
       A list of errors resulting from problematic configs.
       This list will be truncated after 100 errors, although it is
       unlikely for that many errors to simultaneously exist.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
    • removeErrors

      public SyncState.Builder removeErrors(int index)
       A list of errors resulting from problematic configs.
       This list will be truncated after 100 errors, although it is
       unlikely for that many errors to simultaneously exist.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
    • getErrorsBuilder

      public SyncError.Builder getErrorsBuilder(int index)
       A list of errors resulting from problematic configs.
       This list will be truncated after 100 errors, although it is
       unlikely for that many errors to simultaneously exist.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
    • getErrorsOrBuilder

      public SyncErrorOrBuilder getErrorsOrBuilder(int index)
       A list of errors resulting from problematic configs.
       This list will be truncated after 100 errors, although it is
       unlikely for that many errors to simultaneously exist.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
      Specified by:
      getErrorsOrBuilder in interface SyncStateOrBuilder
    • getErrorsOrBuilderList

      public List<? extends SyncErrorOrBuilder> getErrorsOrBuilderList()
       A list of errors resulting from problematic configs.
       This list will be truncated after 100 errors, although it is
       unlikely for that many errors to simultaneously exist.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
      Specified by:
      getErrorsOrBuilderList in interface SyncStateOrBuilder
    • addErrorsBuilder

      public SyncError.Builder addErrorsBuilder()
       A list of errors resulting from problematic configs.
       This list will be truncated after 100 errors, although it is
       unlikely for that many errors to simultaneously exist.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
    • addErrorsBuilder

      public SyncError.Builder addErrorsBuilder(int index)
       A list of errors resulting from problematic configs.
       This list will be truncated after 100 errors, although it is
       unlikely for that many errors to simultaneously exist.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;
    • getErrorsBuilderList

      public List<SyncError.Builder> getErrorsBuilderList()
       A list of errors resulting from problematic configs.
       This list will be truncated after 100 errors, although it is
       unlikely for that many errors to simultaneously exist.
       
      repeated .google.cloud.gkehub.configmanagement.v1beta.SyncError errors = 6;