java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.gkehub.configmanagement.v1beta.SyncState
All Implemented Interfaces:
SyncStateOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

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

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    State indicating an ACM's progress syncing configurations to a cluster
    static enum 
    An enum representing Config Sync's status of syncing configs to a cluster.

    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
     
    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
     
    Sync status code
    int
    Sync status code
    static SyncState
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    getErrors(int index)
    A list of errors resulting from problematic configs.
    int
    A list of errors resulting from problematic configs.
    A list of errors resulting from problematic configs.
    getErrorsOrBuilder(int index)
    A list of errors resulting from problematic configs.
    A list of errors resulting from problematic configs.
    Token indicating the state of the importer.
    com.google.protobuf.ByteString
    Token indicating the state of the importer.
    Deprecated.
    google.cloud.gkehub.configmanagement.v1beta.SyncState.last_sync is deprecated.
    com.google.protobuf.ByteString
    Deprecated.
    google.cloud.gkehub.configmanagement.v1beta.SyncState.last_sync is deprecated.
    com.google.protobuf.Timestamp
    Timestamp type of when ACM last successfully synced the repo
    com.google.protobuf.TimestampOrBuilder
    Timestamp type of when ACM last successfully synced the repo
    com.google.protobuf.Parser<SyncState>
     
    int
     
    Token indicating the state of the repo.
    com.google.protobuf.ByteString
    Token indicating the state of the repo.
    Token indicating the state of the syncer.
    com.google.protobuf.ByteString
    Token indicating the state of the syncer.
    int
     
    boolean
    Timestamp type of when ACM last successfully synced the repo
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(SyncState prototype)
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
    static SyncState
     
    static SyncState
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static SyncState
    parseFrom(byte[] data)
     
    static SyncState
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static SyncState
    parseFrom(com.google.protobuf.ByteString data)
     
    static SyncState
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static SyncState
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static SyncState
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static SyncState
     
    static SyncState
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static SyncState
     
    static SyncState
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<SyncState>
     
     
    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

    • SOURCE_TOKEN_FIELD_NUMBER

      public static final int SOURCE_TOKEN_FIELD_NUMBER
      See Also:
    • IMPORT_TOKEN_FIELD_NUMBER

      public static final int IMPORT_TOKEN_FIELD_NUMBER
      See Also:
    • SYNC_TOKEN_FIELD_NUMBER

      public static final int SYNC_TOKEN_FIELD_NUMBER
      See Also:
    • LAST_SYNC_FIELD_NUMBER

      public static final int LAST_SYNC_FIELD_NUMBER
      See Also:
    • LAST_SYNC_TIME_FIELD_NUMBER

      public static final int LAST_SYNC_TIME_FIELD_NUMBER
      See Also:
    • CODE_FIELD_NUMBER

      public static final int CODE_FIELD_NUMBER
      See Also:
    • ERRORS_FIELD_NUMBER

      public static final int ERRORS_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
    • 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.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.
    • 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.v1beta.SyncState.SyncCode code = 5;
      Specified by:
      getCodeValue in interface SyncStateOrBuilder
      Returns:
      The enum numeric value on the wire for code.
    • 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.
    • 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
    • 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
    • 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
    • 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
    • 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 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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

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

      public static SyncState parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • 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
    • newBuilder

      public static SyncState.Builder newBuilder()
    • newBuilder

      public static SyncState.Builder newBuilder(SyncState prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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