Class SyncState (1.43.0)

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

Implements

SyncStateOrBuilder

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()
Returns
Type Description
SyncState

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static SyncState.Builder newBuilder()
Returns
Type Description
SyncState.Builder

newBuilder(SyncState prototype)

public static SyncState.Builder newBuilder(SyncState prototype)
Parameter
Name Description
prototype SyncState
Returns
Type Description
SyncState.Builder

parseDelimitedFrom(InputStream input)

public static SyncState parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SyncState
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SyncState parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SyncState
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SyncState parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SyncState
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SyncState parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SyncState
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SyncState parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SyncState
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SyncState parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SyncState
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SyncState parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SyncState
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SyncState parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SyncState
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SyncState parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SyncState
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SyncState parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SyncState
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SyncState parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SyncState
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SyncState parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SyncState
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<SyncState> parser()
Returns
Type Description
Parser<SyncState>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCode()

public SyncState.SyncCode getCode()

Sync status code

.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5;

Returns
Type Description
SyncState.SyncCode

The code.

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()
Returns
Type Description
SyncState

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
Returns
Type Description
SyncError

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;

Returns
Type Description
List<SyncError>

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
Returns
Type Description
SyncErrorOrBuilder

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;

Returns
Type Description
TimestampOrBuilder

getParserForType()

public Parser<SyncState> getParserForType()
Returns
Type Description
Parser<SyncState>
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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SyncState.Builder newBuilderForType()
Returns
Type Description
SyncState.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SyncState.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SyncState.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SyncState.Builder toBuilder()
Returns
Type Description
SyncState.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException