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

org.openfeed.Context Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: openfeed.proto
// Protobuf Java Version: 4.28.3

package org.openfeed;

/**
 * Protobuf type {@code org.openfeed.Context}
 */
public final class Context extends
    com.google.protobuf.GeneratedMessage implements
    // @@protoc_insertion_point(message_implements:org.openfeed.Context)
    ContextOrBuilder {
private static final long serialVersionUID = 0L;
  static {
    com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
      com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
      /* major= */ 4,
      /* minor= */ 28,
      /* patch= */ 3,
      /* suffix= */ "",
      Context.class.getName());
  }
  // Use Context.newBuilder() to construct.
  private Context(com.google.protobuf.GeneratedMessage.Builder builder) {
    super(builder);
  }
  private Context() {
    data_ = java.util.Collections.emptyList();
    tracePoints_ = java.util.Collections.emptyList();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.openfeed.Openfeed.internal_static_org_openfeed_Context_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.openfeed.Openfeed.internal_static_org_openfeed_Context_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.openfeed.Context.class, org.openfeed.Context.Builder.class);
  }

  public static final int DATA_FIELD_NUMBER = 1;
  @SuppressWarnings("serial")
  private java.util.List data_;
  /**
   * repeated .org.openfeed.ContextData data = 1;
   */
  @java.lang.Override
  public java.util.List getDataList() {
    return data_;
  }
  /**
   * repeated .org.openfeed.ContextData data = 1;
   */
  @java.lang.Override
  public java.util.List 
      getDataOrBuilderList() {
    return data_;
  }
  /**
   * repeated .org.openfeed.ContextData data = 1;
   */
  @java.lang.Override
  public int getDataCount() {
    return data_.size();
  }
  /**
   * repeated .org.openfeed.ContextData data = 1;
   */
  @java.lang.Override
  public org.openfeed.ContextData getData(int index) {
    return data_.get(index);
  }
  /**
   * repeated .org.openfeed.ContextData data = 1;
   */
  @java.lang.Override
  public org.openfeed.ContextDataOrBuilder getDataOrBuilder(
      int index) {
    return data_.get(index);
  }

  public static final int TRACEPOINTS_FIELD_NUMBER = 2;
  @SuppressWarnings("serial")
  private java.util.List tracePoints_;
  /**
   * repeated .org.openfeed.TracePoint tracePoints = 2;
   */
  @java.lang.Override
  public java.util.List getTracePointsList() {
    return tracePoints_;
  }
  /**
   * repeated .org.openfeed.TracePoint tracePoints = 2;
   */
  @java.lang.Override
  public java.util.List 
      getTracePointsOrBuilderList() {
    return tracePoints_;
  }
  /**
   * repeated .org.openfeed.TracePoint tracePoints = 2;
   */
  @java.lang.Override
  public int getTracePointsCount() {
    return tracePoints_.size();
  }
  /**
   * repeated .org.openfeed.TracePoint tracePoints = 2;
   */
  @java.lang.Override
  public org.openfeed.TracePoint getTracePoints(int index) {
    return tracePoints_.get(index);
  }
  /**
   * repeated .org.openfeed.TracePoint tracePoints = 2;
   */
  @java.lang.Override
  public org.openfeed.TracePointOrBuilder getTracePointsOrBuilder(
      int index) {
    return tracePoints_.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 {
    for (int i = 0; i < data_.size(); i++) {
      output.writeMessage(1, data_.get(i));
    }
    for (int i = 0; i < tracePoints_.size(); i++) {
      output.writeMessage(2, tracePoints_.get(i));
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    for (int i = 0; i < data_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, data_.get(i));
    }
    for (int i = 0; i < tracePoints_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, tracePoints_.get(i));
    }
    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 org.openfeed.Context)) {
      return super.equals(obj);
    }
    org.openfeed.Context other = (org.openfeed.Context) obj;

    if (!getDataList()
        .equals(other.getDataList())) return false;
    if (!getTracePointsList()
        .equals(other.getTracePointsList())) 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();
    if (getDataCount() > 0) {
      hash = (37 * hash) + DATA_FIELD_NUMBER;
      hash = (53 * hash) + getDataList().hashCode();
    }
    if (getTracePointsCount() > 0) {
      hash = (37 * hash) + TRACEPOINTS_FIELD_NUMBER;
      hash = (53 * hash) + getTracePointsList().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static org.openfeed.Context parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.openfeed.Context parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.openfeed.Context parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.openfeed.Context parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.openfeed.Context parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.openfeed.Context parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.openfeed.Context parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseWithIOException(PARSER, input);
  }
  public static org.openfeed.Context parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public static org.openfeed.Context parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static org.openfeed.Context parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static org.openfeed.Context parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseWithIOException(PARSER, input);
  }
  public static org.openfeed.Context parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(org.openfeed.Context 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.GeneratedMessage.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code org.openfeed.Context}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessage.Builder implements
      // @@protoc_insertion_point(builder_implements:org.openfeed.Context)
      org.openfeed.ContextOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.openfeed.Openfeed.internal_static_org_openfeed_Context_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.openfeed.Openfeed.internal_static_org_openfeed_Context_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.openfeed.Context.class, org.openfeed.Context.Builder.class);
    }

    // Construct using org.openfeed.Context.newBuilder()
    private Builder() {

    }

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

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      if (dataBuilder_ == null) {
        data_ = java.util.Collections.emptyList();
      } else {
        data_ = null;
        dataBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      if (tracePointsBuilder_ == null) {
        tracePoints_ = java.util.Collections.emptyList();
      } else {
        tracePoints_ = null;
        tracePointsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000002);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return org.openfeed.Openfeed.internal_static_org_openfeed_Context_descriptor;
    }

    @java.lang.Override
    public org.openfeed.Context getDefaultInstanceForType() {
      return org.openfeed.Context.getDefaultInstance();
    }

    @java.lang.Override
    public org.openfeed.Context build() {
      org.openfeed.Context result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public org.openfeed.Context buildPartial() {
      org.openfeed.Context result = new org.openfeed.Context(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(org.openfeed.Context result) {
      if (dataBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          data_ = java.util.Collections.unmodifiableList(data_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.data_ = data_;
      } else {
        result.data_ = dataBuilder_.build();
      }
      if (tracePointsBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          tracePoints_ = java.util.Collections.unmodifiableList(tracePoints_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.tracePoints_ = tracePoints_;
      } else {
        result.tracePoints_ = tracePointsBuilder_.build();
      }
    }

    private void buildPartial0(org.openfeed.Context result) {
      int from_bitField0_ = bitField0_;
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof org.openfeed.Context) {
        return mergeFrom((org.openfeed.Context)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(org.openfeed.Context other) {
      if (other == org.openfeed.Context.getDefaultInstance()) return this;
      if (dataBuilder_ == null) {
        if (!other.data_.isEmpty()) {
          if (data_.isEmpty()) {
            data_ = other.data_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureDataIsMutable();
            data_.addAll(other.data_);
          }
          onChanged();
        }
      } else {
        if (!other.data_.isEmpty()) {
          if (dataBuilder_.isEmpty()) {
            dataBuilder_.dispose();
            dataBuilder_ = null;
            data_ = other.data_;
            bitField0_ = (bitField0_ & ~0x00000001);
            dataBuilder_ = 
              com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                 getDataFieldBuilder() : null;
          } else {
            dataBuilder_.addAllMessages(other.data_);
          }
        }
      }
      if (tracePointsBuilder_ == null) {
        if (!other.tracePoints_.isEmpty()) {
          if (tracePoints_.isEmpty()) {
            tracePoints_ = other.tracePoints_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureTracePointsIsMutable();
            tracePoints_.addAll(other.tracePoints_);
          }
          onChanged();
        }
      } else {
        if (!other.tracePoints_.isEmpty()) {
          if (tracePointsBuilder_.isEmpty()) {
            tracePointsBuilder_.dispose();
            tracePointsBuilder_ = null;
            tracePoints_ = other.tracePoints_;
            bitField0_ = (bitField0_ & ~0x00000002);
            tracePointsBuilder_ = 
              com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                 getTracePointsFieldBuilder() : null;
          } else {
            tracePointsBuilder_.addAllMessages(other.tracePoints_);
          }
        }
      }
      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: {
              org.openfeed.ContextData m =
                  input.readMessage(
                      org.openfeed.ContextData.parser(),
                      extensionRegistry);
              if (dataBuilder_ == null) {
                ensureDataIsMutable();
                data_.add(m);
              } else {
                dataBuilder_.addMessage(m);
              }
              break;
            } // case 10
            case 18: {
              org.openfeed.TracePoint m =
                  input.readMessage(
                      org.openfeed.TracePoint.parser(),
                      extensionRegistry);
              if (tracePointsBuilder_ == null) {
                ensureTracePointsIsMutable();
                tracePoints_.add(m);
              } else {
                tracePointsBuilder_.addMessage(m);
              }
              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.util.List data_ =
      java.util.Collections.emptyList();
    private void ensureDataIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        data_ = new java.util.ArrayList(data_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilder<
        org.openfeed.ContextData, org.openfeed.ContextData.Builder, org.openfeed.ContextDataOrBuilder> dataBuilder_;

    /**
     * repeated .org.openfeed.ContextData data = 1;
     */
    public java.util.List getDataList() {
      if (dataBuilder_ == null) {
        return java.util.Collections.unmodifiableList(data_);
      } else {
        return dataBuilder_.getMessageList();
      }
    }
    /**
     * repeated .org.openfeed.ContextData data = 1;
     */
    public int getDataCount() {
      if (dataBuilder_ == null) {
        return data_.size();
      } else {
        return dataBuilder_.getCount();
      }
    }
    /**
     * repeated .org.openfeed.ContextData data = 1;
     */
    public org.openfeed.ContextData getData(int index) {
      if (dataBuilder_ == null) {
        return data_.get(index);
      } else {
        return dataBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .org.openfeed.ContextData data = 1;
     */
    public Builder setData(
        int index, org.openfeed.ContextData value) {
      if (dataBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDataIsMutable();
        data_.set(index, value);
        onChanged();
      } else {
        dataBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .org.openfeed.ContextData data = 1;
     */
    public Builder setData(
        int index, org.openfeed.ContextData.Builder builderForValue) {
      if (dataBuilder_ == null) {
        ensureDataIsMutable();
        data_.set(index, builderForValue.build());
        onChanged();
      } else {
        dataBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .org.openfeed.ContextData data = 1;
     */
    public Builder addData(org.openfeed.ContextData value) {
      if (dataBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDataIsMutable();
        data_.add(value);
        onChanged();
      } else {
        dataBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .org.openfeed.ContextData data = 1;
     */
    public Builder addData(
        int index, org.openfeed.ContextData value) {
      if (dataBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureDataIsMutable();
        data_.add(index, value);
        onChanged();
      } else {
        dataBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .org.openfeed.ContextData data = 1;
     */
    public Builder addData(
        org.openfeed.ContextData.Builder builderForValue) {
      if (dataBuilder_ == null) {
        ensureDataIsMutable();
        data_.add(builderForValue.build());
        onChanged();
      } else {
        dataBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .org.openfeed.ContextData data = 1;
     */
    public Builder addData(
        int index, org.openfeed.ContextData.Builder builderForValue) {
      if (dataBuilder_ == null) {
        ensureDataIsMutable();
        data_.add(index, builderForValue.build());
        onChanged();
      } else {
        dataBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .org.openfeed.ContextData data = 1;
     */
    public Builder addAllData(
        java.lang.Iterable values) {
      if (dataBuilder_ == null) {
        ensureDataIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, data_);
        onChanged();
      } else {
        dataBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .org.openfeed.ContextData data = 1;
     */
    public Builder clearData() {
      if (dataBuilder_ == null) {
        data_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        dataBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .org.openfeed.ContextData data = 1;
     */
    public Builder removeData(int index) {
      if (dataBuilder_ == null) {
        ensureDataIsMutable();
        data_.remove(index);
        onChanged();
      } else {
        dataBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .org.openfeed.ContextData data = 1;
     */
    public org.openfeed.ContextData.Builder getDataBuilder(
        int index) {
      return getDataFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .org.openfeed.ContextData data = 1;
     */
    public org.openfeed.ContextDataOrBuilder getDataOrBuilder(
        int index) {
      if (dataBuilder_ == null) {
        return data_.get(index);  } else {
        return dataBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .org.openfeed.ContextData data = 1;
     */
    public java.util.List 
         getDataOrBuilderList() {
      if (dataBuilder_ != null) {
        return dataBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(data_);
      }
    }
    /**
     * repeated .org.openfeed.ContextData data = 1;
     */
    public org.openfeed.ContextData.Builder addDataBuilder() {
      return getDataFieldBuilder().addBuilder(
          org.openfeed.ContextData.getDefaultInstance());
    }
    /**
     * repeated .org.openfeed.ContextData data = 1;
     */
    public org.openfeed.ContextData.Builder addDataBuilder(
        int index) {
      return getDataFieldBuilder().addBuilder(
          index, org.openfeed.ContextData.getDefaultInstance());
    }
    /**
     * repeated .org.openfeed.ContextData data = 1;
     */
    public java.util.List 
         getDataBuilderList() {
      return getDataFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilder<
        org.openfeed.ContextData, org.openfeed.ContextData.Builder, org.openfeed.ContextDataOrBuilder> 
        getDataFieldBuilder() {
      if (dataBuilder_ == null) {
        dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
            org.openfeed.ContextData, org.openfeed.ContextData.Builder, org.openfeed.ContextDataOrBuilder>(
                data_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        data_ = null;
      }
      return dataBuilder_;
    }

    private java.util.List tracePoints_ =
      java.util.Collections.emptyList();
    private void ensureTracePointsIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        tracePoints_ = new java.util.ArrayList(tracePoints_);
        bitField0_ |= 0x00000002;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilder<
        org.openfeed.TracePoint, org.openfeed.TracePoint.Builder, org.openfeed.TracePointOrBuilder> tracePointsBuilder_;

    /**
     * repeated .org.openfeed.TracePoint tracePoints = 2;
     */
    public java.util.List getTracePointsList() {
      if (tracePointsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(tracePoints_);
      } else {
        return tracePointsBuilder_.getMessageList();
      }
    }
    /**
     * repeated .org.openfeed.TracePoint tracePoints = 2;
     */
    public int getTracePointsCount() {
      if (tracePointsBuilder_ == null) {
        return tracePoints_.size();
      } else {
        return tracePointsBuilder_.getCount();
      }
    }
    /**
     * repeated .org.openfeed.TracePoint tracePoints = 2;
     */
    public org.openfeed.TracePoint getTracePoints(int index) {
      if (tracePointsBuilder_ == null) {
        return tracePoints_.get(index);
      } else {
        return tracePointsBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .org.openfeed.TracePoint tracePoints = 2;
     */
    public Builder setTracePoints(
        int index, org.openfeed.TracePoint value) {
      if (tracePointsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTracePointsIsMutable();
        tracePoints_.set(index, value);
        onChanged();
      } else {
        tracePointsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .org.openfeed.TracePoint tracePoints = 2;
     */
    public Builder setTracePoints(
        int index, org.openfeed.TracePoint.Builder builderForValue) {
      if (tracePointsBuilder_ == null) {
        ensureTracePointsIsMutable();
        tracePoints_.set(index, builderForValue.build());
        onChanged();
      } else {
        tracePointsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .org.openfeed.TracePoint tracePoints = 2;
     */
    public Builder addTracePoints(org.openfeed.TracePoint value) {
      if (tracePointsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTracePointsIsMutable();
        tracePoints_.add(value);
        onChanged();
      } else {
        tracePointsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .org.openfeed.TracePoint tracePoints = 2;
     */
    public Builder addTracePoints(
        int index, org.openfeed.TracePoint value) {
      if (tracePointsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTracePointsIsMutable();
        tracePoints_.add(index, value);
        onChanged();
      } else {
        tracePointsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .org.openfeed.TracePoint tracePoints = 2;
     */
    public Builder addTracePoints(
        org.openfeed.TracePoint.Builder builderForValue) {
      if (tracePointsBuilder_ == null) {
        ensureTracePointsIsMutable();
        tracePoints_.add(builderForValue.build());
        onChanged();
      } else {
        tracePointsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .org.openfeed.TracePoint tracePoints = 2;
     */
    public Builder addTracePoints(
        int index, org.openfeed.TracePoint.Builder builderForValue) {
      if (tracePointsBuilder_ == null) {
        ensureTracePointsIsMutable();
        tracePoints_.add(index, builderForValue.build());
        onChanged();
      } else {
        tracePointsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .org.openfeed.TracePoint tracePoints = 2;
     */
    public Builder addAllTracePoints(
        java.lang.Iterable values) {
      if (tracePointsBuilder_ == null) {
        ensureTracePointsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, tracePoints_);
        onChanged();
      } else {
        tracePointsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .org.openfeed.TracePoint tracePoints = 2;
     */
    public Builder clearTracePoints() {
      if (tracePointsBuilder_ == null) {
        tracePoints_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        tracePointsBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .org.openfeed.TracePoint tracePoints = 2;
     */
    public Builder removeTracePoints(int index) {
      if (tracePointsBuilder_ == null) {
        ensureTracePointsIsMutable();
        tracePoints_.remove(index);
        onChanged();
      } else {
        tracePointsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .org.openfeed.TracePoint tracePoints = 2;
     */
    public org.openfeed.TracePoint.Builder getTracePointsBuilder(
        int index) {
      return getTracePointsFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .org.openfeed.TracePoint tracePoints = 2;
     */
    public org.openfeed.TracePointOrBuilder getTracePointsOrBuilder(
        int index) {
      if (tracePointsBuilder_ == null) {
        return tracePoints_.get(index);  } else {
        return tracePointsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .org.openfeed.TracePoint tracePoints = 2;
     */
    public java.util.List 
         getTracePointsOrBuilderList() {
      if (tracePointsBuilder_ != null) {
        return tracePointsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(tracePoints_);
      }
    }
    /**
     * repeated .org.openfeed.TracePoint tracePoints = 2;
     */
    public org.openfeed.TracePoint.Builder addTracePointsBuilder() {
      return getTracePointsFieldBuilder().addBuilder(
          org.openfeed.TracePoint.getDefaultInstance());
    }
    /**
     * repeated .org.openfeed.TracePoint tracePoints = 2;
     */
    public org.openfeed.TracePoint.Builder addTracePointsBuilder(
        int index) {
      return getTracePointsFieldBuilder().addBuilder(
          index, org.openfeed.TracePoint.getDefaultInstance());
    }
    /**
     * repeated .org.openfeed.TracePoint tracePoints = 2;
     */
    public java.util.List 
         getTracePointsBuilderList() {
      return getTracePointsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilder<
        org.openfeed.TracePoint, org.openfeed.TracePoint.Builder, org.openfeed.TracePointOrBuilder> 
        getTracePointsFieldBuilder() {
      if (tracePointsBuilder_ == null) {
        tracePointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
            org.openfeed.TracePoint, org.openfeed.TracePoint.Builder, org.openfeed.TracePointOrBuilder>(
                tracePoints_,
                ((bitField0_ & 0x00000002) != 0),
                getParentForChildren(),
                isClean());
        tracePoints_ = null;
      }
      return tracePointsBuilder_;
    }

    // @@protoc_insertion_point(builder_scope:org.openfeed.Context)
  }

  // @@protoc_insertion_point(class_scope:org.openfeed.Context)
  private static final org.openfeed.Context DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new org.openfeed.Context();
  }

  public static org.openfeed.Context getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public Context 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 org.openfeed.Context getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy