main.java.com.streamlayer.pushNotification.common.FailNotification 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/pushNotification/pushNotification.common.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.pushNotification.common;
/**
* Protobuf type {@code streamlayer.pushNotification.FailNotification}
*/
public final class FailNotification extends
com.google.protobuf.GeneratedMessageLite<
FailNotification, FailNotification.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.pushNotification.FailNotification)
FailNotificationOrBuilder {
private FailNotification() {
device_ = "";
}
public interface FailNotificationResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:streamlayer.pushNotification.FailNotification.FailNotificationResponse)
com.google.protobuf.MessageLiteOrBuilder {
/**
* string reason = 1 [json_name = "reason"];
* @return The reason.
*/
java.lang.String getReason();
/**
* string reason = 1 [json_name = "reason"];
* @return The bytes for reason.
*/
com.google.protobuf.ByteString
getReasonBytes();
}
/**
* Protobuf type {@code streamlayer.pushNotification.FailNotification.FailNotificationResponse}
*/
public static final class FailNotificationResponse extends
com.google.protobuf.GeneratedMessageLite<
FailNotificationResponse, FailNotificationResponse.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.pushNotification.FailNotification.FailNotificationResponse)
FailNotificationResponseOrBuilder {
private FailNotificationResponse() {
reason_ = "";
}
public static final int REASON_FIELD_NUMBER = 1;
private java.lang.String reason_;
/**
* string reason = 1 [json_name = "reason"];
* @return The reason.
*/
@java.lang.Override
public java.lang.String getReason() {
return reason_;
}
/**
* string reason = 1 [json_name = "reason"];
* @return The bytes for reason.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getReasonBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(reason_);
}
/**
* string reason = 1 [json_name = "reason"];
* @param value The reason to set.
*/
private void setReason(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
reason_ = value;
}
/**
* string reason = 1 [json_name = "reason"];
*/
private void clearReason() {
reason_ = getDefaultInstance().getReason();
}
/**
* string reason = 1 [json_name = "reason"];
* @param value The bytes for reason to set.
*/
private void setReasonBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
reason_ = value.toStringUtf8();
}
public static com.streamlayer.pushNotification.common.FailNotification.FailNotificationResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.pushNotification.common.FailNotification.FailNotificationResponse 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.pushNotification.common.FailNotification.FailNotificationResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.pushNotification.common.FailNotification.FailNotificationResponse 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.pushNotification.common.FailNotification.FailNotificationResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.pushNotification.common.FailNotification.FailNotificationResponse 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.pushNotification.common.FailNotification.FailNotificationResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.pushNotification.common.FailNotification.FailNotificationResponse 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.pushNotification.common.FailNotification.FailNotificationResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.pushNotification.common.FailNotification.FailNotificationResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.pushNotification.common.FailNotification.FailNotificationResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.pushNotification.common.FailNotification.FailNotificationResponse 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.pushNotification.common.FailNotification.FailNotificationResponse prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.pushNotification.FailNotification.FailNotificationResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.pushNotification.common.FailNotification.FailNotificationResponse, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.pushNotification.FailNotification.FailNotificationResponse)
com.streamlayer.pushNotification.common.FailNotification.FailNotificationResponseOrBuilder {
// Construct using com.streamlayer.pushNotification.common.FailNotification.FailNotificationResponse.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* string reason = 1 [json_name = "reason"];
* @return The reason.
*/
@java.lang.Override
public java.lang.String getReason() {
return instance.getReason();
}
/**
* string reason = 1 [json_name = "reason"];
* @return The bytes for reason.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getReasonBytes() {
return instance.getReasonBytes();
}
/**
* string reason = 1 [json_name = "reason"];
* @param value The reason to set.
* @return This builder for chaining.
*/
public Builder setReason(
java.lang.String value) {
copyOnWrite();
instance.setReason(value);
return this;
}
/**
* string reason = 1 [json_name = "reason"];
* @return This builder for chaining.
*/
public Builder clearReason() {
copyOnWrite();
instance.clearReason();
return this;
}
/**
* string reason = 1 [json_name = "reason"];
* @param value The bytes for reason to set.
* @return This builder for chaining.
*/
public Builder setReasonBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setReasonBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.pushNotification.FailNotification.FailNotificationResponse)
}
@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.pushNotification.common.FailNotification.FailNotificationResponse();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"reason_",
};
java.lang.String info =
"\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\u0208";
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.pushNotification.common.FailNotification.FailNotificationResponse.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.pushNotification.FailNotification.FailNotificationResponse)
private static final com.streamlayer.pushNotification.common.FailNotification.FailNotificationResponse DEFAULT_INSTANCE;
static {
FailNotificationResponse defaultInstance = new FailNotificationResponse();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
FailNotificationResponse.class, defaultInstance);
}
public static com.streamlayer.pushNotification.common.FailNotification.FailNotificationResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
private int bitField0_;
public static final int DEVICE_FIELD_NUMBER = 1;
private java.lang.String device_;
/**
* string device = 1 [json_name = "device"];
* @return The device.
*/
@java.lang.Override
public java.lang.String getDevice() {
return device_;
}
/**
* string device = 1 [json_name = "device"];
* @return The bytes for device.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDeviceBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(device_);
}
/**
* string device = 1 [json_name = "device"];
* @param value The device to set.
*/
private void setDevice(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
device_ = value;
}
/**
* string device = 1 [json_name = "device"];
*/
private void clearDevice() {
device_ = getDefaultInstance().getDevice();
}
/**
* string device = 1 [json_name = "device"];
* @param value The bytes for device to set.
*/
private void setDeviceBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
device_ = value.toStringUtf8();
}
public static final int STATUS_FIELD_NUMBER = 2;
private int status_;
/**
* int32 status = 2 [json_name = "status"];
* @return The status.
*/
@java.lang.Override
public int getStatus() {
return status_;
}
/**
* int32 status = 2 [json_name = "status"];
* @param value The status to set.
*/
private void setStatus(int value) {
status_ = value;
}
/**
* int32 status = 2 [json_name = "status"];
*/
private void clearStatus() {
status_ = 0;
}
public static final int RESPONSE_FIELD_NUMBER = 3;
private com.streamlayer.pushNotification.common.FailNotification.FailNotificationResponse response_;
/**
* .streamlayer.pushNotification.FailNotification.FailNotificationResponse response = 3 [json_name = "response"];
*/
@java.lang.Override
public boolean hasResponse() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* .streamlayer.pushNotification.FailNotification.FailNotificationResponse response = 3 [json_name = "response"];
*/
@java.lang.Override
public com.streamlayer.pushNotification.common.FailNotification.FailNotificationResponse getResponse() {
return response_ == null ? com.streamlayer.pushNotification.common.FailNotification.FailNotificationResponse.getDefaultInstance() : response_;
}
/**
* .streamlayer.pushNotification.FailNotification.FailNotificationResponse response = 3 [json_name = "response"];
*/
private void setResponse(com.streamlayer.pushNotification.common.FailNotification.FailNotificationResponse value) {
value.getClass();
response_ = value;
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.pushNotification.FailNotification.FailNotificationResponse response = 3 [json_name = "response"];
*/
@java.lang.SuppressWarnings({"ReferenceEquality"})
private void mergeResponse(com.streamlayer.pushNotification.common.FailNotification.FailNotificationResponse value) {
value.getClass();
if (response_ != null &&
response_ != com.streamlayer.pushNotification.common.FailNotification.FailNotificationResponse.getDefaultInstance()) {
response_ =
com.streamlayer.pushNotification.common.FailNotification.FailNotificationResponse.newBuilder(response_).mergeFrom(value).buildPartial();
} else {
response_ = value;
}
bitField0_ |= 0x00000001;
}
/**
* .streamlayer.pushNotification.FailNotification.FailNotificationResponse response = 3 [json_name = "response"];
*/
private void clearResponse() { response_ = null;
bitField0_ = (bitField0_ & ~0x00000001);
}
public static com.streamlayer.pushNotification.common.FailNotification parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.pushNotification.common.FailNotification 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.pushNotification.common.FailNotification parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.pushNotification.common.FailNotification 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.pushNotification.common.FailNotification parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.pushNotification.common.FailNotification 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.pushNotification.common.FailNotification parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.pushNotification.common.FailNotification 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.pushNotification.common.FailNotification parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.pushNotification.common.FailNotification parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.pushNotification.common.FailNotification parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.pushNotification.common.FailNotification 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.pushNotification.common.FailNotification prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.pushNotification.FailNotification}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.pushNotification.common.FailNotification, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.pushNotification.FailNotification)
com.streamlayer.pushNotification.common.FailNotificationOrBuilder {
// Construct using com.streamlayer.pushNotification.common.FailNotification.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* string device = 1 [json_name = "device"];
* @return The device.
*/
@java.lang.Override
public java.lang.String getDevice() {
return instance.getDevice();
}
/**
* string device = 1 [json_name = "device"];
* @return The bytes for device.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDeviceBytes() {
return instance.getDeviceBytes();
}
/**
* string device = 1 [json_name = "device"];
* @param value The device to set.
* @return This builder for chaining.
*/
public Builder setDevice(
java.lang.String value) {
copyOnWrite();
instance.setDevice(value);
return this;
}
/**
* string device = 1 [json_name = "device"];
* @return This builder for chaining.
*/
public Builder clearDevice() {
copyOnWrite();
instance.clearDevice();
return this;
}
/**
* string device = 1 [json_name = "device"];
* @param value The bytes for device to set.
* @return This builder for chaining.
*/
public Builder setDeviceBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setDeviceBytes(value);
return this;
}
/**
* int32 status = 2 [json_name = "status"];
* @return The status.
*/
@java.lang.Override
public int getStatus() {
return instance.getStatus();
}
/**
* int32 status = 2 [json_name = "status"];
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(int value) {
copyOnWrite();
instance.setStatus(value);
return this;
}
/**
* int32 status = 2 [json_name = "status"];
* @return This builder for chaining.
*/
public Builder clearStatus() {
copyOnWrite();
instance.clearStatus();
return this;
}
/**
* .streamlayer.pushNotification.FailNotification.FailNotificationResponse response = 3 [json_name = "response"];
*/
@java.lang.Override
public boolean hasResponse() {
return instance.hasResponse();
}
/**
* .streamlayer.pushNotification.FailNotification.FailNotificationResponse response = 3 [json_name = "response"];
*/
@java.lang.Override
public com.streamlayer.pushNotification.common.FailNotification.FailNotificationResponse getResponse() {
return instance.getResponse();
}
/**
* .streamlayer.pushNotification.FailNotification.FailNotificationResponse response = 3 [json_name = "response"];
*/
public Builder setResponse(com.streamlayer.pushNotification.common.FailNotification.FailNotificationResponse value) {
copyOnWrite();
instance.setResponse(value);
return this;
}
/**
* .streamlayer.pushNotification.FailNotification.FailNotificationResponse response = 3 [json_name = "response"];
*/
public Builder setResponse(
com.streamlayer.pushNotification.common.FailNotification.FailNotificationResponse.Builder builderForValue) {
copyOnWrite();
instance.setResponse(builderForValue.build());
return this;
}
/**
* .streamlayer.pushNotification.FailNotification.FailNotificationResponse response = 3 [json_name = "response"];
*/
public Builder mergeResponse(com.streamlayer.pushNotification.common.FailNotification.FailNotificationResponse value) {
copyOnWrite();
instance.mergeResponse(value);
return this;
}
/**
* .streamlayer.pushNotification.FailNotification.FailNotificationResponse response = 3 [json_name = "response"];
*/
public Builder clearResponse() { copyOnWrite();
instance.clearResponse();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.pushNotification.FailNotification)
}
@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.pushNotification.common.FailNotification();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"device_",
"status_",
"response_",
};
java.lang.String info =
"\u0000\u0003\u0000\u0001\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u0208\u0002\u0004" +
"\u0003\u1009\u0000";
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.pushNotification.common.FailNotification.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.pushNotification.FailNotification)
private static final com.streamlayer.pushNotification.common.FailNotification DEFAULT_INSTANCE;
static {
FailNotification defaultInstance = new FailNotification();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
FailNotification.class, defaultInstance);
}
public static com.streamlayer.pushNotification.common.FailNotification getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}