Package com.google.firestore.admin.v1
Class IndexOperationMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<IndexOperationMetadata.Builder>
com.google.firestore.admin.v1.IndexOperationMetadata.Builder
- All Implemented Interfaces:
IndexOperationMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- IndexOperationMetadata
public static final class IndexOperationMetadata.Builder
extends com.google.protobuf.GeneratedMessage.Builder<IndexOperationMetadata.Builder>
implements IndexOperationMetadataOrBuilder
Metadata for [google.longrunning.Operation][google.longrunning.Operation] results from [FirestoreAdmin.CreateIndex][google.firestore.admin.v1.FirestoreAdmin.CreateIndex].Protobuf type
google.firestore.admin.v1.IndexOperationMetadata-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The time this operation completed.The index resource that this operation is acting on.The progress, in bytes, of this operation.The progress, in documents, of this operation.The time this operation started.The state of the operation.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampThe time this operation completed.com.google.protobuf.Timestamp.BuilderThe time this operation completed.com.google.protobuf.TimestampOrBuilderThe time this operation completed.getIndex()The index resource that this operation is acting on.com.google.protobuf.ByteStringThe index resource that this operation is acting on.The progress, in bytes, of this operation.The progress, in bytes, of this operation.The progress, in bytes, of this operation.The progress, in documents, of this operation.The progress, in documents, of this operation.The progress, in documents, of this operation.com.google.protobuf.TimestampThe time this operation started.com.google.protobuf.Timestamp.BuilderThe time this operation started.com.google.protobuf.TimestampOrBuilderThe time this operation started.getState()The state of the operation.intThe state of the operation.booleanThe time this operation completed.booleanThe progress, in bytes, of this operation.booleanThe progress, in documents, of this operation.booleanThe time this operation started.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeEndTime(com.google.protobuf.Timestamp value) The time this operation completed.mergeFrom(IndexOperationMetadata other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeProgressBytes(Progress value) The progress, in bytes, of this operation.mergeProgressDocuments(Progress value) The progress, in documents, of this operation.mergeStartTime(com.google.protobuf.Timestamp value) The time this operation started.setEndTime(com.google.protobuf.Timestamp value) The time this operation completed.setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) The time this operation completed.The index resource that this operation is acting on.setIndexBytes(com.google.protobuf.ByteString value) The index resource that this operation is acting on.setProgressBytes(Progress value) The progress, in bytes, of this operation.setProgressBytes(Progress.Builder builderForValue) The progress, in bytes, of this operation.setProgressDocuments(Progress value) The progress, in documents, of this operation.setProgressDocuments(Progress.Builder builderForValue) The progress, in documents, of this operation.setStartTime(com.google.protobuf.Timestamp value) The time this operation started.setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) The time this operation started.setState(OperationState value) The state of the operation.setStateValue(int value) The state of the operation.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<IndexOperationMetadata.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<IndexOperationMetadata.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<IndexOperationMetadata.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<IndexOperationMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<IndexOperationMetadata.Builder>
-
mergeFrom
public IndexOperationMetadata.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<IndexOperationMetadata.Builder>- Throws:
IOException
-
hasStartTime
public boolean hasStartTime()The time this operation started.
.google.protobuf.Timestamp start_time = 1;- Specified by:
hasStartTimein interfaceIndexOperationMetadataOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
public com.google.protobuf.Timestamp getStartTime()The time this operation started.
.google.protobuf.Timestamp start_time = 1;- Specified by:
getStartTimein interfaceIndexOperationMetadataOrBuilder- Returns:
- The startTime.
-
setStartTime
The time this operation started.
.google.protobuf.Timestamp start_time = 1; -
setStartTime
public IndexOperationMetadata.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) The time this operation started.
.google.protobuf.Timestamp start_time = 1; -
mergeStartTime
The time this operation started.
.google.protobuf.Timestamp start_time = 1; -
clearStartTime
The time this operation started.
.google.protobuf.Timestamp start_time = 1; -
getStartTimeBuilder
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()The time this operation started.
.google.protobuf.Timestamp start_time = 1; -
getStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()The time this operation started.
.google.protobuf.Timestamp start_time = 1;- Specified by:
getStartTimeOrBuilderin interfaceIndexOperationMetadataOrBuilder
-
hasEndTime
public boolean hasEndTime()The time this operation completed. Will be unset if operation still in progress.
.google.protobuf.Timestamp end_time = 2;- Specified by:
hasEndTimein interfaceIndexOperationMetadataOrBuilder- Returns:
- Whether the endTime field is set.
-
getEndTime
public com.google.protobuf.Timestamp getEndTime()The time this operation completed. Will be unset if operation still in progress.
.google.protobuf.Timestamp end_time = 2;- Specified by:
getEndTimein interfaceIndexOperationMetadataOrBuilder- Returns:
- The endTime.
-
setEndTime
The time this operation completed. Will be unset if operation still in progress.
.google.protobuf.Timestamp end_time = 2; -
setEndTime
public IndexOperationMetadata.Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) The time this operation completed. Will be unset if operation still in progress.
.google.protobuf.Timestamp end_time = 2; -
mergeEndTime
The time this operation completed. Will be unset if operation still in progress.
.google.protobuf.Timestamp end_time = 2; -
clearEndTime
The time this operation completed. Will be unset if operation still in progress.
.google.protobuf.Timestamp end_time = 2; -
getEndTimeBuilder
public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()The time this operation completed. Will be unset if operation still in progress.
.google.protobuf.Timestamp end_time = 2; -
getEndTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()The time this operation completed. Will be unset if operation still in progress.
.google.protobuf.Timestamp end_time = 2;- Specified by:
getEndTimeOrBuilderin interfaceIndexOperationMetadataOrBuilder
-
getIndex
The index resource that this operation is acting on. For example: `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`string index = 3;- Specified by:
getIndexin interfaceIndexOperationMetadataOrBuilder- Returns:
- The index.
-
getIndexBytes
public com.google.protobuf.ByteString getIndexBytes()The index resource that this operation is acting on. For example: `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`string index = 3;- Specified by:
getIndexBytesin interfaceIndexOperationMetadataOrBuilder- Returns:
- The bytes for index.
-
setIndex
The index resource that this operation is acting on. For example: `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`string index = 3;- Parameters:
value- The index to set.- Returns:
- This builder for chaining.
-
clearIndex
The index resource that this operation is acting on. For example: `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`string index = 3;- Returns:
- This builder for chaining.
-
setIndexBytes
The index resource that this operation is acting on. For example: `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`string index = 3;- Parameters:
value- The bytes for index to set.- Returns:
- This builder for chaining.
-
getStateValue
public int getStateValue()The state of the operation.
.google.firestore.admin.v1.OperationState state = 4;- Specified by:
getStateValuein interfaceIndexOperationMetadataOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
The state of the operation.
.google.firestore.admin.v1.OperationState state = 4;- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
The state of the operation.
.google.firestore.admin.v1.OperationState state = 4;- Specified by:
getStatein interfaceIndexOperationMetadataOrBuilder- Returns:
- The state.
-
setState
The state of the operation.
.google.firestore.admin.v1.OperationState state = 4;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
The state of the operation.
.google.firestore.admin.v1.OperationState state = 4;- Returns:
- This builder for chaining.
-
hasProgressDocuments
public boolean hasProgressDocuments()The progress, in documents, of this operation.
.google.firestore.admin.v1.Progress progress_documents = 5;- Specified by:
hasProgressDocumentsin interfaceIndexOperationMetadataOrBuilder- Returns:
- Whether the progressDocuments field is set.
-
getProgressDocuments
The progress, in documents, of this operation.
.google.firestore.admin.v1.Progress progress_documents = 5;- Specified by:
getProgressDocumentsin interfaceIndexOperationMetadataOrBuilder- Returns:
- The progressDocuments.
-
setProgressDocuments
The progress, in documents, of this operation.
.google.firestore.admin.v1.Progress progress_documents = 5; -
setProgressDocuments
The progress, in documents, of this operation.
.google.firestore.admin.v1.Progress progress_documents = 5; -
mergeProgressDocuments
The progress, in documents, of this operation.
.google.firestore.admin.v1.Progress progress_documents = 5; -
clearProgressDocuments
The progress, in documents, of this operation.
.google.firestore.admin.v1.Progress progress_documents = 5; -
getProgressDocumentsBuilder
The progress, in documents, of this operation.
.google.firestore.admin.v1.Progress progress_documents = 5; -
getProgressDocumentsOrBuilder
The progress, in documents, of this operation.
.google.firestore.admin.v1.Progress progress_documents = 5;- Specified by:
getProgressDocumentsOrBuilderin interfaceIndexOperationMetadataOrBuilder
-
hasProgressBytes
public boolean hasProgressBytes()The progress, in bytes, of this operation.
.google.firestore.admin.v1.Progress progress_bytes = 6;- Specified by:
hasProgressBytesin interfaceIndexOperationMetadataOrBuilder- Returns:
- Whether the progressBytes field is set.
-
getProgressBytes
The progress, in bytes, of this operation.
.google.firestore.admin.v1.Progress progress_bytes = 6;- Specified by:
getProgressBytesin interfaceIndexOperationMetadataOrBuilder- Returns:
- The progressBytes.
-
setProgressBytes
The progress, in bytes, of this operation.
.google.firestore.admin.v1.Progress progress_bytes = 6; -
setProgressBytes
The progress, in bytes, of this operation.
.google.firestore.admin.v1.Progress progress_bytes = 6; -
mergeProgressBytes
The progress, in bytes, of this operation.
.google.firestore.admin.v1.Progress progress_bytes = 6; -
clearProgressBytes
The progress, in bytes, of this operation.
.google.firestore.admin.v1.Progress progress_bytes = 6; -
getProgressBytesBuilder
The progress, in bytes, of this operation.
.google.firestore.admin.v1.Progress progress_bytes = 6; -
getProgressBytesOrBuilder
The progress, in bytes, of this operation.
.google.firestore.admin.v1.Progress progress_bytes = 6;- Specified by:
getProgressBytesOrBuilderin interfaceIndexOperationMetadataOrBuilder
-