Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.temporal.api.schedule.v1.ScheduleListInfo Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: temporal/api/schedule/v1/message.proto
package io.temporal.api.schedule.v1;
/**
*
* ScheduleListInfo is an abbreviated set of values from Schedule and ScheduleInfo
* that's returned in ListSchedules.
*
*
* Protobuf type {@code temporal.api.schedule.v1.ScheduleListInfo}
*/
@javax.annotation.Generated(value="protoc", comments="annotations:ScheduleListInfo.java.pb.meta")
public final class ScheduleListInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:temporal.api.schedule.v1.ScheduleListInfo)
ScheduleListInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ScheduleListInfo.newBuilder() to construct.
private ScheduleListInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private ScheduleListInfo() {
notes_ = "";
recentActions_ = java.util.Collections.emptyList();
futureActionTimes_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ScheduleListInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ScheduleListInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
io.temporal.api.schedule.v1.ScheduleSpec.Builder subBuilder = null;
if (spec_ != null) {
subBuilder = spec_.toBuilder();
}
spec_ = input.readMessage(io.temporal.api.schedule.v1.ScheduleSpec.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(spec_);
spec_ = subBuilder.buildPartial();
}
break;
}
case 18: {
io.temporal.api.common.v1.WorkflowType.Builder subBuilder = null;
if (workflowType_ != null) {
subBuilder = workflowType_.toBuilder();
}
workflowType_ = input.readMessage(io.temporal.api.common.v1.WorkflowType.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(workflowType_);
workflowType_ = subBuilder.buildPartial();
}
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
notes_ = s;
break;
}
case 32: {
paused_ = input.readBool();
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
recentActions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
recentActions_.add(
input.readMessage(io.temporal.api.schedule.v1.ScheduleActionResult.parser(), extensionRegistry));
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
futureActionTimes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
futureActionTimes_.add(
input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
recentActions_ = java.util.Collections.unmodifiableList(recentActions_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
futureActionTimes_ = java.util.Collections.unmodifiableList(futureActionTimes_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.temporal.api.schedule.v1.MessageProto.internal_static_temporal_api_schedule_v1_ScheduleListInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.schedule.v1.MessageProto.internal_static_temporal_api_schedule_v1_ScheduleListInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.schedule.v1.ScheduleListInfo.class, io.temporal.api.schedule.v1.ScheduleListInfo.Builder.class);
}
public static final int SPEC_FIELD_NUMBER = 1;
private io.temporal.api.schedule.v1.ScheduleSpec spec_;
/**
*
* From spec:
* Some fields are dropped from this copy of spec: timezone_data
*
*
* .temporal.api.schedule.v1.ScheduleSpec spec = 1;
* @return Whether the spec field is set.
*/
public boolean hasSpec() {
return spec_ != null;
}
/**
*
* From spec:
* Some fields are dropped from this copy of spec: timezone_data
*
*
* .temporal.api.schedule.v1.ScheduleSpec spec = 1;
* @return The spec.
*/
public io.temporal.api.schedule.v1.ScheduleSpec getSpec() {
return spec_ == null ? io.temporal.api.schedule.v1.ScheduleSpec.getDefaultInstance() : spec_;
}
/**
*
* From spec:
* Some fields are dropped from this copy of spec: timezone_data
*
*
* .temporal.api.schedule.v1.ScheduleSpec spec = 1;
*/
public io.temporal.api.schedule.v1.ScheduleSpecOrBuilder getSpecOrBuilder() {
return getSpec();
}
public static final int WORKFLOW_TYPE_FIELD_NUMBER = 2;
private io.temporal.api.common.v1.WorkflowType workflowType_;
/**
*
* From action:
* Action is a oneof field, but we need to encode this in JSON and oneof fields don't work
* well with JSON. If action is start_workflow, this is set:
*
*
* .temporal.api.common.v1.WorkflowType workflow_type = 2;
* @return Whether the workflowType field is set.
*/
public boolean hasWorkflowType() {
return workflowType_ != null;
}
/**
*
* From action:
* Action is a oneof field, but we need to encode this in JSON and oneof fields don't work
* well with JSON. If action is start_workflow, this is set:
*
*
* .temporal.api.common.v1.WorkflowType workflow_type = 2;
* @return The workflowType.
*/
public io.temporal.api.common.v1.WorkflowType getWorkflowType() {
return workflowType_ == null ? io.temporal.api.common.v1.WorkflowType.getDefaultInstance() : workflowType_;
}
/**
*
* From action:
* Action is a oneof field, but we need to encode this in JSON and oneof fields don't work
* well with JSON. If action is start_workflow, this is set:
*
*
* .temporal.api.common.v1.WorkflowType workflow_type = 2;
*/
public io.temporal.api.common.v1.WorkflowTypeOrBuilder getWorkflowTypeOrBuilder() {
return getWorkflowType();
}
public static final int NOTES_FIELD_NUMBER = 3;
private volatile java.lang.Object notes_;
/**
*
* From state:
*
*
* string notes = 3;
* @return The notes.
*/
public java.lang.String getNotes() {
java.lang.Object ref = notes_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
notes_ = s;
return s;
}
}
/**
*
* From state:
*
*
* string notes = 3;
* @return The bytes for notes.
*/
public com.google.protobuf.ByteString
getNotesBytes() {
java.lang.Object ref = notes_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
notes_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PAUSED_FIELD_NUMBER = 4;
private boolean paused_;
/**
* bool paused = 4;
* @return The paused.
*/
public boolean getPaused() {
return paused_;
}
public static final int RECENT_ACTIONS_FIELD_NUMBER = 5;
private java.util.List recentActions_;
/**
*
* From info (maybe fewer entries):
*
*
* repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 5;
*/
public java.util.List getRecentActionsList() {
return recentActions_;
}
/**
*
* From info (maybe fewer entries):
*
*
* repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 5;
*/
public java.util.List
getRecentActionsOrBuilderList() {
return recentActions_;
}
/**
*
* From info (maybe fewer entries):
*
*
* repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 5;
*/
public int getRecentActionsCount() {
return recentActions_.size();
}
/**
*
* From info (maybe fewer entries):
*
*
* repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 5;
*/
public io.temporal.api.schedule.v1.ScheduleActionResult getRecentActions(int index) {
return recentActions_.get(index);
}
/**
*
* From info (maybe fewer entries):
*
*
* repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 5;
*/
public io.temporal.api.schedule.v1.ScheduleActionResultOrBuilder getRecentActionsOrBuilder(
int index) {
return recentActions_.get(index);
}
public static final int FUTURE_ACTION_TIMES_FIELD_NUMBER = 6;
private java.util.List futureActionTimes_;
/**
* repeated .google.protobuf.Timestamp future_action_times = 6 [(.gogoproto.stdtime) = true];
*/
public java.util.List getFutureActionTimesList() {
return futureActionTimes_;
}
/**
* repeated .google.protobuf.Timestamp future_action_times = 6 [(.gogoproto.stdtime) = true];
*/
public java.util.List
getFutureActionTimesOrBuilderList() {
return futureActionTimes_;
}
/**
* repeated .google.protobuf.Timestamp future_action_times = 6 [(.gogoproto.stdtime) = true];
*/
public int getFutureActionTimesCount() {
return futureActionTimes_.size();
}
/**
* repeated .google.protobuf.Timestamp future_action_times = 6 [(.gogoproto.stdtime) = true];
*/
public com.google.protobuf.Timestamp getFutureActionTimes(int index) {
return futureActionTimes_.get(index);
}
/**
* repeated .google.protobuf.Timestamp future_action_times = 6 [(.gogoproto.stdtime) = true];
*/
public com.google.protobuf.TimestampOrBuilder getFutureActionTimesOrBuilder(
int index) {
return futureActionTimes_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (spec_ != null) {
output.writeMessage(1, getSpec());
}
if (workflowType_ != null) {
output.writeMessage(2, getWorkflowType());
}
if (!getNotesBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, notes_);
}
if (paused_ != false) {
output.writeBool(4, paused_);
}
for (int i = 0; i < recentActions_.size(); i++) {
output.writeMessage(5, recentActions_.get(i));
}
for (int i = 0; i < futureActionTimes_.size(); i++) {
output.writeMessage(6, futureActionTimes_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (spec_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getSpec());
}
if (workflowType_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getWorkflowType());
}
if (!getNotesBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, notes_);
}
if (paused_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, paused_);
}
for (int i = 0; i < recentActions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, recentActions_.get(i));
}
for (int i = 0; i < futureActionTimes_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, futureActionTimes_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.temporal.api.schedule.v1.ScheduleListInfo)) {
return super.equals(obj);
}
io.temporal.api.schedule.v1.ScheduleListInfo other = (io.temporal.api.schedule.v1.ScheduleListInfo) obj;
if (hasSpec() != other.hasSpec()) return false;
if (hasSpec()) {
if (!getSpec()
.equals(other.getSpec())) return false;
}
if (hasWorkflowType() != other.hasWorkflowType()) return false;
if (hasWorkflowType()) {
if (!getWorkflowType()
.equals(other.getWorkflowType())) return false;
}
if (!getNotes()
.equals(other.getNotes())) return false;
if (getPaused()
!= other.getPaused()) return false;
if (!getRecentActionsList()
.equals(other.getRecentActionsList())) return false;
if (!getFutureActionTimesList()
.equals(other.getFutureActionTimesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasSpec()) {
hash = (37 * hash) + SPEC_FIELD_NUMBER;
hash = (53 * hash) + getSpec().hashCode();
}
if (hasWorkflowType()) {
hash = (37 * hash) + WORKFLOW_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getWorkflowType().hashCode();
}
hash = (37 * hash) + NOTES_FIELD_NUMBER;
hash = (53 * hash) + getNotes().hashCode();
hash = (37 * hash) + PAUSED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getPaused());
if (getRecentActionsCount() > 0) {
hash = (37 * hash) + RECENT_ACTIONS_FIELD_NUMBER;
hash = (53 * hash) + getRecentActionsList().hashCode();
}
if (getFutureActionTimesCount() > 0) {
hash = (37 * hash) + FUTURE_ACTION_TIMES_FIELD_NUMBER;
hash = (53 * hash) + getFutureActionTimesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.temporal.api.schedule.v1.ScheduleListInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.schedule.v1.ScheduleListInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.temporal.api.schedule.v1.ScheduleListInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.schedule.v1.ScheduleListInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.temporal.api.schedule.v1.ScheduleListInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.temporal.api.schedule.v1.ScheduleListInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.temporal.api.schedule.v1.ScheduleListInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.schedule.v1.ScheduleListInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.temporal.api.schedule.v1.ScheduleListInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.temporal.api.schedule.v1.ScheduleListInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.temporal.api.schedule.v1.ScheduleListInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.temporal.api.schedule.v1.ScheduleListInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.temporal.api.schedule.v1.ScheduleListInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* ScheduleListInfo is an abbreviated set of values from Schedule and ScheduleInfo
* that's returned in ListSchedules.
*
*
* Protobuf type {@code temporal.api.schedule.v1.ScheduleListInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:temporal.api.schedule.v1.ScheduleListInfo)
io.temporal.api.schedule.v1.ScheduleListInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.temporal.api.schedule.v1.MessageProto.internal_static_temporal_api_schedule_v1_ScheduleListInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.temporal.api.schedule.v1.MessageProto.internal_static_temporal_api_schedule_v1_ScheduleListInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.temporal.api.schedule.v1.ScheduleListInfo.class, io.temporal.api.schedule.v1.ScheduleListInfo.Builder.class);
}
// Construct using io.temporal.api.schedule.v1.ScheduleListInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRecentActionsFieldBuilder();
getFutureActionTimesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (specBuilder_ == null) {
spec_ = null;
} else {
spec_ = null;
specBuilder_ = null;
}
if (workflowTypeBuilder_ == null) {
workflowType_ = null;
} else {
workflowType_ = null;
workflowTypeBuilder_ = null;
}
notes_ = "";
paused_ = false;
if (recentActionsBuilder_ == null) {
recentActions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
recentActionsBuilder_.clear();
}
if (futureActionTimesBuilder_ == null) {
futureActionTimes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
futureActionTimesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.temporal.api.schedule.v1.MessageProto.internal_static_temporal_api_schedule_v1_ScheduleListInfo_descriptor;
}
@java.lang.Override
public io.temporal.api.schedule.v1.ScheduleListInfo getDefaultInstanceForType() {
return io.temporal.api.schedule.v1.ScheduleListInfo.getDefaultInstance();
}
@java.lang.Override
public io.temporal.api.schedule.v1.ScheduleListInfo build() {
io.temporal.api.schedule.v1.ScheduleListInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.temporal.api.schedule.v1.ScheduleListInfo buildPartial() {
io.temporal.api.schedule.v1.ScheduleListInfo result = new io.temporal.api.schedule.v1.ScheduleListInfo(this);
int from_bitField0_ = bitField0_;
if (specBuilder_ == null) {
result.spec_ = spec_;
} else {
result.spec_ = specBuilder_.build();
}
if (workflowTypeBuilder_ == null) {
result.workflowType_ = workflowType_;
} else {
result.workflowType_ = workflowTypeBuilder_.build();
}
result.notes_ = notes_;
result.paused_ = paused_;
if (recentActionsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
recentActions_ = java.util.Collections.unmodifiableList(recentActions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.recentActions_ = recentActions_;
} else {
result.recentActions_ = recentActionsBuilder_.build();
}
if (futureActionTimesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
futureActionTimes_ = java.util.Collections.unmodifiableList(futureActionTimes_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.futureActionTimes_ = futureActionTimes_;
} else {
result.futureActionTimes_ = futureActionTimesBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.temporal.api.schedule.v1.ScheduleListInfo) {
return mergeFrom((io.temporal.api.schedule.v1.ScheduleListInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.temporal.api.schedule.v1.ScheduleListInfo other) {
if (other == io.temporal.api.schedule.v1.ScheduleListInfo.getDefaultInstance()) return this;
if (other.hasSpec()) {
mergeSpec(other.getSpec());
}
if (other.hasWorkflowType()) {
mergeWorkflowType(other.getWorkflowType());
}
if (!other.getNotes().isEmpty()) {
notes_ = other.notes_;
onChanged();
}
if (other.getPaused() != false) {
setPaused(other.getPaused());
}
if (recentActionsBuilder_ == null) {
if (!other.recentActions_.isEmpty()) {
if (recentActions_.isEmpty()) {
recentActions_ = other.recentActions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRecentActionsIsMutable();
recentActions_.addAll(other.recentActions_);
}
onChanged();
}
} else {
if (!other.recentActions_.isEmpty()) {
if (recentActionsBuilder_.isEmpty()) {
recentActionsBuilder_.dispose();
recentActionsBuilder_ = null;
recentActions_ = other.recentActions_;
bitField0_ = (bitField0_ & ~0x00000001);
recentActionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRecentActionsFieldBuilder() : null;
} else {
recentActionsBuilder_.addAllMessages(other.recentActions_);
}
}
}
if (futureActionTimesBuilder_ == null) {
if (!other.futureActionTimes_.isEmpty()) {
if (futureActionTimes_.isEmpty()) {
futureActionTimes_ = other.futureActionTimes_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureFutureActionTimesIsMutable();
futureActionTimes_.addAll(other.futureActionTimes_);
}
onChanged();
}
} else {
if (!other.futureActionTimes_.isEmpty()) {
if (futureActionTimesBuilder_.isEmpty()) {
futureActionTimesBuilder_.dispose();
futureActionTimesBuilder_ = null;
futureActionTimes_ = other.futureActionTimes_;
bitField0_ = (bitField0_ & ~0x00000002);
futureActionTimesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFutureActionTimesFieldBuilder() : null;
} else {
futureActionTimesBuilder_.addAllMessages(other.futureActionTimes_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.temporal.api.schedule.v1.ScheduleListInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.temporal.api.schedule.v1.ScheduleListInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private io.temporal.api.schedule.v1.ScheduleSpec spec_;
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.schedule.v1.ScheduleSpec, io.temporal.api.schedule.v1.ScheduleSpec.Builder, io.temporal.api.schedule.v1.ScheduleSpecOrBuilder> specBuilder_;
/**
*
* From spec:
* Some fields are dropped from this copy of spec: timezone_data
*
*
* .temporal.api.schedule.v1.ScheduleSpec spec = 1;
* @return Whether the spec field is set.
*/
public boolean hasSpec() {
return specBuilder_ != null || spec_ != null;
}
/**
*
* From spec:
* Some fields are dropped from this copy of spec: timezone_data
*
*
* .temporal.api.schedule.v1.ScheduleSpec spec = 1;
* @return The spec.
*/
public io.temporal.api.schedule.v1.ScheduleSpec getSpec() {
if (specBuilder_ == null) {
return spec_ == null ? io.temporal.api.schedule.v1.ScheduleSpec.getDefaultInstance() : spec_;
} else {
return specBuilder_.getMessage();
}
}
/**
*
* From spec:
* Some fields are dropped from this copy of spec: timezone_data
*
*
* .temporal.api.schedule.v1.ScheduleSpec spec = 1;
*/
public Builder setSpec(io.temporal.api.schedule.v1.ScheduleSpec value) {
if (specBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
spec_ = value;
onChanged();
} else {
specBuilder_.setMessage(value);
}
return this;
}
/**
*
* From spec:
* Some fields are dropped from this copy of spec: timezone_data
*
*
* .temporal.api.schedule.v1.ScheduleSpec spec = 1;
*/
public Builder setSpec(
io.temporal.api.schedule.v1.ScheduleSpec.Builder builderForValue) {
if (specBuilder_ == null) {
spec_ = builderForValue.build();
onChanged();
} else {
specBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* From spec:
* Some fields are dropped from this copy of spec: timezone_data
*
*
* .temporal.api.schedule.v1.ScheduleSpec spec = 1;
*/
public Builder mergeSpec(io.temporal.api.schedule.v1.ScheduleSpec value) {
if (specBuilder_ == null) {
if (spec_ != null) {
spec_ =
io.temporal.api.schedule.v1.ScheduleSpec.newBuilder(spec_).mergeFrom(value).buildPartial();
} else {
spec_ = value;
}
onChanged();
} else {
specBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* From spec:
* Some fields are dropped from this copy of spec: timezone_data
*
*
* .temporal.api.schedule.v1.ScheduleSpec spec = 1;
*/
public Builder clearSpec() {
if (specBuilder_ == null) {
spec_ = null;
onChanged();
} else {
spec_ = null;
specBuilder_ = null;
}
return this;
}
/**
*
* From spec:
* Some fields are dropped from this copy of spec: timezone_data
*
*
* .temporal.api.schedule.v1.ScheduleSpec spec = 1;
*/
public io.temporal.api.schedule.v1.ScheduleSpec.Builder getSpecBuilder() {
onChanged();
return getSpecFieldBuilder().getBuilder();
}
/**
*
* From spec:
* Some fields are dropped from this copy of spec: timezone_data
*
*
* .temporal.api.schedule.v1.ScheduleSpec spec = 1;
*/
public io.temporal.api.schedule.v1.ScheduleSpecOrBuilder getSpecOrBuilder() {
if (specBuilder_ != null) {
return specBuilder_.getMessageOrBuilder();
} else {
return spec_ == null ?
io.temporal.api.schedule.v1.ScheduleSpec.getDefaultInstance() : spec_;
}
}
/**
*
* From spec:
* Some fields are dropped from this copy of spec: timezone_data
*
*
* .temporal.api.schedule.v1.ScheduleSpec spec = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.schedule.v1.ScheduleSpec, io.temporal.api.schedule.v1.ScheduleSpec.Builder, io.temporal.api.schedule.v1.ScheduleSpecOrBuilder>
getSpecFieldBuilder() {
if (specBuilder_ == null) {
specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.schedule.v1.ScheduleSpec, io.temporal.api.schedule.v1.ScheduleSpec.Builder, io.temporal.api.schedule.v1.ScheduleSpecOrBuilder>(
getSpec(),
getParentForChildren(),
isClean());
spec_ = null;
}
return specBuilder_;
}
private io.temporal.api.common.v1.WorkflowType workflowType_;
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.WorkflowType, io.temporal.api.common.v1.WorkflowType.Builder, io.temporal.api.common.v1.WorkflowTypeOrBuilder> workflowTypeBuilder_;
/**
*
* From action:
* Action is a oneof field, but we need to encode this in JSON and oneof fields don't work
* well with JSON. If action is start_workflow, this is set:
*
*
* .temporal.api.common.v1.WorkflowType workflow_type = 2;
* @return Whether the workflowType field is set.
*/
public boolean hasWorkflowType() {
return workflowTypeBuilder_ != null || workflowType_ != null;
}
/**
*
* From action:
* Action is a oneof field, but we need to encode this in JSON and oneof fields don't work
* well with JSON. If action is start_workflow, this is set:
*
*
* .temporal.api.common.v1.WorkflowType workflow_type = 2;
* @return The workflowType.
*/
public io.temporal.api.common.v1.WorkflowType getWorkflowType() {
if (workflowTypeBuilder_ == null) {
return workflowType_ == null ? io.temporal.api.common.v1.WorkflowType.getDefaultInstance() : workflowType_;
} else {
return workflowTypeBuilder_.getMessage();
}
}
/**
*
* From action:
* Action is a oneof field, but we need to encode this in JSON and oneof fields don't work
* well with JSON. If action is start_workflow, this is set:
*
*
* .temporal.api.common.v1.WorkflowType workflow_type = 2;
*/
public Builder setWorkflowType(io.temporal.api.common.v1.WorkflowType value) {
if (workflowTypeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
workflowType_ = value;
onChanged();
} else {
workflowTypeBuilder_.setMessage(value);
}
return this;
}
/**
*
* From action:
* Action is a oneof field, but we need to encode this in JSON and oneof fields don't work
* well with JSON. If action is start_workflow, this is set:
*
*
* .temporal.api.common.v1.WorkflowType workflow_type = 2;
*/
public Builder setWorkflowType(
io.temporal.api.common.v1.WorkflowType.Builder builderForValue) {
if (workflowTypeBuilder_ == null) {
workflowType_ = builderForValue.build();
onChanged();
} else {
workflowTypeBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* From action:
* Action is a oneof field, but we need to encode this in JSON and oneof fields don't work
* well with JSON. If action is start_workflow, this is set:
*
*
* .temporal.api.common.v1.WorkflowType workflow_type = 2;
*/
public Builder mergeWorkflowType(io.temporal.api.common.v1.WorkflowType value) {
if (workflowTypeBuilder_ == null) {
if (workflowType_ != null) {
workflowType_ =
io.temporal.api.common.v1.WorkflowType.newBuilder(workflowType_).mergeFrom(value).buildPartial();
} else {
workflowType_ = value;
}
onChanged();
} else {
workflowTypeBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* From action:
* Action is a oneof field, but we need to encode this in JSON and oneof fields don't work
* well with JSON. If action is start_workflow, this is set:
*
*
* .temporal.api.common.v1.WorkflowType workflow_type = 2;
*/
public Builder clearWorkflowType() {
if (workflowTypeBuilder_ == null) {
workflowType_ = null;
onChanged();
} else {
workflowType_ = null;
workflowTypeBuilder_ = null;
}
return this;
}
/**
*
* From action:
* Action is a oneof field, but we need to encode this in JSON and oneof fields don't work
* well with JSON. If action is start_workflow, this is set:
*
*
* .temporal.api.common.v1.WorkflowType workflow_type = 2;
*/
public io.temporal.api.common.v1.WorkflowType.Builder getWorkflowTypeBuilder() {
onChanged();
return getWorkflowTypeFieldBuilder().getBuilder();
}
/**
*
* From action:
* Action is a oneof field, but we need to encode this in JSON and oneof fields don't work
* well with JSON. If action is start_workflow, this is set:
*
*
* .temporal.api.common.v1.WorkflowType workflow_type = 2;
*/
public io.temporal.api.common.v1.WorkflowTypeOrBuilder getWorkflowTypeOrBuilder() {
if (workflowTypeBuilder_ != null) {
return workflowTypeBuilder_.getMessageOrBuilder();
} else {
return workflowType_ == null ?
io.temporal.api.common.v1.WorkflowType.getDefaultInstance() : workflowType_;
}
}
/**
*
* From action:
* Action is a oneof field, but we need to encode this in JSON and oneof fields don't work
* well with JSON. If action is start_workflow, this is set:
*
*
* .temporal.api.common.v1.WorkflowType workflow_type = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.WorkflowType, io.temporal.api.common.v1.WorkflowType.Builder, io.temporal.api.common.v1.WorkflowTypeOrBuilder>
getWorkflowTypeFieldBuilder() {
if (workflowTypeBuilder_ == null) {
workflowTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.temporal.api.common.v1.WorkflowType, io.temporal.api.common.v1.WorkflowType.Builder, io.temporal.api.common.v1.WorkflowTypeOrBuilder>(
getWorkflowType(),
getParentForChildren(),
isClean());
workflowType_ = null;
}
return workflowTypeBuilder_;
}
private java.lang.Object notes_ = "";
/**
*
* From state:
*
*
* string notes = 3;
* @return The notes.
*/
public java.lang.String getNotes() {
java.lang.Object ref = notes_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
notes_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* From state:
*
*
* string notes = 3;
* @return The bytes for notes.
*/
public com.google.protobuf.ByteString
getNotesBytes() {
java.lang.Object ref = notes_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
notes_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* From state:
*
*
* string notes = 3;
* @param value The notes to set.
* @return This builder for chaining.
*/
public Builder setNotes(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
notes_ = value;
onChanged();
return this;
}
/**
*
* From state:
*
*
* string notes = 3;
* @return This builder for chaining.
*/
public Builder clearNotes() {
notes_ = getDefaultInstance().getNotes();
onChanged();
return this;
}
/**
*
* From state:
*
*
* string notes = 3;
* @param value The bytes for notes to set.
* @return This builder for chaining.
*/
public Builder setNotesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
notes_ = value;
onChanged();
return this;
}
private boolean paused_ ;
/**
* bool paused = 4;
* @return The paused.
*/
public boolean getPaused() {
return paused_;
}
/**
* bool paused = 4;
* @param value The paused to set.
* @return This builder for chaining.
*/
public Builder setPaused(boolean value) {
paused_ = value;
onChanged();
return this;
}
/**
* bool paused = 4;
* @return This builder for chaining.
*/
public Builder clearPaused() {
paused_ = false;
onChanged();
return this;
}
private java.util.List recentActions_ =
java.util.Collections.emptyList();
private void ensureRecentActionsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
recentActions_ = new java.util.ArrayList(recentActions_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.temporal.api.schedule.v1.ScheduleActionResult, io.temporal.api.schedule.v1.ScheduleActionResult.Builder, io.temporal.api.schedule.v1.ScheduleActionResultOrBuilder> recentActionsBuilder_;
/**
*
* From info (maybe fewer entries):
*
*
* repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 5;
*/
public java.util.List getRecentActionsList() {
if (recentActionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(recentActions_);
} else {
return recentActionsBuilder_.getMessageList();
}
}
/**
*
* From info (maybe fewer entries):
*
*
* repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 5;
*/
public int getRecentActionsCount() {
if (recentActionsBuilder_ == null) {
return recentActions_.size();
} else {
return recentActionsBuilder_.getCount();
}
}
/**
*
* From info (maybe fewer entries):
*
*
* repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 5;
*/
public io.temporal.api.schedule.v1.ScheduleActionResult getRecentActions(int index) {
if (recentActionsBuilder_ == null) {
return recentActions_.get(index);
} else {
return recentActionsBuilder_.getMessage(index);
}
}
/**
*
* From info (maybe fewer entries):
*
*
* repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 5;
*/
public Builder setRecentActions(
int index, io.temporal.api.schedule.v1.ScheduleActionResult value) {
if (recentActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecentActionsIsMutable();
recentActions_.set(index, value);
onChanged();
} else {
recentActionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* From info (maybe fewer entries):
*
*
* repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 5;
*/
public Builder setRecentActions(
int index, io.temporal.api.schedule.v1.ScheduleActionResult.Builder builderForValue) {
if (recentActionsBuilder_ == null) {
ensureRecentActionsIsMutable();
recentActions_.set(index, builderForValue.build());
onChanged();
} else {
recentActionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* From info (maybe fewer entries):
*
*
* repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 5;
*/
public Builder addRecentActions(io.temporal.api.schedule.v1.ScheduleActionResult value) {
if (recentActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecentActionsIsMutable();
recentActions_.add(value);
onChanged();
} else {
recentActionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* From info (maybe fewer entries):
*
*
* repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 5;
*/
public Builder addRecentActions(
int index, io.temporal.api.schedule.v1.ScheduleActionResult value) {
if (recentActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRecentActionsIsMutable();
recentActions_.add(index, value);
onChanged();
} else {
recentActionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* From info (maybe fewer entries):
*
*
* repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 5;
*/
public Builder addRecentActions(
io.temporal.api.schedule.v1.ScheduleActionResult.Builder builderForValue) {
if (recentActionsBuilder_ == null) {
ensureRecentActionsIsMutable();
recentActions_.add(builderForValue.build());
onChanged();
} else {
recentActionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* From info (maybe fewer entries):
*
*
* repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 5;
*/
public Builder addRecentActions(
int index, io.temporal.api.schedule.v1.ScheduleActionResult.Builder builderForValue) {
if (recentActionsBuilder_ == null) {
ensureRecentActionsIsMutable();
recentActions_.add(index, builderForValue.build());
onChanged();
} else {
recentActionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* From info (maybe fewer entries):
*
*
* repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 5;
*/
public Builder addAllRecentActions(
java.lang.Iterable values) {
if (recentActionsBuilder_ == null) {
ensureRecentActionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, recentActions_);
onChanged();
} else {
recentActionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* From info (maybe fewer entries):
*
*
* repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 5;
*/
public Builder clearRecentActions() {
if (recentActionsBuilder_ == null) {
recentActions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
recentActionsBuilder_.clear();
}
return this;
}
/**
*
* From info (maybe fewer entries):
*
*
* repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 5;
*/
public Builder removeRecentActions(int index) {
if (recentActionsBuilder_ == null) {
ensureRecentActionsIsMutable();
recentActions_.remove(index);
onChanged();
} else {
recentActionsBuilder_.remove(index);
}
return this;
}
/**
*
* From info (maybe fewer entries):
*
*
* repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 5;
*/
public io.temporal.api.schedule.v1.ScheduleActionResult.Builder getRecentActionsBuilder(
int index) {
return getRecentActionsFieldBuilder().getBuilder(index);
}
/**
*
* From info (maybe fewer entries):
*
*
* repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 5;
*/
public io.temporal.api.schedule.v1.ScheduleActionResultOrBuilder getRecentActionsOrBuilder(
int index) {
if (recentActionsBuilder_ == null) {
return recentActions_.get(index); } else {
return recentActionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* From info (maybe fewer entries):
*
*
* repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 5;
*/
public java.util.List
getRecentActionsOrBuilderList() {
if (recentActionsBuilder_ != null) {
return recentActionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(recentActions_);
}
}
/**
*
* From info (maybe fewer entries):
*
*
* repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 5;
*/
public io.temporal.api.schedule.v1.ScheduleActionResult.Builder addRecentActionsBuilder() {
return getRecentActionsFieldBuilder().addBuilder(
io.temporal.api.schedule.v1.ScheduleActionResult.getDefaultInstance());
}
/**
*
* From info (maybe fewer entries):
*
*
* repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 5;
*/
public io.temporal.api.schedule.v1.ScheduleActionResult.Builder addRecentActionsBuilder(
int index) {
return getRecentActionsFieldBuilder().addBuilder(
index, io.temporal.api.schedule.v1.ScheduleActionResult.getDefaultInstance());
}
/**
*
* From info (maybe fewer entries):
*
*
* repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 5;
*/
public java.util.List
getRecentActionsBuilderList() {
return getRecentActionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.temporal.api.schedule.v1.ScheduleActionResult, io.temporal.api.schedule.v1.ScheduleActionResult.Builder, io.temporal.api.schedule.v1.ScheduleActionResultOrBuilder>
getRecentActionsFieldBuilder() {
if (recentActionsBuilder_ == null) {
recentActionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.temporal.api.schedule.v1.ScheduleActionResult, io.temporal.api.schedule.v1.ScheduleActionResult.Builder, io.temporal.api.schedule.v1.ScheduleActionResultOrBuilder>(
recentActions_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
recentActions_ = null;
}
return recentActionsBuilder_;
}
private java.util.List futureActionTimes_ =
java.util.Collections.emptyList();
private void ensureFutureActionTimesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
futureActionTimes_ = new java.util.ArrayList(futureActionTimes_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> futureActionTimesBuilder_;
/**
* repeated .google.protobuf.Timestamp future_action_times = 6 [(.gogoproto.stdtime) = true];
*/
public java.util.List getFutureActionTimesList() {
if (futureActionTimesBuilder_ == null) {
return java.util.Collections.unmodifiableList(futureActionTimes_);
} else {
return futureActionTimesBuilder_.getMessageList();
}
}
/**
* repeated .google.protobuf.Timestamp future_action_times = 6 [(.gogoproto.stdtime) = true];
*/
public int getFutureActionTimesCount() {
if (futureActionTimesBuilder_ == null) {
return futureActionTimes_.size();
} else {
return futureActionTimesBuilder_.getCount();
}
}
/**
* repeated .google.protobuf.Timestamp future_action_times = 6 [(.gogoproto.stdtime) = true];
*/
public com.google.protobuf.Timestamp getFutureActionTimes(int index) {
if (futureActionTimesBuilder_ == null) {
return futureActionTimes_.get(index);
} else {
return futureActionTimesBuilder_.getMessage(index);
}
}
/**
* repeated .google.protobuf.Timestamp future_action_times = 6 [(.gogoproto.stdtime) = true];
*/
public Builder setFutureActionTimes(
int index, com.google.protobuf.Timestamp value) {
if (futureActionTimesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFutureActionTimesIsMutable();
futureActionTimes_.set(index, value);
onChanged();
} else {
futureActionTimesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .google.protobuf.Timestamp future_action_times = 6 [(.gogoproto.stdtime) = true];
*/
public Builder setFutureActionTimes(
int index, com.google.protobuf.Timestamp.Builder builderForValue) {
if (futureActionTimesBuilder_ == null) {
ensureFutureActionTimesIsMutable();
futureActionTimes_.set(index, builderForValue.build());
onChanged();
} else {
futureActionTimesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .google.protobuf.Timestamp future_action_times = 6 [(.gogoproto.stdtime) = true];
*/
public Builder addFutureActionTimes(com.google.protobuf.Timestamp value) {
if (futureActionTimesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFutureActionTimesIsMutable();
futureActionTimes_.add(value);
onChanged();
} else {
futureActionTimesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .google.protobuf.Timestamp future_action_times = 6 [(.gogoproto.stdtime) = true];
*/
public Builder addFutureActionTimes(
int index, com.google.protobuf.Timestamp value) {
if (futureActionTimesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFutureActionTimesIsMutable();
futureActionTimes_.add(index, value);
onChanged();
} else {
futureActionTimesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .google.protobuf.Timestamp future_action_times = 6 [(.gogoproto.stdtime) = true];
*/
public Builder addFutureActionTimes(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (futureActionTimesBuilder_ == null) {
ensureFutureActionTimesIsMutable();
futureActionTimes_.add(builderForValue.build());
onChanged();
} else {
futureActionTimesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .google.protobuf.Timestamp future_action_times = 6 [(.gogoproto.stdtime) = true];
*/
public Builder addFutureActionTimes(
int index, com.google.protobuf.Timestamp.Builder builderForValue) {
if (futureActionTimesBuilder_ == null) {
ensureFutureActionTimesIsMutable();
futureActionTimes_.add(index, builderForValue.build());
onChanged();
} else {
futureActionTimesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .google.protobuf.Timestamp future_action_times = 6 [(.gogoproto.stdtime) = true];
*/
public Builder addAllFutureActionTimes(
java.lang.Iterable values) {
if (futureActionTimesBuilder_ == null) {
ensureFutureActionTimesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, futureActionTimes_);
onChanged();
} else {
futureActionTimesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .google.protobuf.Timestamp future_action_times = 6 [(.gogoproto.stdtime) = true];
*/
public Builder clearFutureActionTimes() {
if (futureActionTimesBuilder_ == null) {
futureActionTimes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
futureActionTimesBuilder_.clear();
}
return this;
}
/**
* repeated .google.protobuf.Timestamp future_action_times = 6 [(.gogoproto.stdtime) = true];
*/
public Builder removeFutureActionTimes(int index) {
if (futureActionTimesBuilder_ == null) {
ensureFutureActionTimesIsMutable();
futureActionTimes_.remove(index);
onChanged();
} else {
futureActionTimesBuilder_.remove(index);
}
return this;
}
/**
* repeated .google.protobuf.Timestamp future_action_times = 6 [(.gogoproto.stdtime) = true];
*/
public com.google.protobuf.Timestamp.Builder getFutureActionTimesBuilder(
int index) {
return getFutureActionTimesFieldBuilder().getBuilder(index);
}
/**
* repeated .google.protobuf.Timestamp future_action_times = 6 [(.gogoproto.stdtime) = true];
*/
public com.google.protobuf.TimestampOrBuilder getFutureActionTimesOrBuilder(
int index) {
if (futureActionTimesBuilder_ == null) {
return futureActionTimes_.get(index); } else {
return futureActionTimesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .google.protobuf.Timestamp future_action_times = 6 [(.gogoproto.stdtime) = true];
*/
public java.util.List
getFutureActionTimesOrBuilderList() {
if (futureActionTimesBuilder_ != null) {
return futureActionTimesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(futureActionTimes_);
}
}
/**
* repeated .google.protobuf.Timestamp future_action_times = 6 [(.gogoproto.stdtime) = true];
*/
public com.google.protobuf.Timestamp.Builder addFutureActionTimesBuilder() {
return getFutureActionTimesFieldBuilder().addBuilder(
com.google.protobuf.Timestamp.getDefaultInstance());
}
/**
* repeated .google.protobuf.Timestamp future_action_times = 6 [(.gogoproto.stdtime) = true];
*/
public com.google.protobuf.Timestamp.Builder addFutureActionTimesBuilder(
int index) {
return getFutureActionTimesFieldBuilder().addBuilder(
index, com.google.protobuf.Timestamp.getDefaultInstance());
}
/**
* repeated .google.protobuf.Timestamp future_action_times = 6 [(.gogoproto.stdtime) = true];
*/
public java.util.List
getFutureActionTimesBuilderList() {
return getFutureActionTimesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getFutureActionTimesFieldBuilder() {
if (futureActionTimesBuilder_ == null) {
futureActionTimesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
futureActionTimes_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
futureActionTimes_ = null;
}
return futureActionTimesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:temporal.api.schedule.v1.ScheduleListInfo)
}
// @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.ScheduleListInfo)
private static final io.temporal.api.schedule.v1.ScheduleListInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.temporal.api.schedule.v1.ScheduleListInfo();
}
public static io.temporal.api.schedule.v1.ScheduleListInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ScheduleListInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ScheduleListInfo(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.temporal.api.schedule.v1.ScheduleListInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}