Class SyncState
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.gkehub.configmanagement.v1alpha.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.v1alpha.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 clusterstatic 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
-
-
Field Summary
Fields Modifier and Type Field Description static int
CODE_FIELD_NUMBER
static int
ERRORS_FIELD_NUMBER
static int
IMPORT_TOKEN_FIELD_NUMBER
static int
LAST_SYNC_FIELD_NUMBER
static int
LAST_SYNC_TIME_FIELD_NUMBER
static int
SOURCE_TOKEN_FIELD_NUMBER
static int
SYNC_TOKEN_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object obj)
SyncState.SyncCode
getCode()
Sync status codeint
getCodeValue()
Sync status codestatic SyncState
getDefaultInstance()
SyncState
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
SyncError
getErrors(int index)
A list of errors resulting from problematic configs.int
getErrorsCount()
A list of errors resulting from problematic configs.List<SyncError>
getErrorsList()
A list of errors resulting from problematic configs.SyncErrorOrBuilder
getErrorsOrBuilder(int index)
A list of errors resulting from problematic configs.List<? extends SyncErrorOrBuilder>
getErrorsOrBuilderList()
A list of errors resulting from problematic configs.String
getImportToken()
Token indicating the state of the importer.com.google.protobuf.ByteString
getImportTokenBytes()
Token indicating the state of the importer.String
getLastSync()
Deprecated.google.cloud.gkehub.configmanagement.v1alpha.SyncState.last_sync is deprecated.com.google.protobuf.ByteString
getLastSyncBytes()
Deprecated.google.cloud.gkehub.configmanagement.v1alpha.SyncState.last_sync is deprecated.com.google.protobuf.Timestamp
getLastSyncTime()
Timestamp type of when ACM last successfully synced the repocom.google.protobuf.TimestampOrBuilder
getLastSyncTimeOrBuilder()
Timestamp type of when ACM last successfully synced the repocom.google.protobuf.Parser<SyncState>
getParserForType()
int
getSerializedSize()
String
getSourceToken()
Token indicating the state of the repo.com.google.protobuf.ByteString
getSourceTokenBytes()
Token indicating the state of the repo.String
getSyncToken()
Token indicating the state of the syncer.com.google.protobuf.ByteString
getSyncTokenBytes()
Token indicating the state of the syncer.int
hashCode()
boolean
hasLastSyncTime()
Timestamp type of when ACM last successfully synced the repoprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static SyncState.Builder
newBuilder()
static SyncState.Builder
newBuilder(SyncState prototype)
SyncState.Builder
newBuilderForType()
protected SyncState.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static SyncState
parseDelimitedFrom(InputStream input)
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
parseFrom(InputStream input)
static SyncState
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SyncState
parseFrom(ByteBuffer data)
static SyncState
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<SyncState>
parser()
SyncState.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.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 classcom.google.protobuf.GeneratedMessageV3
-
getSourceToken
public String getSourceToken()
Token indicating the state of the repo.
string source_token = 1;
- Specified by:
getSourceToken
in interfaceSyncStateOrBuilder
- 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 interfaceSyncStateOrBuilder
- Returns:
- The bytes for sourceToken.
-
getImportToken
public String getImportToken()
Token indicating the state of the importer.
string import_token = 2;
- Specified by:
getImportToken
in interfaceSyncStateOrBuilder
- 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 interfaceSyncStateOrBuilder
- Returns:
- The bytes for importToken.
-
getSyncToken
public String getSyncToken()
Token indicating the state of the syncer.
string sync_token = 3;
- Specified by:
getSyncToken
in interfaceSyncStateOrBuilder
- 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 interfaceSyncStateOrBuilder
- Returns:
- The bytes for syncToken.
-
getLastSync
@Deprecated public String getLastSync()
Deprecated.google.cloud.gkehub.configmanagement.v1alpha.SyncState.last_sync is deprecated. See google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto;l=320Deprecated: 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 interfaceSyncStateOrBuilder
- Returns:
- The lastSync.
-
getLastSyncBytes
@Deprecated public com.google.protobuf.ByteString getLastSyncBytes()
Deprecated.google.cloud.gkehub.configmanagement.v1alpha.SyncState.last_sync is deprecated. See google/cloud/gkehub/v1alpha/configmanagement/configmanagement.proto;l=320Deprecated: 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 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:
hasLastSyncTime
in 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:
getLastSyncTime
in 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:
getLastSyncTimeOrBuilder
in interfaceSyncStateOrBuilder
-
getCodeValue
public int getCodeValue()
Sync status code
.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode code = 5;
- Specified by:
getCodeValue
in interfaceSyncStateOrBuilder
- Returns:
- The enum numeric value on the wire for code.
-
getCode
public SyncState.SyncCode getCode()
Sync status code
.google.cloud.gkehub.configmanagement.v1alpha.SyncState.SyncCode code = 5;
- Specified by:
getCode
in 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.v1alpha.SyncError errors = 6;
- Specified by:
getErrorsList
in 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.v1alpha.SyncError errors = 6;
- Specified by:
getErrorsOrBuilderList
in 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.v1alpha.SyncError errors = 6;
- Specified by:
getErrorsCount
in 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.v1alpha.SyncError errors = 6;
- Specified by:
getErrors
in 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.v1alpha.SyncError errors = 6;
- Specified by:
getErrorsOrBuilder
in interfaceSyncStateOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SyncState.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public SyncState getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-