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

io.stigg.sidecar.proto.v1.GetEntitlementsResponse Maven / Gradle / Ivy

There is a newer version: 2.112.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: stigg/sidecar/v1/sidecar.proto

package io.stigg.sidecar.proto.v1;

/** Protobuf type {@code stigg.sidecar.v1.GetEntitlementsResponse} */
public final class GetEntitlementsResponse extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:stigg.sidecar.v1.GetEntitlementsResponse)
    GetEntitlementsResponseOrBuilder {
  private static final long serialVersionUID = 0L;

  // Use GetEntitlementsResponse.newBuilder() to construct.
  private GetEntitlementsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }

  private GetEntitlementsResponse() {
    entitlements_ = java.util.Collections.emptyList();
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return io.stigg.sidecar.proto.v1.SidecarProto
        .internal_static_stigg_sidecar_v1_GetEntitlementsResponse_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.stigg.sidecar.proto.v1.SidecarProto
        .internal_static_stigg_sidecar_v1_GetEntitlementsResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.stigg.sidecar.proto.v1.GetEntitlementsResponse.class,
            io.stigg.sidecar.proto.v1.GetEntitlementsResponse.Builder.class);
  }

  public static final int ENTITLEMENTS_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private java.util.List entitlements_;

  /**
   * repeated .stigg.sidecar.v1.Entitlement entitlements = 1 [json_name = "entitlements"];
   * 
   */
  @java.lang.Override
  public java.util.List getEntitlementsList() {
    return entitlements_;
  }

  /**
   * repeated .stigg.sidecar.v1.Entitlement entitlements = 1 [json_name = "entitlements"];
   * 
   */
  @java.lang.Override
  public java.util.List
      getEntitlementsOrBuilderList() {
    return entitlements_;
  }

  /**
   * repeated .stigg.sidecar.v1.Entitlement entitlements = 1 [json_name = "entitlements"];
   * 
   */
  @java.lang.Override
  public int getEntitlementsCount() {
    return entitlements_.size();
  }

  /**
   * repeated .stigg.sidecar.v1.Entitlement entitlements = 1 [json_name = "entitlements"];
   * 
   */
  @java.lang.Override
  public io.stigg.sidecar.proto.v1.Entitlement getEntitlements(int index) {
    return entitlements_.get(index);
  }

  /**
   * repeated .stigg.sidecar.v1.Entitlement entitlements = 1 [json_name = "entitlements"];
   * 
   */
  @java.lang.Override
  public io.stigg.sidecar.proto.v1.EntitlementOrBuilder getEntitlementsOrBuilder(int index) {
    return entitlements_.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 < entitlements_.size(); i++) {
      output.writeMessage(1, entitlements_.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 < entitlements_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entitlements_.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 io.stigg.sidecar.proto.v1.GetEntitlementsResponse)) {
      return super.equals(obj);
    }
    io.stigg.sidecar.proto.v1.GetEntitlementsResponse other =
        (io.stigg.sidecar.proto.v1.GetEntitlementsResponse) obj;

    if (!getEntitlementsList().equals(other.getEntitlementsList())) 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 (getEntitlementsCount() > 0) {
      hash = (37 * hash) + ENTITLEMENTS_FIELD_NUMBER;
      hash = (53 * hash) + getEntitlementsList().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static io.stigg.sidecar.proto.v1.GetEntitlementsResponse parseFrom(
      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static io.stigg.sidecar.proto.v1.GetEntitlementsResponse parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static io.stigg.sidecar.proto.v1.GetEntitlementsResponse parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static io.stigg.sidecar.proto.v1.GetEntitlementsResponse parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static io.stigg.sidecar.proto.v1.GetEntitlementsResponse parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static io.stigg.sidecar.proto.v1.GetEntitlementsResponse parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static io.stigg.sidecar.proto.v1.GetEntitlementsResponse parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static io.stigg.sidecar.proto.v1.GetEntitlementsResponse 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.stigg.sidecar.proto.v1.GetEntitlementsResponse parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static io.stigg.sidecar.proto.v1.GetEntitlementsResponse 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.stigg.sidecar.proto.v1.GetEntitlementsResponse parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static io.stigg.sidecar.proto.v1.GetEntitlementsResponse 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.stigg.sidecar.proto.v1.GetEntitlementsResponse 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 stigg.sidecar.v1.GetEntitlementsResponse} */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
      implements
      // @@protoc_insertion_point(builder_implements:stigg.sidecar.v1.GetEntitlementsResponse)
      io.stigg.sidecar.proto.v1.GetEntitlementsResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return io.stigg.sidecar.proto.v1.SidecarProto
          .internal_static_stigg_sidecar_v1_GetEntitlementsResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return io.stigg.sidecar.proto.v1.SidecarProto
          .internal_static_stigg_sidecar_v1_GetEntitlementsResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              io.stigg.sidecar.proto.v1.GetEntitlementsResponse.class,
              io.stigg.sidecar.proto.v1.GetEntitlementsResponse.Builder.class);
    }

    // Construct using io.stigg.sidecar.proto.v1.GetEntitlementsResponse.newBuilder()
    private Builder() {}

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

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

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return io.stigg.sidecar.proto.v1.SidecarProto
          .internal_static_stigg_sidecar_v1_GetEntitlementsResponse_descriptor;
    }

    @java.lang.Override
    public io.stigg.sidecar.proto.v1.GetEntitlementsResponse getDefaultInstanceForType() {
      return io.stigg.sidecar.proto.v1.GetEntitlementsResponse.getDefaultInstance();
    }

    @java.lang.Override
    public io.stigg.sidecar.proto.v1.GetEntitlementsResponse build() {
      io.stigg.sidecar.proto.v1.GetEntitlementsResponse result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public io.stigg.sidecar.proto.v1.GetEntitlementsResponse buildPartial() {
      io.stigg.sidecar.proto.v1.GetEntitlementsResponse result =
          new io.stigg.sidecar.proto.v1.GetEntitlementsResponse(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(
        io.stigg.sidecar.proto.v1.GetEntitlementsResponse result) {
      if (entitlementsBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          entitlements_ = java.util.Collections.unmodifiableList(entitlements_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.entitlements_ = entitlements_;
      } else {
        result.entitlements_ = entitlementsBuilder_.build();
      }
    }

    private void buildPartial0(io.stigg.sidecar.proto.v1.GetEntitlementsResponse result) {
      int from_bitField0_ = bitField0_;
    }

    @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.stigg.sidecar.proto.v1.GetEntitlementsResponse) {
        return mergeFrom((io.stigg.sidecar.proto.v1.GetEntitlementsResponse) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(io.stigg.sidecar.proto.v1.GetEntitlementsResponse other) {
      if (other == io.stigg.sidecar.proto.v1.GetEntitlementsResponse.getDefaultInstance())
        return this;
      if (entitlementsBuilder_ == null) {
        if (!other.entitlements_.isEmpty()) {
          if (entitlements_.isEmpty()) {
            entitlements_ = other.entitlements_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureEntitlementsIsMutable();
            entitlements_.addAll(other.entitlements_);
          }
          onChanged();
        }
      } else {
        if (!other.entitlements_.isEmpty()) {
          if (entitlementsBuilder_.isEmpty()) {
            entitlementsBuilder_.dispose();
            entitlementsBuilder_ = null;
            entitlements_ = other.entitlements_;
            bitField0_ = (bitField0_ & ~0x00000001);
            entitlementsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getEntitlementsFieldBuilder()
                    : null;
          } else {
            entitlementsBuilder_.addAllMessages(other.entitlements_);
          }
        }
      }
      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:
              {
                io.stigg.sidecar.proto.v1.Entitlement m =
                    input.readMessage(
                        io.stigg.sidecar.proto.v1.Entitlement.parser(), extensionRegistry);
                if (entitlementsBuilder_ == null) {
                  ensureEntitlementsIsMutable();
                  entitlements_.add(m);
                } else {
                  entitlementsBuilder_.addMessage(m);
                }
                break;
              } // case 10
            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 entitlements_ =
        java.util.Collections.emptyList();

    private void ensureEntitlementsIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        entitlements_ =
            new java.util.ArrayList(entitlements_);
        bitField0_ |= 0x00000001;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            io.stigg.sidecar.proto.v1.Entitlement,
            io.stigg.sidecar.proto.v1.Entitlement.Builder,
            io.stigg.sidecar.proto.v1.EntitlementOrBuilder>
        entitlementsBuilder_;

    /**
     * repeated .stigg.sidecar.v1.Entitlement entitlements = 1 [json_name = "entitlements"];
     * 
     */
    public java.util.List getEntitlementsList() {
      if (entitlementsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(entitlements_);
      } else {
        return entitlementsBuilder_.getMessageList();
      }
    }

    /**
     * repeated .stigg.sidecar.v1.Entitlement entitlements = 1 [json_name = "entitlements"];
     * 
     */
    public int getEntitlementsCount() {
      if (entitlementsBuilder_ == null) {
        return entitlements_.size();
      } else {
        return entitlementsBuilder_.getCount();
      }
    }

    /**
     * repeated .stigg.sidecar.v1.Entitlement entitlements = 1 [json_name = "entitlements"];
     * 
     */
    public io.stigg.sidecar.proto.v1.Entitlement getEntitlements(int index) {
      if (entitlementsBuilder_ == null) {
        return entitlements_.get(index);
      } else {
        return entitlementsBuilder_.getMessage(index);
      }
    }

    /**
     * repeated .stigg.sidecar.v1.Entitlement entitlements = 1 [json_name = "entitlements"];
     * 
     */
    public Builder setEntitlements(int index, io.stigg.sidecar.proto.v1.Entitlement value) {
      if (entitlementsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureEntitlementsIsMutable();
        entitlements_.set(index, value);
        onChanged();
      } else {
        entitlementsBuilder_.setMessage(index, value);
      }
      return this;
    }

    /**
     * repeated .stigg.sidecar.v1.Entitlement entitlements = 1 [json_name = "entitlements"];
     * 
     */
    public Builder setEntitlements(
        int index, io.stigg.sidecar.proto.v1.Entitlement.Builder builderForValue) {
      if (entitlementsBuilder_ == null) {
        ensureEntitlementsIsMutable();
        entitlements_.set(index, builderForValue.build());
        onChanged();
      } else {
        entitlementsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }

    /**
     * repeated .stigg.sidecar.v1.Entitlement entitlements = 1 [json_name = "entitlements"];
     * 
     */
    public Builder addEntitlements(io.stigg.sidecar.proto.v1.Entitlement value) {
      if (entitlementsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureEntitlementsIsMutable();
        entitlements_.add(value);
        onChanged();
      } else {
        entitlementsBuilder_.addMessage(value);
      }
      return this;
    }

    /**
     * repeated .stigg.sidecar.v1.Entitlement entitlements = 1 [json_name = "entitlements"];
     * 
     */
    public Builder addEntitlements(int index, io.stigg.sidecar.proto.v1.Entitlement value) {
      if (entitlementsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureEntitlementsIsMutable();
        entitlements_.add(index, value);
        onChanged();
      } else {
        entitlementsBuilder_.addMessage(index, value);
      }
      return this;
    }

    /**
     * repeated .stigg.sidecar.v1.Entitlement entitlements = 1 [json_name = "entitlements"];
     * 
     */
    public Builder addEntitlements(io.stigg.sidecar.proto.v1.Entitlement.Builder builderForValue) {
      if (entitlementsBuilder_ == null) {
        ensureEntitlementsIsMutable();
        entitlements_.add(builderForValue.build());
        onChanged();
      } else {
        entitlementsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }

    /**
     * repeated .stigg.sidecar.v1.Entitlement entitlements = 1 [json_name = "entitlements"];
     * 
     */
    public Builder addEntitlements(
        int index, io.stigg.sidecar.proto.v1.Entitlement.Builder builderForValue) {
      if (entitlementsBuilder_ == null) {
        ensureEntitlementsIsMutable();
        entitlements_.add(index, builderForValue.build());
        onChanged();
      } else {
        entitlementsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }

    /**
     * repeated .stigg.sidecar.v1.Entitlement entitlements = 1 [json_name = "entitlements"];
     * 
     */
    public Builder addAllEntitlements(
        java.lang.Iterable values) {
      if (entitlementsBuilder_ == null) {
        ensureEntitlementsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entitlements_);
        onChanged();
      } else {
        entitlementsBuilder_.addAllMessages(values);
      }
      return this;
    }

    /**
     * repeated .stigg.sidecar.v1.Entitlement entitlements = 1 [json_name = "entitlements"];
     * 
     */
    public Builder clearEntitlements() {
      if (entitlementsBuilder_ == null) {
        entitlements_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        entitlementsBuilder_.clear();
      }
      return this;
    }

    /**
     * repeated .stigg.sidecar.v1.Entitlement entitlements = 1 [json_name = "entitlements"];
     * 
     */
    public Builder removeEntitlements(int index) {
      if (entitlementsBuilder_ == null) {
        ensureEntitlementsIsMutable();
        entitlements_.remove(index);
        onChanged();
      } else {
        entitlementsBuilder_.remove(index);
      }
      return this;
    }

    /**
     * repeated .stigg.sidecar.v1.Entitlement entitlements = 1 [json_name = "entitlements"];
     * 
     */
    public io.stigg.sidecar.proto.v1.Entitlement.Builder getEntitlementsBuilder(int index) {
      return getEntitlementsFieldBuilder().getBuilder(index);
    }

    /**
     * repeated .stigg.sidecar.v1.Entitlement entitlements = 1 [json_name = "entitlements"];
     * 
     */
    public io.stigg.sidecar.proto.v1.EntitlementOrBuilder getEntitlementsOrBuilder(int index) {
      if (entitlementsBuilder_ == null) {
        return entitlements_.get(index);
      } else {
        return entitlementsBuilder_.getMessageOrBuilder(index);
      }
    }

    /**
     * repeated .stigg.sidecar.v1.Entitlement entitlements = 1 [json_name = "entitlements"];
     * 
     */
    public java.util.List
        getEntitlementsOrBuilderList() {
      if (entitlementsBuilder_ != null) {
        return entitlementsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(entitlements_);
      }
    }

    /**
     * repeated .stigg.sidecar.v1.Entitlement entitlements = 1 [json_name = "entitlements"];
     * 
     */
    public io.stigg.sidecar.proto.v1.Entitlement.Builder addEntitlementsBuilder() {
      return getEntitlementsFieldBuilder()
          .addBuilder(io.stigg.sidecar.proto.v1.Entitlement.getDefaultInstance());
    }

    /**
     * repeated .stigg.sidecar.v1.Entitlement entitlements = 1 [json_name = "entitlements"];
     * 
     */
    public io.stigg.sidecar.proto.v1.Entitlement.Builder addEntitlementsBuilder(int index) {
      return getEntitlementsFieldBuilder()
          .addBuilder(index, io.stigg.sidecar.proto.v1.Entitlement.getDefaultInstance());
    }

    /**
     * repeated .stigg.sidecar.v1.Entitlement entitlements = 1 [json_name = "entitlements"];
     * 
     */
    public java.util.List
        getEntitlementsBuilderList() {
      return getEntitlementsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            io.stigg.sidecar.proto.v1.Entitlement,
            io.stigg.sidecar.proto.v1.Entitlement.Builder,
            io.stigg.sidecar.proto.v1.EntitlementOrBuilder>
        getEntitlementsFieldBuilder() {
      if (entitlementsBuilder_ == null) {
        entitlementsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                io.stigg.sidecar.proto.v1.Entitlement,
                io.stigg.sidecar.proto.v1.Entitlement.Builder,
                io.stigg.sidecar.proto.v1.EntitlementOrBuilder>(
                entitlements_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
        entitlements_ = null;
      }
      return entitlementsBuilder_;
    }

    @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:stigg.sidecar.v1.GetEntitlementsResponse)
  }

  // @@protoc_insertion_point(class_scope:stigg.sidecar.v1.GetEntitlementsResponse)
  private static final io.stigg.sidecar.proto.v1.GetEntitlementsResponse DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new io.stigg.sidecar.proto.v1.GetEntitlementsResponse();
  }

  public static io.stigg.sidecar.proto.v1.GetEntitlementsResponse getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser PARSER =
      new com.google.protobuf.AbstractParser() {
        @java.lang.Override
        public GetEntitlementsResponse 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 io.stigg.sidecar.proto.v1.GetEntitlementsResponse getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy