All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.temporal.api.update.v1.Response Maven / Gradle / Ivy

There is a newer version: 1.27.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: temporal/api/update/v1/message.proto

package io.temporal.api.update.v1;

/**
 * 
 * An update protocol message indicating that a workflow execution update has
 * completed with the contained outcome.
 * 
* * Protobuf type {@code temporal.api.update.v1.Response} */ @javax.annotation.Generated(value="protoc", comments="annotations:Response.java.pb.meta") public final class Response extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:temporal.api.update.v1.Response) ResponseOrBuilder { private static final long serialVersionUID = 0L; // Use Response.newBuilder() to construct. private Response(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Response() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Response(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Response( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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.update.v1.Meta.Builder subBuilder = null; if (meta_ != null) { subBuilder = meta_.toBuilder(); } meta_ = input.readMessage(io.temporal.api.update.v1.Meta.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(meta_); meta_ = subBuilder.buildPartial(); } break; } case 18: { io.temporal.api.update.v1.Outcome.Builder subBuilder = null; if (outcome_ != null) { subBuilder = outcome_.toBuilder(); } outcome_ = input.readMessage(io.temporal.api.update.v1.Outcome.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(outcome_); outcome_ = subBuilder.buildPartial(); } 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 { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.temporal.api.update.v1.MessageProto.internal_static_temporal_api_update_v1_Response_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.update.v1.MessageProto.internal_static_temporal_api_update_v1_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.update.v1.Response.class, io.temporal.api.update.v1.Response.Builder.class); } public static final int META_FIELD_NUMBER = 1; private io.temporal.api.update.v1.Meta meta_; /** * .temporal.api.update.v1.Meta meta = 1; * @return Whether the meta field is set. */ public boolean hasMeta() { return meta_ != null; } /** * .temporal.api.update.v1.Meta meta = 1; * @return The meta. */ public io.temporal.api.update.v1.Meta getMeta() { return meta_ == null ? io.temporal.api.update.v1.Meta.getDefaultInstance() : meta_; } /** * .temporal.api.update.v1.Meta meta = 1; */ public io.temporal.api.update.v1.MetaOrBuilder getMetaOrBuilder() { return getMeta(); } public static final int OUTCOME_FIELD_NUMBER = 2; private io.temporal.api.update.v1.Outcome outcome_; /** * .temporal.api.update.v1.Outcome outcome = 2; * @return Whether the outcome field is set. */ public boolean hasOutcome() { return outcome_ != null; } /** * .temporal.api.update.v1.Outcome outcome = 2; * @return The outcome. */ public io.temporal.api.update.v1.Outcome getOutcome() { return outcome_ == null ? io.temporal.api.update.v1.Outcome.getDefaultInstance() : outcome_; } /** * .temporal.api.update.v1.Outcome outcome = 2; */ public io.temporal.api.update.v1.OutcomeOrBuilder getOutcomeOrBuilder() { return getOutcome(); } 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 (meta_ != null) { output.writeMessage(1, getMeta()); } if (outcome_ != null) { output.writeMessage(2, getOutcome()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (meta_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getMeta()); } if (outcome_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getOutcome()); } 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.update.v1.Response)) { return super.equals(obj); } io.temporal.api.update.v1.Response other = (io.temporal.api.update.v1.Response) obj; if (hasMeta() != other.hasMeta()) return false; if (hasMeta()) { if (!getMeta() .equals(other.getMeta())) return false; } if (hasOutcome() != other.hasOutcome()) return false; if (hasOutcome()) { if (!getOutcome() .equals(other.getOutcome())) 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 (hasMeta()) { hash = (37 * hash) + META_FIELD_NUMBER; hash = (53 * hash) + getMeta().hashCode(); } if (hasOutcome()) { hash = (37 * hash) + OUTCOME_FIELD_NUMBER; hash = (53 * hash) + getOutcome().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.temporal.api.update.v1.Response parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.update.v1.Response 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.update.v1.Response parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.update.v1.Response 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.update.v1.Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.update.v1.Response parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.update.v1.Response parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.update.v1.Response 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.update.v1.Response parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.temporal.api.update.v1.Response 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.update.v1.Response parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.update.v1.Response 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.update.v1.Response 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; } /** *
   * An update protocol message indicating that a workflow execution update has
   * completed with the contained outcome.
   * 
* * Protobuf type {@code temporal.api.update.v1.Response} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:temporal.api.update.v1.Response) io.temporal.api.update.v1.ResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.temporal.api.update.v1.MessageProto.internal_static_temporal_api_update_v1_Response_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.update.v1.MessageProto.internal_static_temporal_api_update_v1_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.update.v1.Response.class, io.temporal.api.update.v1.Response.Builder.class); } // Construct using io.temporal.api.update.v1.Response.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (metaBuilder_ == null) { meta_ = null; } else { meta_ = null; metaBuilder_ = null; } if (outcomeBuilder_ == null) { outcome_ = null; } else { outcome_ = null; outcomeBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.temporal.api.update.v1.MessageProto.internal_static_temporal_api_update_v1_Response_descriptor; } @java.lang.Override public io.temporal.api.update.v1.Response getDefaultInstanceForType() { return io.temporal.api.update.v1.Response.getDefaultInstance(); } @java.lang.Override public io.temporal.api.update.v1.Response build() { io.temporal.api.update.v1.Response result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.temporal.api.update.v1.Response buildPartial() { io.temporal.api.update.v1.Response result = new io.temporal.api.update.v1.Response(this); if (metaBuilder_ == null) { result.meta_ = meta_; } else { result.meta_ = metaBuilder_.build(); } if (outcomeBuilder_ == null) { result.outcome_ = outcome_; } else { result.outcome_ = outcomeBuilder_.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.update.v1.Response) { return mergeFrom((io.temporal.api.update.v1.Response)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.temporal.api.update.v1.Response other) { if (other == io.temporal.api.update.v1.Response.getDefaultInstance()) return this; if (other.hasMeta()) { mergeMeta(other.getMeta()); } if (other.hasOutcome()) { mergeOutcome(other.getOutcome()); } 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.update.v1.Response parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.temporal.api.update.v1.Response) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.temporal.api.update.v1.Meta meta_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.update.v1.Meta, io.temporal.api.update.v1.Meta.Builder, io.temporal.api.update.v1.MetaOrBuilder> metaBuilder_; /** * .temporal.api.update.v1.Meta meta = 1; * @return Whether the meta field is set. */ public boolean hasMeta() { return metaBuilder_ != null || meta_ != null; } /** * .temporal.api.update.v1.Meta meta = 1; * @return The meta. */ public io.temporal.api.update.v1.Meta getMeta() { if (metaBuilder_ == null) { return meta_ == null ? io.temporal.api.update.v1.Meta.getDefaultInstance() : meta_; } else { return metaBuilder_.getMessage(); } } /** * .temporal.api.update.v1.Meta meta = 1; */ public Builder setMeta(io.temporal.api.update.v1.Meta value) { if (metaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } meta_ = value; onChanged(); } else { metaBuilder_.setMessage(value); } return this; } /** * .temporal.api.update.v1.Meta meta = 1; */ public Builder setMeta( io.temporal.api.update.v1.Meta.Builder builderForValue) { if (metaBuilder_ == null) { meta_ = builderForValue.build(); onChanged(); } else { metaBuilder_.setMessage(builderForValue.build()); } return this; } /** * .temporal.api.update.v1.Meta meta = 1; */ public Builder mergeMeta(io.temporal.api.update.v1.Meta value) { if (metaBuilder_ == null) { if (meta_ != null) { meta_ = io.temporal.api.update.v1.Meta.newBuilder(meta_).mergeFrom(value).buildPartial(); } else { meta_ = value; } onChanged(); } else { metaBuilder_.mergeFrom(value); } return this; } /** * .temporal.api.update.v1.Meta meta = 1; */ public Builder clearMeta() { if (metaBuilder_ == null) { meta_ = null; onChanged(); } else { meta_ = null; metaBuilder_ = null; } return this; } /** * .temporal.api.update.v1.Meta meta = 1; */ public io.temporal.api.update.v1.Meta.Builder getMetaBuilder() { onChanged(); return getMetaFieldBuilder().getBuilder(); } /** * .temporal.api.update.v1.Meta meta = 1; */ public io.temporal.api.update.v1.MetaOrBuilder getMetaOrBuilder() { if (metaBuilder_ != null) { return metaBuilder_.getMessageOrBuilder(); } else { return meta_ == null ? io.temporal.api.update.v1.Meta.getDefaultInstance() : meta_; } } /** * .temporal.api.update.v1.Meta meta = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.update.v1.Meta, io.temporal.api.update.v1.Meta.Builder, io.temporal.api.update.v1.MetaOrBuilder> getMetaFieldBuilder() { if (metaBuilder_ == null) { metaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.update.v1.Meta, io.temporal.api.update.v1.Meta.Builder, io.temporal.api.update.v1.MetaOrBuilder>( getMeta(), getParentForChildren(), isClean()); meta_ = null; } return metaBuilder_; } private io.temporal.api.update.v1.Outcome outcome_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.update.v1.Outcome, io.temporal.api.update.v1.Outcome.Builder, io.temporal.api.update.v1.OutcomeOrBuilder> outcomeBuilder_; /** * .temporal.api.update.v1.Outcome outcome = 2; * @return Whether the outcome field is set. */ public boolean hasOutcome() { return outcomeBuilder_ != null || outcome_ != null; } /** * .temporal.api.update.v1.Outcome outcome = 2; * @return The outcome. */ public io.temporal.api.update.v1.Outcome getOutcome() { if (outcomeBuilder_ == null) { return outcome_ == null ? io.temporal.api.update.v1.Outcome.getDefaultInstance() : outcome_; } else { return outcomeBuilder_.getMessage(); } } /** * .temporal.api.update.v1.Outcome outcome = 2; */ public Builder setOutcome(io.temporal.api.update.v1.Outcome value) { if (outcomeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } outcome_ = value; onChanged(); } else { outcomeBuilder_.setMessage(value); } return this; } /** * .temporal.api.update.v1.Outcome outcome = 2; */ public Builder setOutcome( io.temporal.api.update.v1.Outcome.Builder builderForValue) { if (outcomeBuilder_ == null) { outcome_ = builderForValue.build(); onChanged(); } else { outcomeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .temporal.api.update.v1.Outcome outcome = 2; */ public Builder mergeOutcome(io.temporal.api.update.v1.Outcome value) { if (outcomeBuilder_ == null) { if (outcome_ != null) { outcome_ = io.temporal.api.update.v1.Outcome.newBuilder(outcome_).mergeFrom(value).buildPartial(); } else { outcome_ = value; } onChanged(); } else { outcomeBuilder_.mergeFrom(value); } return this; } /** * .temporal.api.update.v1.Outcome outcome = 2; */ public Builder clearOutcome() { if (outcomeBuilder_ == null) { outcome_ = null; onChanged(); } else { outcome_ = null; outcomeBuilder_ = null; } return this; } /** * .temporal.api.update.v1.Outcome outcome = 2; */ public io.temporal.api.update.v1.Outcome.Builder getOutcomeBuilder() { onChanged(); return getOutcomeFieldBuilder().getBuilder(); } /** * .temporal.api.update.v1.Outcome outcome = 2; */ public io.temporal.api.update.v1.OutcomeOrBuilder getOutcomeOrBuilder() { if (outcomeBuilder_ != null) { return outcomeBuilder_.getMessageOrBuilder(); } else { return outcome_ == null ? io.temporal.api.update.v1.Outcome.getDefaultInstance() : outcome_; } } /** * .temporal.api.update.v1.Outcome outcome = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.update.v1.Outcome, io.temporal.api.update.v1.Outcome.Builder, io.temporal.api.update.v1.OutcomeOrBuilder> getOutcomeFieldBuilder() { if (outcomeBuilder_ == null) { outcomeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.update.v1.Outcome, io.temporal.api.update.v1.Outcome.Builder, io.temporal.api.update.v1.OutcomeOrBuilder>( getOutcome(), getParentForChildren(), isClean()); outcome_ = null; } return outcomeBuilder_; } @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.update.v1.Response) } // @@protoc_insertion_point(class_scope:temporal.api.update.v1.Response) private static final io.temporal.api.update.v1.Response DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.temporal.api.update.v1.Response(); } public static io.temporal.api.update.v1.Response getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Response parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Response(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.update.v1.Response getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy