main.java.com.streamlayer.analytics.streaming.v1.SendInvitationsMessage 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/streaming/streaming.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.analytics.streaming.v1;
/**
* Protobuf type {@code streamlayer.analytics.v2.streaming.SendInvitationsMessage}
*/
public final class SendInvitationsMessage extends
com.google.protobuf.GeneratedMessageLite<
SendInvitationsMessage, SendInvitationsMessage.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.analytics.v2.streaming.SendInvitationsMessage)
SendInvitationsMessageOrBuilder {
private SendInvitationsMessage() {
}
private int bitField0_;
public static final int COMMON_FIELD_NUMBER = 1;
private com.streamlayer.analytics.streaming.v1.CommonData common_;
/**
*
* common analytics data amongst calls
* kind: KIND_INVITATION_SENT, KIND_INVITATION_ACCEPTED
* category should be picked from extras
*
*
* .streamlayer.analytics.v2.streaming.CommonData common = 1 [json_name = "common"];
*/
@java.lang.Override
public boolean hasCommon() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* common analytics data amongst calls
* kind: KIND_INVITATION_SENT, KIND_INVITATION_ACCEPTED
* category should be picked from extras
*
*
* .streamlayer.analytics.v2.streaming.CommonData common = 1 [json_name = "common"];
*/
@java.lang.Override
public com.streamlayer.analytics.streaming.v1.CommonData getCommon() {
return common_ == null ? com.streamlayer.analytics.streaming.v1.CommonData.getDefaultInstance() : common_;
}
/**
*
* common analytics data amongst calls
* kind: KIND_INVITATION_SENT, KIND_INVITATION_ACCEPTED
* category should be picked from extras
*
*
* .streamlayer.analytics.v2.streaming.CommonData common = 1 [json_name = "common"];
*/
private void setCommon(com.streamlayer.analytics.streaming.v1.CommonData value) {
value.getClass();
common_ = value;
bitField0_ |= 0x00000001;
}
/**
*
* common analytics data amongst calls
* kind: KIND_INVITATION_SENT, KIND_INVITATION_ACCEPTED
* category should be picked from extras
*
*
* .streamlayer.analytics.v2.streaming.CommonData common = 1 [json_name = "common"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeCommon(com.streamlayer.analytics.streaming.v1.CommonData value) {
value.getClass();
if (common_ != null &&
common_ != com.streamlayer.analytics.streaming.v1.CommonData.getDefaultInstance()) {
common_ =
com.streamlayer.analytics.streaming.v1.CommonData.newBuilder(common_).mergeFrom(value).buildPartial();
} else {
common_ = value;
}
bitField0_ |= 0x00000001;
}
/**
*
* common analytics data amongst calls
* kind: KIND_INVITATION_SENT, KIND_INVITATION_ACCEPTED
* category should be picked from extras
*
*
* .streamlayer.analytics.v2.streaming.CommonData common = 1 [json_name = "common"];
*/
private void clearCommon() { common_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static final int CATEGORY_FIELD_NUMBER = 2;
private int category_;
/**
*
* invitation category
*
*
* .streamlayer.analytics.v1.invitations.InvitationCategory category = 2 [json_name = "category"];
* @return The enum numeric value on the wire for category.
*/
@java.lang.Override
public int getCategoryValue() {
return category_;
}
/**
*
* invitation category
*
*
* .streamlayer.analytics.v1.invitations.InvitationCategory category = 2 [json_name = "category"];
* @return The category.
*/
@java.lang.Override
public com.streamlayer.analytics.invitations.v1.InvitationCategory getCategory() {
com.streamlayer.analytics.invitations.v1.InvitationCategory result = com.streamlayer.analytics.invitations.v1.InvitationCategory.forNumber(category_);
return result == null ? com.streamlayer.analytics.invitations.v1.InvitationCategory.UNRECOGNIZED : result;
}
/**
*
* invitation category
*
*
* .streamlayer.analytics.v1.invitations.InvitationCategory category = 2 [json_name = "category"];
* @param value The enum numeric value on the wire for category to set.
*/
private void setCategoryValue(int value) {
category_ = value;
}
/**
*
* invitation category
*
*
* .streamlayer.analytics.v1.invitations.InvitationCategory category = 2 [json_name = "category"];
* @param value The category to set.
*/
private void setCategory(com.streamlayer.analytics.invitations.v1.InvitationCategory value) {
category_ = value.getNumber();
}
/**
*
* invitation category
*
*
* .streamlayer.analytics.v1.invitations.InvitationCategory category = 2 [json_name = "category"];
*/
private void clearCategory() {
category_ = 0;
}
public static final int FROM_FIELD_NUMBER = 3;
private int from_;
/**
*
* who is sending the invitation
*
*
* .streamlayer.analytics.v1.invitations.InvitationFrom from = 3 [json_name = "from"];
* @return The enum numeric value on the wire for from.
*/
@java.lang.Override
public int getFromValue() {
return from_;
}
/**
*
* who is sending the invitation
*
*
* .streamlayer.analytics.v1.invitations.InvitationFrom from = 3 [json_name = "from"];
* @return The from.
*/
@java.lang.Override
public com.streamlayer.analytics.invitations.v1.InvitationFrom getFrom() {
com.streamlayer.analytics.invitations.v1.InvitationFrom result = com.streamlayer.analytics.invitations.v1.InvitationFrom.forNumber(from_);
return result == null ? com.streamlayer.analytics.invitations.v1.InvitationFrom.UNRECOGNIZED : result;
}
/**
*
* who is sending the invitation
*
*
* .streamlayer.analytics.v1.invitations.InvitationFrom from = 3 [json_name = "from"];
* @param value The enum numeric value on the wire for from to set.
*/
private void setFromValue(int value) {
from_ = value;
}
/**
*
* who is sending the invitation
*
*
* .streamlayer.analytics.v1.invitations.InvitationFrom from = 3 [json_name = "from"];
* @param value The from to set.
*/
private void setFrom(com.streamlayer.analytics.invitations.v1.InvitationFrom value) {
from_ = value.getNumber();
}
/**
*
* who is sending the invitation
*
*
* .streamlayer.analytics.v1.invitations.InvitationFrom from = 3 [json_name = "from"];
*/
private void clearFrom() {
from_ = 0;
}
public static com.streamlayer.analytics.streaming.v1.SendInvitationsMessage parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.analytics.streaming.v1.SendInvitationsMessage 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.streaming.v1.SendInvitationsMessage 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.streaming.v1.SendInvitationsMessage 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.streaming.v1.SendInvitationsMessage parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.analytics.streaming.v1.SendInvitationsMessage 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.streaming.v1.SendInvitationsMessage parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.analytics.streaming.v1.SendInvitationsMessage 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.streaming.v1.SendInvitationsMessage parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.analytics.streaming.v1.SendInvitationsMessage 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.streaming.v1.SendInvitationsMessage parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.analytics.streaming.v1.SendInvitationsMessage 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.streaming.v1.SendInvitationsMessage prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.analytics.v2.streaming.SendInvitationsMessage}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.analytics.streaming.v1.SendInvitationsMessage, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.analytics.v2.streaming.SendInvitationsMessage)
com.streamlayer.analytics.streaming.v1.SendInvitationsMessageOrBuilder {
// Construct using com.streamlayer.analytics.streaming.v1.SendInvitationsMessage.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
* common analytics data amongst calls
* kind: KIND_INVITATION_SENT, KIND_INVITATION_ACCEPTED
* category should be picked from extras
*
*
* .streamlayer.analytics.v2.streaming.CommonData common = 1 [json_name = "common"];
*/
@java.lang.Override
public boolean hasCommon() {
return instance.hasCommon();
}
/**
*
* common analytics data amongst calls
* kind: KIND_INVITATION_SENT, KIND_INVITATION_ACCEPTED
* category should be picked from extras
*
*
* .streamlayer.analytics.v2.streaming.CommonData common = 1 [json_name = "common"];
*/
@java.lang.Override
public com.streamlayer.analytics.streaming.v1.CommonData getCommon() {
return instance.getCommon();
}
/**
*
* common analytics data amongst calls
* kind: KIND_INVITATION_SENT, KIND_INVITATION_ACCEPTED
* category should be picked from extras
*
*
* .streamlayer.analytics.v2.streaming.CommonData common = 1 [json_name = "common"];
*/
public Builder setCommon(com.streamlayer.analytics.streaming.v1.CommonData value) {
copyOnWrite();
instance.setCommon(value);
return this;
}
/**
*
* common analytics data amongst calls
* kind: KIND_INVITATION_SENT, KIND_INVITATION_ACCEPTED
* category should be picked from extras
*
*
* .streamlayer.analytics.v2.streaming.CommonData common = 1 [json_name = "common"];
*/
public Builder setCommon(
com.streamlayer.analytics.streaming.v1.CommonData.Builder builderForValue) {
copyOnWrite();
instance.setCommon(builderForValue.build());
return this;
}
/**
*
* common analytics data amongst calls
* kind: KIND_INVITATION_SENT, KIND_INVITATION_ACCEPTED
* category should be picked from extras
*
*
* .streamlayer.analytics.v2.streaming.CommonData common = 1 [json_name = "common"];
*/
public Builder mergeCommon(com.streamlayer.analytics.streaming.v1.CommonData value) {
copyOnWrite();
instance.mergeCommon(value);
return this;
}
/**
*
* common analytics data amongst calls
* kind: KIND_INVITATION_SENT, KIND_INVITATION_ACCEPTED
* category should be picked from extras
*
*
* .streamlayer.analytics.v2.streaming.CommonData common = 1 [json_name = "common"];
*/
public Builder clearCommon() { copyOnWrite();
instance.clearCommon();
return this;
}
/**
*
* invitation category
*
*
* .streamlayer.analytics.v1.invitations.InvitationCategory category = 2 [json_name = "category"];
* @return The enum numeric value on the wire for category.
*/
@java.lang.Override
public int getCategoryValue() {
return instance.getCategoryValue();
}
/**
*
* invitation category
*
*
* .streamlayer.analytics.v1.invitations.InvitationCategory category = 2 [json_name = "category"];
* @param value The category to set.
* @return This builder for chaining.
*/
public Builder setCategoryValue(int value) {
copyOnWrite();
instance.setCategoryValue(value);
return this;
}
/**
*
* invitation category
*
*
* .streamlayer.analytics.v1.invitations.InvitationCategory category = 2 [json_name = "category"];
* @return The category.
*/
@java.lang.Override
public com.streamlayer.analytics.invitations.v1.InvitationCategory getCategory() {
return instance.getCategory();
}
/**
*
* invitation category
*
*
* .streamlayer.analytics.v1.invitations.InvitationCategory category = 2 [json_name = "category"];
* @param value The enum numeric value on the wire for category to set.
* @return This builder for chaining.
*/
public Builder setCategory(com.streamlayer.analytics.invitations.v1.InvitationCategory value) {
copyOnWrite();
instance.setCategory(value);
return this;
}
/**
*
* invitation category
*
*
* .streamlayer.analytics.v1.invitations.InvitationCategory category = 2 [json_name = "category"];
* @return This builder for chaining.
*/
public Builder clearCategory() {
copyOnWrite();
instance.clearCategory();
return this;
}
/**
*
* who is sending the invitation
*
*
* .streamlayer.analytics.v1.invitations.InvitationFrom from = 3 [json_name = "from"];
* @return The enum numeric value on the wire for from.
*/
@java.lang.Override
public int getFromValue() {
return instance.getFromValue();
}
/**
*
* who is sending the invitation
*
*
* .streamlayer.analytics.v1.invitations.InvitationFrom from = 3 [json_name = "from"];
* @param value The from to set.
* @return This builder for chaining.
*/
public Builder setFromValue(int value) {
copyOnWrite();
instance.setFromValue(value);
return this;
}
/**
*
* who is sending the invitation
*
*
* .streamlayer.analytics.v1.invitations.InvitationFrom from = 3 [json_name = "from"];
* @return The from.
*/
@java.lang.Override
public com.streamlayer.analytics.invitations.v1.InvitationFrom getFrom() {
return instance.getFrom();
}
/**
*
* who is sending the invitation
*
*
* .streamlayer.analytics.v1.invitations.InvitationFrom from = 3 [json_name = "from"];
* @param value The enum numeric value on the wire for from to set.
* @return This builder for chaining.
*/
public Builder setFrom(com.streamlayer.analytics.invitations.v1.InvitationFrom value) {
copyOnWrite();
instance.setFrom(value);
return this;
}
/**
*
* who is sending the invitation
*
*
* .streamlayer.analytics.v1.invitations.InvitationFrom from = 3 [json_name = "from"];
* @return This builder for chaining.
*/
public Builder clearFrom() {
copyOnWrite();
instance.clearFrom();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.analytics.v2.streaming.SendInvitationsMessage)
}
@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.streaming.v1.SendInvitationsMessage();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"common_",
"category_",
"from_",
};
java.lang.String info =
"\u0000\u0003\u0000\u0001\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u1009\u0000\u0002" +
"\f\u0003\f";
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.streaming.v1.SendInvitationsMessage.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.streaming.SendInvitationsMessage)
private static final com.streamlayer.analytics.streaming.v1.SendInvitationsMessage DEFAULT_INSTANCE;
static {
SendInvitationsMessage defaultInstance = new SendInvitationsMessage();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
SendInvitationsMessage.class, defaultInstance);
}
public static com.streamlayer.analytics.streaming.v1.SendInvitationsMessage getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}