Class SyncState.Builder (1.3.6)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.gkehub.configmanagement.v1.SyncError>
Returns
TypeDescription
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
NameDescription
valueSyncError
Returns
TypeDescription
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
NameDescription
builderForValueSyncError.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueSyncError
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSyncError.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
SyncError.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SyncState.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SyncState.Builder
Overrides

build()

public SyncState build()
Returns
TypeDescription
SyncState

buildPartial()

public SyncState buildPartial()
Returns
TypeDescription
SyncState

clear()

public SyncState.Builder clear()
Returns
TypeDescription
SyncState.Builder
Overrides

clearCode()

public SyncState.Builder clearCode()

Sync status code

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

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

clearField(Descriptors.FieldDescriptor field)

public SyncState.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SyncState.Builder
Overrides

clearImportToken()

public SyncState.Builder clearImportToken()

Token indicating the state of the importer.

string import_token = 2;

Returns
TypeDescription
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=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
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
TypeDescription
SyncState.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public SyncState.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SyncState.Builder
Overrides

clearSourceToken()

public SyncState.Builder clearSourceToken()

Token indicating the state of the repo.

string source_token = 1;

Returns
TypeDescription
SyncState.Builder

This builder for chaining.

clearSyncToken()

public SyncState.Builder clearSyncToken()

Token indicating the state of the syncer.

string sync_token = 3;

Returns
TypeDescription
SyncState.Builder

This builder for chaining.

clone()

public SyncState.Builder clone()
Returns
TypeDescription
SyncState.Builder
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.

getDefaultInstanceForType()

public SyncState getDefaultInstanceForType()
Returns
TypeDescription
SyncState

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
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() (deprecated)

public 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 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 Timestamp getLastSyncTime()

Timestamp type of when ACM last successfully synced the repo

.google.protobuf.Timestamp last_sync_time = 7;

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

getLastSyncTimeOrBuilder()

public TimestampOrBuilder getLastSyncTimeOrBuilder()

Timestamp type of when ACM last successfully synced the repo

.google.protobuf.Timestamp last_sync_time = 7;

Returns
TypeDescription
TimestampOrBuilder

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SyncState other)

public SyncState.Builder mergeFrom(SyncState other)
Parameter
NameDescription
otherSyncState
Returns
TypeDescription
SyncState.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SyncState.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SyncState.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SyncState.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
SyncState.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SyncState.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueSyncState.SyncCode

The code to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
indexint
valueSyncError
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSyncError.Builder
Returns
TypeDescription
SyncState.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SyncState.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SyncState.Builder
Overrides

setImportToken(String value)

public SyncState.Builder setImportToken(String value)

Token indicating the state of the importer.

string import_token = 2;

Parameter
NameDescription
valueString

The importToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for importToken to set.

Returns
TypeDescription
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=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];

Parameter
NameDescription
valueString

The lastSync to set.

Returns
TypeDescription
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=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];

Parameter
NameDescription
valueByteString

The bytes for lastSync to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
SyncState.Builder

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

public SyncState.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SyncState.Builder
Overrides

setSourceToken(String value)

public SyncState.Builder setSourceToken(String value)

Token indicating the state of the repo.

string source_token = 1;

Parameter
NameDescription
valueString

The sourceToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for sourceToken to set.

Returns
TypeDescription
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
NameDescription
valueString

The syncToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for syncToken to set.

Returns
TypeDescription
SyncState.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final SyncState.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SyncState.Builder
Overrides