main.java.com.streamlayer.analytics.studio.v2.CardStatistics 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/v2/studio/dashboard.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.analytics.studio.v2;
/**
* Protobuf type {@code streamlayer.analytics.v2.studio.CardStatistics}
*/
public final class CardStatistics extends
com.google.protobuf.GeneratedMessageLite<
CardStatistics, CardStatistics.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.analytics.v2.studio.CardStatistics)
CardStatisticsOrBuilder {
private CardStatistics() {
}
public static final int TOTAL_FIELD_NUMBER = 1;
private int total_;
/**
* int32 total = 1 [json_name = "total"];
* @return The total.
*/
@java.lang.Override
public int getTotal() {
return total_;
}
/**
* int32 total = 1 [json_name = "total"];
* @param value The total to set.
*/
private void setTotal(int value) {
total_ = value;
}
/**
* int32 total = 1 [json_name = "total"];
*/
private void clearTotal() {
total_ = 0;
}
public static final int VIEWED_FIELD_NUMBER = 2;
private int viewed_;
/**
* int32 viewed = 2 [json_name = "viewed"];
* @return The viewed.
*/
@java.lang.Override
public int getViewed() {
return viewed_;
}
/**
* int32 viewed = 2 [json_name = "viewed"];
* @param value The viewed to set.
*/
private void setViewed(int value) {
viewed_ = value;
}
/**
* int32 viewed = 2 [json_name = "viewed"];
*/
private void clearViewed() {
viewed_ = 0;
}
public static final int OPENED_FIELD_NUMBER = 3;
private int opened_;
/**
* int32 opened = 3 [json_name = "opened"];
* @return The opened.
*/
@java.lang.Override
public int getOpened() {
return opened_;
}
/**
* int32 opened = 3 [json_name = "opened"];
* @param value The opened to set.
*/
private void setOpened(int value) {
opened_ = value;
}
/**
* int32 opened = 3 [json_name = "opened"];
*/
private void clearOpened() {
opened_ = 0;
}
public static final int ANSWERED_FIELD_NUMBER = 4;
private int answered_;
/**
* int32 answered = 4 [json_name = "answered"];
* @return The answered.
*/
@java.lang.Override
public int getAnswered() {
return answered_;
}
/**
* int32 answered = 4 [json_name = "answered"];
* @param value The answered to set.
*/
private void setAnswered(int value) {
answered_ = value;
}
/**
* int32 answered = 4 [json_name = "answered"];
*/
private void clearAnswered() {
answered_ = 0;
}
public static com.streamlayer.analytics.studio.v2.CardStatistics 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.v2.CardStatistics 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.v2.CardStatistics 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.v2.CardStatistics 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.v2.CardStatistics parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.analytics.studio.v2.CardStatistics 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.v2.CardStatistics parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.analytics.studio.v2.CardStatistics 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.v2.CardStatistics parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.analytics.studio.v2.CardStatistics 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.v2.CardStatistics 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.v2.CardStatistics 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.v2.CardStatistics prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.analytics.v2.studio.CardStatistics}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.analytics.studio.v2.CardStatistics, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.analytics.v2.studio.CardStatistics)
com.streamlayer.analytics.studio.v2.CardStatisticsOrBuilder {
// Construct using com.streamlayer.analytics.studio.v2.CardStatistics.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* int32 total = 1 [json_name = "total"];
* @return The total.
*/
@java.lang.Override
public int getTotal() {
return instance.getTotal();
}
/**
* int32 total = 1 [json_name = "total"];
* @param value The total to set.
* @return This builder for chaining.
*/
public Builder setTotal(int value) {
copyOnWrite();
instance.setTotal(value);
return this;
}
/**
* int32 total = 1 [json_name = "total"];
* @return This builder for chaining.
*/
public Builder clearTotal() {
copyOnWrite();
instance.clearTotal();
return this;
}
/**
* int32 viewed = 2 [json_name = "viewed"];
* @return The viewed.
*/
@java.lang.Override
public int getViewed() {
return instance.getViewed();
}
/**
* int32 viewed = 2 [json_name = "viewed"];
* @param value The viewed to set.
* @return This builder for chaining.
*/
public Builder setViewed(int value) {
copyOnWrite();
instance.setViewed(value);
return this;
}
/**
* int32 viewed = 2 [json_name = "viewed"];
* @return This builder for chaining.
*/
public Builder clearViewed() {
copyOnWrite();
instance.clearViewed();
return this;
}
/**
* int32 opened = 3 [json_name = "opened"];
* @return The opened.
*/
@java.lang.Override
public int getOpened() {
return instance.getOpened();
}
/**
* int32 opened = 3 [json_name = "opened"];
* @param value The opened to set.
* @return This builder for chaining.
*/
public Builder setOpened(int value) {
copyOnWrite();
instance.setOpened(value);
return this;
}
/**
* int32 opened = 3 [json_name = "opened"];
* @return This builder for chaining.
*/
public Builder clearOpened() {
copyOnWrite();
instance.clearOpened();
return this;
}
/**
* int32 answered = 4 [json_name = "answered"];
* @return The answered.
*/
@java.lang.Override
public int getAnswered() {
return instance.getAnswered();
}
/**
* int32 answered = 4 [json_name = "answered"];
* @param value The answered to set.
* @return This builder for chaining.
*/
public Builder setAnswered(int value) {
copyOnWrite();
instance.setAnswered(value);
return this;
}
/**
* int32 answered = 4 [json_name = "answered"];
* @return This builder for chaining.
*/
public Builder clearAnswered() {
copyOnWrite();
instance.clearAnswered();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.analytics.v2.studio.CardStatistics)
}
@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.v2.CardStatistics();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"total_",
"viewed_",
"opened_",
"answered_",
};
java.lang.String info =
"\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001\u0004\u0002\u0004" +
"\u0003\u0004\u0004\u0004";
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.v2.CardStatistics.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.v2.studio.CardStatistics)
private static final com.streamlayer.analytics.studio.v2.CardStatistics DEFAULT_INSTANCE;
static {
CardStatistics defaultInstance = new CardStatistics();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
CardStatistics.class, defaultInstance);
}
public static com.streamlayer.analytics.studio.v2.CardStatistics getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}