Send feedback
Class SyncState (1.14.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.14.0 keyboard_arrow_down
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.v1beta.SyncState
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 )
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.v1beta.SyncState.SyncCode code = 5;
getCodeValue()
public int getCodeValue ()
Sync status code
.google.cloud.gkehub.configmanagement.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.SyncError errors = 6;
Returns Type Description List <? extends com.google.cloud.gkehub.configmanagement.v1beta.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.v1beta.SyncState.last_sync is deprecated. See
google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto;l=317
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.v1beta.SyncState.last_sync is deprecated. See
google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto;l=317
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.
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Overrides
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 )
Overrides
toBuilder()
public SyncState . Builder toBuilder ()
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]