Class SyncState
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 clusterProtobuf type
google.cloud.gkehub.configmanagement.v1beta.SyncState- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classState indicating an ACM's progress syncing configurations to a clusterstatic enumAn 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.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCode()Sync status codeintSync status codestatic SyncStatestatic final com.google.protobuf.Descriptors.DescriptorgetErrors(int index) A list of errors resulting from problematic configs.intA 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.List<? extends SyncErrorOrBuilder>A list of errors resulting from problematic configs.Token indicating the state of the importer.com.google.protobuf.ByteStringToken indicating the state of the importer.Deprecated.google.cloud.gkehub.configmanagement.v1beta.SyncState.last_sync is deprecated.com.google.protobuf.ByteStringDeprecated.google.cloud.gkehub.configmanagement.v1beta.SyncState.last_sync is deprecated.com.google.protobuf.TimestampTimestamp type of when ACM last successfully synced the repocom.google.protobuf.TimestampOrBuilderTimestamp type of when ACM last successfully synced the repocom.google.protobuf.Parser<SyncState>intToken indicating the state of the repo.com.google.protobuf.ByteStringToken indicating the state of the repo.Token indicating the state of the syncer.com.google.protobuf.ByteStringToken indicating the state of the syncer.inthashCode()booleanTimestamp type of when ACM last successfully synced the repoprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic SyncState.Builderstatic SyncState.BuildernewBuilder(SyncState prototype) protected SyncState.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static SyncStateparseDelimitedFrom(InputStream input) static SyncStateparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SyncStateparseFrom(byte[] data) static SyncStateparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SyncStateparseFrom(com.google.protobuf.ByteString data) static SyncStateparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SyncStateparseFrom(com.google.protobuf.CodedInputStream input) static SyncStateparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SyncStateparseFrom(InputStream input) static SyncStateparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SyncStateparseFrom(ByteBuffer data) static SyncStateparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SyncState>parser()voidwriteTo(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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getSourceToken
Token indicating the state of the repo.
string source_token = 1;- Specified by:
getSourceTokenin interfaceSyncStateOrBuilder- Returns:
- The sourceToken.
-
getSourceTokenBytes
public com.google.protobuf.ByteString getSourceTokenBytes()Token indicating the state of the repo.
string source_token = 1;- Specified by:
getSourceTokenBytesin interfaceSyncStateOrBuilder- Returns:
- The bytes for sourceToken.
-
getImportToken
Token indicating the state of the importer.
string import_token = 2;- Specified by:
getImportTokenin interfaceSyncStateOrBuilder- Returns:
- The importToken.
-
getImportTokenBytes
public com.google.protobuf.ByteString getImportTokenBytes()Token indicating the state of the importer.
string import_token = 2;- Specified by:
getImportTokenBytesin interfaceSyncStateOrBuilder- Returns:
- The bytes for importToken.
-
getSyncToken
Token indicating the state of the syncer.
string sync_token = 3;- Specified by:
getSyncTokenin interfaceSyncStateOrBuilder- Returns:
- The syncToken.
-
getSyncTokenBytes
public com.google.protobuf.ByteString getSyncTokenBytes()Token indicating the state of the syncer.
string sync_token = 3;- Specified by:
getSyncTokenBytesin interfaceSyncStateOrBuilder- Returns:
- The bytes for syncToken.
-
getLastSync
Deprecated.google.cloud.gkehub.configmanagement.v1beta.SyncState.last_sync is deprecated. See google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto;l=603Deprecated: 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:
getLastSyncin interfaceSyncStateOrBuilder- Returns:
- The lastSync.
-
getLastSyncBytes
Deprecated.google.cloud.gkehub.configmanagement.v1beta.SyncState.last_sync is deprecated. See google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto;l=603Deprecated: 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:
getLastSyncBytesin interfaceSyncStateOrBuilder- 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:
hasLastSyncTimein interfaceSyncStateOrBuilder- 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:
getLastSyncTimein interfaceSyncStateOrBuilder- 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:
getLastSyncTimeOrBuilderin interfaceSyncStateOrBuilder
-
getCodeValue
public int getCodeValue()Sync status code
.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5;- Specified by:
getCodeValuein interfaceSyncStateOrBuilder- Returns:
- The enum numeric value on the wire for code.
-
getCode
Sync status code
.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5;- Specified by:
getCodein interfaceSyncStateOrBuilder- Returns:
- The code.
-
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:
getErrorsListin interfaceSyncStateOrBuilder
-
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:
getErrorsOrBuilderListin interfaceSyncStateOrBuilder
-
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:
getErrorsCountin interfaceSyncStateOrBuilder
-
getErrors
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:
getErrorsin interfaceSyncStateOrBuilder
-
getErrorsOrBuilder
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:
getErrorsOrBuilderin interfaceSyncStateOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static SyncState parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static SyncState parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SyncState parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SyncState.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-