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

io.temporal.api.update.v1.Request 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;

/**
 * 
 * The client request that triggers a workflow execution update
 * 
* * Protobuf type {@code temporal.api.update.v1.Request} */ @javax.annotation.Generated(value="protoc", comments="annotations:Request.java.pb.meta") public final class Request extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:temporal.api.update.v1.Request) RequestOrBuilder { private static final long serialVersionUID = 0L; // Use Request.newBuilder() to construct. private Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Request() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Request(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Request( 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.Input.Builder subBuilder = null; if (input_ != null) { subBuilder = input_.toBuilder(); } input_ = input.readMessage(io.temporal.api.update.v1.Input.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(input_); input_ = 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_Request_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.update.v1.MessageProto.internal_static_temporal_api_update_v1_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.update.v1.Request.class, io.temporal.api.update.v1.Request.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 INPUT_FIELD_NUMBER = 2; private io.temporal.api.update.v1.Input input_; /** * .temporal.api.update.v1.Input input = 2; * @return Whether the input field is set. */ public boolean hasInput() { return input_ != null; } /** * .temporal.api.update.v1.Input input = 2; * @return The input. */ public io.temporal.api.update.v1.Input getInput() { return input_ == null ? io.temporal.api.update.v1.Input.getDefaultInstance() : input_; } /** * .temporal.api.update.v1.Input input = 2; */ public io.temporal.api.update.v1.InputOrBuilder getInputOrBuilder() { return getInput(); } 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 (input_ != null) { output.writeMessage(2, getInput()); } 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 (input_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getInput()); } 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.Request)) { return super.equals(obj); } io.temporal.api.update.v1.Request other = (io.temporal.api.update.v1.Request) obj; if (hasMeta() != other.hasMeta()) return false; if (hasMeta()) { if (!getMeta() .equals(other.getMeta())) return false; } if (hasInput() != other.hasInput()) return false; if (hasInput()) { if (!getInput() .equals(other.getInput())) 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 (hasInput()) { hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInput().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.temporal.api.update.v1.Request parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.update.v1.Request 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.Request parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.update.v1.Request 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.Request parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.update.v1.Request 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.Request parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.update.v1.Request 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.Request parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.temporal.api.update.v1.Request 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.Request 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.Request 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.Request 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; } /** *
   * The client request that triggers a workflow execution update
   * 
* * Protobuf type {@code temporal.api.update.v1.Request} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:temporal.api.update.v1.Request) io.temporal.api.update.v1.RequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.temporal.api.update.v1.MessageProto.internal_static_temporal_api_update_v1_Request_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.update.v1.MessageProto.internal_static_temporal_api_update_v1_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.update.v1.Request.class, io.temporal.api.update.v1.Request.Builder.class); } // Construct using io.temporal.api.update.v1.Request.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 (inputBuilder_ == null) { input_ = null; } else { input_ = null; inputBuilder_ = 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_Request_descriptor; } @java.lang.Override public io.temporal.api.update.v1.Request getDefaultInstanceForType() { return io.temporal.api.update.v1.Request.getDefaultInstance(); } @java.lang.Override public io.temporal.api.update.v1.Request build() { io.temporal.api.update.v1.Request result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.temporal.api.update.v1.Request buildPartial() { io.temporal.api.update.v1.Request result = new io.temporal.api.update.v1.Request(this); if (metaBuilder_ == null) { result.meta_ = meta_; } else { result.meta_ = metaBuilder_.build(); } if (inputBuilder_ == null) { result.input_ = input_; } else { result.input_ = inputBuilder_.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.Request) { return mergeFrom((io.temporal.api.update.v1.Request)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.temporal.api.update.v1.Request other) { if (other == io.temporal.api.update.v1.Request.getDefaultInstance()) return this; if (other.hasMeta()) { mergeMeta(other.getMeta()); } if (other.hasInput()) { mergeInput(other.getInput()); } 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.Request parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.temporal.api.update.v1.Request) 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.Input input_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.update.v1.Input, io.temporal.api.update.v1.Input.Builder, io.temporal.api.update.v1.InputOrBuilder> inputBuilder_; /** * .temporal.api.update.v1.Input input = 2; * @return Whether the input field is set. */ public boolean hasInput() { return inputBuilder_ != null || input_ != null; } /** * .temporal.api.update.v1.Input input = 2; * @return The input. */ public io.temporal.api.update.v1.Input getInput() { if (inputBuilder_ == null) { return input_ == null ? io.temporal.api.update.v1.Input.getDefaultInstance() : input_; } else { return inputBuilder_.getMessage(); } } /** * .temporal.api.update.v1.Input input = 2; */ public Builder setInput(io.temporal.api.update.v1.Input value) { if (inputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } input_ = value; onChanged(); } else { inputBuilder_.setMessage(value); } return this; } /** * .temporal.api.update.v1.Input input = 2; */ public Builder setInput( io.temporal.api.update.v1.Input.Builder builderForValue) { if (inputBuilder_ == null) { input_ = builderForValue.build(); onChanged(); } else { inputBuilder_.setMessage(builderForValue.build()); } return this; } /** * .temporal.api.update.v1.Input input = 2; */ public Builder mergeInput(io.temporal.api.update.v1.Input value) { if (inputBuilder_ == null) { if (input_ != null) { input_ = io.temporal.api.update.v1.Input.newBuilder(input_).mergeFrom(value).buildPartial(); } else { input_ = value; } onChanged(); } else { inputBuilder_.mergeFrom(value); } return this; } /** * .temporal.api.update.v1.Input input = 2; */ public Builder clearInput() { if (inputBuilder_ == null) { input_ = null; onChanged(); } else { input_ = null; inputBuilder_ = null; } return this; } /** * .temporal.api.update.v1.Input input = 2; */ public io.temporal.api.update.v1.Input.Builder getInputBuilder() { onChanged(); return getInputFieldBuilder().getBuilder(); } /** * .temporal.api.update.v1.Input input = 2; */ public io.temporal.api.update.v1.InputOrBuilder getInputOrBuilder() { if (inputBuilder_ != null) { return inputBuilder_.getMessageOrBuilder(); } else { return input_ == null ? io.temporal.api.update.v1.Input.getDefaultInstance() : input_; } } /** * .temporal.api.update.v1.Input input = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.update.v1.Input, io.temporal.api.update.v1.Input.Builder, io.temporal.api.update.v1.InputOrBuilder> getInputFieldBuilder() { if (inputBuilder_ == null) { inputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.update.v1.Input, io.temporal.api.update.v1.Input.Builder, io.temporal.api.update.v1.InputOrBuilder>( getInput(), getParentForChildren(), isClean()); input_ = null; } return inputBuilder_; } @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.Request) } // @@protoc_insertion_point(class_scope:temporal.api.update.v1.Request) private static final io.temporal.api.update.v1.Request DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.temporal.api.update.v1.Request(); } public static io.temporal.api.update.v1.Request getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Request parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Request(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.Request getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy