Class SyncState (0.5.4)

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

Implements

SyncStateOrBuilder

Fields

CODE_FIELD_NUMBER

public static final int CODE_FIELD_NUMBER
Field Value
TypeDescription
int

ERRORS_FIELD_NUMBER

public static final int ERRORS_FIELD_NUMBER
Field Value
TypeDescription
int

IMPORT_TOKEN_FIELD_NUMBER

public static final int IMPORT_TOKEN_FIELD_NUMBER
Field Value
TypeDescription
int

LAST_SYNC_FIELD_NUMBER

public static final int LAST_SYNC_FIELD_NUMBER
Field Value
TypeDescription
int

LAST_SYNC_TIME_FIELD_NUMBER

public static final int LAST_SYNC_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_TOKEN_FIELD_NUMBER

public static final int SOURCE_TOKEN_FIELD_NUMBER
Field Value
TypeDescription
int

SYNC_TOKEN_FIELD_NUMBER

public static final int SYNC_TOKEN_FIELD_NUMBER
Field Value
TypeDescription
int

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCode()

public SyncState.SyncCode getCode()

Sync status code

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

Returns
TypeDescription
SyncState.SyncCode

The code.

getCodeValue()

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

getDefaultInstance()

public static SyncState getDefaultInstance()
Returns
TypeDescription
SyncState

getDefaultInstanceForType()

public SyncState getDefaultInstanceForType()
Returns
TypeDescription
SyncState

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

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
NameDescription
indexint
Returns
TypeDescription
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.v1.SyncError errors = 6;

Returns
TypeDescription
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.v1.SyncError errors = 6;

Returns
TypeDescription
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.v1.SyncError errors = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1.SyncError errors = 6;

Returns
TypeDescription
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
TypeDescription
String

The importToken.

getImportTokenBytes()

public ByteString getImportTokenBytes()

Token indicating the state of the importer.

string import_token = 2;

Returns
TypeDescription
ByteString

The bytes for importToken.

getLastSync()

public String getLastSync()

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()

public ByteString getLastSyncBytes()

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

Timestamp type of when ACM last successfully synced the repo

.google.protobuf.Timestamp last_sync_time = 7;

Returns
TypeDescription
TimestampOrBuilder

getParserForType()

public Parser<SyncState> getParserForType()
Returns
TypeDescription
Parser<SyncState>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSourceToken()

public String getSourceToken()

Token indicating the state of the repo.

string source_token = 1;

Returns
TypeDescription
String

The sourceToken.

getSourceTokenBytes()

public ByteString getSourceTokenBytes()

Token indicating the state of the repo.

string source_token = 1;

Returns
TypeDescription
ByteString

The bytes for sourceToken.

getSyncToken()

public String getSyncToken()

Token indicating the state of the syncer.

string sync_token = 3;

Returns
TypeDescription
String

The syncToken.

getSyncTokenBytes()

public ByteString getSyncTokenBytes()

Token indicating the state of the syncer.

string sync_token = 3;

Returns
TypeDescription
ByteString

The bytes for syncToken.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasLastSyncTime()

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

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilder()

public static SyncState.Builder newBuilder()
Returns
TypeDescription
SyncState.Builder

newBuilder(SyncState prototype)

public static SyncState.Builder newBuilder(SyncState prototype)
Parameter
NameDescription
prototypeSyncState
Returns
TypeDescription
SyncState.Builder

newBuilderForType()

public SyncState.Builder newBuilderForType()
Returns
TypeDescription
SyncState.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SyncState.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SyncState.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

parseDelimitedFrom(InputStream input)

public static SyncState parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SyncState
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SyncState parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SyncState
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SyncState parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SyncState
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SyncState parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SyncState
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SyncState parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SyncState
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SyncState parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SyncState
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SyncState parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SyncState
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SyncState parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SyncState
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SyncState parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SyncState
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SyncState parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SyncState
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SyncState parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SyncState
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SyncState parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SyncState
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SyncState> parser()
Returns
TypeDescription
Parser<SyncState>

toBuilder()

public SyncState.Builder toBuilder()
Returns
TypeDescription
SyncState.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException