main.java.com.streamlayer.providers.vonage.GenerateResponse 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/providers/vonage/vonage.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.providers.vonage;
/**
* Protobuf type {@code streamlayer.providers.vonage.GenerateResponse}
*/
public final class GenerateResponse extends
com.google.protobuf.GeneratedMessageLite<
GenerateResponse, GenerateResponse.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.providers.vonage.GenerateResponse)
GenerateResponseOrBuilder {
private GenerateResponse() {
token_ = "";
sessionId_ = "";
apiKey_ = "";
}
public static final int TOKEN_FIELD_NUMBER = 1;
private java.lang.String token_;
/**
* string token = 1 [json_name = "token"];
* @return The token.
*/
@java.lang.Override
public java.lang.String getToken() {
return token_;
}
/**
* string token = 1 [json_name = "token"];
* @return The bytes for token.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTokenBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(token_);
}
/**
* string token = 1 [json_name = "token"];
* @param value The token to set.
*/
private void setToken(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
token_ = value;
}
/**
* string token = 1 [json_name = "token"];
*/
private void clearToken() {
token_ = getDefaultInstance().getToken();
}
/**
* string token = 1 [json_name = "token"];
* @param value The bytes for token to set.
*/
private void setTokenBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
token_ = value.toStringUtf8();
}
public static final int SESSION_ID_FIELD_NUMBER = 2;
private java.lang.String sessionId_;
/**
* string session_id = 2 [json_name = "sessionId"];
* @return The sessionId.
*/
@java.lang.Override
public java.lang.String getSessionId() {
return sessionId_;
}
/**
* string session_id = 2 [json_name = "sessionId"];
* @return The bytes for sessionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSessionIdBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(sessionId_);
}
/**
* string session_id = 2 [json_name = "sessionId"];
* @param value The sessionId to set.
*/
private void setSessionId(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
sessionId_ = value;
}
/**
* string session_id = 2 [json_name = "sessionId"];
*/
private void clearSessionId() {
sessionId_ = getDefaultInstance().getSessionId();
}
/**
* string session_id = 2 [json_name = "sessionId"];
* @param value The bytes for sessionId to set.
*/
private void setSessionIdBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
sessionId_ = value.toStringUtf8();
}
public static final int API_KEY_FIELD_NUMBER = 3;
private java.lang.String apiKey_;
/**
* string api_key = 3 [json_name = "apiKey"];
* @return The apiKey.
*/
@java.lang.Override
public java.lang.String getApiKey() {
return apiKey_;
}
/**
* string api_key = 3 [json_name = "apiKey"];
* @return The bytes for apiKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getApiKeyBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(apiKey_);
}
/**
* string api_key = 3 [json_name = "apiKey"];
* @param value The apiKey to set.
*/
private void setApiKey(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
apiKey_ = value;
}
/**
* string api_key = 3 [json_name = "apiKey"];
*/
private void clearApiKey() {
apiKey_ = getDefaultInstance().getApiKey();
}
/**
* string api_key = 3 [json_name = "apiKey"];
* @param value The bytes for apiKey to set.
*/
private void setApiKeyBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
apiKey_ = value.toStringUtf8();
}
public static com.streamlayer.providers.vonage.GenerateResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.providers.vonage.GenerateResponse 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.providers.vonage.GenerateResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.providers.vonage.GenerateResponse 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.providers.vonage.GenerateResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.providers.vonage.GenerateResponse 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.providers.vonage.GenerateResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.providers.vonage.GenerateResponse 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.providers.vonage.GenerateResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.providers.vonage.GenerateResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.providers.vonage.GenerateResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.providers.vonage.GenerateResponse 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.providers.vonage.GenerateResponse prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.providers.vonage.GenerateResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.providers.vonage.GenerateResponse, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.providers.vonage.GenerateResponse)
com.streamlayer.providers.vonage.GenerateResponseOrBuilder {
// Construct using com.streamlayer.providers.vonage.GenerateResponse.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* string token = 1 [json_name = "token"];
* @return The token.
*/
@java.lang.Override
public java.lang.String getToken() {
return instance.getToken();
}
/**
* string token = 1 [json_name = "token"];
* @return The bytes for token.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTokenBytes() {
return instance.getTokenBytes();
}
/**
* string token = 1 [json_name = "token"];
* @param value The token to set.
* @return This builder for chaining.
*/
public Builder setToken(
java.lang.String value) {
copyOnWrite();
instance.setToken(value);
return this;
}
/**
* string token = 1 [json_name = "token"];
* @return This builder for chaining.
*/
public Builder clearToken() {
copyOnWrite();
instance.clearToken();
return this;
}
/**
* string token = 1 [json_name = "token"];
* @param value The bytes for token to set.
* @return This builder for chaining.
*/
public Builder setTokenBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setTokenBytes(value);
return this;
}
/**
* string session_id = 2 [json_name = "sessionId"];
* @return The sessionId.
*/
@java.lang.Override
public java.lang.String getSessionId() {
return instance.getSessionId();
}
/**
* string session_id = 2 [json_name = "sessionId"];
* @return The bytes for sessionId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSessionIdBytes() {
return instance.getSessionIdBytes();
}
/**
* string session_id = 2 [json_name = "sessionId"];
* @param value The sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionId(
java.lang.String value) {
copyOnWrite();
instance.setSessionId(value);
return this;
}
/**
* string session_id = 2 [json_name = "sessionId"];
* @return This builder for chaining.
*/
public Builder clearSessionId() {
copyOnWrite();
instance.clearSessionId();
return this;
}
/**
* string session_id = 2 [json_name = "sessionId"];
* @param value The bytes for sessionId to set.
* @return This builder for chaining.
*/
public Builder setSessionIdBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setSessionIdBytes(value);
return this;
}
/**
* string api_key = 3 [json_name = "apiKey"];
* @return The apiKey.
*/
@java.lang.Override
public java.lang.String getApiKey() {
return instance.getApiKey();
}
/**
* string api_key = 3 [json_name = "apiKey"];
* @return The bytes for apiKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getApiKeyBytes() {
return instance.getApiKeyBytes();
}
/**
* string api_key = 3 [json_name = "apiKey"];
* @param value The apiKey to set.
* @return This builder for chaining.
*/
public Builder setApiKey(
java.lang.String value) {
copyOnWrite();
instance.setApiKey(value);
return this;
}
/**
* string api_key = 3 [json_name = "apiKey"];
* @return This builder for chaining.
*/
public Builder clearApiKey() {
copyOnWrite();
instance.clearApiKey();
return this;
}
/**
* string api_key = 3 [json_name = "apiKey"];
* @param value The bytes for apiKey to set.
* @return This builder for chaining.
*/
public Builder setApiKeyBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setApiKeyBytes(value);
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.providers.vonage.GenerateResponse)
}
@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.providers.vonage.GenerateResponse();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"token_",
"sessionId_",
"apiKey_",
};
java.lang.String info =
"\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
"\u0003\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.providers.vonage.GenerateResponse.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.providers.vonage.GenerateResponse)
private static final com.streamlayer.providers.vonage.GenerateResponse DEFAULT_INSTANCE;
static {
GenerateResponse defaultInstance = new GenerateResponse();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
GenerateResponse.class, defaultInstance);
}
public static com.streamlayer.providers.vonage.GenerateResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}