public final class SyncState extends GeneratedMessageV3 implements SyncStateOrBuilder
State indicating an ACM's progress syncing configurations to a cluster
Protobuf type google.cloud.gkehub.configmanagement.v1.SyncState
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CODE_FIELD_NUMBER
public static final int CODE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
ERRORS_FIELD_NUMBER
public static final int ERRORS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
IMPORT_TOKEN_FIELD_NUMBER
public static final int IMPORT_TOKEN_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
LAST_SYNC_FIELD_NUMBER
public static final int LAST_SYNC_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
LAST_SYNC_TIME_FIELD_NUMBER
public static final int LAST_SYNC_TIME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
SOURCE_TOKEN_FIELD_NUMBER
public static final int SOURCE_TOKEN_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
SYNC_TOKEN_FIELD_NUMBER
public static final int SYNC_TOKEN_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static SyncState getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static SyncState.Builder newBuilder()
newBuilder(SyncState prototype)
public static SyncState.Builder newBuilder(SyncState prototype)
Parameter |
Name |
Description |
prototype |
SyncState
|
public static SyncState parseDelimitedFrom(InputStream input)
public static SyncState parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static SyncState parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SyncState parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static SyncState parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SyncState parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SyncState parseFrom(CodedInputStream input)
public static SyncState parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SyncState parseFrom(InputStream input)
public static SyncState parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static SyncState parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SyncState parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<SyncState> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getCode()
public SyncState.SyncCode getCode()
Sync status code
.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5;
getCodeValue()
public int getCodeValue()
Sync status code
.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5;
Returns |
Type |
Description |
int |
The enum numeric value on the wire for code.
|
getDefaultInstanceForType()
public SyncState getDefaultInstanceForType()
getErrors(int index)
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;
Parameter |
Name |
Description |
index |
int
|
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;
Returns |
Type |
Description |
int |
|
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;
getErrorsOrBuilder(int index)
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;
Parameter |
Name |
Description |
index |
int
|
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;
Returns |
Type |
Description |
List<? extends com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder> |
|
getImportToken()
public String getImportToken()
Token indicating the state of the importer.
string import_token = 2;
Returns |
Type |
Description |
String |
The importToken.
|
getImportTokenBytes()
public ByteString getImportTokenBytes()
Token indicating the state of the importer.
string import_token = 2;
Returns |
Type |
Description |
ByteString |
The bytes for importToken.
|
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];
Returns |
Type |
Description |
String |
The lastSync.
|
getLastSyncBytes() (deprecated)
public 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];
Returns |
Type |
Description |
ByteString |
The bytes for lastSync.
|
getLastSyncTime()
public Timestamp getLastSyncTime()
Timestamp type of when ACM last successfully synced the repo
.google.protobuf.Timestamp last_sync_time = 7;
Returns |
Type |
Description |
Timestamp |
The lastSyncTime.
|
getLastSyncTimeOrBuilder()
public TimestampOrBuilder getLastSyncTimeOrBuilder()
Timestamp type of when ACM last successfully synced the repo
.google.protobuf.Timestamp last_sync_time = 7;
getParserForType()
public Parser<SyncState> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getSourceToken()
public String getSourceToken()
Token indicating the state of the repo.
string source_token = 1;
Returns |
Type |
Description |
String |
The sourceToken.
|
getSourceTokenBytes()
public ByteString getSourceTokenBytes()
Token indicating the state of the repo.
string source_token = 1;
Returns |
Type |
Description |
ByteString |
The bytes for sourceToken.
|
getSyncToken()
public String getSyncToken()
Token indicating the state of the syncer.
string sync_token = 3;
Returns |
Type |
Description |
String |
The syncToken.
|
getSyncTokenBytes()
public ByteString getSyncTokenBytes()
Token indicating the state of the syncer.
string sync_token = 3;
Returns |
Type |
Description |
ByteString |
The bytes for syncToken.
|
hasLastSyncTime()
public boolean hasLastSyncTime()
Timestamp type of when ACM last successfully synced the repo
.google.protobuf.Timestamp last_sync_time = 7;
Returns |
Type |
Description |
boolean |
Whether the lastSyncTime field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public SyncState.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SyncState.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public SyncState.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides