com.github.xds.service.orca.v3.OrcaLoadReportRequest Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: xds/service/orca/v3/orca.proto
// Protobuf Java Version: 3.25.5
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.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new OrcaLoadReportRequest();
}
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);
}
private int bitField0_;
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 ((bitField0_ & 0x00000001) != 0);
}
/**
*
* 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 reportInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : reportInterval_;
}
public static final int REQUEST_COST_NAMES_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList requestCostNames_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
* 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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getReportInterval());
}
for (int i = 0; i < requestCostNames_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestCostNames_.getRaw(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
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 += 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.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 (!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 (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) + getUnknownFields().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) {
getReportIntervalFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
reportInterval_ = null;
if (reportIntervalBuilder_ != null) {
reportIntervalBuilder_.dispose();
reportIntervalBuilder_ = null;
}
requestCostNames_ =
com.google.protobuf.LazyStringArrayList.emptyList();
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);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.github.xds.service.orca.v3.OrcaLoadReportRequest result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.reportInterval_ = reportIntervalBuilder_ == null
? reportInterval_
: reportIntervalBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
requestCostNames_.makeImmutable();
result.requestCostNames_ = requestCostNames_;
}
result.bitField0_ |= to_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 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_ |= 0x00000002;
} else {
ensureRequestCostNamesIsMutable();
requestCostNames_.addAll(other.requestCostNames_);
}
onChanged();
}
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: {
input.readMessage(
getReportIntervalFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
java.lang.String s = input.readStringRequireUtf8();
ensureRequestCostNamesIsMutable();
requestCostNames_.add(s);
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 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 ((bitField0_ & 0x00000001) != 0);
}
/**
*
* 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;
} else {
reportIntervalBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
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();
} else {
reportIntervalBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
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 (((bitField0_ & 0x00000001) != 0) &&
reportInterval_ != null &&
reportInterval_ != com.google.protobuf.Duration.getDefaultInstance()) {
getReportIntervalBuilder().mergeFrom(value);
} else {
reportInterval_ = value;
}
} else {
reportIntervalBuilder_.mergeFrom(value);
}
if (reportInterval_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
* Interval for generating Open RCA core metric responses.
*
*
* .google.protobuf.Duration report_interval = 1;
*/
public Builder clearReportInterval() {
bitField0_ = (bitField0_ & ~0x00000001);
reportInterval_ = null;
if (reportIntervalBuilder_ != null) {
reportIntervalBuilder_.dispose();
reportIntervalBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* Interval for generating Open RCA core metric responses.
*
*
* .google.protobuf.Duration report_interval = 1;
*/
public com.google.protobuf.Duration.Builder getReportIntervalBuilder() {
bitField0_ |= 0x00000001;
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.LazyStringArrayList requestCostNames_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureRequestCostNamesIsMutable() {
if (!requestCostNames_.isModifiable()) {
requestCostNames_ = new com.google.protobuf.LazyStringArrayList(requestCostNames_);
}
bitField0_ |= 0x00000002;
}
/**
*
* 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() {
requestCostNames_.makeImmutable();
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);
}
/**
*
* 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);
bitField0_ |= 0x00000002;
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);
bitField0_ |= 0x00000002;
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_);
bitField0_ |= 0x00000002;
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.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);;
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);
bitField0_ |= 0x00000002;
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 {
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.github.xds.service.orca.v3.OrcaLoadReportRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy