Class SyncState.Builder (1.49.0)

public static final class SyncState.Builder extends GeneratedMessageV3.Builder<SyncState.Builder> implements SyncStateOrBuilder

State indicating an ACM's progress syncing configurations to a cluster

Protobuf type google.cloud.gkehub.configmanagement.v1.SyncState

Implements

SyncStateOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllErrors(Iterable<? extends SyncError> values)

public SyncState.Builder addAllErrors(Iterable<? extends SyncError> values)

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
values Iterable<? extends com.google.cloud.gkehub.configmanagement.v1.SyncError>
Returns
Type Description
SyncState.Builder

addErrors(SyncError value)

public SyncState.Builder addErrors(SyncError value)

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
value SyncError
Returns
Type Description
SyncState.Builder

addErrors(SyncError.Builder builderForValue)

public SyncState.Builder addErrors(SyncError.Builder builderForValue)

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
builderForValue SyncError.Builder
Returns
Type Description
SyncState.Builder

addErrors(int index, SyncError value)

public SyncState.Builder addErrors(int index, SyncError value)

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;

Parameters
Name Description
index int
value SyncError
Returns
Type Description
SyncState.Builder

addErrors(int index, SyncError.Builder builderForValue)

public SyncState.Builder addErrors(int index, SyncError.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue SyncError.Builder
Returns
Type Description
SyncState.Builder

addErrorsBuilder()

public SyncError.Builder addErrorsBuilder()

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
SyncError.Builder

addErrorsBuilder(int index)

public SyncError.Builder addErrorsBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SyncState.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SyncState.Builder
Overrides

build()

public SyncState build()
Returns
Type Description
SyncState

buildPartial()

public SyncState buildPartial()
Returns
Type Description
SyncState

clear()

public SyncState.Builder clear()
Returns
Type Description
SyncState.Builder
Overrides

clearCode()

public SyncState.Builder clearCode()

Sync status code

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

Returns
Type Description
SyncState.Builder

This builder for chaining.

clearErrors()

public SyncState.Builder clearErrors()

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
SyncState.Builder

clearField(Descriptors.FieldDescriptor field)

public SyncState.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SyncState.Builder
Overrides

clearImportToken()

public SyncState.Builder clearImportToken()

Token indicating the state of the importer.

string import_token = 2;

Returns
Type Description
SyncState.Builder

This builder for chaining.

clearLastSync() (deprecated)

public SyncState.Builder clearLastSync()

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
SyncState.Builder

This builder for chaining.

clearLastSyncTime()

public SyncState.Builder clearLastSyncTime()

Timestamp type of when ACM last successfully synced the repo

.google.protobuf.Timestamp last_sync_time = 7;

Returns
Type Description
SyncState.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public SyncState.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SyncState.Builder
Overrides

clearSourceToken()

public SyncState.Builder clearSourceToken()

Token indicating the state of the repo.

string source_token = 1;

Returns
Type Description
SyncState.Builder

This builder for chaining.

clearSyncToken()

public SyncState.Builder clearSyncToken()

Token indicating the state of the syncer.

string sync_token = 3;

Returns
Type Description
SyncState.Builder

This builder for chaining.

clone()

public SyncState.Builder clone()
Returns
Type Description
SyncState.Builder
Overrides

getCode()

public SyncState.SyncCode getCode()

Sync status code

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

Returns
Type Description
SyncState.SyncCode

The code.

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
Type Description
SyncState

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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

getErrorsBuilder(int index)

public SyncError.Builder getErrorsBuilder(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.Builder

getErrorsBuilderList()

public List<SyncError.Builder> getErrorsBuilderList()

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<Builder>

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
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.v1.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.v1.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.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=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 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 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.

getLastSyncTimeBuilder()

public Timestamp.Builder getLastSyncTimeBuilder()

Timestamp type of when ACM last successfully synced the repo

.google.protobuf.Timestamp last_sync_time = 7;

Returns
Type Description
Builder

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

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SyncState other)

public SyncState.Builder mergeFrom(SyncState other)
Parameter
Name Description
other SyncState
Returns
Type Description
SyncState.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SyncState.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SyncState.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SyncState.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SyncState.Builder
Overrides

mergeLastSyncTime(Timestamp value)

public SyncState.Builder mergeLastSyncTime(Timestamp value)

Timestamp type of when ACM last successfully synced the repo

.google.protobuf.Timestamp last_sync_time = 7;

Parameter
Name Description
value Timestamp
Returns
Type Description
SyncState.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SyncState.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SyncState.Builder
Overrides

removeErrors(int index)

public SyncState.Builder removeErrors(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
SyncState.Builder

setCode(SyncState.SyncCode value)

public SyncState.Builder setCode(SyncState.SyncCode value)

Sync status code

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

Parameter
Name Description
value SyncState.SyncCode

The code to set.

Returns
Type Description
SyncState.Builder

This builder for chaining.

setCodeValue(int value)

public SyncState.Builder setCodeValue(int value)

Sync status code

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

Parameter
Name Description
value int

The enum numeric value on the wire for code to set.

Returns
Type Description
SyncState.Builder

This builder for chaining.

setErrors(int index, SyncError value)

public SyncState.Builder setErrors(int index, SyncError value)

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;

Parameters
Name Description
index int
value SyncError
Returns
Type Description
SyncState.Builder

setErrors(int index, SyncError.Builder builderForValue)

public SyncState.Builder setErrors(int index, SyncError.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue SyncError.Builder
Returns
Type Description
SyncState.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SyncState.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SyncState.Builder
Overrides

setImportToken(String value)

public SyncState.Builder setImportToken(String value)

Token indicating the state of the importer.

string import_token = 2;

Parameter
Name Description
value String

The importToken to set.

Returns
Type Description
SyncState.Builder

This builder for chaining.

setImportTokenBytes(ByteString value)

public SyncState.Builder setImportTokenBytes(ByteString value)

Token indicating the state of the importer.

string import_token = 2;

Parameter
Name Description
value ByteString

The bytes for importToken to set.

Returns
Type Description
SyncState.Builder

This builder for chaining.

setLastSync(String value) (deprecated)

public SyncState.Builder setLastSync(String value)

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];

Parameter
Name Description
value String

The lastSync to set.

Returns
Type Description
SyncState.Builder

This builder for chaining.

setLastSyncBytes(ByteString value) (deprecated)

public SyncState.Builder setLastSyncBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for lastSync to set.

Returns
Type Description
SyncState.Builder

This builder for chaining.

setLastSyncTime(Timestamp value)

public SyncState.Builder setLastSyncTime(Timestamp value)

Timestamp type of when ACM last successfully synced the repo

.google.protobuf.Timestamp last_sync_time = 7;

Parameter
Name Description
value Timestamp
Returns
Type Description
SyncState.Builder

setLastSyncTime(Timestamp.Builder builderForValue)

public SyncState.Builder setLastSyncTime(Timestamp.Builder builderForValue)

Timestamp type of when ACM last successfully synced the repo

.google.protobuf.Timestamp last_sync_time = 7;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SyncState.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SyncState.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SyncState.Builder
Overrides

setSourceToken(String value)

public SyncState.Builder setSourceToken(String value)

Token indicating the state of the repo.

string source_token = 1;

Parameter
Name Description
value String

The sourceToken to set.

Returns
Type Description
SyncState.Builder

This builder for chaining.

setSourceTokenBytes(ByteString value)

public SyncState.Builder setSourceTokenBytes(ByteString value)

Token indicating the state of the repo.

string source_token = 1;

Parameter
Name Description
value ByteString

The bytes for sourceToken to set.

Returns
Type Description
SyncState.Builder

This builder for chaining.

setSyncToken(String value)

public SyncState.Builder setSyncToken(String value)

Token indicating the state of the syncer.

string sync_token = 3;

Parameter
Name Description
value String

The syncToken to set.

Returns
Type Description
SyncState.Builder

This builder for chaining.

setSyncTokenBytes(ByteString value)

public SyncState.Builder setSyncTokenBytes(ByteString value)

Token indicating the state of the syncer.

string sync_token = 3;

Parameter
Name Description
value ByteString

The bytes for syncToken to set.

Returns
Type Description
SyncState.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SyncState.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SyncState.Builder
Overrides