Interface SyncStateOrBuilder (1.8.0)

public interface SyncStateOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCode()

public abstract SyncState.SyncCode getCode()

Sync status code

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

Returns
TypeDescription
SyncState.SyncCode

The code.

getCodeValue()

public abstract int getCodeValue()

Sync status code

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

Returns
TypeDescription
int

The enum numeric value on the wire for code.

getErrors(int index)

public abstract 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
NameDescription
indexint
Returns
TypeDescription
SyncError

getErrorsCount()

public abstract 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
TypeDescription
int

getErrorsList()

public abstract 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
TypeDescription
List<SyncError>

getErrorsOrBuilder(int index)

public abstract 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
NameDescription
indexint
Returns
TypeDescription
SyncErrorOrBuilder

getErrorsOrBuilderList()

public abstract 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
TypeDescription
List<? extends com.google.cloud.gkehub.configmanagement.v1.SyncErrorOrBuilder>

getImportToken()

public abstract String getImportToken()

Token indicating the state of the importer.

string import_token = 2;

Returns
TypeDescription
String

The importToken.

getImportTokenBytes()

public abstract ByteString getImportTokenBytes()

Token indicating the state of the importer.

string import_token = 2;

Returns
TypeDescription
ByteString

The bytes for importToken.

getLastSync() (deprecated)

public abstract 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
TypeDescription
String

The lastSync.

getLastSyncBytes() (deprecated)

public abstract 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
TypeDescription
ByteString

The bytes for lastSync.

getLastSyncTime()

public abstract Timestamp getLastSyncTime()

Timestamp type of when ACM last successfully synced the repo

.google.protobuf.Timestamp last_sync_time = 7;

Returns
TypeDescription
Timestamp

The lastSyncTime.

getLastSyncTimeOrBuilder()

public abstract TimestampOrBuilder getLastSyncTimeOrBuilder()

Timestamp type of when ACM last successfully synced the repo

.google.protobuf.Timestamp last_sync_time = 7;

Returns
TypeDescription
TimestampOrBuilder

getSourceToken()

public abstract String getSourceToken()

Token indicating the state of the repo.

string source_token = 1;

Returns
TypeDescription
String

The sourceToken.

getSourceTokenBytes()

public abstract ByteString getSourceTokenBytes()

Token indicating the state of the repo.

string source_token = 1;

Returns
TypeDescription
ByteString

The bytes for sourceToken.

getSyncToken()

public abstract String getSyncToken()

Token indicating the state of the syncer.

string sync_token = 3;

Returns
TypeDescription
String

The syncToken.

getSyncTokenBytes()

public abstract ByteString getSyncTokenBytes()

Token indicating the state of the syncer.

string sync_token = 3;

Returns
TypeDescription
ByteString

The bytes for syncToken.

hasLastSyncTime()

public abstract boolean hasLastSyncTime()

Timestamp type of when ACM last successfully synced the repo

.google.protobuf.Timestamp last_sync_time = 7;

Returns
TypeDescription
boolean

Whether the lastSyncTime field is set.