Class SyncState
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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
public final class SyncState extends com.google.protobuf.GeneratedMessageV3 implements SyncStateOrBuilder
State indicating an ACM's progress syncing configurations to a cluster
Protobuf typegoogle.cloud.gkehub.configmanagement.v1beta.SyncState- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSyncState.BuilderState indicating an ACM's progress syncing configurations to a clusterstatic classSyncState.SyncCodeAn 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
-
-
Field Summary
Fields Modifier and Type Field Description static intCODE_FIELD_NUMBERstatic intERRORS_FIELD_NUMBERstatic intIMPORT_TOKEN_FIELD_NUMBERstatic intLAST_SYNC_FIELD_NUMBERstatic intLAST_SYNC_TIME_FIELD_NUMBERstatic intSOURCE_TOKEN_FIELD_NUMBERstatic intSYNC_TOKEN_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)SyncState.SyncCodegetCode()Sync status codeintgetCodeValue()Sync status codestatic SyncStategetDefaultInstance()SyncStategetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()SyncErrorgetErrors(int index)A list of errors resulting from problematic configs.intgetErrorsCount()A list of errors resulting from problematic configs.List<SyncError>getErrorsList()A list of errors resulting from problematic configs.SyncErrorOrBuildergetErrorsOrBuilder(int index)A list of errors resulting from problematic configs.List<? extends SyncErrorOrBuilder>getErrorsOrBuilderList()A list of errors resulting from problematic configs.StringgetImportToken()Token indicating the state of the importer.com.google.protobuf.ByteStringgetImportTokenBytes()Token indicating the state of the importer.StringgetLastSync()Deprecated.google.cloud.gkehub.configmanagement.v1beta.SyncState.last_sync is deprecated.com.google.protobuf.ByteStringgetLastSyncBytes()Deprecated.google.cloud.gkehub.configmanagement.v1beta.SyncState.last_sync is deprecated.com.google.protobuf.TimestampgetLastSyncTime()Timestamp type of when ACM last successfully synced the repocom.google.protobuf.TimestampOrBuildergetLastSyncTimeOrBuilder()Timestamp type of when ACM last successfully synced the repocom.google.protobuf.Parser<SyncState>getParserForType()intgetSerializedSize()StringgetSourceToken()Token indicating the state of the repo.com.google.protobuf.ByteStringgetSourceTokenBytes()Token indicating the state of the repo.StringgetSyncToken()Token indicating the state of the syncer.com.google.protobuf.ByteStringgetSyncTokenBytes()Token indicating the state of the syncer.inthashCode()booleanhasLastSyncTime()Timestamp type of when ACM last successfully synced the repoprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static SyncState.BuildernewBuilder()static SyncState.BuildernewBuilder(SyncState prototype)SyncState.BuildernewBuilderForType()protected SyncState.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)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()SyncState.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
SOURCE_TOKEN_FIELD_NUMBER
public static final int SOURCE_TOKEN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IMPORT_TOKEN_FIELD_NUMBER
public static final int IMPORT_TOKEN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SYNC_TOKEN_FIELD_NUMBER
public static final int SYNC_TOKEN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LAST_SYNC_FIELD_NUMBER
public static final int LAST_SYNC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LAST_SYNC_TIME_FIELD_NUMBER
public static final int LAST_SYNC_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CODE_FIELD_NUMBER
public static final int CODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ERRORS_FIELD_NUMBER
public static final int ERRORS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getSourceToken
public String 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
public String 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
public String 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 public String getLastSync()
Deprecated.google.cloud.gkehub.configmanagement.v1beta.SyncState.last_sync is deprecated. See google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto;l=317Deprecated: 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 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=317Deprecated: 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
public SyncState.SyncCode getCode()
Sync status code
.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5;- Specified by:
getCodein interfaceSyncStateOrBuilder- 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:
getErrorsListin interfaceSyncStateOrBuilder
-
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:
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
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:
getErrorsin interfaceSyncStateOrBuilder
-
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:
getErrorsOrBuilderin interfaceSyncStateOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- 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
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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static SyncState.Builder newBuilder()
-
newBuilder
public static SyncState.Builder newBuilder(SyncState prototype)
-
toBuilder
public SyncState.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SyncState.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public SyncState getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-