main.java.com.streamlayer.sdkSettings.organization.branch.BranchCredentials 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/sdkSettings/organization/branch/organization.branch.proto
// Protobuf Java Version: 3.25.3
package com.streamlayer.sdkSettings.organization.branch;
/**
* Protobuf type {@code streamlayer.sdkSettings.organization.branch.BranchCredentials}
*/
public final class BranchCredentials extends
com.google.protobuf.GeneratedMessageLite<
BranchCredentials, BranchCredentials.Builder> implements
// @@protoc_insertion_point(message_implements:streamlayer.sdkSettings.organization.branch.BranchCredentials)
BranchCredentialsOrBuilder {
private BranchCredentials() {
branchKey_ = "";
branchSecret_ = "";
}
public static final int BRANCH_KEY_FIELD_NUMBER = 1;
private java.lang.String branchKey_;
/**
* string branch_key = 1 [json_name = "branchKey"];
* @return The branchKey.
*/
@java.lang.Override
public java.lang.String getBranchKey() {
return branchKey_;
}
/**
* string branch_key = 1 [json_name = "branchKey"];
* @return The bytes for branchKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBranchKeyBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(branchKey_);
}
/**
* string branch_key = 1 [json_name = "branchKey"];
* @param value The branchKey to set.
*/
private void setBranchKey(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
branchKey_ = value;
}
/**
* string branch_key = 1 [json_name = "branchKey"];
*/
private void clearBranchKey() {
branchKey_ = getDefaultInstance().getBranchKey();
}
/**
* string branch_key = 1 [json_name = "branchKey"];
* @param value The bytes for branchKey to set.
*/
private void setBranchKeyBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
branchKey_ = value.toStringUtf8();
}
public static final int BRANCH_SECRET_FIELD_NUMBER = 2;
private java.lang.String branchSecret_;
/**
* string branch_secret = 2 [json_name = "branchSecret"];
* @return The branchSecret.
*/
@java.lang.Override
public java.lang.String getBranchSecret() {
return branchSecret_;
}
/**
* string branch_secret = 2 [json_name = "branchSecret"];
* @return The bytes for branchSecret.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBranchSecretBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(branchSecret_);
}
/**
* string branch_secret = 2 [json_name = "branchSecret"];
* @param value The branchSecret to set.
*/
private void setBranchSecret(
java.lang.String value) {
java.lang.Class> valueClass = value.getClass();
branchSecret_ = value;
}
/**
* string branch_secret = 2 [json_name = "branchSecret"];
*/
private void clearBranchSecret() {
branchSecret_ = getDefaultInstance().getBranchSecret();
}
/**
* string branch_secret = 2 [json_name = "branchSecret"];
* @param value The bytes for branchSecret to set.
*/
private void setBranchSecretBytes(
com.google.protobuf.ByteString value) {
checkByteStringIsUtf8(value);
branchSecret_ = value.toStringUtf8();
}
public static final int READONLY_FIELD_NUMBER = 3;
private boolean readonly_;
/**
* bool readonly = 3 [json_name = "readonly"];
* @return The readonly.
*/
@java.lang.Override
public boolean getReadonly() {
return readonly_;
}
/**
* bool readonly = 3 [json_name = "readonly"];
* @param value The readonly to set.
*/
private void setReadonly(boolean value) {
readonly_ = value;
}
/**
* bool readonly = 3 [json_name = "readonly"];
*/
private void clearReadonly() {
readonly_ = false;
}
public static com.streamlayer.sdkSettings.organization.branch.BranchCredentials parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sdkSettings.organization.branch.BranchCredentials 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.sdkSettings.organization.branch.BranchCredentials parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sdkSettings.organization.branch.BranchCredentials 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.sdkSettings.organization.branch.BranchCredentials parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.streamlayer.sdkSettings.organization.branch.BranchCredentials 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.sdkSettings.organization.branch.BranchCredentials parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sdkSettings.organization.branch.BranchCredentials 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.sdkSettings.organization.branch.BranchCredentials parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sdkSettings.organization.branch.BranchCredentials parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.streamlayer.sdkSettings.organization.branch.BranchCredentials parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.streamlayer.sdkSettings.organization.branch.BranchCredentials 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.sdkSettings.organization.branch.BranchCredentials prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
* Protobuf type {@code streamlayer.sdkSettings.organization.branch.BranchCredentials}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.streamlayer.sdkSettings.organization.branch.BranchCredentials, Builder> implements
// @@protoc_insertion_point(builder_implements:streamlayer.sdkSettings.organization.branch.BranchCredentials)
com.streamlayer.sdkSettings.organization.branch.BranchCredentialsOrBuilder {
// Construct using com.streamlayer.sdkSettings.organization.branch.BranchCredentials.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
* string branch_key = 1 [json_name = "branchKey"];
* @return The branchKey.
*/
@java.lang.Override
public java.lang.String getBranchKey() {
return instance.getBranchKey();
}
/**
* string branch_key = 1 [json_name = "branchKey"];
* @return The bytes for branchKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBranchKeyBytes() {
return instance.getBranchKeyBytes();
}
/**
* string branch_key = 1 [json_name = "branchKey"];
* @param value The branchKey to set.
* @return This builder for chaining.
*/
public Builder setBranchKey(
java.lang.String value) {
copyOnWrite();
instance.setBranchKey(value);
return this;
}
/**
* string branch_key = 1 [json_name = "branchKey"];
* @return This builder for chaining.
*/
public Builder clearBranchKey() {
copyOnWrite();
instance.clearBranchKey();
return this;
}
/**
* string branch_key = 1 [json_name = "branchKey"];
* @param value The bytes for branchKey to set.
* @return This builder for chaining.
*/
public Builder setBranchKeyBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setBranchKeyBytes(value);
return this;
}
/**
* string branch_secret = 2 [json_name = "branchSecret"];
* @return The branchSecret.
*/
@java.lang.Override
public java.lang.String getBranchSecret() {
return instance.getBranchSecret();
}
/**
* string branch_secret = 2 [json_name = "branchSecret"];
* @return The bytes for branchSecret.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBranchSecretBytes() {
return instance.getBranchSecretBytes();
}
/**
* string branch_secret = 2 [json_name = "branchSecret"];
* @param value The branchSecret to set.
* @return This builder for chaining.
*/
public Builder setBranchSecret(
java.lang.String value) {
copyOnWrite();
instance.setBranchSecret(value);
return this;
}
/**
* string branch_secret = 2 [json_name = "branchSecret"];
* @return This builder for chaining.
*/
public Builder clearBranchSecret() {
copyOnWrite();
instance.clearBranchSecret();
return this;
}
/**
* string branch_secret = 2 [json_name = "branchSecret"];
* @param value The bytes for branchSecret to set.
* @return This builder for chaining.
*/
public Builder setBranchSecretBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setBranchSecretBytes(value);
return this;
}
/**
* bool readonly = 3 [json_name = "readonly"];
* @return The readonly.
*/
@java.lang.Override
public boolean getReadonly() {
return instance.getReadonly();
}
/**
* bool readonly = 3 [json_name = "readonly"];
* @param value The readonly to set.
* @return This builder for chaining.
*/
public Builder setReadonly(boolean value) {
copyOnWrite();
instance.setReadonly(value);
return this;
}
/**
* bool readonly = 3 [json_name = "readonly"];
* @return This builder for chaining.
*/
public Builder clearReadonly() {
copyOnWrite();
instance.clearReadonly();
return this;
}
// @@protoc_insertion_point(builder_scope:streamlayer.sdkSettings.organization.branch.BranchCredentials)
}
@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.sdkSettings.organization.branch.BranchCredentials();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"branchKey_",
"branchSecret_",
"readonly_",
};
java.lang.String info =
"\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
"\u0003\u0007";
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.sdkSettings.organization.branch.BranchCredentials.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.sdkSettings.organization.branch.BranchCredentials)
private static final com.streamlayer.sdkSettings.organization.branch.BranchCredentials DEFAULT_INSTANCE;
static {
BranchCredentials defaultInstance = new BranchCredentials();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
BranchCredentials.class, defaultInstance);
}
public static com.streamlayer.sdkSettings.organization.branch.BranchCredentials getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}