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

com.netflix.conductor.proto.StateChangeEventPb Maven / Gradle / Ivy

There is a newer version: 3.21.10
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: model/statechangeevent.proto

package com.netflix.conductor.proto;

public final class StateChangeEventPb {
  private StateChangeEventPb() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface StateChangeEventOrBuilder extends
      // @@protoc_insertion_point(interface_extends:conductor.proto.StateChangeEvent)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string type = 1;
     * @return The type.
     */
    java.lang.String getType();
    /**
     * string type = 1;
     * @return The bytes for type.
     */
    com.google.protobuf.ByteString
        getTypeBytes();

    /**
     * map<string, .google.protobuf.Value> payload = 2;
     */
    int getPayloadCount();
    /**
     * map<string, .google.protobuf.Value> payload = 2;
     */
    boolean containsPayload(
        java.lang.String key);
    /**
     * Use {@link #getPayloadMap()} instead.
     */
    @java.lang.Deprecated
    java.util.Map
    getPayload();
    /**
     * map<string, .google.protobuf.Value> payload = 2;
     */
    java.util.Map
    getPayloadMap();
    /**
     * map<string, .google.protobuf.Value> payload = 2;
     */
    /* nullable */
com.google.protobuf.Value getPayloadOrDefault(
        java.lang.String key,
        /* nullable */
com.google.protobuf.Value defaultValue);
    /**
     * map<string, .google.protobuf.Value> payload = 2;
     */
    com.google.protobuf.Value getPayloadOrThrow(
        java.lang.String key);
  }
  /**
   * Protobuf type {@code conductor.proto.StateChangeEvent}
   */
  public static final class StateChangeEvent extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:conductor.proto.StateChangeEvent)
      StateChangeEventOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use StateChangeEvent.newBuilder() to construct.
    private StateChangeEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private StateChangeEvent() {
      type_ = "";
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new StateChangeEvent();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.netflix.conductor.proto.StateChangeEventPb.internal_static_conductor_proto_StateChangeEvent_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    @java.lang.Override
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 2:
          return internalGetPayload();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.netflix.conductor.proto.StateChangeEventPb.internal_static_conductor_proto_StateChangeEvent_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent.class, com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent.Builder.class);
    }

    public static final int TYPE_FIELD_NUMBER = 1;
    @SuppressWarnings("serial")
    private volatile java.lang.Object type_ = "";
    /**
     * string type = 1;
     * @return The type.
     */
    @java.lang.Override
    public java.lang.String getType() {
      java.lang.Object ref = type_;
      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();
        type_ = s;
        return s;
      }
    }
    /**
     * string type = 1;
     * @return The bytes for type.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getTypeBytes() {
      java.lang.Object ref = type_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        type_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int PAYLOAD_FIELD_NUMBER = 2;
    private static final class PayloadDefaultEntryHolder {
      static final com.google.protobuf.MapEntry<
          java.lang.String, com.google.protobuf.Value> defaultEntry =
              com.google.protobuf.MapEntry
              .newDefaultInstance(
                  com.netflix.conductor.proto.StateChangeEventPb.internal_static_conductor_proto_StateChangeEvent_PayloadEntry_descriptor, 
                  com.google.protobuf.WireFormat.FieldType.STRING,
                  "",
                  com.google.protobuf.WireFormat.FieldType.MESSAGE,
                  com.google.protobuf.Value.getDefaultInstance());
    }
    @SuppressWarnings("serial")
    private com.google.protobuf.MapField<
        java.lang.String, com.google.protobuf.Value> payload_;
    private com.google.protobuf.MapField
    internalGetPayload() {
      if (payload_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            PayloadDefaultEntryHolder.defaultEntry);
      }
      return payload_;
    }
    public int getPayloadCount() {
      return internalGetPayload().getMap().size();
    }
    /**
     * map<string, .google.protobuf.Value> payload = 2;
     */
    @java.lang.Override
    public boolean containsPayload(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      return internalGetPayload().getMap().containsKey(key);
    }
    /**
     * Use {@link #getPayloadMap()} instead.
     */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map getPayload() {
      return getPayloadMap();
    }
    /**
     * map<string, .google.protobuf.Value> payload = 2;
     */
    @java.lang.Override
    public java.util.Map getPayloadMap() {
      return internalGetPayload().getMap();
    }
    /**
     * map<string, .google.protobuf.Value> payload = 2;
     */
    @java.lang.Override
    public /* nullable */
