Class SyncState

  • All Implemented Interfaces:
    SyncStateOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class SyncState
    extends com.google.protobuf.GeneratedMessageV3
    implements SyncStateOrBuilder
     State indicating an ACM's progress syncing configurations to a cluster
     
    Protobuf type google.cloud.gkehub.configmanagement.v1.SyncState
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  SyncState.Builder
      State indicating an ACM's progress syncing configurations to a cluster
      static class  SyncState.SyncCode
      An enum representing an ACM's status syncing configs to a cluster
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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.
      • 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.
      • 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.
      • getLastSync

        @Deprecated
        public String getLastSync()
        Deprecated.
        google.cloud.gkehub.configmanagement.v1.SyncState.last_sync is deprecated. See google/cloud/gkehub/v1/configmanagement/configmanagement.proto;l=305
         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.v1.SyncState.last_sync is deprecated. See google/cloud/gkehub/v1/configmanagement/configmanagement.proto;l=305
         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.
      • 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.
      • 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.v1.SyncState.SyncCode code = 5;
        Specified by:
        getCodeValue in interface SyncStateOrBuilder
        Returns:
        The enum numeric value on the wire for code.
      • 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.v1.SyncError errors = 6;
        Specified by:
        getErrorsList 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.v1.SyncError errors = 6;
        Specified by:
        getErrorsOrBuilderList 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.v1.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.v1.SyncError errors = 6;
        Specified by:
        getErrors in interface SyncStateOrBuilder
      • 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.v1.SyncError errors = 6;
        Specified by:
        getErrorsOrBuilder in interface SyncStateOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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 SyncState parseFrom​(ByteBuffer data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SyncState parseFrom​(ByteBuffer data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SyncState parseFrom​(com.google.protobuf.ByteString data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SyncState parseFrom​(com.google.protobuf.ByteString data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SyncState parseFrom​(byte[] data)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SyncState parseFrom​(byte[] data,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

        protected SyncState.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static SyncState getDefaultInstance()
      • parser

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

        public com.google.protobuf.Parser<SyncState> 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.GeneratedMessageV3
      • getDefaultInstanceForType

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