main.java.com.streamlayer.analytics.studio.v1.DashboardRequestOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sl-protofiles Show documentation
Show all versions of sl-protofiles Show documentation
StreamLayer Java Protofiles
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: streamlayer/analytics/v1/studio/studioDashboard.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.analytics.studio.v1;
/**
* Protobuf type {@code streamlayer.analytics.v1.studio.DashboardRequestOptions}
*/
public final class DashboardRequestOptions extends
com.google.protobuf.GeneratedMessageLite<
DashboardRequestOptions, DashboardRequestOptions.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.analytics.v1.studio.DashboardRequestOptions)
DashboardRequestOptionsOrBuilder {
private DashboardRequestOptions() {
metrics_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
}
public static final int SUMMARY_COUNT_FIELD_NUMBER = 1;
private boolean summaryCount_;
/**
* bool summary_count = 1 [json_name = "summaryCount"];
* @return The summaryCount.
*/
@java.lang.Override
public boolean getSummaryCount() {
return summaryCount_;
}
/**
* bool summary_count = 1 [json_name = "summaryCount"];
* @param value The summaryCount to set.
*/
private void setSummaryCount(boolean value) {
summaryCount_ = value;
}
/**
* bool summary_count = 1 [json_name = "summaryCount"];
*/
private void clearSummaryCount() {
summaryCount_ = false;
}
public static final int METRICS_FIELD_NUMBER = 2;
private com.google.protobuf.Internal.ProtobufList metrics_;
/**
* repeated string metrics = 2 [json_name = "metrics"];
* @return A list containing the metrics.
*/
@java.lang.Override
public java.util.List getMetricsList() {
return metrics_;
}
/**
* repeated string metrics = 2 [json_name = "metrics"];
* @return The count of metrics.
*/
@java.lang.Override
public int getMetricsCount() {
return metrics_.size();
}
/**
* repeated string metrics = 2 [json_name = "metrics"];
* @param index The index of the element to return.
* @return The metrics at the given index.
*/
@java.lang.Override
public java.lang.String getMetrics(int index) {
return metrics_.get(index);
}
/**
* repeated string metrics = 2 [json_name = "metrics"];
* @param index The index of the value to return.
* @return The bytes of the metrics at the given index.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMetricsBytes(int index) {
return com.google.protobuf.ByteString.copyFromUtf8(
metrics_.get(index));
}
private void ensureMetricsIsMutable() {
com.google.protobuf.Internal.ProtobufList tmp =
metrics_; if (!tmp.isModifiable()) {
metrics_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
}
}
/**
* repeated string metrics = 2 [json_name = "metrics"];
* @param index The index to set the value at.
* @param value The metrics to set.
*/
private void setMetrics(
int index, java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
ensureMetricsIsMutable();
metrics_.set(index, value);
}
/**
* repeated string metrics = 2 [json_name = "metrics"];
* @param value The metrics to add.
*/
private void addMetrics(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
ensureMetricsIsMutable();
metrics_.add(value);
}
/**
* repeated string metrics = 2 [json_name = "metrics"];
* @param values The metrics to add.
*/
private void addAllMetrics(
java.lang.Iterable values) {
ensureMetricsIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, metrics_);
}
/**
* repeated string metrics = 2 [json_name = "metrics"];
*/
private void clearMetrics() {
metrics_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
}
/**
* repeated string metrics = 2 [json_name = "metrics"];
* @param value The bytes of the metrics to add.
*/
private void addMetricsBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
ensureMetricsIsMutable();
metrics_.add(value.toStringUtf8());
}
public static com.streamlayer.analytics.studio.v1.DashboardRequestOptions parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.analytics.studio.v1.DashboardRequestOptions parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.streamlayer.analytics.studio.v1.DashboardRequestOptions parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.analytics.studio.v1.DashboardRequestOptions parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.streamlayer.analytics.studio.v1.DashboardRequestOptions parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.analytics.studio.v1.DashboardRequestOptions parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.streamlayer.analytics.studio.v1.DashboardRequestOptions parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.analytics.studio.v1.DashboardRequestOptions parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.analytics.studio.v1.DashboardRequestOptions parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.analytics.studio.v1.DashboardRequestOptions parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.analytics.studio.v1.DashboardRequestOptions parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.analytics.studio.v1.DashboardRequestOptions parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.streamlayer.analytics.studio.v1.DashboardRequestOptions prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.analytics.v1.studio.DashboardRequestOptions}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.analytics.studio.v1.DashboardRequestOptions, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.analytics.v1.studio.DashboardRequestOptions)
com.streamlayer.analytics.studio.v1.DashboardRequestOptionsOrBuilder {
// Construct using com.streamlayer.analytics.studio.v1.DashboardRequestOptions.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* bool summary_count = 1 [json_name = "summaryCount"];
* @return The summaryCount.
*/
@java.lang.Override
public boolean getSummaryCount() {
return instance.getSummaryCount();
}
/**
* bool summary_count = 1 [json_name = "summaryCount"];
* @param value The summaryCount to set.
* @return This builder for chaining.
*/
public Builder setSummaryCount(boolean value) {
copyOnWrite();
instance.setSummaryCount(value);
return this;
}
/**
* bool summary_count = 1 [json_name = "summaryCount"];
* @return This builder for chaining.
*/
public Builder clearSummaryCount() {
copyOnWrite();
instance.clearSummaryCount();
return this;
}
/**
* repeated string metrics = 2 [json_name = "metrics"];
* @return A list containing the metrics.
*/
@java.lang.Override
public java.util.List
getMetricsList() {
return java.util.Collections.unmodifiableList(
instance.getMetricsList());
}
/**
* repeated string metrics = 2 [json_name = "metrics"];
* @return The count of metrics.
*/
@java.lang.Override
public int getMetricsCount() {
return instance.getMetricsCount();
}
/**
* repeated string metrics = 2 [json_name = "metrics"];
* @param index The index of the element to return.
* @return The metrics at the given index.
*/
@java.lang.Override
public java.lang.String getMetrics(int index) {
return instance.getMetrics(index);
}
/**
* repeated string metrics = 2 [json_name = "metrics"];
* @param index The index of the value to return.
* @return The bytes of the metrics at the given index.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMetricsBytes(int index) {
return instance.getMetricsBytes(index);
}
/**
* repeated string metrics = 2 [json_name = "metrics"];
* @param index The index to set the value at.
* @param value The metrics to set.
* @return This builder for chaining.
*/
public Builder setMetrics(
int index, java.lang.String value) {
copyOnWrite();
instance.setMetrics(index, value);
return this;
}
/**
* repeated string metrics = 2 [json_name = "metrics"];
* @param value The metrics to add.
* @return This builder for chaining.
*/
public Builder addMetrics(
java.lang.String value) {
copyOnWrite();
instance.addMetrics(value);
return this;
}
/**
* repeated string metrics = 2 [json_name = "metrics"];
* @param values The metrics to add.
* @return This builder for chaining.
*/
public Builder addAllMetrics(
java.lang.Iterable values) {
copyOnWrite();
instance.addAllMetrics(values);
return this;
}
/**
* repeated string metrics = 2 [json_name = "metrics"];
* @return This builder for chaining.
*/
public Builder clearMetrics() {
copyOnWrite();
instance.clearMetrics();
return this;
}
/**
* repeated string metrics = 2 [json_name = "metrics"];
* @param value The bytes of the metrics to add.
* @return This builder for chaining.
*/
public Builder addMetricsBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.addMetricsBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.analytics.v1.studio.DashboardRequestOptions)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.streamlayer.analytics.studio.v1.DashboardRequestOptions();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"summaryCount_",
"metrics_",
};
java.lang.String info =
"\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0001\u0000\u0001\u0007\u0002\u021a" +
"";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.streamlayer.analytics.studio.v1.DashboardRequestOptions.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:streamlayer.analytics.v1.studio.DashboardRequestOptions)
private static final com.streamlayer.analytics.studio.v1.DashboardRequestOptions DEFAULT_INSTANCE;
static {
DashboardRequestOptions defaultInstance = new DashboardRequestOptions();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
DashboardRequestOptions.class, defaultInstance);
}
public static com.streamlayer.analytics.studio.v1.DashboardRequestOptions getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}