Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
* 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.
*
* 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.
*
* 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;
}
}