Class SyncState.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SyncState.Builder>
com.google.cloud.gkehub.configmanagement.v1beta.SyncState.Builder
- All Implemented Interfaces:
SyncStateOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SyncState
public static final class SyncState.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SyncState.Builder>
implements SyncStateOrBuilder
State indicating an ACM's progress syncing configurations to a clusterProtobuf type
google.cloud.gkehub.configmanagement.v1beta.SyncState-
Method Summary
Modifier and TypeMethodDescriptionaddAllErrors(Iterable<? extends SyncError> values) A list of errors resulting from problematic configs.A list of errors resulting from problematic configs.addErrors(int index, SyncError.Builder builderForValue) A list of errors resulting from problematic configs.A list of errors resulting from problematic configs.addErrors(SyncError.Builder builderForValue) A list of errors resulting from problematic configs.A list of errors resulting from problematic configs.addErrorsBuilder(int index) A list of errors resulting from problematic configs.build()clear()Sync status codeA list of errors resulting from problematic configs.Token indicating the state of the importer.Deprecated.google.cloud.gkehub.configmanagement.v1beta.SyncState.last_sync is deprecated.Timestamp type of when ACM last successfully synced the repoToken indicating the state of the repo.Token indicating the state of the syncer.getCode()Sync status codeintSync status codestatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetErrors(int index) A list of errors resulting from problematic configs.getErrorsBuilder(int index) A list of errors resulting from problematic configs.A list of errors resulting from problematic configs.intA list of errors resulting from problematic configs.A list of errors resulting from problematic configs.getErrorsOrBuilder(int index) A list of errors resulting from problematic configs.List<? extends SyncErrorOrBuilder>A list of errors resulting from problematic configs.Token indicating the state of the importer.com.google.protobuf.ByteStringToken indicating the state of the importer.Deprecated.google.cloud.gkehub.configmanagement.v1beta.SyncState.last_sync is deprecated.com.google.protobuf.ByteStringDeprecated.google.cloud.gkehub.configmanagement.v1beta.SyncState.last_sync is deprecated.com.google.protobuf.TimestampTimestamp type of when ACM last successfully synced the repocom.google.protobuf.Timestamp.BuilderTimestamp type of when ACM last successfully synced the repocom.google.protobuf.TimestampOrBuilderTimestamp type of when ACM last successfully synced the repoToken indicating the state of the repo.com.google.protobuf.ByteStringToken indicating the state of the repo.Token indicating the state of the syncer.com.google.protobuf.ByteStringToken indicating the state of the syncer.booleanTimestamp type of when ACM last successfully synced the repoprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLastSyncTime(com.google.protobuf.Timestamp value) Timestamp type of when ACM last successfully synced the reporemoveErrors(int index) A list of errors resulting from problematic configs.setCode(SyncState.SyncCode value) Sync status codesetCodeValue(int value) Sync status codeA list of errors resulting from problematic configs.setErrors(int index, SyncError.Builder builderForValue) A list of errors resulting from problematic configs.setImportToken(String value) Token indicating the state of the importer.setImportTokenBytes(com.google.protobuf.ByteString value) Token indicating the state of the importer.setLastSync(String value) Deprecated.google.cloud.gkehub.configmanagement.v1beta.SyncState.last_sync is deprecated.setLastSyncBytes(com.google.protobuf.ByteString value) Deprecated.google.cloud.gkehub.configmanagement.v1beta.SyncState.last_sync is deprecated.setLastSyncTime(com.google.protobuf.Timestamp value) Timestamp type of when ACM last successfully synced the reposetLastSyncTime(com.google.protobuf.Timestamp.Builder builderForValue) Timestamp type of when ACM last successfully synced the reposetSourceToken(String value) Token indicating the state of the repo.setSourceTokenBytes(com.google.protobuf.ByteString value) Token indicating the state of the repo.setSyncToken(String value) Token indicating the state of the syncer.setSyncTokenBytes(com.google.protobuf.ByteString value) Token indicating the state of the syncer.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SyncState.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SyncState.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SyncState.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SyncState.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SyncState.Builder>
-
mergeFrom
public SyncState.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SyncState.Builder>- Throws:
IOException
-
getSourceToken
Token indicating the state of the repo.
string source_token = 1;- Specified by:
getSourceTokenin interfaceSyncStateOrBuilder- Returns:
- The sourceToken.
-
getSourceTokenBytes
public com.google.protobuf.ByteString getSourceTokenBytes()Token indicating the state of the repo.
string source_token = 1;- Specified by:
getSourceTokenBytesin interfaceSyncStateOrBuilder- Returns:
- The bytes for sourceToken.
-
setSourceToken
Token indicating the state of the repo.
string source_token = 1;- Parameters:
value- The sourceToken to set.- Returns:
- This builder for chaining.
-
clearSourceToken
Token indicating the state of the repo.
string source_token = 1;- Returns:
- This builder for chaining.
-
setSourceTokenBytes
Token indicating the state of the repo.
string source_token = 1;- Parameters:
value- The bytes for sourceToken to set.- Returns:
- This builder for chaining.
-
getImportToken
Token indicating the state of the importer.
string import_token = 2;- Specified by:
getImportTokenin interfaceSyncStateOrBuilder- Returns:
- The importToken.
-
getImportTokenBytes
public com.google.protobuf.ByteString getImportTokenBytes()Token indicating the state of the importer.
string import_token = 2;- Specified by:
getImportTokenBytesin interfaceSyncStateOrBuilder- Returns:
- The bytes for importToken.
-
setImportToken
Token indicating the state of the importer.
string import_token = 2;- Parameters:
value- The importToken to set.- Returns:
- This builder for chaining.
-
clearImportToken
Token indicating the state of the importer.
string import_token = 2;- Returns:
- This builder for chaining.
-
setImportTokenBytes
Token indicating the state of the importer.
string import_token = 2;- Parameters:
value- The bytes for importToken to set.- Returns:
- This builder for chaining.
-
getSyncToken
Token indicating the state of the syncer.
string sync_token = 3;- Specified by:
getSyncTokenin interfaceSyncStateOrBuilder- Returns:
- The syncToken.
-
getSyncTokenBytes
public com.google.protobuf.ByteString getSyncTokenBytes()Token indicating the state of the syncer.
string sync_token = 3;- Specified by:
getSyncTokenBytesin interfaceSyncStateOrBuilder- Returns:
- The bytes for syncToken.
-
setSyncToken
Token indicating the state of the syncer.
string sync_token = 3;- Parameters:
value- The syncToken to set.- Returns:
- This builder for chaining.
-
clearSyncToken
Token indicating the state of the syncer.
string sync_token = 3;- Returns:
- This builder for chaining.
-
setSyncTokenBytes
Token indicating the state of the syncer.
string sync_token = 3;- Parameters:
value- The bytes for syncToken to set.- Returns:
- This builder for chaining.
-
getLastSync
Deprecated.google.cloud.gkehub.configmanagement.v1beta.SyncState.last_sync is deprecated. See google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto;l=603Deprecated: 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];- Specified by:
getLastSyncin interfaceSyncStateOrBuilder- Returns:
- The lastSync.
-
getLastSyncBytes
Deprecated.google.cloud.gkehub.configmanagement.v1beta.SyncState.last_sync is deprecated. See google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto;l=603Deprecated: 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];- Specified by:
getLastSyncBytesin interfaceSyncStateOrBuilder- Returns:
- The bytes for lastSync.
-
setLastSync
Deprecated.google.cloud.gkehub.configmanagement.v1beta.SyncState.last_sync is deprecated. See google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto;l=603Deprecated: 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];- Parameters:
value- The lastSync to set.- Returns:
- This builder for chaining.
-
clearLastSync
Deprecated.google.cloud.gkehub.configmanagement.v1beta.SyncState.last_sync is deprecated. See google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto;l=603Deprecated: 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:
- This builder for chaining.
-
setLastSyncBytes
Deprecated.google.cloud.gkehub.configmanagement.v1beta.SyncState.last_sync is deprecated. See google/cloud/gkehub/v1beta/configmanagement/configmanagement.proto;l=603Deprecated: 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];- Parameters:
value- The bytes for lastSync to set.- Returns:
- This builder for chaining.
-
hasLastSyncTime
public boolean hasLastSyncTime()Timestamp type of when ACM last successfully synced the repo
.google.protobuf.Timestamp last_sync_time = 7;- Specified by:
hasLastSyncTimein interfaceSyncStateOrBuilder- Returns:
- Whether the lastSyncTime field is set.
-
getLastSyncTime
public com.google.protobuf.Timestamp getLastSyncTime()Timestamp type of when ACM last successfully synced the repo
.google.protobuf.Timestamp last_sync_time = 7;- Specified by:
getLastSyncTimein interfaceSyncStateOrBuilder- Returns:
- The lastSyncTime.
-
setLastSyncTime
Timestamp type of when ACM last successfully synced the repo
.google.protobuf.Timestamp last_sync_time = 7; -
setLastSyncTime
Timestamp type of when ACM last successfully synced the repo
.google.protobuf.Timestamp last_sync_time = 7; -
mergeLastSyncTime
Timestamp type of when ACM last successfully synced the repo
.google.protobuf.Timestamp last_sync_time = 7; -
clearLastSyncTime
Timestamp type of when ACM last successfully synced the repo
.google.protobuf.Timestamp last_sync_time = 7; -
getLastSyncTimeBuilder
public com.google.protobuf.Timestamp.Builder getLastSyncTimeBuilder()Timestamp type of when ACM last successfully synced the repo
.google.protobuf.Timestamp last_sync_time = 7; -
getLastSyncTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getLastSyncTimeOrBuilder()Timestamp type of when ACM last successfully synced the repo
.google.protobuf.Timestamp last_sync_time = 7;- Specified by:
getLastSyncTimeOrBuilderin interfaceSyncStateOrBuilder
-
getCodeValue
public int getCodeValue()Sync status code
.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5;- Specified by:
getCodeValuein interfaceSyncStateOrBuilder- Returns:
- The enum numeric value on the wire for code.
-
setCodeValue
Sync status code
.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5;- Parameters:
value- The enum numeric value on the wire for code to set.- Returns:
- This builder for chaining.
-
getCode
Sync status code
.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5;- Specified by:
getCodein interfaceSyncStateOrBuilder- Returns:
- The code.
-
setCode
Sync status code
.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5;- Parameters:
value- The code to set.- Returns:
- This builder for chaining.
-
clearCode
Sync status code
.google.cloud.gkehub.configmanagement.v1beta.SyncState.SyncCode code = 5;- Returns:
- This builder for chaining.
-
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.v1beta.SyncError errors = 6;- Specified by:
getErrorsListin interfaceSyncStateOrBuilder
-
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.v1beta.SyncError errors = 6;- Specified by:
getErrorsCountin interfaceSyncStateOrBuilder
-
getErrors
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.v1beta.SyncError errors = 6;- Specified by:
getErrorsin interfaceSyncStateOrBuilder
-
setErrors
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.v1beta.SyncError errors = 6; -
setErrors
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.v1beta.SyncError errors = 6; -
addErrors
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.v1beta.SyncError errors = 6; -
addErrors
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.v1beta.SyncError errors = 6; -
addErrors
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.v1beta.SyncError errors = 6; -
addErrors
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.v1beta.SyncError errors = 6; -
addAllErrors
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.v1beta.SyncError errors = 6; -
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.v1beta.SyncError errors = 6; -
removeErrors
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.v1beta.SyncError errors = 6; -
getErrorsBuilder
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.v1beta.SyncError errors = 6; -
getErrorsOrBuilder
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.v1beta.SyncError errors = 6;- Specified by:
getErrorsOrBuilderin interfaceSyncStateOrBuilder
-
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.v1beta.SyncError errors = 6;- Specified by:
getErrorsOrBuilderListin interfaceSyncStateOrBuilder
-
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.v1beta.SyncError errors = 6; -
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.v1beta.SyncError errors = 6; -
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.v1beta.SyncError errors = 6;
-