Interface SyncStateOrBuilder (1.47.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
Type Description
SyncState.SyncCode

The code.

getCodeValue()

public abstract 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.

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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
Type Description
String

The importToken.

getImportTokenBytes()

public abstract ByteString getImportTokenBytes()

Token indicating the state of the importer.

string import_token = 2;

Returns
Type Description
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=436

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 abstract ByteString getLastSyncBytes()

Deprecated. google.cloud.gkehub.configmanagement.v1.SyncState.last_sync is deprecated. See google/cloud/gkehub/v1/configmanagement/configmanagement.proto;l=436

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 abstract 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 abstract TimestampOrBuilder getLastSyncTimeOrBuilder()

Timestamp type of when ACM last successfully synced the repo

.google.protobuf.Timestamp last_sync_time = 7;

Returns
Type Description
TimestampOrBuilder

getSourceToken()

public abstract String getSourceToken()

Token indicating the state of the repo.

string source_token = 1;

Returns
Type Description
String

The sourceToken.

getSourceTokenBytes()

public abstract ByteString getSourceTokenBytes()

Token indicating the state of the repo.

string source_token = 1;

Returns
Type Description
ByteString

The bytes for sourceToken.

getSyncToken()

public abstract String getSyncToken()

Token indicating the state of the syncer.

string sync_token = 3;

Returns
Type Description
String

The syncToken.

getSyncTokenBytes()

public abstract ByteString getSyncTokenBytes()

Token indicating the state of the syncer.

string sync_token = 3;

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

Whether the lastSyncTime field is set.