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

com.github.xds.service.orca.v3.OrcaLoadReportRequest Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: xds/service/orca/v3/orca.proto

package com.github.xds.service.orca.v3;

/**
 * Protobuf type {@code xds.service.orca.v3.OrcaLoadReportRequest}
 */
public final class OrcaLoadReportRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:xds.service.orca.v3.OrcaLoadReportRequest)
    OrcaLoadReportRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use OrcaLoadReportRequest.newBuilder() to construct.
  private OrcaLoadReportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private OrcaLoadReportRequest() {
    requestCostNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private OrcaLoadReportRequest(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            com.google.protobuf.Duration.Builder subBuilder = null;
            if (reportInterval_ != null) {
              subBuilder = reportInterval_.toBuilder();
            }
            reportInterval_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(reportInterval_);
              reportInterval_ = subBuilder.buildPartial();
            }

            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              requestCostNames_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            requestCostNames_.add(s);
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (com.google.protobuf.UninitializedMessageException e) {
      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        requestCostNames_ = requestCostNames_.getUnmodifiableView();
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.github.xds.service.orca.v3.OrcaProto.internal_static_xds_service_orca_v3_OrcaLoadReportRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.github.xds.service.orca.v3.OrcaProto.internal_static_xds_service_orca_v3_OrcaLoadReportRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.github.xds.service.orca.v3.OrcaLoadReportRequest.class, com.github.xds.service.orca.v3.OrcaLoadReportRequest.Builder.class);
  }

  public static final int REPORT_INTERVAL_FIELD_NUMBER = 1;
  private com.google.protobuf.Duration reportInterval_;
  /**
   * 
   * Interval for generating Open RCA core metric responses.
   * 
* * .google.protobuf.Duration report_interval = 1; * @return Whether the reportInterval field is set. */ @java.lang.Override public boolean hasReportInterval() { return reportInterval_ != null; } /** *
   * Interval for generating Open RCA core metric responses.
   * 
* * .google.protobuf.Duration report_interval = 1; * @return The reportInterval. */ @java.lang.Override public com.google.protobuf.Duration getReportInterval() { return reportInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : reportInterval_; } /** *
   * Interval for generating Open RCA core metric responses.
   * 
* * .google.protobuf.Duration report_interval = 1; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getReportIntervalOrBuilder() { return getReportInterval(); } public static final int REQUEST_COST_NAMES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList requestCostNames_; /** *
   * Request costs to collect. If this is empty, all known requests costs tracked by
   * the load reporting agent will be returned. This provides an opportunity for
   * the client to selectively obtain a subset of tracked costs.
   * 
* * repeated string request_cost_names = 2; * @return A list containing the requestCostNames. */ public com.google.protobuf.ProtocolStringList getRequestCostNamesList() { return requestCostNames_; } /** *
   * Request costs to collect. If this is empty, all known requests costs tracked by
   * the load reporting agent will be returned. This provides an opportunity for
   * the client to selectively obtain a subset of tracked costs.
   * 
* * repeated string request_cost_names = 2; * @return The count of requestCostNames. */ public int getRequestCostNamesCount() { return requestCostNames_.size(); } /** *
   * Request costs to collect. If this is empty, all known requests costs tracked by
   * the load reporting agent will be returned. This provides an opportunity for
   * the client to selectively obtain a subset of tracked costs.
   * 
* * repeated string request_cost_names = 2; * @param index The index of the element to return. * @return The requestCostNames at the given index. */ public java.lang.String getRequestCostNames(int index) { return requestCostNames_.get(index); } /** *
   * Request costs to collect. If this is empty, all known requests costs tracked by
   * the load reporting agent will be returned. This provides an opportunity for
   * the client to selectively obtain a subset of tracked costs.
   * 
* * repeated string request_cost_names = 2; * @param index The index of the value to return. * @return The bytes of the requestCostNames at the given index. */ public com.google.protobuf.ByteString getRequestCostNamesBytes(int index) { return requestCostNames_.getByteString(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 { if (reportInterval_ != null) { output.writeMessage(1, getReportInterval()); } for (int i = 0; i < requestCostNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestCostNames_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (reportInterval_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getReportInterval()); } { int dataSize = 0; for (int i = 0; i < requestCostNames_.size(); i++) { dataSize += computeStringSizeNoTag(requestCostNames_.getRaw(i)); } size += dataSize; size += 1 * getRequestCostNamesList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.github.xds.service.orca.v3.OrcaLoadReportRequest)) { return super.equals(obj); } com.github.xds.service.orca.v3.OrcaLoadReportRequest other = (com.github.xds.service.orca.v3.OrcaLoadReportRequest) obj; if (hasReportInterval() != other.hasReportInterval()) return false; if (hasReportInterval()) { if (!getReportInterval() .equals(other.getReportInterval())) return false; } if (!getRequestCostNamesList() .equals(other.getRequestCostNamesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasReportInterval()) { hash = (37 * hash) + REPORT_INTERVAL_FIELD_NUMBER; hash = (53 * hash) + getReportInterval().hashCode(); } if (getRequestCostNamesCount() > 0) { hash = (37 * hash) + REQUEST_COST_NAMES_FIELD_NUMBER; hash = (53 * hash) + getRequestCostNamesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.github.xds.service.orca.v3.OrcaLoadReportRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.github.xds.service.orca.v3.OrcaLoadReportRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.github.xds.service.orca.v3.OrcaLoadReportRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.github.xds.service.orca.v3.OrcaLoadReportRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.github.xds.service.orca.v3.OrcaLoadReportRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.github.xds.service.orca.v3.OrcaLoadReportRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.github.xds.service.orca.v3.OrcaLoadReportRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.github.xds.service.orca.v3.OrcaLoadReportRequest 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.github.xds.service.orca.v3.OrcaLoadReportRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.github.xds.service.orca.v3.OrcaLoadReportRequest 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.github.xds.service.orca.v3.OrcaLoadReportRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.github.xds.service.orca.v3.OrcaLoadReportRequest 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.github.xds.service.orca.v3.OrcaLoadReportRequest 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 xds.service.orca.v3.OrcaLoadReportRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:xds.service.orca.v3.OrcaLoadReportRequest) com.github.xds.service.orca.v3.OrcaLoadReportRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.github.xds.service.orca.v3.OrcaProto.internal_static_xds_service_orca_v3_OrcaLoadReportRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.github.xds.service.orca.v3.OrcaProto.internal_static_xds_service_orca_v3_OrcaLoadReportRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.github.xds.service.orca.v3.OrcaLoadReportRequest.class, com.github.xds.service.orca.v3.OrcaLoadReportRequest.Builder.class); } // Construct using com.github.xds.service.orca.v3.OrcaLoadReportRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (reportIntervalBuilder_ == null) { reportInterval_ = null; } else { reportInterval_ = null; reportIntervalBuilder_ = null; } requestCostNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.github.xds.service.orca.v3.OrcaProto.internal_static_xds_service_orca_v3_OrcaLoadReportRequest_descriptor; } @java.lang.Override public com.github.xds.service.orca.v3.OrcaLoadReportRequest getDefaultInstanceForType() { return com.github.xds.service.orca.v3.OrcaLoadReportRequest.getDefaultInstance(); } @java.lang.Override public com.github.xds.service.orca.v3.OrcaLoadReportRequest build() { com.github.xds.service.orca.v3.OrcaLoadReportRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.github.xds.service.orca.v3.OrcaLoadReportRequest buildPartial() { com.github.xds.service.orca.v3.OrcaLoadReportRequest result = new com.github.xds.service.orca.v3.OrcaLoadReportRequest(this); int from_bitField0_ = bitField0_; if (reportIntervalBuilder_ == null) { result.reportInterval_ = reportInterval_; } else { result.reportInterval_ = reportIntervalBuilder_.build(); } if (((bitField0_ & 0x00000001) != 0)) { requestCostNames_ = requestCostNames_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.requestCostNames_ = requestCostNames_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.github.xds.service.orca.v3.OrcaLoadReportRequest) { return mergeFrom((com.github.xds.service.orca.v3.OrcaLoadReportRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.github.xds.service.orca.v3.OrcaLoadReportRequest other) { if (other == com.github.xds.service.orca.v3.OrcaLoadReportRequest.getDefaultInstance()) return this; if (other.hasReportInterval()) { mergeReportInterval(other.getReportInterval()); } if (!other.requestCostNames_.isEmpty()) { if (requestCostNames_.isEmpty()) { requestCostNames_ = other.requestCostNames_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRequestCostNamesIsMutable(); requestCostNames_.addAll(other.requestCostNames_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.github.xds.service.orca.v3.OrcaLoadReportRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.github.xds.service.orca.v3.OrcaLoadReportRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.Duration reportInterval_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> reportIntervalBuilder_; /** *
     * Interval for generating Open RCA core metric responses.
     * 
* * .google.protobuf.Duration report_interval = 1; * @return Whether the reportInterval field is set. */ public boolean hasReportInterval() { return reportIntervalBuilder_ != null || reportInterval_ != null; } /** *
     * Interval for generating Open RCA core metric responses.
     * 
* * .google.protobuf.Duration report_interval = 1; * @return The reportInterval. */ public com.google.protobuf.Duration getReportInterval() { if (reportIntervalBuilder_ == null) { return reportInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : reportInterval_; } else { return reportIntervalBuilder_.getMessage(); } } /** *
     * Interval for generating Open RCA core metric responses.
     * 
* * .google.protobuf.Duration report_interval = 1; */ public Builder setReportInterval(com.google.protobuf.Duration value) { if (reportIntervalBuilder_ == null) { if (value == null) { throw new NullPointerException(); } reportInterval_ = value; onChanged(); } else { reportIntervalBuilder_.setMessage(value); } return this; } /** *
     * Interval for generating Open RCA core metric responses.
     * 
* * .google.protobuf.Duration report_interval = 1; */ public Builder setReportInterval( com.google.protobuf.Duration.Builder builderForValue) { if (reportIntervalBuilder_ == null) { reportInterval_ = builderForValue.build(); onChanged(); } else { reportIntervalBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Interval for generating Open RCA core metric responses.
     * 
* * .google.protobuf.Duration report_interval = 1; */ public Builder mergeReportInterval(com.google.protobuf.Duration value) { if (reportIntervalBuilder_ == null) { if (reportInterval_ != null) { reportInterval_ = com.google.protobuf.Duration.newBuilder(reportInterval_).mergeFrom(value).buildPartial(); } else { reportInterval_ = value; } onChanged(); } else { reportIntervalBuilder_.mergeFrom(value); } return this; } /** *
     * Interval for generating Open RCA core metric responses.
     * 
* * .google.protobuf.Duration report_interval = 1; */ public Builder clearReportInterval() { if (reportIntervalBuilder_ == null) { reportInterval_ = null; onChanged(); } else { reportInterval_ = null; reportIntervalBuilder_ = null; } return this; } /** *
     * Interval for generating Open RCA core metric responses.
     * 
* * .google.protobuf.Duration report_interval = 1; */ public com.google.protobuf.Duration.Builder getReportIntervalBuilder() { onChanged(); return getReportIntervalFieldBuilder().getBuilder(); } /** *
     * Interval for generating Open RCA core metric responses.
     * 
* * .google.protobuf.Duration report_interval = 1; */ public com.google.protobuf.DurationOrBuilder getReportIntervalOrBuilder() { if (reportIntervalBuilder_ != null) { return reportIntervalBuilder_.getMessageOrBuilder(); } else { return reportInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : reportInterval_; } } /** *
     * Interval for generating Open RCA core metric responses.
     * 
* * .google.protobuf.Duration report_interval = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getReportIntervalFieldBuilder() { if (reportIntervalBuilder_ == null) { reportIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getReportInterval(), getParentForChildren(), isClean()); reportInterval_ = null; } return reportIntervalBuilder_; } private com.google.protobuf.LazyStringList requestCostNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRequestCostNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { requestCostNames_ = new com.google.protobuf.LazyStringArrayList(requestCostNames_); bitField0_ |= 0x00000001; } } /** *
     * Request costs to collect. If this is empty, all known requests costs tracked by
     * the load reporting agent will be returned. This provides an opportunity for
     * the client to selectively obtain a subset of tracked costs.
     * 
* * repeated string request_cost_names = 2; * @return A list containing the requestCostNames. */ public com.google.protobuf.ProtocolStringList getRequestCostNamesList() { return requestCostNames_.getUnmodifiableView(); } /** *
     * Request costs to collect. If this is empty, all known requests costs tracked by
     * the load reporting agent will be returned. This provides an opportunity for
     * the client to selectively obtain a subset of tracked costs.
     * 
* * repeated string request_cost_names = 2; * @return The count of requestCostNames. */ public int getRequestCostNamesCount() { return requestCostNames_.size(); } /** *
     * Request costs to collect. If this is empty, all known requests costs tracked by
     * the load reporting agent will be returned. This provides an opportunity for
     * the client to selectively obtain a subset of tracked costs.
     * 
* * repeated string request_cost_names = 2; * @param index The index of the element to return. * @return The requestCostNames at the given index. */ public java.lang.String getRequestCostNames(int index) { return requestCostNames_.get(index); } /** *
     * Request costs to collect. If this is empty, all known requests costs tracked by
     * the load reporting agent will be returned. This provides an opportunity for
     * the client to selectively obtain a subset of tracked costs.
     * 
* * repeated string request_cost_names = 2; * @param index The index of the value to return. * @return The bytes of the requestCostNames at the given index. */ public com.google.protobuf.ByteString getRequestCostNamesBytes(int index) { return requestCostNames_.getByteString(index); } /** *
     * Request costs to collect. If this is empty, all known requests costs tracked by
     * the load reporting agent will be returned. This provides an opportunity for
     * the client to selectively obtain a subset of tracked costs.
     * 
* * repeated string request_cost_names = 2; * @param index The index to set the value at. * @param value The requestCostNames to set. * @return This builder for chaining. */ public Builder setRequestCostNames( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRequestCostNamesIsMutable(); requestCostNames_.set(index, value); onChanged(); return this; } /** *
     * Request costs to collect. If this is empty, all known requests costs tracked by
     * the load reporting agent will be returned. This provides an opportunity for
     * the client to selectively obtain a subset of tracked costs.
     * 
* * repeated string request_cost_names = 2; * @param value The requestCostNames to add. * @return This builder for chaining. */ public Builder addRequestCostNames( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRequestCostNamesIsMutable(); requestCostNames_.add(value); onChanged(); return this; } /** *
     * Request costs to collect. If this is empty, all known requests costs tracked by
     * the load reporting agent will be returned. This provides an opportunity for
     * the client to selectively obtain a subset of tracked costs.
     * 
* * repeated string request_cost_names = 2; * @param values The requestCostNames to add. * @return This builder for chaining. */ public Builder addAllRequestCostNames( java.lang.Iterable values) { ensureRequestCostNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, requestCostNames_); onChanged(); return this; } /** *
     * Request costs to collect. If this is empty, all known requests costs tracked by
     * the load reporting agent will be returned. This provides an opportunity for
     * the client to selectively obtain a subset of tracked costs.
     * 
* * repeated string request_cost_names = 2; * @return This builder for chaining. */ public Builder clearRequestCostNames() { requestCostNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Request costs to collect. If this is empty, all known requests costs tracked by
     * the load reporting agent will be returned. This provides an opportunity for
     * the client to selectively obtain a subset of tracked costs.
     * 
* * repeated string request_cost_names = 2; * @param value The bytes of the requestCostNames to add. * @return This builder for chaining. */ public Builder addRequestCostNamesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureRequestCostNamesIsMutable(); requestCostNames_.add(value); onChanged(); 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:xds.service.orca.v3.OrcaLoadReportRequest) } // @@protoc_insertion_point(class_scope:xds.service.orca.v3.OrcaLoadReportRequest) private static final com.github.xds.service.orca.v3.OrcaLoadReportRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.github.xds.service.orca.v3.OrcaLoadReportRequest(); } public static com.github.xds.service.orca.v3.OrcaLoadReportRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OrcaLoadReportRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OrcaLoadReportRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.github.xds.service.orca.v3.OrcaLoadReportRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy