Send feedback
Class SyncState (1.3.4)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.3.4 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.v1.SyncState
Static Fields
CODE_FIELD_NUMBER
public static final int CODE_FIELD_NUMBER
Field Value
ERRORS_FIELD_NUMBER
public static final int ERRORS_FIELD_NUMBER
Field Value
IMPORT_TOKEN_FIELD_NUMBER
public static final int IMPORT_TOKEN_FIELD_NUMBER
Field Value
LAST_SYNC_FIELD_NUMBER
public static final int LAST_SYNC_FIELD_NUMBER
Field Value
LAST_SYNC_TIME_FIELD_NUMBER
public static final int LAST_SYNC_TIME_FIELD_NUMBER
Field Value
SOURCE_TOKEN_FIELD_NUMBER
public static final int SOURCE_TOKEN_FIELD_NUMBER
Field Value
SYNC_TOKEN_FIELD_NUMBER
public static final int SYNC_TOKEN_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static SyncState getDefaultInstance ()
Returns
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
newBuilder()
public static SyncState . Builder newBuilder ()
Returns
newBuilder(SyncState prototype)
public static SyncState . Builder newBuilder ( SyncState prototype )
Parameter
Returns
public static SyncState parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static SyncState parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static SyncState parseFrom ( byte [] data )
Parameter
Name Description data byte []
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SyncState parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static SyncState parseFrom ( ByteString data )
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SyncState parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static SyncState parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static SyncState parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static SyncState parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static SyncState parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static SyncState parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SyncState parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parser()
public static Parser<SyncState> parser ()
Returns
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Returns
Overrides
getCode()
public SyncState . SyncCode getCode ()
Sync status code
.google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5;
Returns
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 ()
Returns
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
Returns
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
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;
Returns
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
Returns
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
getLastSyncTime()
public Timestamp getLastSyncTime ()
Timestamp type of when ACM last successfully synced the repo
.google.protobuf.Timestamp last_sync_time = 7;
Returns
getLastSyncTimeOrBuilder()
public TimestampOrBuilder getLastSyncTimeOrBuilder ()
Timestamp type of when ACM last successfully synced the repo
.google.protobuf.Timestamp last_sync_time = 7;
Returns
getParserForType()
public Parser<SyncState> getParserForType ()
Returns
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
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
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Returns
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
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
newBuilderForType()
public SyncState . Builder newBuilderForType ()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SyncState . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
toBuilder()
public SyncState . Builder toBuilder ()
Returns
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
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-27 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-27 UTC."],[],[]]