com.google.protobuf.Value getPayloadOrDefault(
        java.lang.String key,
        /* nullable */
com.google.protobuf.Value defaultValue) {
      if (key == null) { throw new NullPointerException("map key"); }
      java.util.Map map =
          internalGetPayload().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * map<string, .google.protobuf.Value> payload = 2;
     */
    @java.lang.Override
    public com.google.protobuf.Value getPayloadOrThrow(
        java.lang.String key) {
      if (key == null) { throw new NullPointerException("map key"); }
      java.util.Map map =
          internalGetPayload().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_);
      }
      com.google.protobuf.GeneratedMessageV3
        .serializeStringMapTo(
          output,
          internalGetPayload(),
          PayloadDefaultEntryHolder.defaultEntry,
          2);
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_);
      }
      for (java.util.Map.Entry entry
           : internalGetPayload().getMap().entrySet()) {
        com.google.protobuf.MapEntry
        payload__ = PayloadDefaultEntryHolder.defaultEntry.newBuilderForType()
            .setKey(entry.getKey())
            .setValue(entry.getValue())
            .build();
        size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(2, payload__);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent)) {
        return super.equals(obj);
      }
      com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent other = (com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent) obj;

      if (!getType()
          .equals(other.getType())) return false;
      if (!internalGetPayload().equals(
          other.internalGetPayload())) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + TYPE_FIELD_NUMBER;
      hash = (53 * hash) + getType().hashCode();
      if (!internalGetPayload().getMap().isEmpty()) {
        hash = (37 * hash) + PAYLOAD_FIELD_NUMBER;
        hash = (53 * hash) + internalGetPayload().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent 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 com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent 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 com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent 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(com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent 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;
    }
    /**
     * Protobuf type {@code conductor.proto.StateChangeEvent}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:conductor.proto.StateChangeEvent)
        com.netflix.conductor.proto.StateChangeEventPb.StateChangeEventOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.netflix.conductor.proto.StateChangeEventPb.internal_static_conductor_proto_StateChangeEvent_descriptor;
      }

      @SuppressWarnings({"rawtypes"})
      protected com.google.protobuf.MapField internalGetMapField(
          int number) {
        switch (number) {
          case 2:
            return internalGetPayload();
          default:
            throw new RuntimeException(
                "Invalid map field number: " + number);
        }
      }
      @SuppressWarnings({"rawtypes"})
      protected com.google.protobuf.MapField internalGetMutableMapField(
          int number) {
        switch (number) {
          case 2:
            return internalGetMutablePayload();
          default:
            throw new RuntimeException(
                "Invalid map field number: " + number);
        }
      }
      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.netflix.conductor.proto.StateChangeEventPb.internal_static_conductor_proto_StateChangeEvent_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent.class, com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent.Builder.class);
      }

      // Construct using com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent.newBuilder()
      private Builder() {

      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);

      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        type_ = "";
        internalGetMutablePayload().clear();
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.netflix.conductor.proto.StateChangeEventPb.internal_static_conductor_proto_StateChangeEvent_descriptor;
      }

      @java.lang.Override
      public com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent getDefaultInstanceForType() {
        return com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent.getDefaultInstance();
      }

      @java.lang.Override
      public com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent build() {
        com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent buildPartial() {
        com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent result = new com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent(this);
        if (bitField0_ != 0) { buildPartial0(result); }
        onBuilt();
        return result;
      }

      private void buildPartial0(com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.type_ = type_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.payload_ = internalGetPayload();
          result.payload_.makeImmutable();
        }
      }

      @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 com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent) {
          return mergeFrom((com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent other) {
        if (other == com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent.getDefaultInstance()) return this;
        if (!other.getType().isEmpty()) {
          type_ = other.type_;
          bitField0_ |= 0x00000001;
          onChanged();
        }
        internalGetMutablePayload().mergeFrom(
            other.internalGetPayload());
        bitField0_ |= 0x00000002;
        this.mergeUnknownFields(other.getUnknownFields());
        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 {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10: {
                type_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000001;
                break;
              } // case 10
              case 18: {
                com.google.protobuf.MapEntry
                payload__ = input.readMessage(
                    PayloadDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
                internalGetMutablePayload().getMutableMap().put(
                    payload__.getKey(), payload__.getValue());
                bitField0_ |= 0x00000002;
                break;
              } // case 18
              default: {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }
      private int bitField0_;

      private java.lang.Object type_ = "";
      /**
       * string type = 1;
       * @return The type.
       */
      public java.lang.String getType() {
        java.lang.Object ref = type_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          type_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string type = 1;
       * @return The bytes for type.
       */
      public com.google.protobuf.ByteString
          getTypeBytes() {
        java.lang.Object ref = type_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          type_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string type = 1;
       * @param value The type to set.
       * @return This builder for chaining.
       */
      public Builder setType(
          java.lang.String value) {
        if (value == null) { throw new NullPointerException(); }
        type_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       * string type = 1;
       * @return This builder for chaining.
       */
      public Builder clearType() {
        type_ = getDefaultInstance().getType();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * string type = 1;
       * @param value The bytes for type to set.
       * @return This builder for chaining.
       */
      public Builder setTypeBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) { throw new NullPointerException(); }
        checkByteStringIsUtf8(value);
        type_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      private com.google.protobuf.MapField<
          java.lang.String, com.google.protobuf.Value> payload_;
      private com.google.protobuf.MapField
          internalGetPayload() {
        if (payload_ == null) {
          return com.google.protobuf.MapField.emptyMapField(
              PayloadDefaultEntryHolder.defaultEntry);
        }
        return payload_;
      }
      private com.google.protobuf.MapField
          internalGetMutablePayload() {
        if (payload_ == null) {
          payload_ = com.google.protobuf.MapField.newMapField(
              PayloadDefaultEntryHolder.defaultEntry);
        }
        if (!payload_.isMutable()) {
          payload_ = payload_.copy();
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return payload_;
      }
      public int getPayloadCount() {
        return internalGetPayload().getMap().size();
      }
      /**
       * map<string, .google.protobuf.Value> payload = 2;
       */
      @java.lang.Override
      public boolean containsPayload(
          java.lang.String key) {
        if (key == null) { throw new NullPointerException("map key"); }
        return internalGetPayload().getMap().containsKey(key);
      }
      /**
       * Use {@link #getPayloadMap()} instead.
       */
      @java.lang.Override
      @java.lang.Deprecated
      public java.util.Map getPayload() {
        return getPayloadMap();
      }
      /**
       * map<string, .google.protobuf.Value> payload = 2;
       */
      @java.lang.Override
      public java.util.Map getPayloadMap() {
        return internalGetPayload().getMap();
      }
      /**
       * map<string, .google.protobuf.Value> payload = 2;
       */
      @java.lang.Override
      public /* nullable */
com.google.protobuf.Value getPayloadOrDefault(
          java.lang.String key,
          /* nullable */
com.google.protobuf.Value defaultValue) {
        if (key == null) { throw new NullPointerException("map key"); }
        java.util.Map map =
            internalGetPayload().getMap();
        return map.containsKey(key) ? map.get(key) : defaultValue;
      }
      /**
       * map<string, .google.protobuf.Value> payload = 2;
       */
      @java.lang.Override
      public com.google.protobuf.Value getPayloadOrThrow(
          java.lang.String key) {
        if (key == null) { throw new NullPointerException("map key"); }
        java.util.Map map =
            internalGetPayload().getMap();
        if (!map.containsKey(key)) {
          throw new java.lang.IllegalArgumentException();
        }
        return map.get(key);
      }
      public Builder clearPayload() {
        bitField0_ = (bitField0_ & ~0x00000002);
        internalGetMutablePayload().getMutableMap()
            .clear();
        return this;
      }
      /**
       * map<string, .google.protobuf.Value> payload = 2;
       */
      public Builder removePayload(
          java.lang.String key) {
        if (key == null) { throw new NullPointerException("map key"); }
        internalGetMutablePayload().getMutableMap()
            .remove(key);
        return this;
      }
      /**
       * Use alternate mutation accessors instead.
       */
      @java.lang.Deprecated
      public java.util.Map
          getMutablePayload() {
        bitField0_ |= 0x00000002;
        return internalGetMutablePayload().getMutableMap();
      }
      /**
       * map<string, .google.protobuf.Value> payload = 2;
       */
      public Builder putPayload(
          java.lang.String key,
          com.google.protobuf.Value value) {
        if (key == null) { throw new NullPointerException("map key"); }
        if (value == null) { throw new NullPointerException("map value"); }
        internalGetMutablePayload().getMutableMap()
            .put(key, value);
        bitField0_ |= 0x00000002;
        return this;
      }
      /**
       * map<string, .google.protobuf.Value> payload = 2;
       */
      public Builder putAllPayload(
          java.util.Map values) {
        internalGetMutablePayload().getMutableMap()
            .putAll(values);
        bitField0_ |= 0x00000002;
        return this;
      }
      @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:conductor.proto.StateChangeEvent)
    }

    // @@protoc_insertion_point(class_scope:conductor.proto.StateChangeEvent)
    private static final com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent();
    }

    public static com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public StateChangeEvent parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        Builder builder = newBuilder();
        try {
          builder.mergeFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(builder.buildPartial());
        } catch (com.google.protobuf.UninitializedMessageException e) {
          throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(e)
              .setUnfinishedMessage(builder.buildPartial());
        }
        return builder.buildPartial();
      }
    };

    public static com.google.protobuf.Parser parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.netflix.conductor.proto.StateChangeEventPb.StateChangeEvent getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_conductor_proto_StateChangeEvent_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_conductor_proto_StateChangeEvent_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_conductor_proto_StateChangeEvent_PayloadEntry_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_conductor_proto_StateChangeEvent_PayloadEntry_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\034model/statechangeevent.proto\022\017conducto" +
      "r.proto\032\034google/protobuf/struct.proto\"\251\001" +
      "\n\020StateChangeEvent\022\014\n\004type\030\001 \001(\t\022?\n\007payl" +
      "oad\030\002 \003(\0132..conductor.proto.StateChangeE" +
      "vent.PayloadEntry\032F\n\014PayloadEntry\022\013\n\003key" +
      "\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\026.google.protobuf." +
      "Value:\0028\001Bm\n\033com.netflix.conductor.proto" +
      "B\022StateChangeEventPbZ:github.com/netflix" +
      "/conductor/client/gogrpc/conductor/model" +
      "b\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          com.google.protobuf.StructProto.getDescriptor(),
        });
    internal_static_conductor_proto_StateChangeEvent_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_conductor_proto_StateChangeEvent_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_conductor_proto_StateChangeEvent_descriptor,
        new java.lang.String[] { "Type", "Payload", });
    internal_static_conductor_proto_StateChangeEvent_PayloadEntry_descriptor =
      internal_static_conductor_proto_StateChangeEvent_descriptor.getNestedTypes().get(0);
    internal_static_conductor_proto_StateChangeEvent_PayloadEntry_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_conductor_proto_StateChangeEvent_PayloadEntry_descriptor,
        new java.lang.String[] { "Key", "Value", });
    com.google.protobuf.StructProto.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy