Package com.google.cloud.chronicle.v1
Class Retrohunt.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Retrohunt.Builder>
com.google.cloud.chronicle.v1.Retrohunt.Builder
- All Implemented Interfaces:
RetrohuntOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Retrohunt
public static final class Retrohunt.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Retrohunt.Builder>
implements RetrohuntOrBuilder
Retrohunt is an execution of a Rule over a time range in the past.Protobuf type
google.cloud.chronicle.v1.Retrohunt-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.The resource name of the retrohunt.Required.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.Output only.Output only.getName()The resource name of the retrohunt.com.google.protobuf.ByteStringThe resource name of the retrohunt.Required.Required.Required.floatOutput only.getState()Output only.intOutput only.booleanOutput only.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeExecutionInterval(Interval value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeProcessInterval(Interval value) Required.setExecutionInterval(Interval value) Output only.setExecutionInterval(Interval.Builder builderForValue) Output only.The resource name of the retrohunt.setNameBytes(com.google.protobuf.ByteString value) The resource name of the retrohunt.setProcessInterval(Interval value) Required.setProcessInterval(Interval.Builder builderForValue) Required.setProgressPercentage(float value) Output only.setState(Retrohunt.State value) Output only.setStateValue(int value) Output only.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<Retrohunt.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<Retrohunt.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<Retrohunt.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<Retrohunt.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Retrohunt.Builder>
-
mergeFrom
public Retrohunt.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<Retrohunt.Builder>- Throws:
IOException
-
getName
The resource name of the retrohunt. Retrohunt is the child of a rule revision. {rule} in the format below is structured as {rule_id@revision_id}. Format: `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}`string name = 1;- Specified by:
getNamein interfaceRetrohuntOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The resource name of the retrohunt. Retrohunt is the child of a rule revision. {rule} in the format below is structured as {rule_id@revision_id}. Format: `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}`string name = 1;- Specified by:
getNameBytesin interfaceRetrohuntOrBuilder- Returns:
- The bytes for name.
-
setName
The resource name of the retrohunt. Retrohunt is the child of a rule revision. {rule} in the format below is structured as {rule_id@revision_id}. Format: `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}`string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The resource name of the retrohunt. Retrohunt is the child of a rule revision. {rule} in the format below is structured as {rule_id@revision_id}. Format: `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}`string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The resource name of the retrohunt. Retrohunt is the child of a rule revision. {rule} in the format below is structured as {rule_id@revision_id}. Format: `projects/{project}/locations/{location}/instances/{instance}/rules/{rule}/retrohunts/{retrohunt}`string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasProcessInterval
public boolean hasProcessInterval()Required. The start and end time of the event time range this retrohunt processes.
.google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasProcessIntervalin interfaceRetrohuntOrBuilder- Returns:
- Whether the processInterval field is set.
-
getProcessInterval
Required. The start and end time of the event time range this retrohunt processes.
.google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getProcessIntervalin interfaceRetrohuntOrBuilder- Returns:
- The processInterval.
-
setProcessInterval
Required. The start and end time of the event time range this retrohunt processes.
.google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED]; -
setProcessInterval
Required. The start and end time of the event time range this retrohunt processes.
.google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED]; -
mergeProcessInterval
Required. The start and end time of the event time range this retrohunt processes.
.google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED]; -
clearProcessInterval
Required. The start and end time of the event time range this retrohunt processes.
.google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED]; -
getProcessIntervalBuilder
Required. The start and end time of the event time range this retrohunt processes.
.google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED]; -
getProcessIntervalOrBuilder
Required. The start and end time of the event time range this retrohunt processes.
.google.type.Interval process_interval = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getProcessIntervalOrBuilderin interfaceRetrohuntOrBuilder
-
hasExecutionInterval
public boolean hasExecutionInterval()Output only. The start and end time of the retrohunt execution. If the retrohunt is not yet finished, the end time of the interval will not be populated.
.google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasExecutionIntervalin interfaceRetrohuntOrBuilder- Returns:
- Whether the executionInterval field is set.
-
getExecutionInterval
Output only. The start and end time of the retrohunt execution. If the retrohunt is not yet finished, the end time of the interval will not be populated.
.google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getExecutionIntervalin interfaceRetrohuntOrBuilder- Returns:
- The executionInterval.
-
setExecutionInterval
Output only. The start and end time of the retrohunt execution. If the retrohunt is not yet finished, the end time of the interval will not be populated.
.google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setExecutionInterval
Output only. The start and end time of the retrohunt execution. If the retrohunt is not yet finished, the end time of the interval will not be populated.
.google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeExecutionInterval
Output only. The start and end time of the retrohunt execution. If the retrohunt is not yet finished, the end time of the interval will not be populated.
.google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearExecutionInterval
Output only. The start and end time of the retrohunt execution. If the retrohunt is not yet finished, the end time of the interval will not be populated.
.google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getExecutionIntervalBuilder
Output only. The start and end time of the retrohunt execution. If the retrohunt is not yet finished, the end time of the interval will not be populated.
.google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getExecutionIntervalOrBuilder
Output only. The start and end time of the retrohunt execution. If the retrohunt is not yet finished, the end time of the interval will not be populated.
.google.type.Interval execution_interval = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getExecutionIntervalOrBuilderin interfaceRetrohuntOrBuilder
-
getStateValue
public int getStateValue()Output only. The state of the retrohunt.
.google.cloud.chronicle.v1.Retrohunt.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceRetrohuntOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
Output only. The state of the retrohunt.
.google.cloud.chronicle.v1.Retrohunt.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
Output only. The state of the retrohunt.
.google.cloud.chronicle.v1.Retrohunt.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceRetrohuntOrBuilder- Returns:
- The state.
-
setState
Output only. The state of the retrohunt.
.google.cloud.chronicle.v1.Retrohunt.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
Output only. The state of the retrohunt.
.google.cloud.chronicle.v1.Retrohunt.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getProgressPercentage
public float getProgressPercentage()Output only. Percent progress of the retrohunt towards completion, from 0.00 to 100.00.
float progress_percentage = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getProgressPercentagein interfaceRetrohuntOrBuilder- Returns:
- The progressPercentage.
-
setProgressPercentage
Output only. Percent progress of the retrohunt towards completion, from 0.00 to 100.00.
float progress_percentage = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The progressPercentage to set.- Returns:
- This builder for chaining.
-
clearProgressPercentage
Output only. Percent progress of the retrohunt towards completion, from 0.00 to 100.00.
float progress_percentage = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-