diff --git a/Makefile b/Makefile
index 7fed2d0..be0295d 100644
--- a/Makefile
+++ b/Makefile
@@ -77,7 +77,7 @@ proto_go_dir=./protobuf-go
protobuf_py_dir=./protobuf-py/protobuf
.PHONY: proto
-proto: proto-go
+proto: proto-go proto-java
.PHONY: proto-go
proto-go:
@@ -96,3 +96,11 @@ proto-py:
--pyi_out=./protobuf-py/protobuf \
--grpc_python_out=./protobuf-py/protobuf \
${proto_files}
+
+.PHONY: proto-java
+proto-java:
+ @mkdir -p ./protobuf-java
+ protoc --proto_path=${proto_path} --java_out=./protobuf-java \
+ --grpc_out=./protobuf-java \
+ --plugin=protoc-gen-grpc=$(shell which protoc-gen-grpc-java) \
+ ${proto_files}
\ No newline at end of file
diff --git a/cmd/impl/convert_pb.go b/cmd/impl/convert_pb.go
index 4df162d..7bf873e 100644
--- a/cmd/impl/convert_pb.go
+++ b/cmd/impl/convert_pb.go
@@ -51,6 +51,7 @@ func ConvertToProtobufAsset(asset model.Asset) *pb.Asset {
Protocols: ConvertToProtobufProtocols(protocols),
Specific: &pb.Asset_Specific{
DbName: specific.DBName,
+ PgSslMode: specific.PgSSLMode,
UseSsl: specific.UseSSL,
CaCert: secretInfo.CaCert,
ClientCert: secretInfo.ClientCert,
diff --git a/pkg/jms-sdk-go/model/asset.go b/pkg/jms-sdk-go/model/asset.go
index 1a7fe8b..6c77d45 100644
--- a/pkg/jms-sdk-go/model/asset.go
+++ b/pkg/jms-sdk-go/model/asset.go
@@ -15,6 +15,8 @@ type SpecInfo struct {
// database
DBName string `json:"db_name"`
+ PgSSLMode string `json:"pg_ssl_mode"`
+
UseSSL bool `json:"use_ssl"`
AllowInvalidCert bool `json:"allow_invalid_cert"`
@@ -127,3 +129,10 @@ const (
ProtocolK8S = "k8s"
ProtocolMysql = "mysql"
)
+
+const (
+ PGSSLPrefer = "prefer"
+ PGSSLRequire = "require"
+ PGSSLVerifyCa = "verify-ca"
+ PGSSLVerifyFull = "verify-full"
+)
diff --git a/protobuf-go/protobuf/common.pb.go b/protobuf-go/protobuf/common.pb.go
index 55bdbe5..d6714bb 100644
--- a/protobuf-go/protobuf/common.pb.go
+++ b/protobuf-go/protobuf/common.pb.go
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
-// protoc v3.21.5
+// protoc v5.26.1
// source: common.proto
package protobuf
@@ -1937,6 +1937,7 @@ type Asset_Specific struct {
SubmitSelector string `protobuf:"bytes,10,opt,name=submit_selector,json=submitSelector,proto3" json:"submit_selector,omitempty"`
Script string `protobuf:"bytes,11,opt,name=script,proto3" json:"script,omitempty"`
HttpProxy string `protobuf:"bytes,12,opt,name=http_proxy,json=httpProxy,proto3" json:"http_proxy,omitempty"`
+ PgSslMode string `protobuf:"bytes,13,opt,name=pg_ssl_mode,json=pgSslMode,proto3" json:"pg_ssl_mode,omitempty"`
}
func (x *Asset_Specific) Reset() {
@@ -2055,6 +2056,13 @@ func (x *Asset_Specific) GetHttpProxy() string {
return ""
}
+func (x *Asset_Specific) GetPgSslMode() string {
+ if x != nil {
+ return x.PgSslMode
+ }
+ return ""
+}
+
var File_common_proto protoreflect.FileDescriptor
var file_common_proto_rawDesc = []byte{
@@ -2082,7 +2090,7 @@ var file_common_proto_rawDesc = []byte{
0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22,
- 0xfa, 0x04, 0x0a, 0x05, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
+ 0x9a, 0x05, 0x0a, 0x05, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a,
0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
@@ -2096,7 +2104,7 @@ var file_common_proto_rawDesc = []byte{
0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x53, 0x70, 0x65,
0x63, 0x69, 0x66, 0x69, 0x63, 0x52, 0x08, 0x73, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x1a,
- 0x9a, 0x03, 0x0a, 0x08, 0x53, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x12, 0x17, 0x0a, 0x07,
+ 0xba, 0x03, 0x0a, 0x08, 0x53, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x12, 0x17, 0x0a, 0x07,
0x64, 0x62, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64,
0x62, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x5f, 0x73, 0x73, 0x6c,
0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x75, 0x73, 0x65, 0x53, 0x73, 0x6c, 0x12, 0x17,
@@ -2121,7 +2129,9 @@ var file_common_proto_rawDesc = []byte{
0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x18,
0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x1d, 0x0a,
0x0a, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x18, 0x0c, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x09, 0x68, 0x74, 0x74, 0x70, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x22, 0x42, 0x0a, 0x08,
+ 0x09, 0x52, 0x09, 0x68, 0x74, 0x74, 0x70, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x12, 0x1e, 0x0a, 0x0b,
+ 0x70, 0x67, 0x5f, 0x73, 0x73, 0x6c, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28,
+ 0x09, 0x52, 0x09, 0x70, 0x67, 0x53, 0x73, 0x6c, 0x4d, 0x6f, 0x64, 0x65, 0x22, 0x42, 0x0a, 0x08,
0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x02,
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04,
@@ -2340,8 +2350,9 @@ var file_common_proto_rawDesc = []byte{
0x0c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x52, 0x65, 0x6a, 0x65, 0x63, 0x74, 0x10, 0x03, 0x12,
0x10, 0x0a, 0x0c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x10,
0x04, 0x12, 0x10, 0x0a, 0x0c, 0x52, 0x65, 0x76, 0x69, 0x65, 0x77, 0x43, 0x61, 0x6e, 0x63, 0x65,
- 0x6c, 0x10, 0x05, 0x42, 0x0b, 0x5a, 0x09, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
- 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x6c, 0x10, 0x05, 0x42, 0x20, 0x0a, 0x13, 0x6f, 0x72, 0x67, 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73,
+ 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x77, 0x69, 0x73, 0x70, 0x5a, 0x09, 0x2f, 0x70, 0x72, 0x6f,
+ 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
diff --git a/protobuf-go/protobuf/service.pb.go b/protobuf-go/protobuf/service.pb.go
index fc55b44..8daf3f6 100644
--- a/protobuf-go/protobuf/service.pb.go
+++ b/protobuf-go/protobuf/service.pb.go
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
-// protoc v3.21.5
+// protoc v5.26.1
// source: service.proto
package protobuf
@@ -2709,9 +2709,10 @@ var file_service_proto_rawDesc = []byte{
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x4c, 0x69,
0x66, 0x65, 0x63, 0x79, 0x63, 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74,
- 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x0b, 0x5a, 0x09,
- 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
- 0x33,
+ 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x20, 0x0a, 0x13,
+ 0x6f, 0x72, 0x67, 0x2e, 0x6a, 0x75, 0x6d, 0x70, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2e, 0x77,
+ 0x69, 0x73, 0x70, 0x5a, 0x09, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x62, 0x06,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
diff --git a/protobuf-go/protobuf/service_grpc.pb.go b/protobuf-go/protobuf/service_grpc.pb.go
index 55cbe9c..7eeec1b 100644
--- a/protobuf-go/protobuf/service_grpc.pb.go
+++ b/protobuf-go/protobuf/service_grpc.pb.go
@@ -1,7 +1,7 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
-// - protoc v3.21.5
+// - protoc v5.26.1
// source: service.proto
package protobuf
diff --git a/protobuf-java/org/jumpserver/wisp/Common.java b/protobuf-java/org/jumpserver/wisp/Common.java
new file mode 100644
index 0000000..4cc4d21
--- /dev/null
+++ b/protobuf-java/org/jumpserver/wisp/Common.java
@@ -0,0 +1,25678 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: common.proto
+// Protobuf Java Version: 4.26.1
+
+package org.jumpserver.wisp;
+
+public final class Common {
+ private Common() {}
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ Common.class.getName());
+ }
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistryLite registry) {
+ }
+
+ public static void registerAllExtensions(
+ com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions(
+ (com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+ /**
+ * Protobuf enum {@code message.TaskAction}
+ */
+ public enum TaskAction
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * KillSession = 0;
+ */
+ KillSession(0),
+ /**
+ * LockSession = 1;
+ */
+ LockSession(1),
+ /**
+ * UnlockSession = 2;
+ */
+ UnlockSession(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ TaskAction.class.getName());
+ }
+ /**
+ * KillSession = 0;
+ */
+ public static final int KillSession_VALUE = 0;
+ /**
+ * LockSession = 1;
+ */
+ public static final int LockSession_VALUE = 1;
+ /**
+ * UnlockSession = 2;
+ */
+ public static final int UnlockSession_VALUE = 2;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static TaskAction valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static TaskAction forNumber(int value) {
+ switch (value) {
+ case 0: return KillSession;
+ case 1: return LockSession;
+ case 2: return UnlockSession;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ TaskAction> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public TaskAction findValueByNumber(int number) {
+ return TaskAction.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final TaskAction[] VALUES = values();
+
+ public static TaskAction valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private TaskAction(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:message.TaskAction)
+ }
+
+ /**
+ * Protobuf enum {@code message.RiskLevel}
+ */
+ public enum RiskLevel
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * Normal = 0;
+ */
+ Normal(0),
+ /**
+ * Warning = 1;
+ */
+ Warning(1),
+ /**
+ * Reject = 2;
+ */
+ Reject(2),
+ /**
+ * ReviewReject = 3;
+ */
+ ReviewReject(3),
+ /**
+ * ReviewAccept = 4;
+ */
+ ReviewAccept(4),
+ /**
+ * ReviewCancel = 5;
+ */
+ ReviewCancel(5),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ RiskLevel.class.getName());
+ }
+ /**
+ * Normal = 0;
+ */
+ public static final int Normal_VALUE = 0;
+ /**
+ * Warning = 1;
+ */
+ public static final int Warning_VALUE = 1;
+ /**
+ * Reject = 2;
+ */
+ public static final int Reject_VALUE = 2;
+ /**
+ * ReviewReject = 3;
+ */
+ public static final int ReviewReject_VALUE = 3;
+ /**
+ * ReviewAccept = 4;
+ */
+ public static final int ReviewAccept_VALUE = 4;
+ /**
+ * ReviewCancel = 5;
+ */
+ public static final int ReviewCancel_VALUE = 5;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static RiskLevel valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static RiskLevel forNumber(int value) {
+ switch (value) {
+ case 0: return Normal;
+ case 1: return Warning;
+ case 2: return Reject;
+ case 3: return ReviewReject;
+ case 4: return ReviewAccept;
+ case 5: return ReviewCancel;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ RiskLevel> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public RiskLevel findValueByNumber(int number) {
+ return RiskLevel.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.getDescriptor().getEnumTypes().get(1);
+ }
+
+ private static final RiskLevel[] VALUES = values();
+
+ public static RiskLevel valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private RiskLevel(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:message.RiskLevel)
+ }
+
+ public interface UserOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:message.User)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ java.lang.String getId();
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ com.google.protobuf.ByteString
+ getIdBytes();
+
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * string username = 3;
+ * @return The username.
+ */
+ java.lang.String getUsername();
+ /**
+ * string username = 3;
+ * @return The bytes for username.
+ */
+ com.google.protobuf.ByteString
+ getUsernameBytes();
+
+ /**
+ * string role = 4;
+ * @return The role.
+ */
+ java.lang.String getRole();
+ /**
+ * string role = 4;
+ * @return The bytes for role.
+ */
+ com.google.protobuf.ByteString
+ getRoleBytes();
+
+ /**
+ * bool is_valid = 5;
+ * @return The isValid.
+ */
+ boolean getIsValid();
+
+ /**
+ * bool is_active = 6;
+ * @return The isActive.
+ */
+ boolean getIsActive();
+ }
+ /**
+ * Protobuf type {@code message.User}
+ */
+ public static final class User extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:message.User)
+ UserOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ User.class.getName());
+ }
+ // Use User.newBuilder() to construct.
+ private User(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private User() {
+ id_ = "";
+ name_ = "";
+ username_ = "";
+ role_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_User_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_User_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.User.class, org.jumpserver.wisp.Common.User.Builder.class);
+ }
+
+ public static final int ID_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object id_ = "";
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ @java.lang.Override
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ }
+ }
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NAME_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int USERNAME_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object username_ = "";
+ /**
+ * string username = 3;
+ * @return The username.
+ */
+ @java.lang.Override
+ public java.lang.String getUsername() {
+ java.lang.Object ref = username_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ username_ = s;
+ return s;
+ }
+ }
+ /**
+ * string username = 3;
+ * @return The bytes for username.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getUsernameBytes() {
+ java.lang.Object ref = username_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ username_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ROLE_FIELD_NUMBER = 4;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object role_ = "";
+ /**
+ * string role = 4;
+ * @return The role.
+ */
+ @java.lang.Override
+ public java.lang.String getRole() {
+ java.lang.Object ref = role_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ role_ = s;
+ return s;
+ }
+ }
+ /**
+ * string role = 4;
+ * @return The bytes for role.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getRoleBytes() {
+ java.lang.Object ref = role_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ role_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int IS_VALID_FIELD_NUMBER = 5;
+ private boolean isValid_ = false;
+ /**
+ * bool is_valid = 5;
+ * @return The isValid.
+ */
+ @java.lang.Override
+ public boolean getIsValid() {
+ return isValid_;
+ }
+
+ public static final int IS_ACTIVE_FIELD_NUMBER = 6;
+ private boolean isActive_ = false;
+ /**
+ * bool is_active = 6;
+ * @return The isActive.
+ */
+ @java.lang.Override
+ public boolean getIsActive() {
+ return isActive_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(username_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, username_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(role_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, role_);
+ }
+ if (isValid_ != false) {
+ output.writeBool(5, isValid_);
+ }
+ if (isActive_ != false) {
+ output.writeBool(6, isActive_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(username_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, username_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(role_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, role_);
+ }
+ if (isValid_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(5, isValid_);
+ }
+ if (isActive_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(6, isActive_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.jumpserver.wisp.Common.User)) {
+ return super.equals(obj);
+ }
+ org.jumpserver.wisp.Common.User other = (org.jumpserver.wisp.Common.User) obj;
+
+ if (!getId()
+ .equals(other.getId())) return false;
+ if (!getName()
+ .equals(other.getName())) return false;
+ if (!getUsername()
+ .equals(other.getUsername())) return false;
+ if (!getRole()
+ .equals(other.getRole())) return false;
+ if (getIsValid()
+ != other.getIsValid()) return false;
+ if (getIsActive()
+ != other.getIsActive()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + USERNAME_FIELD_NUMBER;
+ hash = (53 * hash) + getUsername().hashCode();
+ hash = (37 * hash) + ROLE_FIELD_NUMBER;
+ hash = (53 * hash) + getRole().hashCode();
+ hash = (37 * hash) + IS_VALID_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIsValid());
+ hash = (37 * hash) + IS_ACTIVE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIsActive());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.jumpserver.wisp.Common.User parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.User parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.User parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.User parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.User parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.User parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.User parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.User parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static org.jumpserver.wisp.Common.User parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static org.jumpserver.wisp.Common.User parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.User parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.User parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.jumpserver.wisp.Common.User prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code message.User}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:message.User)
+ org.jumpserver.wisp.Common.UserOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_User_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_User_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.User.class, org.jumpserver.wisp.Common.User.Builder.class);
+ }
+
+ // Construct using org.jumpserver.wisp.Common.User.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ id_ = "";
+ name_ = "";
+ username_ = "";
+ role_ = "";
+ isValid_ = false;
+ isActive_ = false;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.jumpserver.wisp.Common.internal_static_message_User_descriptor;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.User getDefaultInstanceForType() {
+ return org.jumpserver.wisp.Common.User.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.User build() {
+ org.jumpserver.wisp.Common.User result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.User buildPartial() {
+ org.jumpserver.wisp.Common.User result = new org.jumpserver.wisp.Common.User(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(org.jumpserver.wisp.Common.User result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.id_ = id_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.username_ = username_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.role_ = role_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.isValid_ = isValid_;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.isActive_ = isActive_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.jumpserver.wisp.Common.User) {
+ return mergeFrom((org.jumpserver.wisp.Common.User)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.jumpserver.wisp.Common.User other) {
+ if (other == org.jumpserver.wisp.Common.User.getDefaultInstance()) return this;
+ if (!other.getId().isEmpty()) {
+ id_ = other.id_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getUsername().isEmpty()) {
+ username_ = other.username_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ if (!other.getRole().isEmpty()) {
+ role_ = other.role_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ if (other.getIsValid() != false) {
+ setIsValid(other.getIsValid());
+ }
+ if (other.getIsActive() != false) {
+ setIsActive(other.getIsActive());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ id_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ name_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ username_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34: {
+ role_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ case 40: {
+ isValid_ = input.readBool();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 40
+ case 48: {
+ isActive_ = input.readBool();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 48
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object id_ = "";
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ public com.google.protobuf.ByteString
+ getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string id = 1;
+ * @param value The id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setId(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ id_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+ id_ = getDefaultInstance().getId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string id = 1;
+ * @param value The bytes for id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ id_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object name_ = "";
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string name = 2;
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ name_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 2;
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object username_ = "";
+ /**
+ * string username = 3;
+ * @return The username.
+ */
+ public java.lang.String getUsername() {
+ java.lang.Object ref = username_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ username_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string username = 3;
+ * @return The bytes for username.
+ */
+ public com.google.protobuf.ByteString
+ getUsernameBytes() {
+ java.lang.Object ref = username_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ username_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string username = 3;
+ * @param value The username to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUsername(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ username_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * string username = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearUsername() {
+ username_ = getDefaultInstance().getUsername();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * string username = 3;
+ * @param value The bytes for username to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUsernameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ username_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object role_ = "";
+ /**
+ * string role = 4;
+ * @return The role.
+ */
+ public java.lang.String getRole() {
+ java.lang.Object ref = role_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ role_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string role = 4;
+ * @return The bytes for role.
+ */
+ public com.google.protobuf.ByteString
+ getRoleBytes() {
+ java.lang.Object ref = role_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ role_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string role = 4;
+ * @param value The role to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRole(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ role_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * string role = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearRole() {
+ role_ = getDefaultInstance().getRole();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ * string role = 4;
+ * @param value The bytes for role to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRoleBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ role_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private boolean isValid_ ;
+ /**
+ * bool is_valid = 5;
+ * @return The isValid.
+ */
+ @java.lang.Override
+ public boolean getIsValid() {
+ return isValid_;
+ }
+ /**
+ * bool is_valid = 5;
+ * @param value The isValid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIsValid(boolean value) {
+
+ isValid_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool is_valid = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearIsValid() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ isValid_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean isActive_ ;
+ /**
+ * bool is_active = 6;
+ * @return The isActive.
+ */
+ @java.lang.Override
+ public boolean getIsActive() {
+ return isActive_;
+ }
+ /**
+ * bool is_active = 6;
+ * @param value The isActive to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIsActive(boolean value) {
+
+ isActive_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool is_active = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearIsActive() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ isActive_ = false;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:message.User)
+ }
+
+ // @@protoc_insertion_point(class_scope:message.User)
+ private static final org.jumpserver.wisp.Common.User DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.jumpserver.wisp.Common.User();
+ }
+
+ public static org.jumpserver.wisp.Common.User getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public User parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.User getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface AccountOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:message.Account)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ java.lang.String getId();
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ com.google.protobuf.ByteString
+ getIdBytes();
+
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * string username = 4;
+ * @return The username.
+ */
+ java.lang.String getUsername();
+ /**
+ * string username = 4;
+ * @return The bytes for username.
+ */
+ com.google.protobuf.ByteString
+ getUsernameBytes();
+
+ /**
+ * string secret = 5;
+ * @return The secret.
+ */
+ java.lang.String getSecret();
+ /**
+ * string secret = 5;
+ * @return The bytes for secret.
+ */
+ com.google.protobuf.ByteString
+ getSecretBytes();
+
+ /**
+ * .message.LabelValue secretType = 6;
+ * @return Whether the secretType field is set.
+ */
+ boolean hasSecretType();
+ /**
+ * .message.LabelValue secretType = 6;
+ * @return The secretType.
+ */
+ org.jumpserver.wisp.Common.LabelValue getSecretType();
+ /**
+ * .message.LabelValue secretType = 6;
+ */
+ org.jumpserver.wisp.Common.LabelValueOrBuilder getSecretTypeOrBuilder();
+ }
+ /**
+ * Protobuf type {@code message.Account}
+ */
+ public static final class Account extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:message.Account)
+ AccountOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ Account.class.getName());
+ }
+ // Use Account.newBuilder() to construct.
+ private Account(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private Account() {
+ id_ = "";
+ name_ = "";
+ username_ = "";
+ secret_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_Account_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_Account_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.Account.class, org.jumpserver.wisp.Common.Account.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int ID_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object id_ = "";
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ @java.lang.Override
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ }
+ }
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NAME_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int USERNAME_FIELD_NUMBER = 4;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object username_ = "";
+ /**
+ * string username = 4;
+ * @return The username.
+ */
+ @java.lang.Override
+ public java.lang.String getUsername() {
+ java.lang.Object ref = username_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ username_ = s;
+ return s;
+ }
+ }
+ /**
+ * string username = 4;
+ * @return The bytes for username.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getUsernameBytes() {
+ java.lang.Object ref = username_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ username_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SECRET_FIELD_NUMBER = 5;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object secret_ = "";
+ /**
+ * string secret = 5;
+ * @return The secret.
+ */
+ @java.lang.Override
+ public java.lang.String getSecret() {
+ java.lang.Object ref = secret_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ secret_ = s;
+ return s;
+ }
+ }
+ /**
+ * string secret = 5;
+ * @return The bytes for secret.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSecretBytes() {
+ java.lang.Object ref = secret_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ secret_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SECRETTYPE_FIELD_NUMBER = 6;
+ private org.jumpserver.wisp.Common.LabelValue secretType_;
+ /**
+ * .message.LabelValue secretType = 6;
+ * @return Whether the secretType field is set.
+ */
+ @java.lang.Override
+ public boolean hasSecretType() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * .message.LabelValue secretType = 6;
+ * @return The secretType.
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.LabelValue getSecretType() {
+ return secretType_ == null ? org.jumpserver.wisp.Common.LabelValue.getDefaultInstance() : secretType_;
+ }
+ /**
+ * .message.LabelValue secretType = 6;
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.LabelValueOrBuilder getSecretTypeOrBuilder() {
+ return secretType_ == null ? org.jumpserver.wisp.Common.LabelValue.getDefaultInstance() : secretType_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(username_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, username_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(secret_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 5, secret_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(6, getSecretType());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(username_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, username_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(secret_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(5, secret_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(6, getSecretType());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.jumpserver.wisp.Common.Account)) {
+ return super.equals(obj);
+ }
+ org.jumpserver.wisp.Common.Account other = (org.jumpserver.wisp.Common.Account) obj;
+
+ if (!getId()
+ .equals(other.getId())) return false;
+ if (!getName()
+ .equals(other.getName())) return false;
+ if (!getUsername()
+ .equals(other.getUsername())) return false;
+ if (!getSecret()
+ .equals(other.getSecret())) return false;
+ if (hasSecretType() != other.hasSecretType()) return false;
+ if (hasSecretType()) {
+ if (!getSecretType()
+ .equals(other.getSecretType())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + USERNAME_FIELD_NUMBER;
+ hash = (53 * hash) + getUsername().hashCode();
+ hash = (37 * hash) + SECRET_FIELD_NUMBER;
+ hash = (53 * hash) + getSecret().hashCode();
+ if (hasSecretType()) {
+ hash = (37 * hash) + SECRETTYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getSecretType().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.jumpserver.wisp.Common.Account parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Account parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Account parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Account parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Account parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Account parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Account parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.Account parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static org.jumpserver.wisp.Common.Account parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static org.jumpserver.wisp.Common.Account parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Account parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.Account parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.jumpserver.wisp.Common.Account prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code message.Account}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:message.Account)
+ org.jumpserver.wisp.Common.AccountOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_Account_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_Account_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.Account.class, org.jumpserver.wisp.Common.Account.Builder.class);
+ }
+
+ // Construct using org.jumpserver.wisp.Common.Account.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage
+ .alwaysUseFieldBuilders) {
+ getSecretTypeFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ id_ = "";
+ name_ = "";
+ username_ = "";
+ secret_ = "";
+ secretType_ = null;
+ if (secretTypeBuilder_ != null) {
+ secretTypeBuilder_.dispose();
+ secretTypeBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.jumpserver.wisp.Common.internal_static_message_Account_descriptor;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Account getDefaultInstanceForType() {
+ return org.jumpserver.wisp.Common.Account.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Account build() {
+ org.jumpserver.wisp.Common.Account result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Account buildPartial() {
+ org.jumpserver.wisp.Common.Account result = new org.jumpserver.wisp.Common.Account(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(org.jumpserver.wisp.Common.Account result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.id_ = id_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.username_ = username_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.secret_ = secret_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.secretType_ = secretTypeBuilder_ == null
+ ? secretType_
+ : secretTypeBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.jumpserver.wisp.Common.Account) {
+ return mergeFrom((org.jumpserver.wisp.Common.Account)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.jumpserver.wisp.Common.Account other) {
+ if (other == org.jumpserver.wisp.Common.Account.getDefaultInstance()) return this;
+ if (!other.getId().isEmpty()) {
+ id_ = other.id_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getUsername().isEmpty()) {
+ username_ = other.username_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ if (!other.getSecret().isEmpty()) {
+ secret_ = other.secret_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ if (other.hasSecretType()) {
+ mergeSecretType(other.getSecretType());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ id_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ name_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 34: {
+ username_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 34
+ case 42: {
+ secret_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 42
+ case 50: {
+ input.readMessage(
+ getSecretTypeFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 50
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object id_ = "";
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ public com.google.protobuf.ByteString
+ getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string id = 1;
+ * @param value The id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setId(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ id_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+ id_ = getDefaultInstance().getId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string id = 1;
+ * @param value The bytes for id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ id_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object name_ = "";
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string name = 2;
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ name_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 2;
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object username_ = "";
+ /**
+ * string username = 4;
+ * @return The username.
+ */
+ public java.lang.String getUsername() {
+ java.lang.Object ref = username_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ username_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string username = 4;
+ * @return The bytes for username.
+ */
+ public com.google.protobuf.ByteString
+ getUsernameBytes() {
+ java.lang.Object ref = username_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ username_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string username = 4;
+ * @param value The username to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUsername(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ username_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * string username = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearUsername() {
+ username_ = getDefaultInstance().getUsername();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * string username = 4;
+ * @param value The bytes for username to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUsernameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ username_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object secret_ = "";
+ /**
+ * string secret = 5;
+ * @return The secret.
+ */
+ public java.lang.String getSecret() {
+ java.lang.Object ref = secret_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ secret_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string secret = 5;
+ * @return The bytes for secret.
+ */
+ public com.google.protobuf.ByteString
+ getSecretBytes() {
+ java.lang.Object ref = secret_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ secret_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string secret = 5;
+ * @param value The secret to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSecret(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ secret_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * string secret = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearSecret() {
+ secret_ = getDefaultInstance().getSecret();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ * string secret = 5;
+ * @param value The bytes for secret to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSecretBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ secret_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private org.jumpserver.wisp.Common.LabelValue secretType_;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.LabelValue, org.jumpserver.wisp.Common.LabelValue.Builder, org.jumpserver.wisp.Common.LabelValueOrBuilder> secretTypeBuilder_;
+ /**
+ * .message.LabelValue secretType = 6;
+ * @return Whether the secretType field is set.
+ */
+ public boolean hasSecretType() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * .message.LabelValue secretType = 6;
+ * @return The secretType.
+ */
+ public org.jumpserver.wisp.Common.LabelValue getSecretType() {
+ if (secretTypeBuilder_ == null) {
+ return secretType_ == null ? org.jumpserver.wisp.Common.LabelValue.getDefaultInstance() : secretType_;
+ } else {
+ return secretTypeBuilder_.getMessage();
+ }
+ }
+ /**
+ * .message.LabelValue secretType = 6;
+ */
+ public Builder setSecretType(org.jumpserver.wisp.Common.LabelValue value) {
+ if (secretTypeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ secretType_ = value;
+ } else {
+ secretTypeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.LabelValue secretType = 6;
+ */
+ public Builder setSecretType(
+ org.jumpserver.wisp.Common.LabelValue.Builder builderForValue) {
+ if (secretTypeBuilder_ == null) {
+ secretType_ = builderForValue.build();
+ } else {
+ secretTypeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.LabelValue secretType = 6;
+ */
+ public Builder mergeSecretType(org.jumpserver.wisp.Common.LabelValue value) {
+ if (secretTypeBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0) &&
+ secretType_ != null &&
+ secretType_ != org.jumpserver.wisp.Common.LabelValue.getDefaultInstance()) {
+ getSecretTypeBuilder().mergeFrom(value);
+ } else {
+ secretType_ = value;
+ }
+ } else {
+ secretTypeBuilder_.mergeFrom(value);
+ }
+ if (secretType_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .message.LabelValue secretType = 6;
+ */
+ public Builder clearSecretType() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ secretType_ = null;
+ if (secretTypeBuilder_ != null) {
+ secretTypeBuilder_.dispose();
+ secretTypeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.LabelValue secretType = 6;
+ */
+ public org.jumpserver.wisp.Common.LabelValue.Builder getSecretTypeBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return getSecretTypeFieldBuilder().getBuilder();
+ }
+ /**
+ * .message.LabelValue secretType = 6;
+ */
+ public org.jumpserver.wisp.Common.LabelValueOrBuilder getSecretTypeOrBuilder() {
+ if (secretTypeBuilder_ != null) {
+ return secretTypeBuilder_.getMessageOrBuilder();
+ } else {
+ return secretType_ == null ?
+ org.jumpserver.wisp.Common.LabelValue.getDefaultInstance() : secretType_;
+ }
+ }
+ /**
+ * .message.LabelValue secretType = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.LabelValue, org.jumpserver.wisp.Common.LabelValue.Builder, org.jumpserver.wisp.Common.LabelValueOrBuilder>
+ getSecretTypeFieldBuilder() {
+ if (secretTypeBuilder_ == null) {
+ secretTypeBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.LabelValue, org.jumpserver.wisp.Common.LabelValue.Builder, org.jumpserver.wisp.Common.LabelValueOrBuilder>(
+ getSecretType(),
+ getParentForChildren(),
+ isClean());
+ secretType_ = null;
+ }
+ return secretTypeBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:message.Account)
+ }
+
+ // @@protoc_insertion_point(class_scope:message.Account)
+ private static final org.jumpserver.wisp.Common.Account DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.jumpserver.wisp.Common.Account();
+ }
+
+ public static org.jumpserver.wisp.Common.Account getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Account parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Account getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface LabelValueOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:message.LabelValue)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string label = 1;
+ * @return The label.
+ */
+ java.lang.String getLabel();
+ /**
+ * string label = 1;
+ * @return The bytes for label.
+ */
+ com.google.protobuf.ByteString
+ getLabelBytes();
+
+ /**
+ * string value = 2;
+ * @return The value.
+ */
+ java.lang.String getValue();
+ /**
+ * string value = 2;
+ * @return The bytes for value.
+ */
+ com.google.protobuf.ByteString
+ getValueBytes();
+ }
+ /**
+ * Protobuf type {@code message.LabelValue}
+ */
+ public static final class LabelValue extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:message.LabelValue)
+ LabelValueOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ LabelValue.class.getName());
+ }
+ // Use LabelValue.newBuilder() to construct.
+ private LabelValue(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private LabelValue() {
+ label_ = "";
+ value_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_LabelValue_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_LabelValue_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.LabelValue.class, org.jumpserver.wisp.Common.LabelValue.Builder.class);
+ }
+
+ public static final int LABEL_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object label_ = "";
+ /**
+ * string label = 1;
+ * @return The label.
+ */
+ @java.lang.Override
+ public java.lang.String getLabel() {
+ java.lang.Object ref = label_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ label_ = s;
+ return s;
+ }
+ }
+ /**
+ * string label = 1;
+ * @return The bytes for label.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getLabelBytes() {
+ java.lang.Object ref = label_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ label_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VALUE_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object value_ = "";
+ /**
+ * string value = 2;
+ * @return The value.
+ */
+ @java.lang.Override
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ value_ = s;
+ return s;
+ }
+ }
+ /**
+ * string value = 2;
+ * @return The bytes for value.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(label_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, label_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, value_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(label_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, label_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, value_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.jumpserver.wisp.Common.LabelValue)) {
+ return super.equals(obj);
+ }
+ org.jumpserver.wisp.Common.LabelValue other = (org.jumpserver.wisp.Common.LabelValue) obj;
+
+ if (!getLabel()
+ .equals(other.getLabel())) return false;
+ if (!getValue()
+ .equals(other.getValue())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + LABEL_FIELD_NUMBER;
+ hash = (53 * hash) + getLabel().hashCode();
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getValue().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.jumpserver.wisp.Common.LabelValue parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.LabelValue parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.LabelValue parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.LabelValue parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.LabelValue parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.LabelValue parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.LabelValue parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.LabelValue parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static org.jumpserver.wisp.Common.LabelValue parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static org.jumpserver.wisp.Common.LabelValue parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.LabelValue parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.LabelValue parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.jumpserver.wisp.Common.LabelValue prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code message.LabelValue}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:message.LabelValue)
+ org.jumpserver.wisp.Common.LabelValueOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_LabelValue_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_LabelValue_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.LabelValue.class, org.jumpserver.wisp.Common.LabelValue.Builder.class);
+ }
+
+ // Construct using org.jumpserver.wisp.Common.LabelValue.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ label_ = "";
+ value_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.jumpserver.wisp.Common.internal_static_message_LabelValue_descriptor;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.LabelValue getDefaultInstanceForType() {
+ return org.jumpserver.wisp.Common.LabelValue.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.LabelValue build() {
+ org.jumpserver.wisp.Common.LabelValue result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.LabelValue buildPartial() {
+ org.jumpserver.wisp.Common.LabelValue result = new org.jumpserver.wisp.Common.LabelValue(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(org.jumpserver.wisp.Common.LabelValue result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.label_ = label_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.value_ = value_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.jumpserver.wisp.Common.LabelValue) {
+ return mergeFrom((org.jumpserver.wisp.Common.LabelValue)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.jumpserver.wisp.Common.LabelValue other) {
+ if (other == org.jumpserver.wisp.Common.LabelValue.getDefaultInstance()) return this;
+ if (!other.getLabel().isEmpty()) {
+ label_ = other.label_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getValue().isEmpty()) {
+ value_ = other.value_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ label_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ value_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object label_ = "";
+ /**
+ * string label = 1;
+ * @return The label.
+ */
+ public java.lang.String getLabel() {
+ java.lang.Object ref = label_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ label_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string label = 1;
+ * @return The bytes for label.
+ */
+ public com.google.protobuf.ByteString
+ getLabelBytes() {
+ java.lang.Object ref = label_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ label_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string label = 1;
+ * @param value The label to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLabel(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ label_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string label = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearLabel() {
+ label_ = getDefaultInstance().getLabel();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string label = 1;
+ * @param value The bytes for label to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLabelBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ label_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object value_ = "";
+ /**
+ * string value = 2;
+ * @return The value.
+ */
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ value_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string value = 2;
+ * @return The bytes for value.
+ */
+ public com.google.protobuf.ByteString
+ getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string value = 2;
+ * @param value The value to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValue(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ value_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * string value = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearValue() {
+ value_ = getDefaultInstance().getValue();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string value = 2;
+ * @param value The bytes for value to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValueBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ value_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:message.LabelValue)
+ }
+
+ // @@protoc_insertion_point(class_scope:message.LabelValue)
+ private static final org.jumpserver.wisp.Common.LabelValue DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.jumpserver.wisp.Common.LabelValue();
+ }
+
+ public static org.jumpserver.wisp.Common.LabelValue getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public LabelValue parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.LabelValue getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface AssetOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:message.Asset)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ java.lang.String getId();
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ com.google.protobuf.ByteString
+ getIdBytes();
+
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * string address = 3;
+ * @return The address.
+ */
+ java.lang.String getAddress();
+ /**
+ * string address = 3;
+ * @return The bytes for address.
+ */
+ com.google.protobuf.ByteString
+ getAddressBytes();
+
+ /**
+ * string org_id = 4;
+ * @return The orgId.
+ */
+ java.lang.String getOrgId();
+ /**
+ * string org_id = 4;
+ * @return The bytes for orgId.
+ */
+ com.google.protobuf.ByteString
+ getOrgIdBytes();
+
+ /**
+ * string org_name = 5;
+ * @return The orgName.
+ */
+ java.lang.String getOrgName();
+ /**
+ * string org_name = 5;
+ * @return The bytes for orgName.
+ */
+ com.google.protobuf.ByteString
+ getOrgNameBytes();
+
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ java.util.List
+ getProtocolsList();
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ org.jumpserver.wisp.Common.Protocol getProtocols(int index);
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ int getProtocolsCount();
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ java.util.List extends org.jumpserver.wisp.Common.ProtocolOrBuilder>
+ getProtocolsOrBuilderList();
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ org.jumpserver.wisp.Common.ProtocolOrBuilder getProtocolsOrBuilder(
+ int index);
+
+ /**
+ * .message.Asset.Specific specific = 7;
+ * @return Whether the specific field is set.
+ */
+ boolean hasSpecific();
+ /**
+ * .message.Asset.Specific specific = 7;
+ * @return The specific.
+ */
+ org.jumpserver.wisp.Common.Asset.Specific getSpecific();
+ /**
+ * .message.Asset.Specific specific = 7;
+ */
+ org.jumpserver.wisp.Common.Asset.SpecificOrBuilder getSpecificOrBuilder();
+ }
+ /**
+ * Protobuf type {@code message.Asset}
+ */
+ public static final class Asset extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:message.Asset)
+ AssetOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ Asset.class.getName());
+ }
+ // Use Asset.newBuilder() to construct.
+ private Asset(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private Asset() {
+ id_ = "";
+ name_ = "";
+ address_ = "";
+ orgId_ = "";
+ orgName_ = "";
+ protocols_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_Asset_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_Asset_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.Asset.class, org.jumpserver.wisp.Common.Asset.Builder.class);
+ }
+
+ public interface SpecificOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:message.Asset.Specific)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string db_name = 1;
+ * @return The dbName.
+ */
+ java.lang.String getDbName();
+ /**
+ * string db_name = 1;
+ * @return The bytes for dbName.
+ */
+ com.google.protobuf.ByteString
+ getDbNameBytes();
+
+ /**
+ * bool use_ssl = 2;
+ * @return The useSsl.
+ */
+ boolean getUseSsl();
+
+ /**
+ * string ca_cert = 3;
+ * @return The caCert.
+ */
+ java.lang.String getCaCert();
+ /**
+ * string ca_cert = 3;
+ * @return The bytes for caCert.
+ */
+ com.google.protobuf.ByteString
+ getCaCertBytes();
+
+ /**
+ * string client_cert = 4;
+ * @return The clientCert.
+ */
+ java.lang.String getClientCert();
+ /**
+ * string client_cert = 4;
+ * @return The bytes for clientCert.
+ */
+ com.google.protobuf.ByteString
+ getClientCertBytes();
+
+ /**
+ * string client_key = 5;
+ * @return The clientKey.
+ */
+ java.lang.String getClientKey();
+ /**
+ * string client_key = 5;
+ * @return The bytes for clientKey.
+ */
+ com.google.protobuf.ByteString
+ getClientKeyBytes();
+
+ /**
+ * bool allow_invalid_cert = 6;
+ * @return The allowInvalidCert.
+ */
+ boolean getAllowInvalidCert();
+
+ /**
+ * string auto_fill = 7;
+ * @return The autoFill.
+ */
+ java.lang.String getAutoFill();
+ /**
+ * string auto_fill = 7;
+ * @return The bytes for autoFill.
+ */
+ com.google.protobuf.ByteString
+ getAutoFillBytes();
+
+ /**
+ * string username_selector = 8;
+ * @return The usernameSelector.
+ */
+ java.lang.String getUsernameSelector();
+ /**
+ * string username_selector = 8;
+ * @return The bytes for usernameSelector.
+ */
+ com.google.protobuf.ByteString
+ getUsernameSelectorBytes();
+
+ /**
+ * string password_selector = 9;
+ * @return The passwordSelector.
+ */
+ java.lang.String getPasswordSelector();
+ /**
+ * string password_selector = 9;
+ * @return The bytes for passwordSelector.
+ */
+ com.google.protobuf.ByteString
+ getPasswordSelectorBytes();
+
+ /**
+ * string submit_selector = 10;
+ * @return The submitSelector.
+ */
+ java.lang.String getSubmitSelector();
+ /**
+ * string submit_selector = 10;
+ * @return The bytes for submitSelector.
+ */
+ com.google.protobuf.ByteString
+ getSubmitSelectorBytes();
+
+ /**
+ * string script = 11;
+ * @return The script.
+ */
+ java.lang.String getScript();
+ /**
+ * string script = 11;
+ * @return The bytes for script.
+ */
+ com.google.protobuf.ByteString
+ getScriptBytes();
+
+ /**
+ * string http_proxy = 12;
+ * @return The httpProxy.
+ */
+ java.lang.String getHttpProxy();
+ /**
+ * string http_proxy = 12;
+ * @return The bytes for httpProxy.
+ */
+ com.google.protobuf.ByteString
+ getHttpProxyBytes();
+
+ /**
+ * string pg_ssl_mode = 13;
+ * @return The pgSslMode.
+ */
+ java.lang.String getPgSslMode();
+ /**
+ * string pg_ssl_mode = 13;
+ * @return The bytes for pgSslMode.
+ */
+ com.google.protobuf.ByteString
+ getPgSslModeBytes();
+ }
+ /**
+ * Protobuf type {@code message.Asset.Specific}
+ */
+ public static final class Specific extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:message.Asset.Specific)
+ SpecificOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ Specific.class.getName());
+ }
+ // Use Specific.newBuilder() to construct.
+ private Specific(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private Specific() {
+ dbName_ = "";
+ caCert_ = "";
+ clientCert_ = "";
+ clientKey_ = "";
+ autoFill_ = "";
+ usernameSelector_ = "";
+ passwordSelector_ = "";
+ submitSelector_ = "";
+ script_ = "";
+ httpProxy_ = "";
+ pgSslMode_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_Asset_Specific_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_Asset_Specific_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.Asset.Specific.class, org.jumpserver.wisp.Common.Asset.Specific.Builder.class);
+ }
+
+ public static final int DB_NAME_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object dbName_ = "";
+ /**
+ * string db_name = 1;
+ * @return The dbName.
+ */
+ @java.lang.Override
+ public java.lang.String getDbName() {
+ java.lang.Object ref = dbName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ dbName_ = s;
+ return s;
+ }
+ }
+ /**
+ * string db_name = 1;
+ * @return The bytes for dbName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getDbNameBytes() {
+ java.lang.Object ref = dbName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ dbName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int USE_SSL_FIELD_NUMBER = 2;
+ private boolean useSsl_ = false;
+ /**
+ * bool use_ssl = 2;
+ * @return The useSsl.
+ */
+ @java.lang.Override
+ public boolean getUseSsl() {
+ return useSsl_;
+ }
+
+ public static final int CA_CERT_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object caCert_ = "";
+ /**
+ * string ca_cert = 3;
+ * @return The caCert.
+ */
+ @java.lang.Override
+ public java.lang.String getCaCert() {
+ java.lang.Object ref = caCert_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ caCert_ = s;
+ return s;
+ }
+ }
+ /**
+ * string ca_cert = 3;
+ * @return The bytes for caCert.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getCaCertBytes() {
+ java.lang.Object ref = caCert_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ caCert_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CLIENT_CERT_FIELD_NUMBER = 4;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object clientCert_ = "";
+ /**
+ * string client_cert = 4;
+ * @return The clientCert.
+ */
+ @java.lang.Override
+ public java.lang.String getClientCert() {
+ java.lang.Object ref = clientCert_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ clientCert_ = s;
+ return s;
+ }
+ }
+ /**
+ * string client_cert = 4;
+ * @return The bytes for clientCert.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getClientCertBytes() {
+ java.lang.Object ref = clientCert_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ clientCert_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CLIENT_KEY_FIELD_NUMBER = 5;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object clientKey_ = "";
+ /**
+ * string client_key = 5;
+ * @return The clientKey.
+ */
+ @java.lang.Override
+ public java.lang.String getClientKey() {
+ java.lang.Object ref = clientKey_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ clientKey_ = s;
+ return s;
+ }
+ }
+ /**
+ * string client_key = 5;
+ * @return The bytes for clientKey.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getClientKeyBytes() {
+ java.lang.Object ref = clientKey_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ clientKey_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ALLOW_INVALID_CERT_FIELD_NUMBER = 6;
+ private boolean allowInvalidCert_ = false;
+ /**
+ * bool allow_invalid_cert = 6;
+ * @return The allowInvalidCert.
+ */
+ @java.lang.Override
+ public boolean getAllowInvalidCert() {
+ return allowInvalidCert_;
+ }
+
+ public static final int AUTO_FILL_FIELD_NUMBER = 7;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object autoFill_ = "";
+ /**
+ * string auto_fill = 7;
+ * @return The autoFill.
+ */
+ @java.lang.Override
+ public java.lang.String getAutoFill() {
+ java.lang.Object ref = autoFill_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ autoFill_ = s;
+ return s;
+ }
+ }
+ /**
+ * string auto_fill = 7;
+ * @return The bytes for autoFill.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getAutoFillBytes() {
+ java.lang.Object ref = autoFill_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ autoFill_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int USERNAME_SELECTOR_FIELD_NUMBER = 8;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object usernameSelector_ = "";
+ /**
+ * string username_selector = 8;
+ * @return The usernameSelector.
+ */
+ @java.lang.Override
+ public java.lang.String getUsernameSelector() {
+ java.lang.Object ref = usernameSelector_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ usernameSelector_ = s;
+ return s;
+ }
+ }
+ /**
+ * string username_selector = 8;
+ * @return The bytes for usernameSelector.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getUsernameSelectorBytes() {
+ java.lang.Object ref = usernameSelector_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ usernameSelector_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PASSWORD_SELECTOR_FIELD_NUMBER = 9;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object passwordSelector_ = "";
+ /**
+ * string password_selector = 9;
+ * @return The passwordSelector.
+ */
+ @java.lang.Override
+ public java.lang.String getPasswordSelector() {
+ java.lang.Object ref = passwordSelector_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ passwordSelector_ = s;
+ return s;
+ }
+ }
+ /**
+ * string password_selector = 9;
+ * @return The bytes for passwordSelector.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getPasswordSelectorBytes() {
+ java.lang.Object ref = passwordSelector_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ passwordSelector_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SUBMIT_SELECTOR_FIELD_NUMBER = 10;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object submitSelector_ = "";
+ /**
+ * string submit_selector = 10;
+ * @return The submitSelector.
+ */
+ @java.lang.Override
+ public java.lang.String getSubmitSelector() {
+ java.lang.Object ref = submitSelector_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ submitSelector_ = s;
+ return s;
+ }
+ }
+ /**
+ * string submit_selector = 10;
+ * @return The bytes for submitSelector.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSubmitSelectorBytes() {
+ java.lang.Object ref = submitSelector_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ submitSelector_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SCRIPT_FIELD_NUMBER = 11;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object script_ = "";
+ /**
+ * string script = 11;
+ * @return The script.
+ */
+ @java.lang.Override
+ public java.lang.String getScript() {
+ java.lang.Object ref = script_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ script_ = s;
+ return s;
+ }
+ }
+ /**
+ * string script = 11;
+ * @return The bytes for script.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getScriptBytes() {
+ java.lang.Object ref = script_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ script_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int HTTP_PROXY_FIELD_NUMBER = 12;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object httpProxy_ = "";
+ /**
+ * string http_proxy = 12;
+ * @return The httpProxy.
+ */
+ @java.lang.Override
+ public java.lang.String getHttpProxy() {
+ java.lang.Object ref = httpProxy_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ httpProxy_ = s;
+ return s;
+ }
+ }
+ /**
+ * string http_proxy = 12;
+ * @return The bytes for httpProxy.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getHttpProxyBytes() {
+ java.lang.Object ref = httpProxy_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ httpProxy_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PG_SSL_MODE_FIELD_NUMBER = 13;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object pgSslMode_ = "";
+ /**
+ * string pg_ssl_mode = 13;
+ * @return The pgSslMode.
+ */
+ @java.lang.Override
+ public java.lang.String getPgSslMode() {
+ java.lang.Object ref = pgSslMode_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pgSslMode_ = s;
+ return s;
+ }
+ }
+ /**
+ * string pg_ssl_mode = 13;
+ * @return The bytes for pgSslMode.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getPgSslModeBytes() {
+ java.lang.Object ref = pgSslMode_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ pgSslMode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dbName_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, dbName_);
+ }
+ if (useSsl_ != false) {
+ output.writeBool(2, useSsl_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(caCert_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, caCert_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientCert_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, clientCert_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientKey_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 5, clientKey_);
+ }
+ if (allowInvalidCert_ != false) {
+ output.writeBool(6, allowInvalidCert_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(autoFill_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 7, autoFill_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(usernameSelector_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 8, usernameSelector_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(passwordSelector_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 9, passwordSelector_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(submitSelector_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 10, submitSelector_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(script_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 11, script_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(httpProxy_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 12, httpProxy_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pgSslMode_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 13, pgSslMode_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dbName_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, dbName_);
+ }
+ if (useSsl_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, useSsl_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(caCert_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, caCert_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientCert_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, clientCert_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientKey_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(5, clientKey_);
+ }
+ if (allowInvalidCert_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(6, allowInvalidCert_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(autoFill_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(7, autoFill_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(usernameSelector_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(8, usernameSelector_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(passwordSelector_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(9, passwordSelector_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(submitSelector_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(10, submitSelector_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(script_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(11, script_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(httpProxy_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(12, httpProxy_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pgSslMode_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(13, pgSslMode_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.jumpserver.wisp.Common.Asset.Specific)) {
+ return super.equals(obj);
+ }
+ org.jumpserver.wisp.Common.Asset.Specific other = (org.jumpserver.wisp.Common.Asset.Specific) obj;
+
+ if (!getDbName()
+ .equals(other.getDbName())) return false;
+ if (getUseSsl()
+ != other.getUseSsl()) return false;
+ if (!getCaCert()
+ .equals(other.getCaCert())) return false;
+ if (!getClientCert()
+ .equals(other.getClientCert())) return false;
+ if (!getClientKey()
+ .equals(other.getClientKey())) return false;
+ if (getAllowInvalidCert()
+ != other.getAllowInvalidCert()) return false;
+ if (!getAutoFill()
+ .equals(other.getAutoFill())) return false;
+ if (!getUsernameSelector()
+ .equals(other.getUsernameSelector())) return false;
+ if (!getPasswordSelector()
+ .equals(other.getPasswordSelector())) return false;
+ if (!getSubmitSelector()
+ .equals(other.getSubmitSelector())) return false;
+ if (!getScript()
+ .equals(other.getScript())) return false;
+ if (!getHttpProxy()
+ .equals(other.getHttpProxy())) return false;
+ if (!getPgSslMode()
+ .equals(other.getPgSslMode())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + DB_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDbName().hashCode();
+ hash = (37 * hash) + USE_SSL_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getUseSsl());
+ hash = (37 * hash) + CA_CERT_FIELD_NUMBER;
+ hash = (53 * hash) + getCaCert().hashCode();
+ hash = (37 * hash) + CLIENT_CERT_FIELD_NUMBER;
+ hash = (53 * hash) + getClientCert().hashCode();
+ hash = (37 * hash) + CLIENT_KEY_FIELD_NUMBER;
+ hash = (53 * hash) + getClientKey().hashCode();
+ hash = (37 * hash) + ALLOW_INVALID_CERT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getAllowInvalidCert());
+ hash = (37 * hash) + AUTO_FILL_FIELD_NUMBER;
+ hash = (53 * hash) + getAutoFill().hashCode();
+ hash = (37 * hash) + USERNAME_SELECTOR_FIELD_NUMBER;
+ hash = (53 * hash) + getUsernameSelector().hashCode();
+ hash = (37 * hash) + PASSWORD_SELECTOR_FIELD_NUMBER;
+ hash = (53 * hash) + getPasswordSelector().hashCode();
+ hash = (37 * hash) + SUBMIT_SELECTOR_FIELD_NUMBER;
+ hash = (53 * hash) + getSubmitSelector().hashCode();
+ hash = (37 * hash) + SCRIPT_FIELD_NUMBER;
+ hash = (53 * hash) + getScript().hashCode();
+ hash = (37 * hash) + HTTP_PROXY_FIELD_NUMBER;
+ hash = (53 * hash) + getHttpProxy().hashCode();
+ hash = (37 * hash) + PG_SSL_MODE_FIELD_NUMBER;
+ hash = (53 * hash) + getPgSslMode().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.jumpserver.wisp.Common.Asset.Specific parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Asset.Specific parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Asset.Specific parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Asset.Specific parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Asset.Specific parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Asset.Specific parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Asset.Specific parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.Asset.Specific parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static org.jumpserver.wisp.Common.Asset.Specific parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static org.jumpserver.wisp.Common.Asset.Specific parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Asset.Specific parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.Asset.Specific parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.jumpserver.wisp.Common.Asset.Specific prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code message.Asset.Specific}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:message.Asset.Specific)
+ org.jumpserver.wisp.Common.Asset.SpecificOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_Asset_Specific_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_Asset_Specific_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.Asset.Specific.class, org.jumpserver.wisp.Common.Asset.Specific.Builder.class);
+ }
+
+ // Construct using org.jumpserver.wisp.Common.Asset.Specific.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ dbName_ = "";
+ useSsl_ = false;
+ caCert_ = "";
+ clientCert_ = "";
+ clientKey_ = "";
+ allowInvalidCert_ = false;
+ autoFill_ = "";
+ usernameSelector_ = "";
+ passwordSelector_ = "";
+ submitSelector_ = "";
+ script_ = "";
+ httpProxy_ = "";
+ pgSslMode_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.jumpserver.wisp.Common.internal_static_message_Asset_Specific_descriptor;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Asset.Specific getDefaultInstanceForType() {
+ return org.jumpserver.wisp.Common.Asset.Specific.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Asset.Specific build() {
+ org.jumpserver.wisp.Common.Asset.Specific result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Asset.Specific buildPartial() {
+ org.jumpserver.wisp.Common.Asset.Specific result = new org.jumpserver.wisp.Common.Asset.Specific(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(org.jumpserver.wisp.Common.Asset.Specific result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.dbName_ = dbName_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.useSsl_ = useSsl_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.caCert_ = caCert_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.clientCert_ = clientCert_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.clientKey_ = clientKey_;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.allowInvalidCert_ = allowInvalidCert_;
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.autoFill_ = autoFill_;
+ }
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.usernameSelector_ = usernameSelector_;
+ }
+ if (((from_bitField0_ & 0x00000100) != 0)) {
+ result.passwordSelector_ = passwordSelector_;
+ }
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.submitSelector_ = submitSelector_;
+ }
+ if (((from_bitField0_ & 0x00000400) != 0)) {
+ result.script_ = script_;
+ }
+ if (((from_bitField0_ & 0x00000800) != 0)) {
+ result.httpProxy_ = httpProxy_;
+ }
+ if (((from_bitField0_ & 0x00001000) != 0)) {
+ result.pgSslMode_ = pgSslMode_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.jumpserver.wisp.Common.Asset.Specific) {
+ return mergeFrom((org.jumpserver.wisp.Common.Asset.Specific)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.jumpserver.wisp.Common.Asset.Specific other) {
+ if (other == org.jumpserver.wisp.Common.Asset.Specific.getDefaultInstance()) return this;
+ if (!other.getDbName().isEmpty()) {
+ dbName_ = other.dbName_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.getUseSsl() != false) {
+ setUseSsl(other.getUseSsl());
+ }
+ if (!other.getCaCert().isEmpty()) {
+ caCert_ = other.caCert_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ if (!other.getClientCert().isEmpty()) {
+ clientCert_ = other.clientCert_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ if (!other.getClientKey().isEmpty()) {
+ clientKey_ = other.clientKey_;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ if (other.getAllowInvalidCert() != false) {
+ setAllowInvalidCert(other.getAllowInvalidCert());
+ }
+ if (!other.getAutoFill().isEmpty()) {
+ autoFill_ = other.autoFill_;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
+ if (!other.getUsernameSelector().isEmpty()) {
+ usernameSelector_ = other.usernameSelector_;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ }
+ if (!other.getPasswordSelector().isEmpty()) {
+ passwordSelector_ = other.passwordSelector_;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ }
+ if (!other.getSubmitSelector().isEmpty()) {
+ submitSelector_ = other.submitSelector_;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ }
+ if (!other.getScript().isEmpty()) {
+ script_ = other.script_;
+ bitField0_ |= 0x00000400;
+ onChanged();
+ }
+ if (!other.getHttpProxy().isEmpty()) {
+ httpProxy_ = other.httpProxy_;
+ bitField0_ |= 0x00000800;
+ onChanged();
+ }
+ if (!other.getPgSslMode().isEmpty()) {
+ pgSslMode_ = other.pgSslMode_;
+ bitField0_ |= 0x00001000;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ dbName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 16: {
+ useSsl_ = input.readBool();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 26: {
+ caCert_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34: {
+ clientCert_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ case 42: {
+ clientKey_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
+ case 48: {
+ allowInvalidCert_ = input.readBool();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 48
+ case 58: {
+ autoFill_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 58
+ case 66: {
+ usernameSelector_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 66
+ case 74: {
+ passwordSelector_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000100;
+ break;
+ } // case 74
+ case 82: {
+ submitSelector_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000200;
+ break;
+ } // case 82
+ case 90: {
+ script_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000400;
+ break;
+ } // case 90
+ case 98: {
+ httpProxy_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000800;
+ break;
+ } // case 98
+ case 106: {
+ pgSslMode_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00001000;
+ break;
+ } // case 106
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object dbName_ = "";
+ /**
+ * string db_name = 1;
+ * @return The dbName.
+ */
+ public java.lang.String getDbName() {
+ java.lang.Object ref = dbName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ dbName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string db_name = 1;
+ * @return The bytes for dbName.
+ */
+ public com.google.protobuf.ByteString
+ getDbNameBytes() {
+ java.lang.Object ref = dbName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ dbName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string db_name = 1;
+ * @param value The dbName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDbName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ dbName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string db_name = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearDbName() {
+ dbName_ = getDefaultInstance().getDbName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string db_name = 1;
+ * @param value The bytes for dbName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDbNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ dbName_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private boolean useSsl_ ;
+ /**
+ * bool use_ssl = 2;
+ * @return The useSsl.
+ */
+ @java.lang.Override
+ public boolean getUseSsl() {
+ return useSsl_;
+ }
+ /**
+ * bool use_ssl = 2;
+ * @param value The useSsl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUseSsl(boolean value) {
+
+ useSsl_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool use_ssl = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearUseSsl() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ useSsl_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object caCert_ = "";
+ /**
+ * string ca_cert = 3;
+ * @return The caCert.
+ */
+ public java.lang.String getCaCert() {
+ java.lang.Object ref = caCert_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ caCert_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string ca_cert = 3;
+ * @return The bytes for caCert.
+ */
+ public com.google.protobuf.ByteString
+ getCaCertBytes() {
+ java.lang.Object ref = caCert_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ caCert_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string ca_cert = 3;
+ * @param value The caCert to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCaCert(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ caCert_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * string ca_cert = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearCaCert() {
+ caCert_ = getDefaultInstance().getCaCert();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * string ca_cert = 3;
+ * @param value The bytes for caCert to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCaCertBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ caCert_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object clientCert_ = "";
+ /**
+ * string client_cert = 4;
+ * @return The clientCert.
+ */
+ public java.lang.String getClientCert() {
+ java.lang.Object ref = clientCert_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ clientCert_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string client_cert = 4;
+ * @return The bytes for clientCert.
+ */
+ public com.google.protobuf.ByteString
+ getClientCertBytes() {
+ java.lang.Object ref = clientCert_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ clientCert_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string client_cert = 4;
+ * @param value The clientCert to set.
+ * @return This builder for chaining.
+ */
+ public Builder setClientCert(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ clientCert_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * string client_cert = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearClientCert() {
+ clientCert_ = getDefaultInstance().getClientCert();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ * string client_cert = 4;
+ * @param value The bytes for clientCert to set.
+ * @return This builder for chaining.
+ */
+ public Builder setClientCertBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ clientCert_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object clientKey_ = "";
+ /**
+ * string client_key = 5;
+ * @return The clientKey.
+ */
+ public java.lang.String getClientKey() {
+ java.lang.Object ref = clientKey_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ clientKey_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string client_key = 5;
+ * @return The bytes for clientKey.
+ */
+ public com.google.protobuf.ByteString
+ getClientKeyBytes() {
+ java.lang.Object ref = clientKey_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ clientKey_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string client_key = 5;
+ * @param value The clientKey to set.
+ * @return This builder for chaining.
+ */
+ public Builder setClientKey(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ clientKey_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * string client_key = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearClientKey() {
+ clientKey_ = getDefaultInstance().getClientKey();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+ /**
+ * string client_key = 5;
+ * @param value The bytes for clientKey to set.
+ * @return This builder for chaining.
+ */
+ public Builder setClientKeyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ clientKey_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ private boolean allowInvalidCert_ ;
+ /**
+ * bool allow_invalid_cert = 6;
+ * @return The allowInvalidCert.
+ */
+ @java.lang.Override
+ public boolean getAllowInvalidCert() {
+ return allowInvalidCert_;
+ }
+ /**
+ * bool allow_invalid_cert = 6;
+ * @param value The allowInvalidCert to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAllowInvalidCert(boolean value) {
+
+ allowInvalidCert_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool allow_invalid_cert = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearAllowInvalidCert() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ allowInvalidCert_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object autoFill_ = "";
+ /**
+ * string auto_fill = 7;
+ * @return The autoFill.
+ */
+ public java.lang.String getAutoFill() {
+ java.lang.Object ref = autoFill_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ autoFill_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string auto_fill = 7;
+ * @return The bytes for autoFill.
+ */
+ public com.google.protobuf.ByteString
+ getAutoFillBytes() {
+ java.lang.Object ref = autoFill_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ autoFill_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string auto_fill = 7;
+ * @param value The autoFill to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAutoFill(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ autoFill_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ * string auto_fill = 7;
+ * @return This builder for chaining.
+ */
+ public Builder clearAutoFill() {
+ autoFill_ = getDefaultInstance().getAutoFill();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ return this;
+ }
+ /**
+ * string auto_fill = 7;
+ * @param value The bytes for autoFill to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAutoFillBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ autoFill_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object usernameSelector_ = "";
+ /**
+ * string username_selector = 8;
+ * @return The usernameSelector.
+ */
+ public java.lang.String getUsernameSelector() {
+ java.lang.Object ref = usernameSelector_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ usernameSelector_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string username_selector = 8;
+ * @return The bytes for usernameSelector.
+ */
+ public com.google.protobuf.ByteString
+ getUsernameSelectorBytes() {
+ java.lang.Object ref = usernameSelector_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ usernameSelector_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string username_selector = 8;
+ * @param value The usernameSelector to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUsernameSelector(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ usernameSelector_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ * string username_selector = 8;
+ * @return This builder for chaining.
+ */
+ public Builder clearUsernameSelector() {
+ usernameSelector_ = getDefaultInstance().getUsernameSelector();
+ bitField0_ = (bitField0_ & ~0x00000080);
+ onChanged();
+ return this;
+ }
+ /**
+ * string username_selector = 8;
+ * @param value The bytes for usernameSelector to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUsernameSelectorBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ usernameSelector_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object passwordSelector_ = "";
+ /**
+ * string password_selector = 9;
+ * @return The passwordSelector.
+ */
+ public java.lang.String getPasswordSelector() {
+ java.lang.Object ref = passwordSelector_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ passwordSelector_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string password_selector = 9;
+ * @return The bytes for passwordSelector.
+ */
+ public com.google.protobuf.ByteString
+ getPasswordSelectorBytes() {
+ java.lang.Object ref = passwordSelector_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ passwordSelector_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string password_selector = 9;
+ * @param value The passwordSelector to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPasswordSelector(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ passwordSelector_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ * string password_selector = 9;
+ * @return This builder for chaining.
+ */
+ public Builder clearPasswordSelector() {
+ passwordSelector_ = getDefaultInstance().getPasswordSelector();
+ bitField0_ = (bitField0_ & ~0x00000100);
+ onChanged();
+ return this;
+ }
+ /**
+ * string password_selector = 9;
+ * @param value The bytes for passwordSelector to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPasswordSelectorBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ passwordSelector_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object submitSelector_ = "";
+ /**
+ * string submit_selector = 10;
+ * @return The submitSelector.
+ */
+ public java.lang.String getSubmitSelector() {
+ java.lang.Object ref = submitSelector_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ submitSelector_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string submit_selector = 10;
+ * @return The bytes for submitSelector.
+ */
+ public com.google.protobuf.ByteString
+ getSubmitSelectorBytes() {
+ java.lang.Object ref = submitSelector_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ submitSelector_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string submit_selector = 10;
+ * @param value The submitSelector to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSubmitSelector(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ submitSelector_ = value;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ * string submit_selector = 10;
+ * @return This builder for chaining.
+ */
+ public Builder clearSubmitSelector() {
+ submitSelector_ = getDefaultInstance().getSubmitSelector();
+ bitField0_ = (bitField0_ & ~0x00000200);
+ onChanged();
+ return this;
+ }
+ /**
+ * string submit_selector = 10;
+ * @param value The bytes for submitSelector to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSubmitSelectorBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ submitSelector_ = value;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object script_ = "";
+ /**
+ * string script = 11;
+ * @return The script.
+ */
+ public java.lang.String getScript() {
+ java.lang.Object ref = script_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ script_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string script = 11;
+ * @return The bytes for script.
+ */
+ public com.google.protobuf.ByteString
+ getScriptBytes() {
+ java.lang.Object ref = script_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ script_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string script = 11;
+ * @param value The script to set.
+ * @return This builder for chaining.
+ */
+ public Builder setScript(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ script_ = value;
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+ /**
+ * string script = 11;
+ * @return This builder for chaining.
+ */
+ public Builder clearScript() {
+ script_ = getDefaultInstance().getScript();
+ bitField0_ = (bitField0_ & ~0x00000400);
+ onChanged();
+ return this;
+ }
+ /**
+ * string script = 11;
+ * @param value The bytes for script to set.
+ * @return This builder for chaining.
+ */
+ public Builder setScriptBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ script_ = value;
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object httpProxy_ = "";
+ /**
+ * string http_proxy = 12;
+ * @return The httpProxy.
+ */
+ public java.lang.String getHttpProxy() {
+ java.lang.Object ref = httpProxy_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ httpProxy_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string http_proxy = 12;
+ * @return The bytes for httpProxy.
+ */
+ public com.google.protobuf.ByteString
+ getHttpProxyBytes() {
+ java.lang.Object ref = httpProxy_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ httpProxy_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string http_proxy = 12;
+ * @param value The httpProxy to set.
+ * @return This builder for chaining.
+ */
+ public Builder setHttpProxy(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ httpProxy_ = value;
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return this;
+ }
+ /**
+ * string http_proxy = 12;
+ * @return This builder for chaining.
+ */
+ public Builder clearHttpProxy() {
+ httpProxy_ = getDefaultInstance().getHttpProxy();
+ bitField0_ = (bitField0_ & ~0x00000800);
+ onChanged();
+ return this;
+ }
+ /**
+ * string http_proxy = 12;
+ * @param value The bytes for httpProxy to set.
+ * @return This builder for chaining.
+ */
+ public Builder setHttpProxyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ httpProxy_ = value;
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object pgSslMode_ = "";
+ /**
+ * string pg_ssl_mode = 13;
+ * @return The pgSslMode.
+ */
+ public java.lang.String getPgSslMode() {
+ java.lang.Object ref = pgSslMode_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pgSslMode_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string pg_ssl_mode = 13;
+ * @return The bytes for pgSslMode.
+ */
+ public com.google.protobuf.ByteString
+ getPgSslModeBytes() {
+ java.lang.Object ref = pgSslMode_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ pgSslMode_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string pg_ssl_mode = 13;
+ * @param value The pgSslMode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPgSslMode(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ pgSslMode_ = value;
+ bitField0_ |= 0x00001000;
+ onChanged();
+ return this;
+ }
+ /**
+ * string pg_ssl_mode = 13;
+ * @return This builder for chaining.
+ */
+ public Builder clearPgSslMode() {
+ pgSslMode_ = getDefaultInstance().getPgSslMode();
+ bitField0_ = (bitField0_ & ~0x00001000);
+ onChanged();
+ return this;
+ }
+ /**
+ * string pg_ssl_mode = 13;
+ * @param value The bytes for pgSslMode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPgSslModeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ pgSslMode_ = value;
+ bitField0_ |= 0x00001000;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:message.Asset.Specific)
+ }
+
+ // @@protoc_insertion_point(class_scope:message.Asset.Specific)
+ private static final org.jumpserver.wisp.Common.Asset.Specific DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.jumpserver.wisp.Common.Asset.Specific();
+ }
+
+ public static org.jumpserver.wisp.Common.Asset.Specific getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Specific parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Asset.Specific getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private int bitField0_;
+ public static final int ID_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object id_ = "";
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ @java.lang.Override
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ }
+ }
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NAME_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ADDRESS_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object address_ = "";
+ /**
+ * string address = 3;
+ * @return The address.
+ */
+ @java.lang.Override
+ public java.lang.String getAddress() {
+ java.lang.Object ref = address_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ address_ = s;
+ return s;
+ }
+ }
+ /**
+ * string address = 3;
+ * @return The bytes for address.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getAddressBytes() {
+ java.lang.Object ref = address_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ address_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ORG_ID_FIELD_NUMBER = 4;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object orgId_ = "";
+ /**
+ * string org_id = 4;
+ * @return The orgId.
+ */
+ @java.lang.Override
+ public java.lang.String getOrgId() {
+ java.lang.Object ref = orgId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ orgId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string org_id = 4;
+ * @return The bytes for orgId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getOrgIdBytes() {
+ java.lang.Object ref = orgId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ orgId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ORG_NAME_FIELD_NUMBER = 5;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object orgName_ = "";
+ /**
+ * string org_name = 5;
+ * @return The orgName.
+ */
+ @java.lang.Override
+ public java.lang.String getOrgName() {
+ java.lang.Object ref = orgName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ orgName_ = s;
+ return s;
+ }
+ }
+ /**
+ * string org_name = 5;
+ * @return The bytes for orgName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getOrgNameBytes() {
+ java.lang.Object ref = orgName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ orgName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PROTOCOLS_FIELD_NUMBER = 6;
+ @SuppressWarnings("serial")
+ private java.util.List protocols_;
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ @java.lang.Override
+ public java.util.List getProtocolsList() {
+ return protocols_;
+ }
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ @java.lang.Override
+ public java.util.List extends org.jumpserver.wisp.Common.ProtocolOrBuilder>
+ getProtocolsOrBuilderList() {
+ return protocols_;
+ }
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ @java.lang.Override
+ public int getProtocolsCount() {
+ return protocols_.size();
+ }
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Protocol getProtocols(int index) {
+ return protocols_.get(index);
+ }
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.ProtocolOrBuilder getProtocolsOrBuilder(
+ int index) {
+ return protocols_.get(index);
+ }
+
+ public static final int SPECIFIC_FIELD_NUMBER = 7;
+ private org.jumpserver.wisp.Common.Asset.Specific specific_;
+ /**
+ * .message.Asset.Specific specific = 7;
+ * @return Whether the specific field is set.
+ */
+ @java.lang.Override
+ public boolean hasSpecific() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * .message.Asset.Specific specific = 7;
+ * @return The specific.
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Asset.Specific getSpecific() {
+ return specific_ == null ? org.jumpserver.wisp.Common.Asset.Specific.getDefaultInstance() : specific_;
+ }
+ /**
+ * .message.Asset.Specific specific = 7;
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Asset.SpecificOrBuilder getSpecificOrBuilder() {
+ return specific_ == null ? org.jumpserver.wisp.Common.Asset.Specific.getDefaultInstance() : specific_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(address_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, address_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orgId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, orgId_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orgName_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 5, orgName_);
+ }
+ for (int i = 0; i < protocols_.size(); i++) {
+ output.writeMessage(6, protocols_.get(i));
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(7, getSpecific());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(address_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, address_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orgId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, orgId_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orgName_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orgName_);
+ }
+ for (int i = 0; i < protocols_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(6, protocols_.get(i));
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(7, getSpecific());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.jumpserver.wisp.Common.Asset)) {
+ return super.equals(obj);
+ }
+ org.jumpserver.wisp.Common.Asset other = (org.jumpserver.wisp.Common.Asset) obj;
+
+ if (!getId()
+ .equals(other.getId())) return false;
+ if (!getName()
+ .equals(other.getName())) return false;
+ if (!getAddress()
+ .equals(other.getAddress())) return false;
+ if (!getOrgId()
+ .equals(other.getOrgId())) return false;
+ if (!getOrgName()
+ .equals(other.getOrgName())) return false;
+ if (!getProtocolsList()
+ .equals(other.getProtocolsList())) return false;
+ if (hasSpecific() != other.hasSpecific()) return false;
+ if (hasSpecific()) {
+ if (!getSpecific()
+ .equals(other.getSpecific())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
+ hash = (53 * hash) + getAddress().hashCode();
+ hash = (37 * hash) + ORG_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getOrgId().hashCode();
+ hash = (37 * hash) + ORG_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getOrgName().hashCode();
+ if (getProtocolsCount() > 0) {
+ hash = (37 * hash) + PROTOCOLS_FIELD_NUMBER;
+ hash = (53 * hash) + getProtocolsList().hashCode();
+ }
+ if (hasSpecific()) {
+ hash = (37 * hash) + SPECIFIC_FIELD_NUMBER;
+ hash = (53 * hash) + getSpecific().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.jumpserver.wisp.Common.Asset parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Asset parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Asset parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Asset parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Asset parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Asset parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Asset parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.Asset parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static org.jumpserver.wisp.Common.Asset parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static org.jumpserver.wisp.Common.Asset parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Asset parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.Asset parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.jumpserver.wisp.Common.Asset prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code message.Asset}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:message.Asset)
+ org.jumpserver.wisp.Common.AssetOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_Asset_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_Asset_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.Asset.class, org.jumpserver.wisp.Common.Asset.Builder.class);
+ }
+
+ // Construct using org.jumpserver.wisp.Common.Asset.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage
+ .alwaysUseFieldBuilders) {
+ getProtocolsFieldBuilder();
+ getSpecificFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ id_ = "";
+ name_ = "";
+ address_ = "";
+ orgId_ = "";
+ orgName_ = "";
+ if (protocolsBuilder_ == null) {
+ protocols_ = java.util.Collections.emptyList();
+ } else {
+ protocols_ = null;
+ protocolsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000020);
+ specific_ = null;
+ if (specificBuilder_ != null) {
+ specificBuilder_.dispose();
+ specificBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.jumpserver.wisp.Common.internal_static_message_Asset_descriptor;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Asset getDefaultInstanceForType() {
+ return org.jumpserver.wisp.Common.Asset.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Asset build() {
+ org.jumpserver.wisp.Common.Asset result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Asset buildPartial() {
+ org.jumpserver.wisp.Common.Asset result = new org.jumpserver.wisp.Common.Asset(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(org.jumpserver.wisp.Common.Asset result) {
+ if (protocolsBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)) {
+ protocols_ = java.util.Collections.unmodifiableList(protocols_);
+ bitField0_ = (bitField0_ & ~0x00000020);
+ }
+ result.protocols_ = protocols_;
+ } else {
+ result.protocols_ = protocolsBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(org.jumpserver.wisp.Common.Asset result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.id_ = id_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.address_ = address_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.orgId_ = orgId_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.orgName_ = orgName_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.specific_ = specificBuilder_ == null
+ ? specific_
+ : specificBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.jumpserver.wisp.Common.Asset) {
+ return mergeFrom((org.jumpserver.wisp.Common.Asset)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.jumpserver.wisp.Common.Asset other) {
+ if (other == org.jumpserver.wisp.Common.Asset.getDefaultInstance()) return this;
+ if (!other.getId().isEmpty()) {
+ id_ = other.id_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getAddress().isEmpty()) {
+ address_ = other.address_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ if (!other.getOrgId().isEmpty()) {
+ orgId_ = other.orgId_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ if (!other.getOrgName().isEmpty()) {
+ orgName_ = other.orgName_;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ if (protocolsBuilder_ == null) {
+ if (!other.protocols_.isEmpty()) {
+ if (protocols_.isEmpty()) {
+ protocols_ = other.protocols_;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ } else {
+ ensureProtocolsIsMutable();
+ protocols_.addAll(other.protocols_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.protocols_.isEmpty()) {
+ if (protocolsBuilder_.isEmpty()) {
+ protocolsBuilder_.dispose();
+ protocolsBuilder_ = null;
+ protocols_ = other.protocols_;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ protocolsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getProtocolsFieldBuilder() : null;
+ } else {
+ protocolsBuilder_.addAllMessages(other.protocols_);
+ }
+ }
+ }
+ if (other.hasSpecific()) {
+ mergeSpecific(other.getSpecific());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ id_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ name_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ address_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34: {
+ orgId_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ case 42: {
+ orgName_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
+ case 50: {
+ org.jumpserver.wisp.Common.Protocol m =
+ input.readMessage(
+ org.jumpserver.wisp.Common.Protocol.parser(),
+ extensionRegistry);
+ if (protocolsBuilder_ == null) {
+ ensureProtocolsIsMutable();
+ protocols_.add(m);
+ } else {
+ protocolsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 50
+ case 58: {
+ input.readMessage(
+ getSpecificFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 58
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object id_ = "";
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ public com.google.protobuf.ByteString
+ getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string id = 1;
+ * @param value The id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setId(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ id_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+ id_ = getDefaultInstance().getId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string id = 1;
+ * @param value The bytes for id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ id_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object name_ = "";
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string name = 2;
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ name_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 2;
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object address_ = "";
+ /**
+ * string address = 3;
+ * @return The address.
+ */
+ public java.lang.String getAddress() {
+ java.lang.Object ref = address_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ address_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string address = 3;
+ * @return The bytes for address.
+ */
+ public com.google.protobuf.ByteString
+ getAddressBytes() {
+ java.lang.Object ref = address_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ address_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string address = 3;
+ * @param value The address to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAddress(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ address_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * string address = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearAddress() {
+ address_ = getDefaultInstance().getAddress();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * string address = 3;
+ * @param value The bytes for address to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAddressBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ address_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object orgId_ = "";
+ /**
+ * string org_id = 4;
+ * @return The orgId.
+ */
+ public java.lang.String getOrgId() {
+ java.lang.Object ref = orgId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ orgId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string org_id = 4;
+ * @return The bytes for orgId.
+ */
+ public com.google.protobuf.ByteString
+ getOrgIdBytes() {
+ java.lang.Object ref = orgId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ orgId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string org_id = 4;
+ * @param value The orgId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOrgId(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ orgId_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * string org_id = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearOrgId() {
+ orgId_ = getDefaultInstance().getOrgId();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ * string org_id = 4;
+ * @param value The bytes for orgId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOrgIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ orgId_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object orgName_ = "";
+ /**
+ * string org_name = 5;
+ * @return The orgName.
+ */
+ public java.lang.String getOrgName() {
+ java.lang.Object ref = orgName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ orgName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string org_name = 5;
+ * @return The bytes for orgName.
+ */
+ public com.google.protobuf.ByteString
+ getOrgNameBytes() {
+ java.lang.Object ref = orgName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ orgName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string org_name = 5;
+ * @param value The orgName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOrgName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ orgName_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * string org_name = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearOrgName() {
+ orgName_ = getDefaultInstance().getOrgName();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+ /**
+ * string org_name = 5;
+ * @param value The bytes for orgName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOrgNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ orgName_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List protocols_ =
+ java.util.Collections.emptyList();
+ private void ensureProtocolsIsMutable() {
+ if (!((bitField0_ & 0x00000020) != 0)) {
+ protocols_ = new java.util.ArrayList(protocols_);
+ bitField0_ |= 0x00000020;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.jumpserver.wisp.Common.Protocol, org.jumpserver.wisp.Common.Protocol.Builder, org.jumpserver.wisp.Common.ProtocolOrBuilder> protocolsBuilder_;
+
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ public java.util.List getProtocolsList() {
+ if (protocolsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(protocols_);
+ } else {
+ return protocolsBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ public int getProtocolsCount() {
+ if (protocolsBuilder_ == null) {
+ return protocols_.size();
+ } else {
+ return protocolsBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ public org.jumpserver.wisp.Common.Protocol getProtocols(int index) {
+ if (protocolsBuilder_ == null) {
+ return protocols_.get(index);
+ } else {
+ return protocolsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ public Builder setProtocols(
+ int index, org.jumpserver.wisp.Common.Protocol value) {
+ if (protocolsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureProtocolsIsMutable();
+ protocols_.set(index, value);
+ onChanged();
+ } else {
+ protocolsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ public Builder setProtocols(
+ int index, org.jumpserver.wisp.Common.Protocol.Builder builderForValue) {
+ if (protocolsBuilder_ == null) {
+ ensureProtocolsIsMutable();
+ protocols_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ protocolsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ public Builder addProtocols(org.jumpserver.wisp.Common.Protocol value) {
+ if (protocolsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureProtocolsIsMutable();
+ protocols_.add(value);
+ onChanged();
+ } else {
+ protocolsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ public Builder addProtocols(
+ int index, org.jumpserver.wisp.Common.Protocol value) {
+ if (protocolsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureProtocolsIsMutable();
+ protocols_.add(index, value);
+ onChanged();
+ } else {
+ protocolsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ public Builder addProtocols(
+ org.jumpserver.wisp.Common.Protocol.Builder builderForValue) {
+ if (protocolsBuilder_ == null) {
+ ensureProtocolsIsMutable();
+ protocols_.add(builderForValue.build());
+ onChanged();
+ } else {
+ protocolsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ public Builder addProtocols(
+ int index, org.jumpserver.wisp.Common.Protocol.Builder builderForValue) {
+ if (protocolsBuilder_ == null) {
+ ensureProtocolsIsMutable();
+ protocols_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ protocolsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ public Builder addAllProtocols(
+ java.lang.Iterable extends org.jumpserver.wisp.Common.Protocol> values) {
+ if (protocolsBuilder_ == null) {
+ ensureProtocolsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, protocols_);
+ onChanged();
+ } else {
+ protocolsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ public Builder clearProtocols() {
+ if (protocolsBuilder_ == null) {
+ protocols_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ } else {
+ protocolsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ public Builder removeProtocols(int index) {
+ if (protocolsBuilder_ == null) {
+ ensureProtocolsIsMutable();
+ protocols_.remove(index);
+ onChanged();
+ } else {
+ protocolsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ public org.jumpserver.wisp.Common.Protocol.Builder getProtocolsBuilder(
+ int index) {
+ return getProtocolsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ public org.jumpserver.wisp.Common.ProtocolOrBuilder getProtocolsOrBuilder(
+ int index) {
+ if (protocolsBuilder_ == null) {
+ return protocols_.get(index); } else {
+ return protocolsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ public java.util.List extends org.jumpserver.wisp.Common.ProtocolOrBuilder>
+ getProtocolsOrBuilderList() {
+ if (protocolsBuilder_ != null) {
+ return protocolsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(protocols_);
+ }
+ }
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ public org.jumpserver.wisp.Common.Protocol.Builder addProtocolsBuilder() {
+ return getProtocolsFieldBuilder().addBuilder(
+ org.jumpserver.wisp.Common.Protocol.getDefaultInstance());
+ }
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ public org.jumpserver.wisp.Common.Protocol.Builder addProtocolsBuilder(
+ int index) {
+ return getProtocolsFieldBuilder().addBuilder(
+ index, org.jumpserver.wisp.Common.Protocol.getDefaultInstance());
+ }
+ /**
+ * repeated .message.Protocol protocols = 6;
+ */
+ public java.util.List
+ getProtocolsBuilderList() {
+ return getProtocolsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.jumpserver.wisp.Common.Protocol, org.jumpserver.wisp.Common.Protocol.Builder, org.jumpserver.wisp.Common.ProtocolOrBuilder>
+ getProtocolsFieldBuilder() {
+ if (protocolsBuilder_ == null) {
+ protocolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.jumpserver.wisp.Common.Protocol, org.jumpserver.wisp.Common.Protocol.Builder, org.jumpserver.wisp.Common.ProtocolOrBuilder>(
+ protocols_,
+ ((bitField0_ & 0x00000020) != 0),
+ getParentForChildren(),
+ isClean());
+ protocols_ = null;
+ }
+ return protocolsBuilder_;
+ }
+
+ private org.jumpserver.wisp.Common.Asset.Specific specific_;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.Asset.Specific, org.jumpserver.wisp.Common.Asset.Specific.Builder, org.jumpserver.wisp.Common.Asset.SpecificOrBuilder> specificBuilder_;
+ /**
+ * .message.Asset.Specific specific = 7;
+ * @return Whether the specific field is set.
+ */
+ public boolean hasSpecific() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ * .message.Asset.Specific specific = 7;
+ * @return The specific.
+ */
+ public org.jumpserver.wisp.Common.Asset.Specific getSpecific() {
+ if (specificBuilder_ == null) {
+ return specific_ == null ? org.jumpserver.wisp.Common.Asset.Specific.getDefaultInstance() : specific_;
+ } else {
+ return specificBuilder_.getMessage();
+ }
+ }
+ /**
+ * .message.Asset.Specific specific = 7;
+ */
+ public Builder setSpecific(org.jumpserver.wisp.Common.Asset.Specific value) {
+ if (specificBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ specific_ = value;
+ } else {
+ specificBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.Asset.Specific specific = 7;
+ */
+ public Builder setSpecific(
+ org.jumpserver.wisp.Common.Asset.Specific.Builder builderForValue) {
+ if (specificBuilder_ == null) {
+ specific_ = builderForValue.build();
+ } else {
+ specificBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.Asset.Specific specific = 7;
+ */
+ public Builder mergeSpecific(org.jumpserver.wisp.Common.Asset.Specific value) {
+ if (specificBuilder_ == null) {
+ if (((bitField0_ & 0x00000040) != 0) &&
+ specific_ != null &&
+ specific_ != org.jumpserver.wisp.Common.Asset.Specific.getDefaultInstance()) {
+ getSpecificBuilder().mergeFrom(value);
+ } else {
+ specific_ = value;
+ }
+ } else {
+ specificBuilder_.mergeFrom(value);
+ }
+ if (specific_ != null) {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .message.Asset.Specific specific = 7;
+ */
+ public Builder clearSpecific() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ specific_ = null;
+ if (specificBuilder_ != null) {
+ specificBuilder_.dispose();
+ specificBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.Asset.Specific specific = 7;
+ */
+ public org.jumpserver.wisp.Common.Asset.Specific.Builder getSpecificBuilder() {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return getSpecificFieldBuilder().getBuilder();
+ }
+ /**
+ * .message.Asset.Specific specific = 7;
+ */
+ public org.jumpserver.wisp.Common.Asset.SpecificOrBuilder getSpecificOrBuilder() {
+ if (specificBuilder_ != null) {
+ return specificBuilder_.getMessageOrBuilder();
+ } else {
+ return specific_ == null ?
+ org.jumpserver.wisp.Common.Asset.Specific.getDefaultInstance() : specific_;
+ }
+ }
+ /**
+ * .message.Asset.Specific specific = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.Asset.Specific, org.jumpserver.wisp.Common.Asset.Specific.Builder, org.jumpserver.wisp.Common.Asset.SpecificOrBuilder>
+ getSpecificFieldBuilder() {
+ if (specificBuilder_ == null) {
+ specificBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.Asset.Specific, org.jumpserver.wisp.Common.Asset.Specific.Builder, org.jumpserver.wisp.Common.Asset.SpecificOrBuilder>(
+ getSpecific(),
+ getParentForChildren(),
+ isClean());
+ specific_ = null;
+ }
+ return specificBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:message.Asset)
+ }
+
+ // @@protoc_insertion_point(class_scope:message.Asset)
+ private static final org.jumpserver.wisp.Common.Asset DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.jumpserver.wisp.Common.Asset();
+ }
+
+ public static org.jumpserver.wisp.Common.Asset getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Asset parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Asset getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface ProtocolOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:message.Protocol)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * int32 id = 1;
+ * @return The id.
+ */
+ int getId();
+
+ /**
+ * int32 port = 3;
+ * @return The port.
+ */
+ int getPort();
+ }
+ /**
+ * Protobuf type {@code message.Protocol}
+ */
+ public static final class Protocol extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:message.Protocol)
+ ProtocolOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ Protocol.class.getName());
+ }
+ // Use Protocol.newBuilder() to construct.
+ private Protocol(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private Protocol() {
+ name_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_Protocol_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_Protocol_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.Protocol.class, org.jumpserver.wisp.Common.Protocol.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ID_FIELD_NUMBER = 1;
+ private int id_ = 0;
+ /**
+ * int32 id = 1;
+ * @return The id.
+ */
+ @java.lang.Override
+ public int getId() {
+ return id_;
+ }
+
+ public static final int PORT_FIELD_NUMBER = 3;
+ private int port_ = 0;
+ /**
+ * int32 port = 3;
+ * @return The port.
+ */
+ @java.lang.Override
+ public int getPort() {
+ return port_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (id_ != 0) {
+ output.writeInt32(1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, name_);
+ }
+ if (port_ != 0) {
+ output.writeInt32(3, port_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (id_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_);
+ }
+ if (port_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(3, port_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.jumpserver.wisp.Common.Protocol)) {
+ return super.equals(obj);
+ }
+ org.jumpserver.wisp.Common.Protocol other = (org.jumpserver.wisp.Common.Protocol) obj;
+
+ if (!getName()
+ .equals(other.getName())) return false;
+ if (getId()
+ != other.getId()) return false;
+ if (getPort()
+ != other.getPort()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId();
+ hash = (37 * hash) + PORT_FIELD_NUMBER;
+ hash = (53 * hash) + getPort();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.jumpserver.wisp.Common.Protocol parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Protocol parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Protocol parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Protocol parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Protocol parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Protocol parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Protocol parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.Protocol parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static org.jumpserver.wisp.Common.Protocol parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static org.jumpserver.wisp.Common.Protocol parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Protocol parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.Protocol parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.jumpserver.wisp.Common.Protocol prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code message.Protocol}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:message.Protocol)
+ org.jumpserver.wisp.Common.ProtocolOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_Protocol_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_Protocol_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.Protocol.class, org.jumpserver.wisp.Common.Protocol.Builder.class);
+ }
+
+ // Construct using org.jumpserver.wisp.Common.Protocol.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ name_ = "";
+ id_ = 0;
+ port_ = 0;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.jumpserver.wisp.Common.internal_static_message_Protocol_descriptor;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Protocol getDefaultInstanceForType() {
+ return org.jumpserver.wisp.Common.Protocol.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Protocol build() {
+ org.jumpserver.wisp.Common.Protocol result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Protocol buildPartial() {
+ org.jumpserver.wisp.Common.Protocol result = new org.jumpserver.wisp.Common.Protocol(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(org.jumpserver.wisp.Common.Protocol result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.id_ = id_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.port_ = port_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.jumpserver.wisp.Common.Protocol) {
+ return mergeFrom((org.jumpserver.wisp.Common.Protocol)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.jumpserver.wisp.Common.Protocol other) {
+ if (other == org.jumpserver.wisp.Common.Protocol.getDefaultInstance()) return this;
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.getId() != 0) {
+ setId(other.getId());
+ }
+ if (other.getPort() != 0) {
+ setPort(other.getPort());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ id_ = input.readInt32();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 8
+ case 18: {
+ name_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 18
+ case 24: {
+ port_ = input.readInt32();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object name_ = "";
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string name = 2;
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 2;
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private int id_ ;
+ /**
+ * int32 id = 1;
+ * @return The id.
+ */
+ @java.lang.Override
+ public int getId() {
+ return id_;
+ }
+ /**
+ * int32 id = 1;
+ * @param value The id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setId(int value) {
+
+ id_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ id_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int port_ ;
+ /**
+ * int32 port = 3;
+ * @return The port.
+ */
+ @java.lang.Override
+ public int getPort() {
+ return port_;
+ }
+ /**
+ * int32 port = 3;
+ * @param value The port to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPort(int value) {
+
+ port_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 port = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearPort() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ port_ = 0;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:message.Protocol)
+ }
+
+ // @@protoc_insertion_point(class_scope:message.Protocol)
+ private static final org.jumpserver.wisp.Common.Protocol DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.jumpserver.wisp.Common.Protocol();
+ }
+
+ public static org.jumpserver.wisp.Common.Protocol getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Protocol parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Protocol getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface GatewayOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:message.Gateway)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ java.lang.String getId();
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ com.google.protobuf.ByteString
+ getIdBytes();
+
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * string ip = 3;
+ * @return The ip.
+ */
+ java.lang.String getIp();
+ /**
+ * string ip = 3;
+ * @return The bytes for ip.
+ */
+ com.google.protobuf.ByteString
+ getIpBytes();
+
+ /**
+ * int32 port = 4;
+ * @return The port.
+ */
+ int getPort();
+
+ /**
+ * string protocol = 5;
+ * @return The protocol.
+ */
+ java.lang.String getProtocol();
+ /**
+ * string protocol = 5;
+ * @return The bytes for protocol.
+ */
+ com.google.protobuf.ByteString
+ getProtocolBytes();
+
+ /**
+ * string username = 6;
+ * @return The username.
+ */
+ java.lang.String getUsername();
+ /**
+ * string username = 6;
+ * @return The bytes for username.
+ */
+ com.google.protobuf.ByteString
+ getUsernameBytes();
+
+ /**
+ * string password = 7;
+ * @return The password.
+ */
+ java.lang.String getPassword();
+ /**
+ * string password = 7;
+ * @return The bytes for password.
+ */
+ com.google.protobuf.ByteString
+ getPasswordBytes();
+
+ /**
+ * string private_key = 8;
+ * @return The privateKey.
+ */
+ java.lang.String getPrivateKey();
+ /**
+ * string private_key = 8;
+ * @return The bytes for privateKey.
+ */
+ com.google.protobuf.ByteString
+ getPrivateKeyBytes();
+ }
+ /**
+ * Protobuf type {@code message.Gateway}
+ */
+ public static final class Gateway extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:message.Gateway)
+ GatewayOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ Gateway.class.getName());
+ }
+ // Use Gateway.newBuilder() to construct.
+ private Gateway(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private Gateway() {
+ id_ = "";
+ name_ = "";
+ ip_ = "";
+ protocol_ = "";
+ username_ = "";
+ password_ = "";
+ privateKey_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_Gateway_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_Gateway_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.Gateway.class, org.jumpserver.wisp.Common.Gateway.Builder.class);
+ }
+
+ public static final int ID_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object id_ = "";
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ @java.lang.Override
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ }
+ }
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NAME_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int IP_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object ip_ = "";
+ /**
+ * string ip = 3;
+ * @return The ip.
+ */
+ @java.lang.Override
+ public java.lang.String getIp() {
+ java.lang.Object ref = ip_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ ip_ = s;
+ return s;
+ }
+ }
+ /**
+ * string ip = 3;
+ * @return The bytes for ip.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getIpBytes() {
+ java.lang.Object ref = ip_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ ip_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PORT_FIELD_NUMBER = 4;
+ private int port_ = 0;
+ /**
+ * int32 port = 4;
+ * @return The port.
+ */
+ @java.lang.Override
+ public int getPort() {
+ return port_;
+ }
+
+ public static final int PROTOCOL_FIELD_NUMBER = 5;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object protocol_ = "";
+ /**
+ * string protocol = 5;
+ * @return The protocol.
+ */
+ @java.lang.Override
+ public java.lang.String getProtocol() {
+ java.lang.Object ref = protocol_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ protocol_ = s;
+ return s;
+ }
+ }
+ /**
+ * string protocol = 5;
+ * @return The bytes for protocol.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getProtocolBytes() {
+ java.lang.Object ref = protocol_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ protocol_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int USERNAME_FIELD_NUMBER = 6;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object username_ = "";
+ /**
+ * string username = 6;
+ * @return The username.
+ */
+ @java.lang.Override
+ public java.lang.String getUsername() {
+ java.lang.Object ref = username_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ username_ = s;
+ return s;
+ }
+ }
+ /**
+ * string username = 6;
+ * @return The bytes for username.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getUsernameBytes() {
+ java.lang.Object ref = username_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ username_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PASSWORD_FIELD_NUMBER = 7;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object password_ = "";
+ /**
+ * string password = 7;
+ * @return The password.
+ */
+ @java.lang.Override
+ public java.lang.String getPassword() {
+ java.lang.Object ref = password_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ password_ = s;
+ return s;
+ }
+ }
+ /**
+ * string password = 7;
+ * @return The bytes for password.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getPasswordBytes() {
+ java.lang.Object ref = password_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ password_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PRIVATE_KEY_FIELD_NUMBER = 8;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object privateKey_ = "";
+ /**
+ * string private_key = 8;
+ * @return The privateKey.
+ */
+ @java.lang.Override
+ public java.lang.String getPrivateKey() {
+ java.lang.Object ref = privateKey_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ privateKey_ = s;
+ return s;
+ }
+ }
+ /**
+ * string private_key = 8;
+ * @return The bytes for privateKey.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getPrivateKeyBytes() {
+ java.lang.Object ref = privateKey_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ privateKey_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ip_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, ip_);
+ }
+ if (port_ != 0) {
+ output.writeInt32(4, port_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(protocol_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 5, protocol_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(username_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 6, username_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(password_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 7, password_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(privateKey_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 8, privateKey_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ip_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, ip_);
+ }
+ if (port_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(4, port_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(protocol_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(5, protocol_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(username_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(6, username_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(password_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(7, password_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(privateKey_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(8, privateKey_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.jumpserver.wisp.Common.Gateway)) {
+ return super.equals(obj);
+ }
+ org.jumpserver.wisp.Common.Gateway other = (org.jumpserver.wisp.Common.Gateway) obj;
+
+ if (!getId()
+ .equals(other.getId())) return false;
+ if (!getName()
+ .equals(other.getName())) return false;
+ if (!getIp()
+ .equals(other.getIp())) return false;
+ if (getPort()
+ != other.getPort()) return false;
+ if (!getProtocol()
+ .equals(other.getProtocol())) return false;
+ if (!getUsername()
+ .equals(other.getUsername())) return false;
+ if (!getPassword()
+ .equals(other.getPassword())) return false;
+ if (!getPrivateKey()
+ .equals(other.getPrivateKey())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + IP_FIELD_NUMBER;
+ hash = (53 * hash) + getIp().hashCode();
+ hash = (37 * hash) + PORT_FIELD_NUMBER;
+ hash = (53 * hash) + getPort();
+ hash = (37 * hash) + PROTOCOL_FIELD_NUMBER;
+ hash = (53 * hash) + getProtocol().hashCode();
+ hash = (37 * hash) + USERNAME_FIELD_NUMBER;
+ hash = (53 * hash) + getUsername().hashCode();
+ hash = (37 * hash) + PASSWORD_FIELD_NUMBER;
+ hash = (53 * hash) + getPassword().hashCode();
+ hash = (37 * hash) + PRIVATE_KEY_FIELD_NUMBER;
+ hash = (53 * hash) + getPrivateKey().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.jumpserver.wisp.Common.Gateway parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Gateway parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Gateway parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Gateway parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Gateway parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Gateway parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Gateway parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.Gateway parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static org.jumpserver.wisp.Common.Gateway parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static org.jumpserver.wisp.Common.Gateway parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Gateway parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.Gateway parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.jumpserver.wisp.Common.Gateway prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code message.Gateway}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:message.Gateway)
+ org.jumpserver.wisp.Common.GatewayOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_Gateway_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_Gateway_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.Gateway.class, org.jumpserver.wisp.Common.Gateway.Builder.class);
+ }
+
+ // Construct using org.jumpserver.wisp.Common.Gateway.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ id_ = "";
+ name_ = "";
+ ip_ = "";
+ port_ = 0;
+ protocol_ = "";
+ username_ = "";
+ password_ = "";
+ privateKey_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.jumpserver.wisp.Common.internal_static_message_Gateway_descriptor;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Gateway getDefaultInstanceForType() {
+ return org.jumpserver.wisp.Common.Gateway.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Gateway build() {
+ org.jumpserver.wisp.Common.Gateway result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Gateway buildPartial() {
+ org.jumpserver.wisp.Common.Gateway result = new org.jumpserver.wisp.Common.Gateway(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(org.jumpserver.wisp.Common.Gateway result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.id_ = id_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.ip_ = ip_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.port_ = port_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.protocol_ = protocol_;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.username_ = username_;
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.password_ = password_;
+ }
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.privateKey_ = privateKey_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.jumpserver.wisp.Common.Gateway) {
+ return mergeFrom((org.jumpserver.wisp.Common.Gateway)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.jumpserver.wisp.Common.Gateway other) {
+ if (other == org.jumpserver.wisp.Common.Gateway.getDefaultInstance()) return this;
+ if (!other.getId().isEmpty()) {
+ id_ = other.id_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getIp().isEmpty()) {
+ ip_ = other.ip_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ if (other.getPort() != 0) {
+ setPort(other.getPort());
+ }
+ if (!other.getProtocol().isEmpty()) {
+ protocol_ = other.protocol_;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ if (!other.getUsername().isEmpty()) {
+ username_ = other.username_;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ if (!other.getPassword().isEmpty()) {
+ password_ = other.password_;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
+ if (!other.getPrivateKey().isEmpty()) {
+ privateKey_ = other.privateKey_;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ id_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ name_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ ip_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 32: {
+ port_ = input.readInt32();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 32
+ case 42: {
+ protocol_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
+ case 50: {
+ username_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
+ case 58: {
+ password_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 58
+ case 66: {
+ privateKey_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 66
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object id_ = "";
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ public com.google.protobuf.ByteString
+ getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string id = 1;
+ * @param value The id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setId(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ id_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+ id_ = getDefaultInstance().getId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string id = 1;
+ * @param value The bytes for id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ id_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object name_ = "";
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string name = 2;
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ name_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 2;
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object ip_ = "";
+ /**
+ * string ip = 3;
+ * @return The ip.
+ */
+ public java.lang.String getIp() {
+ java.lang.Object ref = ip_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ ip_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string ip = 3;
+ * @return The bytes for ip.
+ */
+ public com.google.protobuf.ByteString
+ getIpBytes() {
+ java.lang.Object ref = ip_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ ip_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string ip = 3;
+ * @param value The ip to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIp(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ ip_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * string ip = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearIp() {
+ ip_ = getDefaultInstance().getIp();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * string ip = 3;
+ * @param value The bytes for ip to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIpBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ ip_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private int port_ ;
+ /**
+ * int32 port = 4;
+ * @return The port.
+ */
+ @java.lang.Override
+ public int getPort() {
+ return port_;
+ }
+ /**
+ * int32 port = 4;
+ * @param value The port to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPort(int value) {
+
+ port_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 port = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearPort() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ port_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object protocol_ = "";
+ /**
+ * string protocol = 5;
+ * @return The protocol.
+ */
+ public java.lang.String getProtocol() {
+ java.lang.Object ref = protocol_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ protocol_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string protocol = 5;
+ * @return The bytes for protocol.
+ */
+ public com.google.protobuf.ByteString
+ getProtocolBytes() {
+ java.lang.Object ref = protocol_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ protocol_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string protocol = 5;
+ * @param value The protocol to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProtocol(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ protocol_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * string protocol = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearProtocol() {
+ protocol_ = getDefaultInstance().getProtocol();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+ /**
+ * string protocol = 5;
+ * @param value The bytes for protocol to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProtocolBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ protocol_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object username_ = "";
+ /**
+ * string username = 6;
+ * @return The username.
+ */
+ public java.lang.String getUsername() {
+ java.lang.Object ref = username_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ username_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string username = 6;
+ * @return The bytes for username.
+ */
+ public com.google.protobuf.ByteString
+ getUsernameBytes() {
+ java.lang.Object ref = username_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ username_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string username = 6;
+ * @param value The username to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUsername(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ username_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * string username = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearUsername() {
+ username_ = getDefaultInstance().getUsername();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+ /**
+ * string username = 6;
+ * @param value The bytes for username to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUsernameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ username_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object password_ = "";
+ /**
+ * string password = 7;
+ * @return The password.
+ */
+ public java.lang.String getPassword() {
+ java.lang.Object ref = password_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ password_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string password = 7;
+ * @return The bytes for password.
+ */
+ public com.google.protobuf.ByteString
+ getPasswordBytes() {
+ java.lang.Object ref = password_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ password_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string password = 7;
+ * @param value The password to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPassword(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ password_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ * string password = 7;
+ * @return This builder for chaining.
+ */
+ public Builder clearPassword() {
+ password_ = getDefaultInstance().getPassword();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ return this;
+ }
+ /**
+ * string password = 7;
+ * @param value The bytes for password to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPasswordBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ password_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object privateKey_ = "";
+ /**
+ * string private_key = 8;
+ * @return The privateKey.
+ */
+ public java.lang.String getPrivateKey() {
+ java.lang.Object ref = privateKey_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ privateKey_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string private_key = 8;
+ * @return The bytes for privateKey.
+ */
+ public com.google.protobuf.ByteString
+ getPrivateKeyBytes() {
+ java.lang.Object ref = privateKey_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ privateKey_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string private_key = 8;
+ * @param value The privateKey to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPrivateKey(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ privateKey_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ * string private_key = 8;
+ * @return This builder for chaining.
+ */
+ public Builder clearPrivateKey() {
+ privateKey_ = getDefaultInstance().getPrivateKey();
+ bitField0_ = (bitField0_ & ~0x00000080);
+ onChanged();
+ return this;
+ }
+ /**
+ * string private_key = 8;
+ * @param value The bytes for privateKey to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPrivateKeyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ privateKey_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:message.Gateway)
+ }
+
+ // @@protoc_insertion_point(class_scope:message.Gateway)
+ private static final org.jumpserver.wisp.Common.Gateway DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.jumpserver.wisp.Common.Gateway();
+ }
+
+ public static org.jumpserver.wisp.Common.Gateway getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Gateway parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Gateway getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface PermissionOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:message.Permission)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * bool enable_connect = 1;
+ * @return The enableConnect.
+ */
+ boolean getEnableConnect();
+
+ /**
+ * bool enable_download = 2;
+ * @return The enableDownload.
+ */
+ boolean getEnableDownload();
+
+ /**
+ * bool enable_upload = 3;
+ * @return The enableUpload.
+ */
+ boolean getEnableUpload();
+
+ /**
+ * bool enable_copy = 4;
+ * @return The enableCopy.
+ */
+ boolean getEnableCopy();
+
+ /**
+ * bool enable_paste = 5;
+ * @return The enablePaste.
+ */
+ boolean getEnablePaste();
+ }
+ /**
+ * Protobuf type {@code message.Permission}
+ */
+ public static final class Permission extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:message.Permission)
+ PermissionOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ Permission.class.getName());
+ }
+ // Use Permission.newBuilder() to construct.
+ private Permission(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private Permission() {
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_Permission_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_Permission_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.Permission.class, org.jumpserver.wisp.Common.Permission.Builder.class);
+ }
+
+ public static final int ENABLE_CONNECT_FIELD_NUMBER = 1;
+ private boolean enableConnect_ = false;
+ /**
+ * bool enable_connect = 1;
+ * @return The enableConnect.
+ */
+ @java.lang.Override
+ public boolean getEnableConnect() {
+ return enableConnect_;
+ }
+
+ public static final int ENABLE_DOWNLOAD_FIELD_NUMBER = 2;
+ private boolean enableDownload_ = false;
+ /**
+ * bool enable_download = 2;
+ * @return The enableDownload.
+ */
+ @java.lang.Override
+ public boolean getEnableDownload() {
+ return enableDownload_;
+ }
+
+ public static final int ENABLE_UPLOAD_FIELD_NUMBER = 3;
+ private boolean enableUpload_ = false;
+ /**
+ * bool enable_upload = 3;
+ * @return The enableUpload.
+ */
+ @java.lang.Override
+ public boolean getEnableUpload() {
+ return enableUpload_;
+ }
+
+ public static final int ENABLE_COPY_FIELD_NUMBER = 4;
+ private boolean enableCopy_ = false;
+ /**
+ * bool enable_copy = 4;
+ * @return The enableCopy.
+ */
+ @java.lang.Override
+ public boolean getEnableCopy() {
+ return enableCopy_;
+ }
+
+ public static final int ENABLE_PASTE_FIELD_NUMBER = 5;
+ private boolean enablePaste_ = false;
+ /**
+ * bool enable_paste = 5;
+ * @return The enablePaste.
+ */
+ @java.lang.Override
+ public boolean getEnablePaste() {
+ return enablePaste_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (enableConnect_ != false) {
+ output.writeBool(1, enableConnect_);
+ }
+ if (enableDownload_ != false) {
+ output.writeBool(2, enableDownload_);
+ }
+ if (enableUpload_ != false) {
+ output.writeBool(3, enableUpload_);
+ }
+ if (enableCopy_ != false) {
+ output.writeBool(4, enableCopy_);
+ }
+ if (enablePaste_ != false) {
+ output.writeBool(5, enablePaste_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (enableConnect_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(1, enableConnect_);
+ }
+ if (enableDownload_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, enableDownload_);
+ }
+ if (enableUpload_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, enableUpload_);
+ }
+ if (enableCopy_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(4, enableCopy_);
+ }
+ if (enablePaste_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(5, enablePaste_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.jumpserver.wisp.Common.Permission)) {
+ return super.equals(obj);
+ }
+ org.jumpserver.wisp.Common.Permission other = (org.jumpserver.wisp.Common.Permission) obj;
+
+ if (getEnableConnect()
+ != other.getEnableConnect()) return false;
+ if (getEnableDownload()
+ != other.getEnableDownload()) return false;
+ if (getEnableUpload()
+ != other.getEnableUpload()) return false;
+ if (getEnableCopy()
+ != other.getEnableCopy()) return false;
+ if (getEnablePaste()
+ != other.getEnablePaste()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ENABLE_CONNECT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getEnableConnect());
+ hash = (37 * hash) + ENABLE_DOWNLOAD_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getEnableDownload());
+ hash = (37 * hash) + ENABLE_UPLOAD_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getEnableUpload());
+ hash = (37 * hash) + ENABLE_COPY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getEnableCopy());
+ hash = (37 * hash) + ENABLE_PASTE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getEnablePaste());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.jumpserver.wisp.Common.Permission parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Permission parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Permission parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Permission parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Permission parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Permission parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Permission parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.Permission parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static org.jumpserver.wisp.Common.Permission parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static org.jumpserver.wisp.Common.Permission parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Permission parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.Permission parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.jumpserver.wisp.Common.Permission prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code message.Permission}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:message.Permission)
+ org.jumpserver.wisp.Common.PermissionOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_Permission_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_Permission_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.Permission.class, org.jumpserver.wisp.Common.Permission.Builder.class);
+ }
+
+ // Construct using org.jumpserver.wisp.Common.Permission.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ enableConnect_ = false;
+ enableDownload_ = false;
+ enableUpload_ = false;
+ enableCopy_ = false;
+ enablePaste_ = false;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.jumpserver.wisp.Common.internal_static_message_Permission_descriptor;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Permission getDefaultInstanceForType() {
+ return org.jumpserver.wisp.Common.Permission.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Permission build() {
+ org.jumpserver.wisp.Common.Permission result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Permission buildPartial() {
+ org.jumpserver.wisp.Common.Permission result = new org.jumpserver.wisp.Common.Permission(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(org.jumpserver.wisp.Common.Permission result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.enableConnect_ = enableConnect_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.enableDownload_ = enableDownload_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.enableUpload_ = enableUpload_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.enableCopy_ = enableCopy_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.enablePaste_ = enablePaste_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.jumpserver.wisp.Common.Permission) {
+ return mergeFrom((org.jumpserver.wisp.Common.Permission)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.jumpserver.wisp.Common.Permission other) {
+ if (other == org.jumpserver.wisp.Common.Permission.getDefaultInstance()) return this;
+ if (other.getEnableConnect() != false) {
+ setEnableConnect(other.getEnableConnect());
+ }
+ if (other.getEnableDownload() != false) {
+ setEnableDownload(other.getEnableDownload());
+ }
+ if (other.getEnableUpload() != false) {
+ setEnableUpload(other.getEnableUpload());
+ }
+ if (other.getEnableCopy() != false) {
+ setEnableCopy(other.getEnableCopy());
+ }
+ if (other.getEnablePaste() != false) {
+ setEnablePaste(other.getEnablePaste());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ enableConnect_ = input.readBool();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 16: {
+ enableDownload_ = input.readBool();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 24: {
+ enableUpload_ = input.readBool();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
+ case 32: {
+ enableCopy_ = input.readBool();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 32
+ case 40: {
+ enablePaste_ = input.readBool();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 40
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private boolean enableConnect_ ;
+ /**
+ * bool enable_connect = 1;
+ * @return The enableConnect.
+ */
+ @java.lang.Override
+ public boolean getEnableConnect() {
+ return enableConnect_;
+ }
+ /**
+ * bool enable_connect = 1;
+ * @param value The enableConnect to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnableConnect(boolean value) {
+
+ enableConnect_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool enable_connect = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearEnableConnect() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ enableConnect_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean enableDownload_ ;
+ /**
+ * bool enable_download = 2;
+ * @return The enableDownload.
+ */
+ @java.lang.Override
+ public boolean getEnableDownload() {
+ return enableDownload_;
+ }
+ /**
+ * bool enable_download = 2;
+ * @param value The enableDownload to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnableDownload(boolean value) {
+
+ enableDownload_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool enable_download = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearEnableDownload() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ enableDownload_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean enableUpload_ ;
+ /**
+ * bool enable_upload = 3;
+ * @return The enableUpload.
+ */
+ @java.lang.Override
+ public boolean getEnableUpload() {
+ return enableUpload_;
+ }
+ /**
+ * bool enable_upload = 3;
+ * @param value The enableUpload to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnableUpload(boolean value) {
+
+ enableUpload_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool enable_upload = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearEnableUpload() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ enableUpload_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean enableCopy_ ;
+ /**
+ * bool enable_copy = 4;
+ * @return The enableCopy.
+ */
+ @java.lang.Override
+ public boolean getEnableCopy() {
+ return enableCopy_;
+ }
+ /**
+ * bool enable_copy = 4;
+ * @param value The enableCopy to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnableCopy(boolean value) {
+
+ enableCopy_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool enable_copy = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearEnableCopy() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ enableCopy_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean enablePaste_ ;
+ /**
+ * bool enable_paste = 5;
+ * @return The enablePaste.
+ */
+ @java.lang.Override
+ public boolean getEnablePaste() {
+ return enablePaste_;
+ }
+ /**
+ * bool enable_paste = 5;
+ * @param value The enablePaste to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnablePaste(boolean value) {
+
+ enablePaste_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool enable_paste = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearEnablePaste() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ enablePaste_ = false;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:message.Permission)
+ }
+
+ // @@protoc_insertion_point(class_scope:message.Permission)
+ private static final org.jumpserver.wisp.Common.Permission DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.jumpserver.wisp.Common.Permission();
+ }
+
+ public static org.jumpserver.wisp.Common.Permission getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Permission parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Permission getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface CommandACLOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:message.CommandACL)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ java.lang.String getId();
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ com.google.protobuf.ByteString
+ getIdBytes();
+
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * int32 priority = 3;
+ * @return The priority.
+ */
+ int getPriority();
+
+ /**
+ * .message.CommandACL.Action action = 5;
+ * @return The enum numeric value on the wire for action.
+ */
+ int getActionValue();
+ /**
+ * .message.CommandACL.Action action = 5;
+ * @return The action.
+ */
+ org.jumpserver.wisp.Common.CommandACL.Action getAction();
+
+ /**
+ * bool is_active = 6;
+ * @return The isActive.
+ */
+ boolean getIsActive();
+
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ java.util.List
+ getCommandGroupsList();
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ org.jumpserver.wisp.Common.CommandGroup getCommandGroups(int index);
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ int getCommandGroupsCount();
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ java.util.List extends org.jumpserver.wisp.Common.CommandGroupOrBuilder>
+ getCommandGroupsOrBuilderList();
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ org.jumpserver.wisp.Common.CommandGroupOrBuilder getCommandGroupsOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code message.CommandACL}
+ */
+ public static final class CommandACL extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:message.CommandACL)
+ CommandACLOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ CommandACL.class.getName());
+ }
+ // Use CommandACL.newBuilder() to construct.
+ private CommandACL(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private CommandACL() {
+ id_ = "";
+ name_ = "";
+ action_ = 0;
+ commandGroups_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_CommandACL_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_CommandACL_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.CommandACL.class, org.jumpserver.wisp.Common.CommandACL.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code message.CommandACL.Action}
+ */
+ public enum Action
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * Reject = 0;
+ */
+ Reject(0),
+ /**
+ * Accept = 1;
+ */
+ Accept(1),
+ /**
+ * Review = 2;
+ */
+ Review(2),
+ /**
+ * Warning = 3;
+ */
+ Warning(3),
+ /**
+ * NotifyWarning = 4;
+ */
+ NotifyWarning(4),
+ /**
+ * Unknown = 5;
+ */
+ Unknown(5),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ Action.class.getName());
+ }
+ /**
+ * Reject = 0;
+ */
+ public static final int Reject_VALUE = 0;
+ /**
+ * Accept = 1;
+ */
+ public static final int Accept_VALUE = 1;
+ /**
+ * Review = 2;
+ */
+ public static final int Review_VALUE = 2;
+ /**
+ * Warning = 3;
+ */
+ public static final int Warning_VALUE = 3;
+ /**
+ * NotifyWarning = 4;
+ */
+ public static final int NotifyWarning_VALUE = 4;
+ /**
+ * Unknown = 5;
+ */
+ public static final int Unknown_VALUE = 5;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static Action valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static Action forNumber(int value) {
+ switch (value) {
+ case 0: return Reject;
+ case 1: return Accept;
+ case 2: return Review;
+ case 3: return Warning;
+ case 4: return NotifyWarning;
+ case 5: return Unknown;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ Action> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public Action findValueByNumber(int number) {
+ return Action.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.CommandACL.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final Action[] VALUES = values();
+
+ public static Action valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private Action(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:message.CommandACL.Action)
+ }
+
+ public static final int ID_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object id_ = "";
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ @java.lang.Override
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ }
+ }
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NAME_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PRIORITY_FIELD_NUMBER = 3;
+ private int priority_ = 0;
+ /**
+ * int32 priority = 3;
+ * @return The priority.
+ */
+ @java.lang.Override
+ public int getPriority() {
+ return priority_;
+ }
+
+ public static final int ACTION_FIELD_NUMBER = 5;
+ private int action_ = 0;
+ /**
+ * .message.CommandACL.Action action = 5;
+ * @return The enum numeric value on the wire for action.
+ */
+ @java.lang.Override public int getActionValue() {
+ return action_;
+ }
+ /**
+ * .message.CommandACL.Action action = 5;
+ * @return The action.
+ */
+ @java.lang.Override public org.jumpserver.wisp.Common.CommandACL.Action getAction() {
+ org.jumpserver.wisp.Common.CommandACL.Action result = org.jumpserver.wisp.Common.CommandACL.Action.forNumber(action_);
+ return result == null ? org.jumpserver.wisp.Common.CommandACL.Action.UNRECOGNIZED : result;
+ }
+
+ public static final int IS_ACTIVE_FIELD_NUMBER = 6;
+ private boolean isActive_ = false;
+ /**
+ * bool is_active = 6;
+ * @return The isActive.
+ */
+ @java.lang.Override
+ public boolean getIsActive() {
+ return isActive_;
+ }
+
+ public static final int COMMAND_GROUPS_FIELD_NUMBER = 7;
+ @SuppressWarnings("serial")
+ private java.util.List commandGroups_;
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ @java.lang.Override
+ public java.util.List getCommandGroupsList() {
+ return commandGroups_;
+ }
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ @java.lang.Override
+ public java.util.List extends org.jumpserver.wisp.Common.CommandGroupOrBuilder>
+ getCommandGroupsOrBuilderList() {
+ return commandGroups_;
+ }
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ @java.lang.Override
+ public int getCommandGroupsCount() {
+ return commandGroups_.size();
+ }
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.CommandGroup getCommandGroups(int index) {
+ return commandGroups_.get(index);
+ }
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.CommandGroupOrBuilder getCommandGroupsOrBuilder(
+ int index) {
+ return commandGroups_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, name_);
+ }
+ if (priority_ != 0) {
+ output.writeInt32(3, priority_);
+ }
+ if (action_ != org.jumpserver.wisp.Common.CommandACL.Action.Reject.getNumber()) {
+ output.writeEnum(5, action_);
+ }
+ if (isActive_ != false) {
+ output.writeBool(6, isActive_);
+ }
+ for (int i = 0; i < commandGroups_.size(); i++) {
+ output.writeMessage(7, commandGroups_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_);
+ }
+ if (priority_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(3, priority_);
+ }
+ if (action_ != org.jumpserver.wisp.Common.CommandACL.Action.Reject.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(5, action_);
+ }
+ if (isActive_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(6, isActive_);
+ }
+ for (int i = 0; i < commandGroups_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(7, commandGroups_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.jumpserver.wisp.Common.CommandACL)) {
+ return super.equals(obj);
+ }
+ org.jumpserver.wisp.Common.CommandACL other = (org.jumpserver.wisp.Common.CommandACL) obj;
+
+ if (!getId()
+ .equals(other.getId())) return false;
+ if (!getName()
+ .equals(other.getName())) return false;
+ if (getPriority()
+ != other.getPriority()) return false;
+ if (action_ != other.action_) return false;
+ if (getIsActive()
+ != other.getIsActive()) return false;
+ if (!getCommandGroupsList()
+ .equals(other.getCommandGroupsList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + PRIORITY_FIELD_NUMBER;
+ hash = (53 * hash) + getPriority();
+ hash = (37 * hash) + ACTION_FIELD_NUMBER;
+ hash = (53 * hash) + action_;
+ hash = (37 * hash) + IS_ACTIVE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIsActive());
+ if (getCommandGroupsCount() > 0) {
+ hash = (37 * hash) + COMMAND_GROUPS_FIELD_NUMBER;
+ hash = (53 * hash) + getCommandGroupsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.jumpserver.wisp.Common.CommandACL parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.CommandACL parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.CommandACL parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.CommandACL parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.CommandACL parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.CommandACL parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.CommandACL parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.CommandACL parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static org.jumpserver.wisp.Common.CommandACL parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static org.jumpserver.wisp.Common.CommandACL parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.CommandACL parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.CommandACL parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.jumpserver.wisp.Common.CommandACL prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code message.CommandACL}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:message.CommandACL)
+ org.jumpserver.wisp.Common.CommandACLOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_CommandACL_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_CommandACL_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.CommandACL.class, org.jumpserver.wisp.Common.CommandACL.Builder.class);
+ }
+
+ // Construct using org.jumpserver.wisp.Common.CommandACL.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ id_ = "";
+ name_ = "";
+ priority_ = 0;
+ action_ = 0;
+ isActive_ = false;
+ if (commandGroupsBuilder_ == null) {
+ commandGroups_ = java.util.Collections.emptyList();
+ } else {
+ commandGroups_ = null;
+ commandGroupsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000020);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.jumpserver.wisp.Common.internal_static_message_CommandACL_descriptor;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.CommandACL getDefaultInstanceForType() {
+ return org.jumpserver.wisp.Common.CommandACL.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.CommandACL build() {
+ org.jumpserver.wisp.Common.CommandACL result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.CommandACL buildPartial() {
+ org.jumpserver.wisp.Common.CommandACL result = new org.jumpserver.wisp.Common.CommandACL(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(org.jumpserver.wisp.Common.CommandACL result) {
+ if (commandGroupsBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)) {
+ commandGroups_ = java.util.Collections.unmodifiableList(commandGroups_);
+ bitField0_ = (bitField0_ & ~0x00000020);
+ }
+ result.commandGroups_ = commandGroups_;
+ } else {
+ result.commandGroups_ = commandGroupsBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(org.jumpserver.wisp.Common.CommandACL result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.id_ = id_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.priority_ = priority_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.action_ = action_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.isActive_ = isActive_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.jumpserver.wisp.Common.CommandACL) {
+ return mergeFrom((org.jumpserver.wisp.Common.CommandACL)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.jumpserver.wisp.Common.CommandACL other) {
+ if (other == org.jumpserver.wisp.Common.CommandACL.getDefaultInstance()) return this;
+ if (!other.getId().isEmpty()) {
+ id_ = other.id_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (other.getPriority() != 0) {
+ setPriority(other.getPriority());
+ }
+ if (other.action_ != 0) {
+ setActionValue(other.getActionValue());
+ }
+ if (other.getIsActive() != false) {
+ setIsActive(other.getIsActive());
+ }
+ if (commandGroupsBuilder_ == null) {
+ if (!other.commandGroups_.isEmpty()) {
+ if (commandGroups_.isEmpty()) {
+ commandGroups_ = other.commandGroups_;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ } else {
+ ensureCommandGroupsIsMutable();
+ commandGroups_.addAll(other.commandGroups_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.commandGroups_.isEmpty()) {
+ if (commandGroupsBuilder_.isEmpty()) {
+ commandGroupsBuilder_.dispose();
+ commandGroupsBuilder_ = null;
+ commandGroups_ = other.commandGroups_;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ commandGroupsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getCommandGroupsFieldBuilder() : null;
+ } else {
+ commandGroupsBuilder_.addAllMessages(other.commandGroups_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ id_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ name_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 24: {
+ priority_ = input.readInt32();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
+ case 40: {
+ action_ = input.readEnum();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 40
+ case 48: {
+ isActive_ = input.readBool();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 48
+ case 58: {
+ org.jumpserver.wisp.Common.CommandGroup m =
+ input.readMessage(
+ org.jumpserver.wisp.Common.CommandGroup.parser(),
+ extensionRegistry);
+ if (commandGroupsBuilder_ == null) {
+ ensureCommandGroupsIsMutable();
+ commandGroups_.add(m);
+ } else {
+ commandGroupsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 58
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object id_ = "";
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ public com.google.protobuf.ByteString
+ getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string id = 1;
+ * @param value The id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setId(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ id_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+ id_ = getDefaultInstance().getId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string id = 1;
+ * @param value The bytes for id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ id_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object name_ = "";
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string name = 2;
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ name_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 2;
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private int priority_ ;
+ /**
+ * int32 priority = 3;
+ * @return The priority.
+ */
+ @java.lang.Override
+ public int getPriority() {
+ return priority_;
+ }
+ /**
+ * int32 priority = 3;
+ * @param value The priority to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPriority(int value) {
+
+ priority_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 priority = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearPriority() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ priority_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int action_ = 0;
+ /**
+ * .message.CommandACL.Action action = 5;
+ * @return The enum numeric value on the wire for action.
+ */
+ @java.lang.Override public int getActionValue() {
+ return action_;
+ }
+ /**
+ * .message.CommandACL.Action action = 5;
+ * @param value The enum numeric value on the wire for action to set.
+ * @return This builder for chaining.
+ */
+ public Builder setActionValue(int value) {
+ action_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.CommandACL.Action action = 5;
+ * @return The action.
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.CommandACL.Action getAction() {
+ org.jumpserver.wisp.Common.CommandACL.Action result = org.jumpserver.wisp.Common.CommandACL.Action.forNumber(action_);
+ return result == null ? org.jumpserver.wisp.Common.CommandACL.Action.UNRECOGNIZED : result;
+ }
+ /**
+ * .message.CommandACL.Action action = 5;
+ * @param value The action to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAction(org.jumpserver.wisp.Common.CommandACL.Action value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000008;
+ action_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.CommandACL.Action action = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearAction() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ action_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean isActive_ ;
+ /**
+ * bool is_active = 6;
+ * @return The isActive.
+ */
+ @java.lang.Override
+ public boolean getIsActive() {
+ return isActive_;
+ }
+ /**
+ * bool is_active = 6;
+ * @param value The isActive to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIsActive(boolean value) {
+
+ isActive_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool is_active = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearIsActive() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ isActive_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List commandGroups_ =
+ java.util.Collections.emptyList();
+ private void ensureCommandGroupsIsMutable() {
+ if (!((bitField0_ & 0x00000020) != 0)) {
+ commandGroups_ = new java.util.ArrayList(commandGroups_);
+ bitField0_ |= 0x00000020;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.jumpserver.wisp.Common.CommandGroup, org.jumpserver.wisp.Common.CommandGroup.Builder, org.jumpserver.wisp.Common.CommandGroupOrBuilder> commandGroupsBuilder_;
+
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ public java.util.List getCommandGroupsList() {
+ if (commandGroupsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(commandGroups_);
+ } else {
+ return commandGroupsBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ public int getCommandGroupsCount() {
+ if (commandGroupsBuilder_ == null) {
+ return commandGroups_.size();
+ } else {
+ return commandGroupsBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ public org.jumpserver.wisp.Common.CommandGroup getCommandGroups(int index) {
+ if (commandGroupsBuilder_ == null) {
+ return commandGroups_.get(index);
+ } else {
+ return commandGroupsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ public Builder setCommandGroups(
+ int index, org.jumpserver.wisp.Common.CommandGroup value) {
+ if (commandGroupsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCommandGroupsIsMutable();
+ commandGroups_.set(index, value);
+ onChanged();
+ } else {
+ commandGroupsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ public Builder setCommandGroups(
+ int index, org.jumpserver.wisp.Common.CommandGroup.Builder builderForValue) {
+ if (commandGroupsBuilder_ == null) {
+ ensureCommandGroupsIsMutable();
+ commandGroups_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ commandGroupsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ public Builder addCommandGroups(org.jumpserver.wisp.Common.CommandGroup value) {
+ if (commandGroupsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCommandGroupsIsMutable();
+ commandGroups_.add(value);
+ onChanged();
+ } else {
+ commandGroupsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ public Builder addCommandGroups(
+ int index, org.jumpserver.wisp.Common.CommandGroup value) {
+ if (commandGroupsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureCommandGroupsIsMutable();
+ commandGroups_.add(index, value);
+ onChanged();
+ } else {
+ commandGroupsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ public Builder addCommandGroups(
+ org.jumpserver.wisp.Common.CommandGroup.Builder builderForValue) {
+ if (commandGroupsBuilder_ == null) {
+ ensureCommandGroupsIsMutable();
+ commandGroups_.add(builderForValue.build());
+ onChanged();
+ } else {
+ commandGroupsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ public Builder addCommandGroups(
+ int index, org.jumpserver.wisp.Common.CommandGroup.Builder builderForValue) {
+ if (commandGroupsBuilder_ == null) {
+ ensureCommandGroupsIsMutable();
+ commandGroups_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ commandGroupsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ public Builder addAllCommandGroups(
+ java.lang.Iterable extends org.jumpserver.wisp.Common.CommandGroup> values) {
+ if (commandGroupsBuilder_ == null) {
+ ensureCommandGroupsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, commandGroups_);
+ onChanged();
+ } else {
+ commandGroupsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ public Builder clearCommandGroups() {
+ if (commandGroupsBuilder_ == null) {
+ commandGroups_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ } else {
+ commandGroupsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ public Builder removeCommandGroups(int index) {
+ if (commandGroupsBuilder_ == null) {
+ ensureCommandGroupsIsMutable();
+ commandGroups_.remove(index);
+ onChanged();
+ } else {
+ commandGroupsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ public org.jumpserver.wisp.Common.CommandGroup.Builder getCommandGroupsBuilder(
+ int index) {
+ return getCommandGroupsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ public org.jumpserver.wisp.Common.CommandGroupOrBuilder getCommandGroupsOrBuilder(
+ int index) {
+ if (commandGroupsBuilder_ == null) {
+ return commandGroups_.get(index); } else {
+ return commandGroupsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ public java.util.List extends org.jumpserver.wisp.Common.CommandGroupOrBuilder>
+ getCommandGroupsOrBuilderList() {
+ if (commandGroupsBuilder_ != null) {
+ return commandGroupsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(commandGroups_);
+ }
+ }
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ public org.jumpserver.wisp.Common.CommandGroup.Builder addCommandGroupsBuilder() {
+ return getCommandGroupsFieldBuilder().addBuilder(
+ org.jumpserver.wisp.Common.CommandGroup.getDefaultInstance());
+ }
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ public org.jumpserver.wisp.Common.CommandGroup.Builder addCommandGroupsBuilder(
+ int index) {
+ return getCommandGroupsFieldBuilder().addBuilder(
+ index, org.jumpserver.wisp.Common.CommandGroup.getDefaultInstance());
+ }
+ /**
+ * repeated .message.CommandGroup command_groups = 7;
+ */
+ public java.util.List
+ getCommandGroupsBuilderList() {
+ return getCommandGroupsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.jumpserver.wisp.Common.CommandGroup, org.jumpserver.wisp.Common.CommandGroup.Builder, org.jumpserver.wisp.Common.CommandGroupOrBuilder>
+ getCommandGroupsFieldBuilder() {
+ if (commandGroupsBuilder_ == null) {
+ commandGroupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.jumpserver.wisp.Common.CommandGroup, org.jumpserver.wisp.Common.CommandGroup.Builder, org.jumpserver.wisp.Common.CommandGroupOrBuilder>(
+ commandGroups_,
+ ((bitField0_ & 0x00000020) != 0),
+ getParentForChildren(),
+ isClean());
+ commandGroups_ = null;
+ }
+ return commandGroupsBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:message.CommandACL)
+ }
+
+ // @@protoc_insertion_point(class_scope:message.CommandACL)
+ private static final org.jumpserver.wisp.Common.CommandACL DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.jumpserver.wisp.Common.CommandACL();
+ }
+
+ public static org.jumpserver.wisp.Common.CommandACL getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public CommandACL parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.CommandACL getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface CommandGroupOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:message.CommandGroup)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ java.lang.String getId();
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ com.google.protobuf.ByteString
+ getIdBytes();
+
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * string content = 3;
+ * @return The content.
+ */
+ java.lang.String getContent();
+ /**
+ * string content = 3;
+ * @return The bytes for content.
+ */
+ com.google.protobuf.ByteString
+ getContentBytes();
+
+ /**
+ * string Type = 4;
+ * @return The type.
+ */
+ java.lang.String getType();
+ /**
+ * string Type = 4;
+ * @return The bytes for type.
+ */
+ com.google.protobuf.ByteString
+ getTypeBytes();
+
+ /**
+ * string pattern = 5;
+ * @return The pattern.
+ */
+ java.lang.String getPattern();
+ /**
+ * string pattern = 5;
+ * @return The bytes for pattern.
+ */
+ com.google.protobuf.ByteString
+ getPatternBytes();
+
+ /**
+ * bool ignore_case = 6;
+ * @return The ignoreCase.
+ */
+ boolean getIgnoreCase();
+ }
+ /**
+ * Protobuf type {@code message.CommandGroup}
+ */
+ public static final class CommandGroup extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:message.CommandGroup)
+ CommandGroupOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ CommandGroup.class.getName());
+ }
+ // Use CommandGroup.newBuilder() to construct.
+ private CommandGroup(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private CommandGroup() {
+ id_ = "";
+ name_ = "";
+ content_ = "";
+ type_ = "";
+ pattern_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_CommandGroup_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_CommandGroup_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.CommandGroup.class, org.jumpserver.wisp.Common.CommandGroup.Builder.class);
+ }
+
+ public static final int ID_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object id_ = "";
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ @java.lang.Override
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ }
+ }
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NAME_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CONTENT_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object content_ = "";
+ /**
+ * string content = 3;
+ * @return The content.
+ */
+ @java.lang.Override
+ public java.lang.String getContent() {
+ java.lang.Object ref = content_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ content_ = s;
+ return s;
+ }
+ }
+ /**
+ * string content = 3;
+ * @return The bytes for content.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getContentBytes() {
+ java.lang.Object ref = content_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ content_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TYPE_FIELD_NUMBER = 4;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object type_ = "";
+ /**
+ * string Type = 4;
+ * @return The type.
+ */
+ @java.lang.Override
+ public java.lang.String getType() {
+ java.lang.Object ref = type_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ type_ = s;
+ return s;
+ }
+ }
+ /**
+ * string Type = 4;
+ * @return The bytes for type.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getTypeBytes() {
+ java.lang.Object ref = type_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ type_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PATTERN_FIELD_NUMBER = 5;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object pattern_ = "";
+ /**
+ * string pattern = 5;
+ * @return The pattern.
+ */
+ @java.lang.Override
+ public java.lang.String getPattern() {
+ java.lang.Object ref = pattern_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pattern_ = s;
+ return s;
+ }
+ }
+ /**
+ * string pattern = 5;
+ * @return The bytes for pattern.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getPatternBytes() {
+ java.lang.Object ref = pattern_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ pattern_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int IGNORE_CASE_FIELD_NUMBER = 6;
+ private boolean ignoreCase_ = false;
+ /**
+ * bool ignore_case = 6;
+ * @return The ignoreCase.
+ */
+ @java.lang.Override
+ public boolean getIgnoreCase() {
+ return ignoreCase_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, content_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, type_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pattern_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 5, pattern_);
+ }
+ if (ignoreCase_ != false) {
+ output.writeBool(6, ignoreCase_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, content_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, type_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pattern_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(5, pattern_);
+ }
+ if (ignoreCase_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(6, ignoreCase_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.jumpserver.wisp.Common.CommandGroup)) {
+ return super.equals(obj);
+ }
+ org.jumpserver.wisp.Common.CommandGroup other = (org.jumpserver.wisp.Common.CommandGroup) obj;
+
+ if (!getId()
+ .equals(other.getId())) return false;
+ if (!getName()
+ .equals(other.getName())) return false;
+ if (!getContent()
+ .equals(other.getContent())) return false;
+ if (!getType()
+ .equals(other.getType())) return false;
+ if (!getPattern()
+ .equals(other.getPattern())) return false;
+ if (getIgnoreCase()
+ != other.getIgnoreCase()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + CONTENT_FIELD_NUMBER;
+ hash = (53 * hash) + getContent().hashCode();
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getType().hashCode();
+ hash = (37 * hash) + PATTERN_FIELD_NUMBER;
+ hash = (53 * hash) + getPattern().hashCode();
+ hash = (37 * hash) + IGNORE_CASE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIgnoreCase());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.jumpserver.wisp.Common.CommandGroup parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.CommandGroup parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.CommandGroup parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.CommandGroup parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.CommandGroup parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.CommandGroup parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.CommandGroup parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.CommandGroup parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static org.jumpserver.wisp.Common.CommandGroup parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static org.jumpserver.wisp.Common.CommandGroup parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.CommandGroup parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.CommandGroup parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.jumpserver.wisp.Common.CommandGroup prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code message.CommandGroup}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:message.CommandGroup)
+ org.jumpserver.wisp.Common.CommandGroupOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_CommandGroup_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_CommandGroup_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.CommandGroup.class, org.jumpserver.wisp.Common.CommandGroup.Builder.class);
+ }
+
+ // Construct using org.jumpserver.wisp.Common.CommandGroup.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ id_ = "";
+ name_ = "";
+ content_ = "";
+ type_ = "";
+ pattern_ = "";
+ ignoreCase_ = false;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.jumpserver.wisp.Common.internal_static_message_CommandGroup_descriptor;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.CommandGroup getDefaultInstanceForType() {
+ return org.jumpserver.wisp.Common.CommandGroup.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.CommandGroup build() {
+ org.jumpserver.wisp.Common.CommandGroup result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.CommandGroup buildPartial() {
+ org.jumpserver.wisp.Common.CommandGroup result = new org.jumpserver.wisp.Common.CommandGroup(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(org.jumpserver.wisp.Common.CommandGroup result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.id_ = id_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.content_ = content_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.type_ = type_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.pattern_ = pattern_;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.ignoreCase_ = ignoreCase_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.jumpserver.wisp.Common.CommandGroup) {
+ return mergeFrom((org.jumpserver.wisp.Common.CommandGroup)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.jumpserver.wisp.Common.CommandGroup other) {
+ if (other == org.jumpserver.wisp.Common.CommandGroup.getDefaultInstance()) return this;
+ if (!other.getId().isEmpty()) {
+ id_ = other.id_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getContent().isEmpty()) {
+ content_ = other.content_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ if (!other.getType().isEmpty()) {
+ type_ = other.type_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ if (!other.getPattern().isEmpty()) {
+ pattern_ = other.pattern_;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ if (other.getIgnoreCase() != false) {
+ setIgnoreCase(other.getIgnoreCase());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ id_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ name_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ content_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34: {
+ type_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ case 42: {
+ pattern_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
+ case 48: {
+ ignoreCase_ = input.readBool();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 48
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object id_ = "";
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ public com.google.protobuf.ByteString
+ getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string id = 1;
+ * @param value The id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setId(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ id_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+ id_ = getDefaultInstance().getId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string id = 1;
+ * @param value The bytes for id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ id_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object name_ = "";
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string name = 2;
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ name_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 2;
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object content_ = "";
+ /**
+ * string content = 3;
+ * @return The content.
+ */
+ public java.lang.String getContent() {
+ java.lang.Object ref = content_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ content_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string content = 3;
+ * @return The bytes for content.
+ */
+ public com.google.protobuf.ByteString
+ getContentBytes() {
+ java.lang.Object ref = content_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ content_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string content = 3;
+ * @param value The content to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContent(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ content_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * string content = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearContent() {
+ content_ = getDefaultInstance().getContent();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * string content = 3;
+ * @param value The bytes for content to set.
+ * @return This builder for chaining.
+ */
+ public Builder setContentBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ content_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object type_ = "";
+ /**
+ * string Type = 4;
+ * @return The type.
+ */
+ public java.lang.String getType() {
+ java.lang.Object ref = type_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ type_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string Type = 4;
+ * @return The bytes for type.
+ */
+ public com.google.protobuf.ByteString
+ getTypeBytes() {
+ java.lang.Object ref = type_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ type_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string Type = 4;
+ * @param value The type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setType(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ type_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * string Type = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearType() {
+ type_ = getDefaultInstance().getType();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ * string Type = 4;
+ * @param value The bytes for type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTypeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ type_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object pattern_ = "";
+ /**
+ * string pattern = 5;
+ * @return The pattern.
+ */
+ public java.lang.String getPattern() {
+ java.lang.Object ref = pattern_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pattern_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string pattern = 5;
+ * @return The bytes for pattern.
+ */
+ public com.google.protobuf.ByteString
+ getPatternBytes() {
+ java.lang.Object ref = pattern_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ pattern_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string pattern = 5;
+ * @param value The pattern to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPattern(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ pattern_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * string pattern = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearPattern() {
+ pattern_ = getDefaultInstance().getPattern();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+ /**
+ * string pattern = 5;
+ * @param value The bytes for pattern to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPatternBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ pattern_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ private boolean ignoreCase_ ;
+ /**
+ * bool ignore_case = 6;
+ * @return The ignoreCase.
+ */
+ @java.lang.Override
+ public boolean getIgnoreCase() {
+ return ignoreCase_;
+ }
+ /**
+ * bool ignore_case = 6;
+ * @param value The ignoreCase to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIgnoreCase(boolean value) {
+
+ ignoreCase_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool ignore_case = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearIgnoreCase() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ ignoreCase_ = false;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:message.CommandGroup)
+ }
+
+ // @@protoc_insertion_point(class_scope:message.CommandGroup)
+ private static final org.jumpserver.wisp.Common.CommandGroup DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.jumpserver.wisp.Common.CommandGroup();
+ }
+
+ public static org.jumpserver.wisp.Common.CommandGroup getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public CommandGroup parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.CommandGroup getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface ExpireInfoOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:message.ExpireInfo)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * int64 expire_at = 1;
+ * @return The expireAt.
+ */
+ long getExpireAt();
+ }
+ /**
+ * Protobuf type {@code message.ExpireInfo}
+ */
+ public static final class ExpireInfo extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:message.ExpireInfo)
+ ExpireInfoOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ ExpireInfo.class.getName());
+ }
+ // Use ExpireInfo.newBuilder() to construct.
+ private ExpireInfo(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private ExpireInfo() {
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_ExpireInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_ExpireInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.ExpireInfo.class, org.jumpserver.wisp.Common.ExpireInfo.Builder.class);
+ }
+
+ public static final int EXPIRE_AT_FIELD_NUMBER = 1;
+ private long expireAt_ = 0L;
+ /**
+ * int64 expire_at = 1;
+ * @return The expireAt.
+ */
+ @java.lang.Override
+ public long getExpireAt() {
+ return expireAt_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (expireAt_ != 0L) {
+ output.writeInt64(1, expireAt_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (expireAt_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(1, expireAt_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.jumpserver.wisp.Common.ExpireInfo)) {
+ return super.equals(obj);
+ }
+ org.jumpserver.wisp.Common.ExpireInfo other = (org.jumpserver.wisp.Common.ExpireInfo) obj;
+
+ if (getExpireAt()
+ != other.getExpireAt()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + EXPIRE_AT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getExpireAt());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.jumpserver.wisp.Common.ExpireInfo parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.ExpireInfo parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.ExpireInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.ExpireInfo parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.ExpireInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.ExpireInfo parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.ExpireInfo parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.ExpireInfo parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static org.jumpserver.wisp.Common.ExpireInfo parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static org.jumpserver.wisp.Common.ExpireInfo parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.ExpireInfo parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.ExpireInfo parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.jumpserver.wisp.Common.ExpireInfo prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code message.ExpireInfo}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:message.ExpireInfo)
+ org.jumpserver.wisp.Common.ExpireInfoOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_ExpireInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_ExpireInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.ExpireInfo.class, org.jumpserver.wisp.Common.ExpireInfo.Builder.class);
+ }
+
+ // Construct using org.jumpserver.wisp.Common.ExpireInfo.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ expireAt_ = 0L;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.jumpserver.wisp.Common.internal_static_message_ExpireInfo_descriptor;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.ExpireInfo getDefaultInstanceForType() {
+ return org.jumpserver.wisp.Common.ExpireInfo.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.ExpireInfo build() {
+ org.jumpserver.wisp.Common.ExpireInfo result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.ExpireInfo buildPartial() {
+ org.jumpserver.wisp.Common.ExpireInfo result = new org.jumpserver.wisp.Common.ExpireInfo(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(org.jumpserver.wisp.Common.ExpireInfo result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.expireAt_ = expireAt_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.jumpserver.wisp.Common.ExpireInfo) {
+ return mergeFrom((org.jumpserver.wisp.Common.ExpireInfo)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.jumpserver.wisp.Common.ExpireInfo other) {
+ if (other == org.jumpserver.wisp.Common.ExpireInfo.getDefaultInstance()) return this;
+ if (other.getExpireAt() != 0L) {
+ setExpireAt(other.getExpireAt());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ expireAt_ = input.readInt64();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private long expireAt_ ;
+ /**
+ * int64 expire_at = 1;
+ * @return The expireAt.
+ */
+ @java.lang.Override
+ public long getExpireAt() {
+ return expireAt_;
+ }
+ /**
+ * int64 expire_at = 1;
+ * @param value The expireAt to set.
+ * @return This builder for chaining.
+ */
+ public Builder setExpireAt(long value) {
+
+ expireAt_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 expire_at = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearExpireAt() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ expireAt_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:message.ExpireInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:message.ExpireInfo)
+ private static final org.jumpserver.wisp.Common.ExpireInfo DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.jumpserver.wisp.Common.ExpireInfo();
+ }
+
+ public static org.jumpserver.wisp.Common.ExpireInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ExpireInfo parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.ExpireInfo getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface SessionOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:message.Session)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ java.lang.String getId();
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ com.google.protobuf.ByteString
+ getIdBytes();
+
+ /**
+ * string user = 2;
+ * @return The user.
+ */
+ java.lang.String getUser();
+ /**
+ * string user = 2;
+ * @return The bytes for user.
+ */
+ com.google.protobuf.ByteString
+ getUserBytes();
+
+ /**
+ * string asset = 3;
+ * @return The asset.
+ */
+ java.lang.String getAsset();
+ /**
+ * string asset = 3;
+ * @return The bytes for asset.
+ */
+ com.google.protobuf.ByteString
+ getAssetBytes();
+
+ /**
+ * string account = 4;
+ * @return The account.
+ */
+ java.lang.String getAccount();
+ /**
+ * string account = 4;
+ * @return The bytes for account.
+ */
+ com.google.protobuf.ByteString
+ getAccountBytes();
+
+ /**
+ * .message.Session.LoginFrom login_from = 5;
+ * @return The enum numeric value on the wire for loginFrom.
+ */
+ int getLoginFromValue();
+ /**
+ * .message.Session.LoginFrom login_from = 5;
+ * @return The loginFrom.
+ */
+ org.jumpserver.wisp.Common.Session.LoginFrom getLoginFrom();
+
+ /**
+ * string remote_addr = 6;
+ * @return The remoteAddr.
+ */
+ java.lang.String getRemoteAddr();
+ /**
+ * string remote_addr = 6;
+ * @return The bytes for remoteAddr.
+ */
+ com.google.protobuf.ByteString
+ getRemoteAddrBytes();
+
+ /**
+ * string protocol = 7;
+ * @return The protocol.
+ */
+ java.lang.String getProtocol();
+ /**
+ * string protocol = 7;
+ * @return The bytes for protocol.
+ */
+ com.google.protobuf.ByteString
+ getProtocolBytes();
+
+ /**
+ * int64 date_start = 8;
+ * @return The dateStart.
+ */
+ long getDateStart();
+
+ /**
+ * string org_id = 9;
+ * @return The orgId.
+ */
+ java.lang.String getOrgId();
+ /**
+ * string org_id = 9;
+ * @return The bytes for orgId.
+ */
+ com.google.protobuf.ByteString
+ getOrgIdBytes();
+
+ /**
+ * string user_id = 10;
+ * @return The userId.
+ */
+ java.lang.String getUserId();
+ /**
+ * string user_id = 10;
+ * @return The bytes for userId.
+ */
+ com.google.protobuf.ByteString
+ getUserIdBytes();
+
+ /**
+ * string asset_id = 11;
+ * @return The assetId.
+ */
+ java.lang.String getAssetId();
+ /**
+ * string asset_id = 11;
+ * @return The bytes for assetId.
+ */
+ com.google.protobuf.ByteString
+ getAssetIdBytes();
+
+ /**
+ * string account_id = 12;
+ * @return The accountId.
+ */
+ java.lang.String getAccountId();
+ /**
+ * string account_id = 12;
+ * @return The bytes for accountId.
+ */
+ com.google.protobuf.ByteString
+ getAccountIdBytes();
+ }
+ /**
+ * Protobuf type {@code message.Session}
+ */
+ public static final class Session extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:message.Session)
+ SessionOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ Session.class.getName());
+ }
+ // Use Session.newBuilder() to construct.
+ private Session(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private Session() {
+ id_ = "";
+ user_ = "";
+ asset_ = "";
+ account_ = "";
+ loginFrom_ = 0;
+ remoteAddr_ = "";
+ protocol_ = "";
+ orgId_ = "";
+ userId_ = "";
+ assetId_ = "";
+ accountId_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_Session_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_Session_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.Session.class, org.jumpserver.wisp.Common.Session.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code message.Session.LoginFrom}
+ */
+ public enum LoginFrom
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * WT = 0;
+ */
+ WT(0),
+ /**
+ * ST = 1;
+ */
+ ST(1),
+ /**
+ * RT = 2;
+ */
+ RT(2),
+ /**
+ * DT = 3;
+ */
+ DT(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ LoginFrom.class.getName());
+ }
+ /**
+ * WT = 0;
+ */
+ public static final int WT_VALUE = 0;
+ /**
+ * ST = 1;
+ */
+ public static final int ST_VALUE = 1;
+ /**
+ * RT = 2;
+ */
+ public static final int RT_VALUE = 2;
+ /**
+ * DT = 3;
+ */
+ public static final int DT_VALUE = 3;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static LoginFrom valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static LoginFrom forNumber(int value) {
+ switch (value) {
+ case 0: return WT;
+ case 1: return ST;
+ case 2: return RT;
+ case 3: return DT;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ LoginFrom> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public LoginFrom findValueByNumber(int number) {
+ return LoginFrom.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.Session.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final LoginFrom[] VALUES = values();
+
+ public static LoginFrom valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private LoginFrom(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:message.Session.LoginFrom)
+ }
+
+ public static final int ID_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object id_ = "";
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ @java.lang.Override
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ }
+ }
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int USER_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object user_ = "";
+ /**
+ * string user = 2;
+ * @return The user.
+ */
+ @java.lang.Override
+ public java.lang.String getUser() {
+ java.lang.Object ref = user_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ user_ = s;
+ return s;
+ }
+ }
+ /**
+ * string user = 2;
+ * @return The bytes for user.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getUserBytes() {
+ java.lang.Object ref = user_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ user_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ASSET_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object asset_ = "";
+ /**
+ * string asset = 3;
+ * @return The asset.
+ */
+ @java.lang.Override
+ public java.lang.String getAsset() {
+ java.lang.Object ref = asset_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ asset_ = s;
+ return s;
+ }
+ }
+ /**
+ * string asset = 3;
+ * @return The bytes for asset.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getAssetBytes() {
+ java.lang.Object ref = asset_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ asset_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ACCOUNT_FIELD_NUMBER = 4;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object account_ = "";
+ /**
+ * string account = 4;
+ * @return The account.
+ */
+ @java.lang.Override
+ public java.lang.String getAccount() {
+ java.lang.Object ref = account_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ account_ = s;
+ return s;
+ }
+ }
+ /**
+ * string account = 4;
+ * @return The bytes for account.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getAccountBytes() {
+ java.lang.Object ref = account_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ account_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int LOGIN_FROM_FIELD_NUMBER = 5;
+ private int loginFrom_ = 0;
+ /**
+ * .message.Session.LoginFrom login_from = 5;
+ * @return The enum numeric value on the wire for loginFrom.
+ */
+ @java.lang.Override public int getLoginFromValue() {
+ return loginFrom_;
+ }
+ /**
+ * .message.Session.LoginFrom login_from = 5;
+ * @return The loginFrom.
+ */
+ @java.lang.Override public org.jumpserver.wisp.Common.Session.LoginFrom getLoginFrom() {
+ org.jumpserver.wisp.Common.Session.LoginFrom result = org.jumpserver.wisp.Common.Session.LoginFrom.forNumber(loginFrom_);
+ return result == null ? org.jumpserver.wisp.Common.Session.LoginFrom.UNRECOGNIZED : result;
+ }
+
+ public static final int REMOTE_ADDR_FIELD_NUMBER = 6;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object remoteAddr_ = "";
+ /**
+ * string remote_addr = 6;
+ * @return The remoteAddr.
+ */
+ @java.lang.Override
+ public java.lang.String getRemoteAddr() {
+ java.lang.Object ref = remoteAddr_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteAddr_ = s;
+ return s;
+ }
+ }
+ /**
+ * string remote_addr = 6;
+ * @return The bytes for remoteAddr.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getRemoteAddrBytes() {
+ java.lang.Object ref = remoteAddr_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteAddr_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PROTOCOL_FIELD_NUMBER = 7;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object protocol_ = "";
+ /**
+ * string protocol = 7;
+ * @return The protocol.
+ */
+ @java.lang.Override
+ public java.lang.String getProtocol() {
+ java.lang.Object ref = protocol_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ protocol_ = s;
+ return s;
+ }
+ }
+ /**
+ * string protocol = 7;
+ * @return The bytes for protocol.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getProtocolBytes() {
+ java.lang.Object ref = protocol_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ protocol_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DATE_START_FIELD_NUMBER = 8;
+ private long dateStart_ = 0L;
+ /**
+ * int64 date_start = 8;
+ * @return The dateStart.
+ */
+ @java.lang.Override
+ public long getDateStart() {
+ return dateStart_;
+ }
+
+ public static final int ORG_ID_FIELD_NUMBER = 9;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object orgId_ = "";
+ /**
+ * string org_id = 9;
+ * @return The orgId.
+ */
+ @java.lang.Override
+ public java.lang.String getOrgId() {
+ java.lang.Object ref = orgId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ orgId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string org_id = 9;
+ * @return The bytes for orgId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getOrgIdBytes() {
+ java.lang.Object ref = orgId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ orgId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int USER_ID_FIELD_NUMBER = 10;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object userId_ = "";
+ /**
+ * string user_id = 10;
+ * @return The userId.
+ */
+ @java.lang.Override
+ public java.lang.String getUserId() {
+ java.lang.Object ref = userId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ userId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string user_id = 10;
+ * @return The bytes for userId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getUserIdBytes() {
+ java.lang.Object ref = userId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ userId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ASSET_ID_FIELD_NUMBER = 11;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object assetId_ = "";
+ /**
+ * string asset_id = 11;
+ * @return The assetId.
+ */
+ @java.lang.Override
+ public java.lang.String getAssetId() {
+ java.lang.Object ref = assetId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ assetId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string asset_id = 11;
+ * @return The bytes for assetId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getAssetIdBytes() {
+ java.lang.Object ref = assetId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ assetId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ACCOUNT_ID_FIELD_NUMBER = 12;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object accountId_ = "";
+ /**
+ * string account_id = 12;
+ * @return The accountId.
+ */
+ @java.lang.Override
+ public java.lang.String getAccountId() {
+ java.lang.Object ref = accountId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ accountId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string account_id = 12;
+ * @return The bytes for accountId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getAccountIdBytes() {
+ java.lang.Object ref = accountId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ accountId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(user_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, user_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(asset_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, asset_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(account_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, account_);
+ }
+ if (loginFrom_ != org.jumpserver.wisp.Common.Session.LoginFrom.WT.getNumber()) {
+ output.writeEnum(5, loginFrom_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(remoteAddr_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 6, remoteAddr_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(protocol_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 7, protocol_);
+ }
+ if (dateStart_ != 0L) {
+ output.writeInt64(8, dateStart_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orgId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 9, orgId_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 10, userId_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assetId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 11, assetId_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(accountId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 12, accountId_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(user_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, user_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(asset_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, asset_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(account_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, account_);
+ }
+ if (loginFrom_ != org.jumpserver.wisp.Common.Session.LoginFrom.WT.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(5, loginFrom_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(remoteAddr_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(6, remoteAddr_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(protocol_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(7, protocol_);
+ }
+ if (dateStart_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt64Size(8, dateStart_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orgId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(9, orgId_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(10, userId_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assetId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(11, assetId_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(accountId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(12, accountId_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.jumpserver.wisp.Common.Session)) {
+ return super.equals(obj);
+ }
+ org.jumpserver.wisp.Common.Session other = (org.jumpserver.wisp.Common.Session) obj;
+
+ if (!getId()
+ .equals(other.getId())) return false;
+ if (!getUser()
+ .equals(other.getUser())) return false;
+ if (!getAsset()
+ .equals(other.getAsset())) return false;
+ if (!getAccount()
+ .equals(other.getAccount())) return false;
+ if (loginFrom_ != other.loginFrom_) return false;
+ if (!getRemoteAddr()
+ .equals(other.getRemoteAddr())) return false;
+ if (!getProtocol()
+ .equals(other.getProtocol())) return false;
+ if (getDateStart()
+ != other.getDateStart()) return false;
+ if (!getOrgId()
+ .equals(other.getOrgId())) return false;
+ if (!getUserId()
+ .equals(other.getUserId())) return false;
+ if (!getAssetId()
+ .equals(other.getAssetId())) return false;
+ if (!getAccountId()
+ .equals(other.getAccountId())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId().hashCode();
+ hash = (37 * hash) + USER_FIELD_NUMBER;
+ hash = (53 * hash) + getUser().hashCode();
+ hash = (37 * hash) + ASSET_FIELD_NUMBER;
+ hash = (53 * hash) + getAsset().hashCode();
+ hash = (37 * hash) + ACCOUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getAccount().hashCode();
+ hash = (37 * hash) + LOGIN_FROM_FIELD_NUMBER;
+ hash = (53 * hash) + loginFrom_;
+ hash = (37 * hash) + REMOTE_ADDR_FIELD_NUMBER;
+ hash = (53 * hash) + getRemoteAddr().hashCode();
+ hash = (37 * hash) + PROTOCOL_FIELD_NUMBER;
+ hash = (53 * hash) + getProtocol().hashCode();
+ hash = (37 * hash) + DATE_START_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getDateStart());
+ hash = (37 * hash) + ORG_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getOrgId().hashCode();
+ hash = (37 * hash) + USER_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getUserId().hashCode();
+ hash = (37 * hash) + ASSET_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getAssetId().hashCode();
+ hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getAccountId().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.jumpserver.wisp.Common.Session parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Session parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Session parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Session parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Session parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Session parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Session parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.Session parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static org.jumpserver.wisp.Common.Session parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static org.jumpserver.wisp.Common.Session parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Session parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.Session parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.jumpserver.wisp.Common.Session prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code message.Session}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:message.Session)
+ org.jumpserver.wisp.Common.SessionOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_Session_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_Session_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.Session.class, org.jumpserver.wisp.Common.Session.Builder.class);
+ }
+
+ // Construct using org.jumpserver.wisp.Common.Session.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ id_ = "";
+ user_ = "";
+ asset_ = "";
+ account_ = "";
+ loginFrom_ = 0;
+ remoteAddr_ = "";
+ protocol_ = "";
+ dateStart_ = 0L;
+ orgId_ = "";
+ userId_ = "";
+ assetId_ = "";
+ accountId_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.jumpserver.wisp.Common.internal_static_message_Session_descriptor;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Session getDefaultInstanceForType() {
+ return org.jumpserver.wisp.Common.Session.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Session build() {
+ org.jumpserver.wisp.Common.Session result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Session buildPartial() {
+ org.jumpserver.wisp.Common.Session result = new org.jumpserver.wisp.Common.Session(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(org.jumpserver.wisp.Common.Session result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.id_ = id_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.user_ = user_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.asset_ = asset_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.account_ = account_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.loginFrom_ = loginFrom_;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.remoteAddr_ = remoteAddr_;
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.protocol_ = protocol_;
+ }
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.dateStart_ = dateStart_;
+ }
+ if (((from_bitField0_ & 0x00000100) != 0)) {
+ result.orgId_ = orgId_;
+ }
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.userId_ = userId_;
+ }
+ if (((from_bitField0_ & 0x00000400) != 0)) {
+ result.assetId_ = assetId_;
+ }
+ if (((from_bitField0_ & 0x00000800) != 0)) {
+ result.accountId_ = accountId_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.jumpserver.wisp.Common.Session) {
+ return mergeFrom((org.jumpserver.wisp.Common.Session)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.jumpserver.wisp.Common.Session other) {
+ if (other == org.jumpserver.wisp.Common.Session.getDefaultInstance()) return this;
+ if (!other.getId().isEmpty()) {
+ id_ = other.id_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getUser().isEmpty()) {
+ user_ = other.user_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getAsset().isEmpty()) {
+ asset_ = other.asset_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ if (!other.getAccount().isEmpty()) {
+ account_ = other.account_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ if (other.loginFrom_ != 0) {
+ setLoginFromValue(other.getLoginFromValue());
+ }
+ if (!other.getRemoteAddr().isEmpty()) {
+ remoteAddr_ = other.remoteAddr_;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ if (!other.getProtocol().isEmpty()) {
+ protocol_ = other.protocol_;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
+ if (other.getDateStart() != 0L) {
+ setDateStart(other.getDateStart());
+ }
+ if (!other.getOrgId().isEmpty()) {
+ orgId_ = other.orgId_;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ }
+ if (!other.getUserId().isEmpty()) {
+ userId_ = other.userId_;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ }
+ if (!other.getAssetId().isEmpty()) {
+ assetId_ = other.assetId_;
+ bitField0_ |= 0x00000400;
+ onChanged();
+ }
+ if (!other.getAccountId().isEmpty()) {
+ accountId_ = other.accountId_;
+ bitField0_ |= 0x00000800;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ id_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ user_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ asset_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34: {
+ account_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ case 40: {
+ loginFrom_ = input.readEnum();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 40
+ case 50: {
+ remoteAddr_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
+ case 58: {
+ protocol_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 58
+ case 64: {
+ dateStart_ = input.readInt64();
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 64
+ case 74: {
+ orgId_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000100;
+ break;
+ } // case 74
+ case 82: {
+ userId_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000200;
+ break;
+ } // case 82
+ case 90: {
+ assetId_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000400;
+ break;
+ } // case 90
+ case 98: {
+ accountId_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000800;
+ break;
+ } // case 98
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object id_ = "";
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ public com.google.protobuf.ByteString
+ getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string id = 1;
+ * @param value The id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setId(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ id_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+ id_ = getDefaultInstance().getId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string id = 1;
+ * @param value The bytes for id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ id_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object user_ = "";
+ /**
+ * string user = 2;
+ * @return The user.
+ */
+ public java.lang.String getUser() {
+ java.lang.Object ref = user_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ user_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string user = 2;
+ * @return The bytes for user.
+ */
+ public com.google.protobuf.ByteString
+ getUserBytes() {
+ java.lang.Object ref = user_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ user_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string user = 2;
+ * @param value The user to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUser(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ user_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * string user = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearUser() {
+ user_ = getDefaultInstance().getUser();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string user = 2;
+ * @param value The bytes for user to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUserBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ user_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object asset_ = "";
+ /**
+ * string asset = 3;
+ * @return The asset.
+ */
+ public java.lang.String getAsset() {
+ java.lang.Object ref = asset_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ asset_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string asset = 3;
+ * @return The bytes for asset.
+ */
+ public com.google.protobuf.ByteString
+ getAssetBytes() {
+ java.lang.Object ref = asset_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ asset_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string asset = 3;
+ * @param value The asset to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAsset(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ asset_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * string asset = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearAsset() {
+ asset_ = getDefaultInstance().getAsset();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * string asset = 3;
+ * @param value The bytes for asset to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAssetBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ asset_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object account_ = "";
+ /**
+ * string account = 4;
+ * @return The account.
+ */
+ public java.lang.String getAccount() {
+ java.lang.Object ref = account_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ account_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string account = 4;
+ * @return The bytes for account.
+ */
+ public com.google.protobuf.ByteString
+ getAccountBytes() {
+ java.lang.Object ref = account_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ account_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string account = 4;
+ * @param value The account to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAccount(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ account_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * string account = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearAccount() {
+ account_ = getDefaultInstance().getAccount();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ * string account = 4;
+ * @param value The bytes for account to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAccountBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ account_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private int loginFrom_ = 0;
+ /**
+ * .message.Session.LoginFrom login_from = 5;
+ * @return The enum numeric value on the wire for loginFrom.
+ */
+ @java.lang.Override public int getLoginFromValue() {
+ return loginFrom_;
+ }
+ /**
+ * .message.Session.LoginFrom login_from = 5;
+ * @param value The enum numeric value on the wire for loginFrom to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLoginFromValue(int value) {
+ loginFrom_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.Session.LoginFrom login_from = 5;
+ * @return The loginFrom.
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Session.LoginFrom getLoginFrom() {
+ org.jumpserver.wisp.Common.Session.LoginFrom result = org.jumpserver.wisp.Common.Session.LoginFrom.forNumber(loginFrom_);
+ return result == null ? org.jumpserver.wisp.Common.Session.LoginFrom.UNRECOGNIZED : result;
+ }
+ /**
+ * .message.Session.LoginFrom login_from = 5;
+ * @param value The loginFrom to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLoginFrom(org.jumpserver.wisp.Common.Session.LoginFrom value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000010;
+ loginFrom_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.Session.LoginFrom login_from = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearLoginFrom() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ loginFrom_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object remoteAddr_ = "";
+ /**
+ * string remote_addr = 6;
+ * @return The remoteAddr.
+ */
+ public java.lang.String getRemoteAddr() {
+ java.lang.Object ref = remoteAddr_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteAddr_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string remote_addr = 6;
+ * @return The bytes for remoteAddr.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteAddrBytes() {
+ java.lang.Object ref = remoteAddr_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteAddr_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string remote_addr = 6;
+ * @param value The remoteAddr to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteAddr(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ remoteAddr_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_addr = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearRemoteAddr() {
+ remoteAddr_ = getDefaultInstance().getRemoteAddr();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_addr = 6;
+ * @param value The bytes for remoteAddr to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteAddrBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ remoteAddr_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object protocol_ = "";
+ /**
+ * string protocol = 7;
+ * @return The protocol.
+ */
+ public java.lang.String getProtocol() {
+ java.lang.Object ref = protocol_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ protocol_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string protocol = 7;
+ * @return The bytes for protocol.
+ */
+ public com.google.protobuf.ByteString
+ getProtocolBytes() {
+ java.lang.Object ref = protocol_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ protocol_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string protocol = 7;
+ * @param value The protocol to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProtocol(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ protocol_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ * string protocol = 7;
+ * @return This builder for chaining.
+ */
+ public Builder clearProtocol() {
+ protocol_ = getDefaultInstance().getProtocol();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ return this;
+ }
+ /**
+ * string protocol = 7;
+ * @param value The bytes for protocol to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProtocolBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ protocol_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+
+ private long dateStart_ ;
+ /**
+ * int64 date_start = 8;
+ * @return The dateStart.
+ */
+ @java.lang.Override
+ public long getDateStart() {
+ return dateStart_;
+ }
+ /**
+ * int64 date_start = 8;
+ * @param value The dateStart to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDateStart(long value) {
+
+ dateStart_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ * int64 date_start = 8;
+ * @return This builder for chaining.
+ */
+ public Builder clearDateStart() {
+ bitField0_ = (bitField0_ & ~0x00000080);
+ dateStart_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object orgId_ = "";
+ /**
+ * string org_id = 9;
+ * @return The orgId.
+ */
+ public java.lang.String getOrgId() {
+ java.lang.Object ref = orgId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ orgId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string org_id = 9;
+ * @return The bytes for orgId.
+ */
+ public com.google.protobuf.ByteString
+ getOrgIdBytes() {
+ java.lang.Object ref = orgId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ orgId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string org_id = 9;
+ * @param value The orgId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOrgId(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ orgId_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ * string org_id = 9;
+ * @return This builder for chaining.
+ */
+ public Builder clearOrgId() {
+ orgId_ = getDefaultInstance().getOrgId();
+ bitField0_ = (bitField0_ & ~0x00000100);
+ onChanged();
+ return this;
+ }
+ /**
+ * string org_id = 9;
+ * @param value The bytes for orgId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOrgIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ orgId_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object userId_ = "";
+ /**
+ * string user_id = 10;
+ * @return The userId.
+ */
+ public java.lang.String getUserId() {
+ java.lang.Object ref = userId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ userId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string user_id = 10;
+ * @return The bytes for userId.
+ */
+ public com.google.protobuf.ByteString
+ getUserIdBytes() {
+ java.lang.Object ref = userId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ userId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string user_id = 10;
+ * @param value The userId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUserId(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ userId_ = value;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ * string user_id = 10;
+ * @return This builder for chaining.
+ */
+ public Builder clearUserId() {
+ userId_ = getDefaultInstance().getUserId();
+ bitField0_ = (bitField0_ & ~0x00000200);
+ onChanged();
+ return this;
+ }
+ /**
+ * string user_id = 10;
+ * @param value The bytes for userId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUserIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ userId_ = value;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object assetId_ = "";
+ /**
+ * string asset_id = 11;
+ * @return The assetId.
+ */
+ public java.lang.String getAssetId() {
+ java.lang.Object ref = assetId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ assetId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string asset_id = 11;
+ * @return The bytes for assetId.
+ */
+ public com.google.protobuf.ByteString
+ getAssetIdBytes() {
+ java.lang.Object ref = assetId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ assetId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string asset_id = 11;
+ * @param value The assetId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAssetId(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ assetId_ = value;
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+ /**
+ * string asset_id = 11;
+ * @return This builder for chaining.
+ */
+ public Builder clearAssetId() {
+ assetId_ = getDefaultInstance().getAssetId();
+ bitField0_ = (bitField0_ & ~0x00000400);
+ onChanged();
+ return this;
+ }
+ /**
+ * string asset_id = 11;
+ * @param value The bytes for assetId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAssetIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ assetId_ = value;
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object accountId_ = "";
+ /**
+ * string account_id = 12;
+ * @return The accountId.
+ */
+ public java.lang.String getAccountId() {
+ java.lang.Object ref = accountId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ accountId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string account_id = 12;
+ * @return The bytes for accountId.
+ */
+ public com.google.protobuf.ByteString
+ getAccountIdBytes() {
+ java.lang.Object ref = accountId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ accountId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string account_id = 12;
+ * @param value The accountId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAccountId(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ accountId_ = value;
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return this;
+ }
+ /**
+ * string account_id = 12;
+ * @return This builder for chaining.
+ */
+ public Builder clearAccountId() {
+ accountId_ = getDefaultInstance().getAccountId();
+ bitField0_ = (bitField0_ & ~0x00000800);
+ onChanged();
+ return this;
+ }
+ /**
+ * string account_id = 12;
+ * @param value The bytes for accountId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAccountIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ accountId_ = value;
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:message.Session)
+ }
+
+ // @@protoc_insertion_point(class_scope:message.Session)
+ private static final org.jumpserver.wisp.Common.Session DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.jumpserver.wisp.Common.Session();
+ }
+
+ public static org.jumpserver.wisp.Common.Session getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Session parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Session getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface TerminalTaskOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:message.TerminalTask)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ java.lang.String getId();
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ com.google.protobuf.ByteString
+ getIdBytes();
+
+ /**
+ * .message.TaskAction action = 2;
+ * @return The enum numeric value on the wire for action.
+ */
+ int getActionValue();
+ /**
+ * .message.TaskAction action = 2;
+ * @return The action.
+ */
+ org.jumpserver.wisp.Common.TaskAction getAction();
+
+ /**
+ * string session_id = 3;
+ * @return The sessionId.
+ */
+ java.lang.String getSessionId();
+ /**
+ * string session_id = 3;
+ * @return The bytes for sessionId.
+ */
+ com.google.protobuf.ByteString
+ getSessionIdBytes();
+
+ /**
+ * string terminated_by = 4;
+ * @return The terminatedBy.
+ */
+ java.lang.String getTerminatedBy();
+ /**
+ * string terminated_by = 4;
+ * @return The bytes for terminatedBy.
+ */
+ com.google.protobuf.ByteString
+ getTerminatedByBytes();
+
+ /**
+ * string created_by = 5;
+ * @return The createdBy.
+ */
+ java.lang.String getCreatedBy();
+ /**
+ * string created_by = 5;
+ * @return The bytes for createdBy.
+ */
+ com.google.protobuf.ByteString
+ getCreatedByBytes();
+ }
+ /**
+ * Protobuf type {@code message.TerminalTask}
+ */
+ public static final class TerminalTask extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:message.TerminalTask)
+ TerminalTaskOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ TerminalTask.class.getName());
+ }
+ // Use TerminalTask.newBuilder() to construct.
+ private TerminalTask(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private TerminalTask() {
+ id_ = "";
+ action_ = 0;
+ sessionId_ = "";
+ terminatedBy_ = "";
+ createdBy_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_TerminalTask_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_TerminalTask_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.TerminalTask.class, org.jumpserver.wisp.Common.TerminalTask.Builder.class);
+ }
+
+ public static final int ID_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object id_ = "";
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ @java.lang.Override
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ }
+ }
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ACTION_FIELD_NUMBER = 2;
+ private int action_ = 0;
+ /**
+ * .message.TaskAction action = 2;
+ * @return The enum numeric value on the wire for action.
+ */
+ @java.lang.Override public int getActionValue() {
+ return action_;
+ }
+ /**
+ * .message.TaskAction action = 2;
+ * @return The action.
+ */
+ @java.lang.Override public org.jumpserver.wisp.Common.TaskAction getAction() {
+ org.jumpserver.wisp.Common.TaskAction result = org.jumpserver.wisp.Common.TaskAction.forNumber(action_);
+ return result == null ? org.jumpserver.wisp.Common.TaskAction.UNRECOGNIZED : result;
+ }
+
+ public static final int SESSION_ID_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object sessionId_ = "";
+ /**
+ * string session_id = 3;
+ * @return The sessionId.
+ */
+ @java.lang.Override
+ public java.lang.String getSessionId() {
+ java.lang.Object ref = sessionId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sessionId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string session_id = 3;
+ * @return The bytes for sessionId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSessionIdBytes() {
+ java.lang.Object ref = sessionId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sessionId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TERMINATED_BY_FIELD_NUMBER = 4;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object terminatedBy_ = "";
+ /**
+ * string terminated_by = 4;
+ * @return The terminatedBy.
+ */
+ @java.lang.Override
+ public java.lang.String getTerminatedBy() {
+ java.lang.Object ref = terminatedBy_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ terminatedBy_ = s;
+ return s;
+ }
+ }
+ /**
+ * string terminated_by = 4;
+ * @return The bytes for terminatedBy.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getTerminatedByBytes() {
+ java.lang.Object ref = terminatedBy_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ terminatedBy_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CREATED_BY_FIELD_NUMBER = 5;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object createdBy_ = "";
+ /**
+ * string created_by = 5;
+ * @return The createdBy.
+ */
+ @java.lang.Override
+ public java.lang.String getCreatedBy() {
+ java.lang.Object ref = createdBy_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ createdBy_ = s;
+ return s;
+ }
+ }
+ /**
+ * string created_by = 5;
+ * @return The bytes for createdBy.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getCreatedByBytes() {
+ java.lang.Object ref = createdBy_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ createdBy_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, id_);
+ }
+ if (action_ != org.jumpserver.wisp.Common.TaskAction.KillSession.getNumber()) {
+ output.writeEnum(2, action_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sessionId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, sessionId_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(terminatedBy_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, terminatedBy_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(createdBy_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 5, createdBy_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_);
+ }
+ if (action_ != org.jumpserver.wisp.Common.TaskAction.KillSession.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(2, action_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sessionId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, sessionId_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(terminatedBy_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, terminatedBy_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(createdBy_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(5, createdBy_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.jumpserver.wisp.Common.TerminalTask)) {
+ return super.equals(obj);
+ }
+ org.jumpserver.wisp.Common.TerminalTask other = (org.jumpserver.wisp.Common.TerminalTask) obj;
+
+ if (!getId()
+ .equals(other.getId())) return false;
+ if (action_ != other.action_) return false;
+ if (!getSessionId()
+ .equals(other.getSessionId())) return false;
+ if (!getTerminatedBy()
+ .equals(other.getTerminatedBy())) return false;
+ if (!getCreatedBy()
+ .equals(other.getCreatedBy())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId().hashCode();
+ hash = (37 * hash) + ACTION_FIELD_NUMBER;
+ hash = (53 * hash) + action_;
+ hash = (37 * hash) + SESSION_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getSessionId().hashCode();
+ hash = (37 * hash) + TERMINATED_BY_FIELD_NUMBER;
+ hash = (53 * hash) + getTerminatedBy().hashCode();
+ hash = (37 * hash) + CREATED_BY_FIELD_NUMBER;
+ hash = (53 * hash) + getCreatedBy().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.jumpserver.wisp.Common.TerminalTask parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.TerminalTask parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.TerminalTask parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.TerminalTask parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.TerminalTask parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.TerminalTask parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.TerminalTask parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.TerminalTask parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static org.jumpserver.wisp.Common.TerminalTask parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static org.jumpserver.wisp.Common.TerminalTask parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.TerminalTask parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.TerminalTask parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.jumpserver.wisp.Common.TerminalTask prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code message.TerminalTask}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:message.TerminalTask)
+ org.jumpserver.wisp.Common.TerminalTaskOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_TerminalTask_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_TerminalTask_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.TerminalTask.class, org.jumpserver.wisp.Common.TerminalTask.Builder.class);
+ }
+
+ // Construct using org.jumpserver.wisp.Common.TerminalTask.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ id_ = "";
+ action_ = 0;
+ sessionId_ = "";
+ terminatedBy_ = "";
+ createdBy_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.jumpserver.wisp.Common.internal_static_message_TerminalTask_descriptor;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.TerminalTask getDefaultInstanceForType() {
+ return org.jumpserver.wisp.Common.TerminalTask.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.TerminalTask build() {
+ org.jumpserver.wisp.Common.TerminalTask result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.TerminalTask buildPartial() {
+ org.jumpserver.wisp.Common.TerminalTask result = new org.jumpserver.wisp.Common.TerminalTask(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(org.jumpserver.wisp.Common.TerminalTask result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.id_ = id_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.action_ = action_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.sessionId_ = sessionId_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.terminatedBy_ = terminatedBy_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.createdBy_ = createdBy_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.jumpserver.wisp.Common.TerminalTask) {
+ return mergeFrom((org.jumpserver.wisp.Common.TerminalTask)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.jumpserver.wisp.Common.TerminalTask other) {
+ if (other == org.jumpserver.wisp.Common.TerminalTask.getDefaultInstance()) return this;
+ if (!other.getId().isEmpty()) {
+ id_ = other.id_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (other.action_ != 0) {
+ setActionValue(other.getActionValue());
+ }
+ if (!other.getSessionId().isEmpty()) {
+ sessionId_ = other.sessionId_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ if (!other.getTerminatedBy().isEmpty()) {
+ terminatedBy_ = other.terminatedBy_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ if (!other.getCreatedBy().isEmpty()) {
+ createdBy_ = other.createdBy_;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ id_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 16: {
+ action_ = input.readEnum();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 26: {
+ sessionId_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34: {
+ terminatedBy_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ case 42: {
+ createdBy_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object id_ = "";
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ public com.google.protobuf.ByteString
+ getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string id = 1;
+ * @param value The id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setId(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ id_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+ id_ = getDefaultInstance().getId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string id = 1;
+ * @param value The bytes for id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ id_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private int action_ = 0;
+ /**
+ * .message.TaskAction action = 2;
+ * @return The enum numeric value on the wire for action.
+ */
+ @java.lang.Override public int getActionValue() {
+ return action_;
+ }
+ /**
+ * .message.TaskAction action = 2;
+ * @param value The enum numeric value on the wire for action to set.
+ * @return This builder for chaining.
+ */
+ public Builder setActionValue(int value) {
+ action_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.TaskAction action = 2;
+ * @return The action.
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.TaskAction getAction() {
+ org.jumpserver.wisp.Common.TaskAction result = org.jumpserver.wisp.Common.TaskAction.forNumber(action_);
+ return result == null ? org.jumpserver.wisp.Common.TaskAction.UNRECOGNIZED : result;
+ }
+ /**
+ * .message.TaskAction action = 2;
+ * @param value The action to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAction(org.jumpserver.wisp.Common.TaskAction value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000002;
+ action_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.TaskAction action = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearAction() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ action_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object sessionId_ = "";
+ /**
+ * string session_id = 3;
+ * @return The sessionId.
+ */
+ public java.lang.String getSessionId() {
+ java.lang.Object ref = sessionId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sessionId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string session_id = 3;
+ * @return The bytes for sessionId.
+ */
+ public com.google.protobuf.ByteString
+ getSessionIdBytes() {
+ java.lang.Object ref = sessionId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sessionId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string session_id = 3;
+ * @param value The sessionId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSessionId(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ sessionId_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * string session_id = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearSessionId() {
+ sessionId_ = getDefaultInstance().getSessionId();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * string session_id = 3;
+ * @param value The bytes for sessionId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSessionIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ sessionId_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object terminatedBy_ = "";
+ /**
+ * string terminated_by = 4;
+ * @return The terminatedBy.
+ */
+ public java.lang.String getTerminatedBy() {
+ java.lang.Object ref = terminatedBy_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ terminatedBy_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string terminated_by = 4;
+ * @return The bytes for terminatedBy.
+ */
+ public com.google.protobuf.ByteString
+ getTerminatedByBytes() {
+ java.lang.Object ref = terminatedBy_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ terminatedBy_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string terminated_by = 4;
+ * @param value The terminatedBy to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTerminatedBy(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ terminatedBy_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * string terminated_by = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearTerminatedBy() {
+ terminatedBy_ = getDefaultInstance().getTerminatedBy();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ * string terminated_by = 4;
+ * @param value The bytes for terminatedBy to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTerminatedByBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ terminatedBy_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object createdBy_ = "";
+ /**
+ * string created_by = 5;
+ * @return The createdBy.
+ */
+ public java.lang.String getCreatedBy() {
+ java.lang.Object ref = createdBy_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ createdBy_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string created_by = 5;
+ * @return The bytes for createdBy.
+ */
+ public com.google.protobuf.ByteString
+ getCreatedByBytes() {
+ java.lang.Object ref = createdBy_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ createdBy_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string created_by = 5;
+ * @param value The createdBy to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCreatedBy(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ createdBy_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * string created_by = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearCreatedBy() {
+ createdBy_ = getDefaultInstance().getCreatedBy();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+ /**
+ * string created_by = 5;
+ * @param value The bytes for createdBy to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCreatedByBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ createdBy_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:message.TerminalTask)
+ }
+
+ // @@protoc_insertion_point(class_scope:message.TerminalTask)
+ private static final org.jumpserver.wisp.Common.TerminalTask DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.jumpserver.wisp.Common.TerminalTask();
+ }
+
+ public static org.jumpserver.wisp.Common.TerminalTask getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public TerminalTask parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.TerminalTask getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface TokenAuthInfoOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:message.TokenAuthInfo)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string key_id = 1;
+ * @return The keyId.
+ */
+ java.lang.String getKeyId();
+ /**
+ * string key_id = 1;
+ * @return The bytes for keyId.
+ */
+ com.google.protobuf.ByteString
+ getKeyIdBytes();
+
+ /**
+ * string secrete_id = 2;
+ * @return The secreteId.
+ */
+ java.lang.String getSecreteId();
+ /**
+ * string secrete_id = 2;
+ * @return The bytes for secreteId.
+ */
+ com.google.protobuf.ByteString
+ getSecreteIdBytes();
+
+ /**
+ * .message.Asset asset = 3;
+ * @return Whether the asset field is set.
+ */
+ boolean hasAsset();
+ /**
+ * .message.Asset asset = 3;
+ * @return The asset.
+ */
+ org.jumpserver.wisp.Common.Asset getAsset();
+ /**
+ * .message.Asset asset = 3;
+ */
+ org.jumpserver.wisp.Common.AssetOrBuilder getAssetOrBuilder();
+
+ /**
+ * .message.User user = 4;
+ * @return Whether the user field is set.
+ */
+ boolean hasUser();
+ /**
+ * .message.User user = 4;
+ * @return The user.
+ */
+ org.jumpserver.wisp.Common.User getUser();
+ /**
+ * .message.User user = 4;
+ */
+ org.jumpserver.wisp.Common.UserOrBuilder getUserOrBuilder();
+
+ /**
+ * .message.Account account = 5;
+ * @return Whether the account field is set.
+ */
+ boolean hasAccount();
+ /**
+ * .message.Account account = 5;
+ * @return The account.
+ */
+ org.jumpserver.wisp.Common.Account getAccount();
+ /**
+ * .message.Account account = 5;
+ */
+ org.jumpserver.wisp.Common.AccountOrBuilder getAccountOrBuilder();
+
+ /**
+ * .message.Permission permission = 6;
+ * @return Whether the permission field is set.
+ */
+ boolean hasPermission();
+ /**
+ * .message.Permission permission = 6;
+ * @return The permission.
+ */
+ org.jumpserver.wisp.Common.Permission getPermission();
+ /**
+ * .message.Permission permission = 6;
+ */
+ org.jumpserver.wisp.Common.PermissionOrBuilder getPermissionOrBuilder();
+
+ /**
+ * .message.ExpireInfo expire_info = 7;
+ * @return Whether the expireInfo field is set.
+ */
+ boolean hasExpireInfo();
+ /**
+ * .message.ExpireInfo expire_info = 7;
+ * @return The expireInfo.
+ */
+ org.jumpserver.wisp.Common.ExpireInfo getExpireInfo();
+ /**
+ * .message.ExpireInfo expire_info = 7;
+ */
+ org.jumpserver.wisp.Common.ExpireInfoOrBuilder getExpireInfoOrBuilder();
+
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ java.util.List
+ getFilterRulesList();
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ org.jumpserver.wisp.Common.CommandACL getFilterRules(int index);
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ int getFilterRulesCount();
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ java.util.List extends org.jumpserver.wisp.Common.CommandACLOrBuilder>
+ getFilterRulesOrBuilderList();
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ org.jumpserver.wisp.Common.CommandACLOrBuilder getFilterRulesOrBuilder(
+ int index);
+
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ java.util.List
+ getGatewaysList();
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ org.jumpserver.wisp.Common.Gateway getGateways(int index);
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ int getGatewaysCount();
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ java.util.List extends org.jumpserver.wisp.Common.GatewayOrBuilder>
+ getGatewaysOrBuilderList();
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ org.jumpserver.wisp.Common.GatewayOrBuilder getGatewaysOrBuilder(
+ int index);
+
+ /**
+ * .message.ComponentSetting setting = 10;
+ * @return Whether the setting field is set.
+ */
+ boolean hasSetting();
+ /**
+ * .message.ComponentSetting setting = 10;
+ * @return The setting.
+ */
+ org.jumpserver.wisp.Common.ComponentSetting getSetting();
+ /**
+ * .message.ComponentSetting setting = 10;
+ */
+ org.jumpserver.wisp.Common.ComponentSettingOrBuilder getSettingOrBuilder();
+
+ /**
+ * .message.Platform platform = 11;
+ * @return Whether the platform field is set.
+ */
+ boolean hasPlatform();
+ /**
+ * .message.Platform platform = 11;
+ * @return The platform.
+ */
+ org.jumpserver.wisp.Common.Platform getPlatform();
+ /**
+ * .message.Platform platform = 11;
+ */
+ org.jumpserver.wisp.Common.PlatformOrBuilder getPlatformOrBuilder();
+ }
+ /**
+ * Protobuf type {@code message.TokenAuthInfo}
+ */
+ public static final class TokenAuthInfo extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:message.TokenAuthInfo)
+ TokenAuthInfoOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ TokenAuthInfo.class.getName());
+ }
+ // Use TokenAuthInfo.newBuilder() to construct.
+ private TokenAuthInfo(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private TokenAuthInfo() {
+ keyId_ = "";
+ secreteId_ = "";
+ filterRules_ = java.util.Collections.emptyList();
+ gateways_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_TokenAuthInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_TokenAuthInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.TokenAuthInfo.class, org.jumpserver.wisp.Common.TokenAuthInfo.Builder.class);
+ }
+
+ private int bitField0_;
+ public static final int KEY_ID_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object keyId_ = "";
+ /**
+ * string key_id = 1;
+ * @return The keyId.
+ */
+ @java.lang.Override
+ public java.lang.String getKeyId() {
+ java.lang.Object ref = keyId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ keyId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string key_id = 1;
+ * @return The bytes for keyId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getKeyIdBytes() {
+ java.lang.Object ref = keyId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ keyId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SECRETE_ID_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object secreteId_ = "";
+ /**
+ * string secrete_id = 2;
+ * @return The secreteId.
+ */
+ @java.lang.Override
+ public java.lang.String getSecreteId() {
+ java.lang.Object ref = secreteId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ secreteId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string secrete_id = 2;
+ * @return The bytes for secreteId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getSecreteIdBytes() {
+ java.lang.Object ref = secreteId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ secreteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ASSET_FIELD_NUMBER = 3;
+ private org.jumpserver.wisp.Common.Asset asset_;
+ /**
+ * .message.Asset asset = 3;
+ * @return Whether the asset field is set.
+ */
+ @java.lang.Override
+ public boolean hasAsset() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ * .message.Asset asset = 3;
+ * @return The asset.
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Asset getAsset() {
+ return asset_ == null ? org.jumpserver.wisp.Common.Asset.getDefaultInstance() : asset_;
+ }
+ /**
+ * .message.Asset asset = 3;
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.AssetOrBuilder getAssetOrBuilder() {
+ return asset_ == null ? org.jumpserver.wisp.Common.Asset.getDefaultInstance() : asset_;
+ }
+
+ public static final int USER_FIELD_NUMBER = 4;
+ private org.jumpserver.wisp.Common.User user_;
+ /**
+ * .message.User user = 4;
+ * @return Whether the user field is set.
+ */
+ @java.lang.Override
+ public boolean hasUser() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * .message.User user = 4;
+ * @return The user.
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.User getUser() {
+ return user_ == null ? org.jumpserver.wisp.Common.User.getDefaultInstance() : user_;
+ }
+ /**
+ * .message.User user = 4;
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.UserOrBuilder getUserOrBuilder() {
+ return user_ == null ? org.jumpserver.wisp.Common.User.getDefaultInstance() : user_;
+ }
+
+ public static final int ACCOUNT_FIELD_NUMBER = 5;
+ private org.jumpserver.wisp.Common.Account account_;
+ /**
+ * .message.Account account = 5;
+ * @return Whether the account field is set.
+ */
+ @java.lang.Override
+ public boolean hasAccount() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * .message.Account account = 5;
+ * @return The account.
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Account getAccount() {
+ return account_ == null ? org.jumpserver.wisp.Common.Account.getDefaultInstance() : account_;
+ }
+ /**
+ * .message.Account account = 5;
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.AccountOrBuilder getAccountOrBuilder() {
+ return account_ == null ? org.jumpserver.wisp.Common.Account.getDefaultInstance() : account_;
+ }
+
+ public static final int PERMISSION_FIELD_NUMBER = 6;
+ private org.jumpserver.wisp.Common.Permission permission_;
+ /**
+ * .message.Permission permission = 6;
+ * @return Whether the permission field is set.
+ */
+ @java.lang.Override
+ public boolean hasPermission() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * .message.Permission permission = 6;
+ * @return The permission.
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Permission getPermission() {
+ return permission_ == null ? org.jumpserver.wisp.Common.Permission.getDefaultInstance() : permission_;
+ }
+ /**
+ * .message.Permission permission = 6;
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.PermissionOrBuilder getPermissionOrBuilder() {
+ return permission_ == null ? org.jumpserver.wisp.Common.Permission.getDefaultInstance() : permission_;
+ }
+
+ public static final int EXPIRE_INFO_FIELD_NUMBER = 7;
+ private org.jumpserver.wisp.Common.ExpireInfo expireInfo_;
+ /**
+ * .message.ExpireInfo expire_info = 7;
+ * @return Whether the expireInfo field is set.
+ */
+ @java.lang.Override
+ public boolean hasExpireInfo() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * .message.ExpireInfo expire_info = 7;
+ * @return The expireInfo.
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.ExpireInfo getExpireInfo() {
+ return expireInfo_ == null ? org.jumpserver.wisp.Common.ExpireInfo.getDefaultInstance() : expireInfo_;
+ }
+ /**
+ * .message.ExpireInfo expire_info = 7;
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.ExpireInfoOrBuilder getExpireInfoOrBuilder() {
+ return expireInfo_ == null ? org.jumpserver.wisp.Common.ExpireInfo.getDefaultInstance() : expireInfo_;
+ }
+
+ public static final int FILTER_RULES_FIELD_NUMBER = 8;
+ @SuppressWarnings("serial")
+ private java.util.List filterRules_;
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ @java.lang.Override
+ public java.util.List getFilterRulesList() {
+ return filterRules_;
+ }
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ @java.lang.Override
+ public java.util.List extends org.jumpserver.wisp.Common.CommandACLOrBuilder>
+ getFilterRulesOrBuilderList() {
+ return filterRules_;
+ }
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ @java.lang.Override
+ public int getFilterRulesCount() {
+ return filterRules_.size();
+ }
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.CommandACL getFilterRules(int index) {
+ return filterRules_.get(index);
+ }
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.CommandACLOrBuilder getFilterRulesOrBuilder(
+ int index) {
+ return filterRules_.get(index);
+ }
+
+ public static final int GATEWAYS_FIELD_NUMBER = 9;
+ @SuppressWarnings("serial")
+ private java.util.List gateways_;
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ @java.lang.Override
+ public java.util.List getGatewaysList() {
+ return gateways_;
+ }
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ @java.lang.Override
+ public java.util.List extends org.jumpserver.wisp.Common.GatewayOrBuilder>
+ getGatewaysOrBuilderList() {
+ return gateways_;
+ }
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ @java.lang.Override
+ public int getGatewaysCount() {
+ return gateways_.size();
+ }
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Gateway getGateways(int index) {
+ return gateways_.get(index);
+ }
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.GatewayOrBuilder getGatewaysOrBuilder(
+ int index) {
+ return gateways_.get(index);
+ }
+
+ public static final int SETTING_FIELD_NUMBER = 10;
+ private org.jumpserver.wisp.Common.ComponentSetting setting_;
+ /**
+ * .message.ComponentSetting setting = 10;
+ * @return Whether the setting field is set.
+ */
+ @java.lang.Override
+ public boolean hasSetting() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * .message.ComponentSetting setting = 10;
+ * @return The setting.
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.ComponentSetting getSetting() {
+ return setting_ == null ? org.jumpserver.wisp.Common.ComponentSetting.getDefaultInstance() : setting_;
+ }
+ /**
+ * .message.ComponentSetting setting = 10;
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.ComponentSettingOrBuilder getSettingOrBuilder() {
+ return setting_ == null ? org.jumpserver.wisp.Common.ComponentSetting.getDefaultInstance() : setting_;
+ }
+
+ public static final int PLATFORM_FIELD_NUMBER = 11;
+ private org.jumpserver.wisp.Common.Platform platform_;
+ /**
+ * .message.Platform platform = 11;
+ * @return Whether the platform field is set.
+ */
+ @java.lang.Override
+ public boolean hasPlatform() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ * .message.Platform platform = 11;
+ * @return The platform.
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Platform getPlatform() {
+ return platform_ == null ? org.jumpserver.wisp.Common.Platform.getDefaultInstance() : platform_;
+ }
+ /**
+ * .message.Platform platform = 11;
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.PlatformOrBuilder getPlatformOrBuilder() {
+ return platform_ == null ? org.jumpserver.wisp.Common.Platform.getDefaultInstance() : platform_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(keyId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, keyId_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(secreteId_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, secreteId_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(3, getAsset());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(4, getUser());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeMessage(5, getAccount());
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(6, getPermission());
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ output.writeMessage(7, getExpireInfo());
+ }
+ for (int i = 0; i < filterRules_.size(); i++) {
+ output.writeMessage(8, filterRules_.get(i));
+ }
+ for (int i = 0; i < gateways_.size(); i++) {
+ output.writeMessage(9, gateways_.get(i));
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ output.writeMessage(10, getSetting());
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ output.writeMessage(11, getPlatform());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(keyId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, keyId_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(secreteId_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, secreteId_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getAsset());
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, getUser());
+ }
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(5, getAccount());
+ }
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(6, getPermission());
+ }
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(7, getExpireInfo());
+ }
+ for (int i = 0; i < filterRules_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(8, filterRules_.get(i));
+ }
+ for (int i = 0; i < gateways_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(9, gateways_.get(i));
+ }
+ if (((bitField0_ & 0x00000020) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(10, getSetting());
+ }
+ if (((bitField0_ & 0x00000040) != 0)) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(11, getPlatform());
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.jumpserver.wisp.Common.TokenAuthInfo)) {
+ return super.equals(obj);
+ }
+ org.jumpserver.wisp.Common.TokenAuthInfo other = (org.jumpserver.wisp.Common.TokenAuthInfo) obj;
+
+ if (!getKeyId()
+ .equals(other.getKeyId())) return false;
+ if (!getSecreteId()
+ .equals(other.getSecreteId())) return false;
+ if (hasAsset() != other.hasAsset()) return false;
+ if (hasAsset()) {
+ if (!getAsset()
+ .equals(other.getAsset())) return false;
+ }
+ if (hasUser() != other.hasUser()) return false;
+ if (hasUser()) {
+ if (!getUser()
+ .equals(other.getUser())) return false;
+ }
+ if (hasAccount() != other.hasAccount()) return false;
+ if (hasAccount()) {
+ if (!getAccount()
+ .equals(other.getAccount())) return false;
+ }
+ if (hasPermission() != other.hasPermission()) return false;
+ if (hasPermission()) {
+ if (!getPermission()
+ .equals(other.getPermission())) return false;
+ }
+ if (hasExpireInfo() != other.hasExpireInfo()) return false;
+ if (hasExpireInfo()) {
+ if (!getExpireInfo()
+ .equals(other.getExpireInfo())) return false;
+ }
+ if (!getFilterRulesList()
+ .equals(other.getFilterRulesList())) return false;
+ if (!getGatewaysList()
+ .equals(other.getGatewaysList())) return false;
+ if (hasSetting() != other.hasSetting()) return false;
+ if (hasSetting()) {
+ if (!getSetting()
+ .equals(other.getSetting())) return false;
+ }
+ if (hasPlatform() != other.hasPlatform()) return false;
+ if (hasPlatform()) {
+ if (!getPlatform()
+ .equals(other.getPlatform())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + KEY_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getKeyId().hashCode();
+ hash = (37 * hash) + SECRETE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getSecreteId().hashCode();
+ if (hasAsset()) {
+ hash = (37 * hash) + ASSET_FIELD_NUMBER;
+ hash = (53 * hash) + getAsset().hashCode();
+ }
+ if (hasUser()) {
+ hash = (37 * hash) + USER_FIELD_NUMBER;
+ hash = (53 * hash) + getUser().hashCode();
+ }
+ if (hasAccount()) {
+ hash = (37 * hash) + ACCOUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getAccount().hashCode();
+ }
+ if (hasPermission()) {
+ hash = (37 * hash) + PERMISSION_FIELD_NUMBER;
+ hash = (53 * hash) + getPermission().hashCode();
+ }
+ if (hasExpireInfo()) {
+ hash = (37 * hash) + EXPIRE_INFO_FIELD_NUMBER;
+ hash = (53 * hash) + getExpireInfo().hashCode();
+ }
+ if (getFilterRulesCount() > 0) {
+ hash = (37 * hash) + FILTER_RULES_FIELD_NUMBER;
+ hash = (53 * hash) + getFilterRulesList().hashCode();
+ }
+ if (getGatewaysCount() > 0) {
+ hash = (37 * hash) + GATEWAYS_FIELD_NUMBER;
+ hash = (53 * hash) + getGatewaysList().hashCode();
+ }
+ if (hasSetting()) {
+ hash = (37 * hash) + SETTING_FIELD_NUMBER;
+ hash = (53 * hash) + getSetting().hashCode();
+ }
+ if (hasPlatform()) {
+ hash = (37 * hash) + PLATFORM_FIELD_NUMBER;
+ hash = (53 * hash) + getPlatform().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.jumpserver.wisp.Common.TokenAuthInfo parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.TokenAuthInfo parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.TokenAuthInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.TokenAuthInfo parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.TokenAuthInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.TokenAuthInfo parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.TokenAuthInfo parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.TokenAuthInfo parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static org.jumpserver.wisp.Common.TokenAuthInfo parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static org.jumpserver.wisp.Common.TokenAuthInfo parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.TokenAuthInfo parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.TokenAuthInfo parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.jumpserver.wisp.Common.TokenAuthInfo prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code message.TokenAuthInfo}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:message.TokenAuthInfo)
+ org.jumpserver.wisp.Common.TokenAuthInfoOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_TokenAuthInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_TokenAuthInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.TokenAuthInfo.class, org.jumpserver.wisp.Common.TokenAuthInfo.Builder.class);
+ }
+
+ // Construct using org.jumpserver.wisp.Common.TokenAuthInfo.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessage
+ .alwaysUseFieldBuilders) {
+ getAssetFieldBuilder();
+ getUserFieldBuilder();
+ getAccountFieldBuilder();
+ getPermissionFieldBuilder();
+ getExpireInfoFieldBuilder();
+ getFilterRulesFieldBuilder();
+ getGatewaysFieldBuilder();
+ getSettingFieldBuilder();
+ getPlatformFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ keyId_ = "";
+ secreteId_ = "";
+ asset_ = null;
+ if (assetBuilder_ != null) {
+ assetBuilder_.dispose();
+ assetBuilder_ = null;
+ }
+ user_ = null;
+ if (userBuilder_ != null) {
+ userBuilder_.dispose();
+ userBuilder_ = null;
+ }
+ account_ = null;
+ if (accountBuilder_ != null) {
+ accountBuilder_.dispose();
+ accountBuilder_ = null;
+ }
+ permission_ = null;
+ if (permissionBuilder_ != null) {
+ permissionBuilder_.dispose();
+ permissionBuilder_ = null;
+ }
+ expireInfo_ = null;
+ if (expireInfoBuilder_ != null) {
+ expireInfoBuilder_.dispose();
+ expireInfoBuilder_ = null;
+ }
+ if (filterRulesBuilder_ == null) {
+ filterRules_ = java.util.Collections.emptyList();
+ } else {
+ filterRules_ = null;
+ filterRulesBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000080);
+ if (gatewaysBuilder_ == null) {
+ gateways_ = java.util.Collections.emptyList();
+ } else {
+ gateways_ = null;
+ gatewaysBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000100);
+ setting_ = null;
+ if (settingBuilder_ != null) {
+ settingBuilder_.dispose();
+ settingBuilder_ = null;
+ }
+ platform_ = null;
+ if (platformBuilder_ != null) {
+ platformBuilder_.dispose();
+ platformBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.jumpserver.wisp.Common.internal_static_message_TokenAuthInfo_descriptor;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.TokenAuthInfo getDefaultInstanceForType() {
+ return org.jumpserver.wisp.Common.TokenAuthInfo.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.TokenAuthInfo build() {
+ org.jumpserver.wisp.Common.TokenAuthInfo result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.TokenAuthInfo buildPartial() {
+ org.jumpserver.wisp.Common.TokenAuthInfo result = new org.jumpserver.wisp.Common.TokenAuthInfo(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(org.jumpserver.wisp.Common.TokenAuthInfo result) {
+ if (filterRulesBuilder_ == null) {
+ if (((bitField0_ & 0x00000080) != 0)) {
+ filterRules_ = java.util.Collections.unmodifiableList(filterRules_);
+ bitField0_ = (bitField0_ & ~0x00000080);
+ }
+ result.filterRules_ = filterRules_;
+ } else {
+ result.filterRules_ = filterRulesBuilder_.build();
+ }
+ if (gatewaysBuilder_ == null) {
+ if (((bitField0_ & 0x00000100) != 0)) {
+ gateways_ = java.util.Collections.unmodifiableList(gateways_);
+ bitField0_ = (bitField0_ & ~0x00000100);
+ }
+ result.gateways_ = gateways_;
+ } else {
+ result.gateways_ = gatewaysBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(org.jumpserver.wisp.Common.TokenAuthInfo result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.keyId_ = keyId_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.secreteId_ = secreteId_;
+ }
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.asset_ = assetBuilder_ == null
+ ? asset_
+ : assetBuilder_.build();
+ to_bitField0_ |= 0x00000001;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.user_ = userBuilder_ == null
+ ? user_
+ : userBuilder_.build();
+ to_bitField0_ |= 0x00000002;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.account_ = accountBuilder_ == null
+ ? account_
+ : accountBuilder_.build();
+ to_bitField0_ |= 0x00000004;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.permission_ = permissionBuilder_ == null
+ ? permission_
+ : permissionBuilder_.build();
+ to_bitField0_ |= 0x00000008;
+ }
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.expireInfo_ = expireInfoBuilder_ == null
+ ? expireInfo_
+ : expireInfoBuilder_.build();
+ to_bitField0_ |= 0x00000010;
+ }
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.setting_ = settingBuilder_ == null
+ ? setting_
+ : settingBuilder_.build();
+ to_bitField0_ |= 0x00000020;
+ }
+ if (((from_bitField0_ & 0x00000400) != 0)) {
+ result.platform_ = platformBuilder_ == null
+ ? platform_
+ : platformBuilder_.build();
+ to_bitField0_ |= 0x00000040;
+ }
+ result.bitField0_ |= to_bitField0_;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.jumpserver.wisp.Common.TokenAuthInfo) {
+ return mergeFrom((org.jumpserver.wisp.Common.TokenAuthInfo)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.jumpserver.wisp.Common.TokenAuthInfo other) {
+ if (other == org.jumpserver.wisp.Common.TokenAuthInfo.getDefaultInstance()) return this;
+ if (!other.getKeyId().isEmpty()) {
+ keyId_ = other.keyId_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getSecreteId().isEmpty()) {
+ secreteId_ = other.secreteId_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (other.hasAsset()) {
+ mergeAsset(other.getAsset());
+ }
+ if (other.hasUser()) {
+ mergeUser(other.getUser());
+ }
+ if (other.hasAccount()) {
+ mergeAccount(other.getAccount());
+ }
+ if (other.hasPermission()) {
+ mergePermission(other.getPermission());
+ }
+ if (other.hasExpireInfo()) {
+ mergeExpireInfo(other.getExpireInfo());
+ }
+ if (filterRulesBuilder_ == null) {
+ if (!other.filterRules_.isEmpty()) {
+ if (filterRules_.isEmpty()) {
+ filterRules_ = other.filterRules_;
+ bitField0_ = (bitField0_ & ~0x00000080);
+ } else {
+ ensureFilterRulesIsMutable();
+ filterRules_.addAll(other.filterRules_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.filterRules_.isEmpty()) {
+ if (filterRulesBuilder_.isEmpty()) {
+ filterRulesBuilder_.dispose();
+ filterRulesBuilder_ = null;
+ filterRules_ = other.filterRules_;
+ bitField0_ = (bitField0_ & ~0x00000080);
+ filterRulesBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getFilterRulesFieldBuilder() : null;
+ } else {
+ filterRulesBuilder_.addAllMessages(other.filterRules_);
+ }
+ }
+ }
+ if (gatewaysBuilder_ == null) {
+ if (!other.gateways_.isEmpty()) {
+ if (gateways_.isEmpty()) {
+ gateways_ = other.gateways_;
+ bitField0_ = (bitField0_ & ~0x00000100);
+ } else {
+ ensureGatewaysIsMutable();
+ gateways_.addAll(other.gateways_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.gateways_.isEmpty()) {
+ if (gatewaysBuilder_.isEmpty()) {
+ gatewaysBuilder_.dispose();
+ gatewaysBuilder_ = null;
+ gateways_ = other.gateways_;
+ bitField0_ = (bitField0_ & ~0x00000100);
+ gatewaysBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getGatewaysFieldBuilder() : null;
+ } else {
+ gatewaysBuilder_.addAllMessages(other.gateways_);
+ }
+ }
+ }
+ if (other.hasSetting()) {
+ mergeSetting(other.getSetting());
+ }
+ if (other.hasPlatform()) {
+ mergePlatform(other.getPlatform());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ keyId_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ secreteId_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ input.readMessage(
+ getAssetFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34: {
+ input.readMessage(
+ getUserFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ case 42: {
+ input.readMessage(
+ getAccountFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
+ case 50: {
+ input.readMessage(
+ getPermissionFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
+ case 58: {
+ input.readMessage(
+ getExpireInfoFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 58
+ case 66: {
+ org.jumpserver.wisp.Common.CommandACL m =
+ input.readMessage(
+ org.jumpserver.wisp.Common.CommandACL.parser(),
+ extensionRegistry);
+ if (filterRulesBuilder_ == null) {
+ ensureFilterRulesIsMutable();
+ filterRules_.add(m);
+ } else {
+ filterRulesBuilder_.addMessage(m);
+ }
+ break;
+ } // case 66
+ case 74: {
+ org.jumpserver.wisp.Common.Gateway m =
+ input.readMessage(
+ org.jumpserver.wisp.Common.Gateway.parser(),
+ extensionRegistry);
+ if (gatewaysBuilder_ == null) {
+ ensureGatewaysIsMutable();
+ gateways_.add(m);
+ } else {
+ gatewaysBuilder_.addMessage(m);
+ }
+ break;
+ } // case 74
+ case 82: {
+ input.readMessage(
+ getSettingFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000200;
+ break;
+ } // case 82
+ case 90: {
+ input.readMessage(
+ getPlatformFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000400;
+ break;
+ } // case 90
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object keyId_ = "";
+ /**
+ * string key_id = 1;
+ * @return The keyId.
+ */
+ public java.lang.String getKeyId() {
+ java.lang.Object ref = keyId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ keyId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string key_id = 1;
+ * @return The bytes for keyId.
+ */
+ public com.google.protobuf.ByteString
+ getKeyIdBytes() {
+ java.lang.Object ref = keyId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ keyId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string key_id = 1;
+ * @param value The keyId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKeyId(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ keyId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string key_id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearKeyId() {
+ keyId_ = getDefaultInstance().getKeyId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string key_id = 1;
+ * @param value The bytes for keyId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKeyIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ keyId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object secreteId_ = "";
+ /**
+ * string secrete_id = 2;
+ * @return The secreteId.
+ */
+ public java.lang.String getSecreteId() {
+ java.lang.Object ref = secreteId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ secreteId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string secrete_id = 2;
+ * @return The bytes for secreteId.
+ */
+ public com.google.protobuf.ByteString
+ getSecreteIdBytes() {
+ java.lang.Object ref = secreteId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ secreteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string secrete_id = 2;
+ * @param value The secreteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSecreteId(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ secreteId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * string secrete_id = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearSecreteId() {
+ secreteId_ = getDefaultInstance().getSecreteId();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string secrete_id = 2;
+ * @param value The bytes for secreteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSecreteIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ secreteId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private org.jumpserver.wisp.Common.Asset asset_;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.Asset, org.jumpserver.wisp.Common.Asset.Builder, org.jumpserver.wisp.Common.AssetOrBuilder> assetBuilder_;
+ /**
+ * .message.Asset asset = 3;
+ * @return Whether the asset field is set.
+ */
+ public boolean hasAsset() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ * .message.Asset asset = 3;
+ * @return The asset.
+ */
+ public org.jumpserver.wisp.Common.Asset getAsset() {
+ if (assetBuilder_ == null) {
+ return asset_ == null ? org.jumpserver.wisp.Common.Asset.getDefaultInstance() : asset_;
+ } else {
+ return assetBuilder_.getMessage();
+ }
+ }
+ /**
+ * .message.Asset asset = 3;
+ */
+ public Builder setAsset(org.jumpserver.wisp.Common.Asset value) {
+ if (assetBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ asset_ = value;
+ } else {
+ assetBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.Asset asset = 3;
+ */
+ public Builder setAsset(
+ org.jumpserver.wisp.Common.Asset.Builder builderForValue) {
+ if (assetBuilder_ == null) {
+ asset_ = builderForValue.build();
+ } else {
+ assetBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.Asset asset = 3;
+ */
+ public Builder mergeAsset(org.jumpserver.wisp.Common.Asset value) {
+ if (assetBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0) &&
+ asset_ != null &&
+ asset_ != org.jumpserver.wisp.Common.Asset.getDefaultInstance()) {
+ getAssetBuilder().mergeFrom(value);
+ } else {
+ asset_ = value;
+ }
+ } else {
+ assetBuilder_.mergeFrom(value);
+ }
+ if (asset_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .message.Asset asset = 3;
+ */
+ public Builder clearAsset() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ asset_ = null;
+ if (assetBuilder_ != null) {
+ assetBuilder_.dispose();
+ assetBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.Asset asset = 3;
+ */
+ public org.jumpserver.wisp.Common.Asset.Builder getAssetBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getAssetFieldBuilder().getBuilder();
+ }
+ /**
+ * .message.Asset asset = 3;
+ */
+ public org.jumpserver.wisp.Common.AssetOrBuilder getAssetOrBuilder() {
+ if (assetBuilder_ != null) {
+ return assetBuilder_.getMessageOrBuilder();
+ } else {
+ return asset_ == null ?
+ org.jumpserver.wisp.Common.Asset.getDefaultInstance() : asset_;
+ }
+ }
+ /**
+ * .message.Asset asset = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.Asset, org.jumpserver.wisp.Common.Asset.Builder, org.jumpserver.wisp.Common.AssetOrBuilder>
+ getAssetFieldBuilder() {
+ if (assetBuilder_ == null) {
+ assetBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.Asset, org.jumpserver.wisp.Common.Asset.Builder, org.jumpserver.wisp.Common.AssetOrBuilder>(
+ getAsset(),
+ getParentForChildren(),
+ isClean());
+ asset_ = null;
+ }
+ return assetBuilder_;
+ }
+
+ private org.jumpserver.wisp.Common.User user_;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.User, org.jumpserver.wisp.Common.User.Builder, org.jumpserver.wisp.Common.UserOrBuilder> userBuilder_;
+ /**
+ * .message.User user = 4;
+ * @return Whether the user field is set.
+ */
+ public boolean hasUser() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ * .message.User user = 4;
+ * @return The user.
+ */
+ public org.jumpserver.wisp.Common.User getUser() {
+ if (userBuilder_ == null) {
+ return user_ == null ? org.jumpserver.wisp.Common.User.getDefaultInstance() : user_;
+ } else {
+ return userBuilder_.getMessage();
+ }
+ }
+ /**
+ * .message.User user = 4;
+ */
+ public Builder setUser(org.jumpserver.wisp.Common.User value) {
+ if (userBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ user_ = value;
+ } else {
+ userBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.User user = 4;
+ */
+ public Builder setUser(
+ org.jumpserver.wisp.Common.User.Builder builderForValue) {
+ if (userBuilder_ == null) {
+ user_ = builderForValue.build();
+ } else {
+ userBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.User user = 4;
+ */
+ public Builder mergeUser(org.jumpserver.wisp.Common.User value) {
+ if (userBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0) &&
+ user_ != null &&
+ user_ != org.jumpserver.wisp.Common.User.getDefaultInstance()) {
+ getUserBuilder().mergeFrom(value);
+ } else {
+ user_ = value;
+ }
+ } else {
+ userBuilder_.mergeFrom(value);
+ }
+ if (user_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .message.User user = 4;
+ */
+ public Builder clearUser() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ user_ = null;
+ if (userBuilder_ != null) {
+ userBuilder_.dispose();
+ userBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.User user = 4;
+ */
+ public org.jumpserver.wisp.Common.User.Builder getUserBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return getUserFieldBuilder().getBuilder();
+ }
+ /**
+ * .message.User user = 4;
+ */
+ public org.jumpserver.wisp.Common.UserOrBuilder getUserOrBuilder() {
+ if (userBuilder_ != null) {
+ return userBuilder_.getMessageOrBuilder();
+ } else {
+ return user_ == null ?
+ org.jumpserver.wisp.Common.User.getDefaultInstance() : user_;
+ }
+ }
+ /**
+ * .message.User user = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.User, org.jumpserver.wisp.Common.User.Builder, org.jumpserver.wisp.Common.UserOrBuilder>
+ getUserFieldBuilder() {
+ if (userBuilder_ == null) {
+ userBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.User, org.jumpserver.wisp.Common.User.Builder, org.jumpserver.wisp.Common.UserOrBuilder>(
+ getUser(),
+ getParentForChildren(),
+ isClean());
+ user_ = null;
+ }
+ return userBuilder_;
+ }
+
+ private org.jumpserver.wisp.Common.Account account_;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.Account, org.jumpserver.wisp.Common.Account.Builder, org.jumpserver.wisp.Common.AccountOrBuilder> accountBuilder_;
+ /**
+ * .message.Account account = 5;
+ * @return Whether the account field is set.
+ */
+ public boolean hasAccount() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ * .message.Account account = 5;
+ * @return The account.
+ */
+ public org.jumpserver.wisp.Common.Account getAccount() {
+ if (accountBuilder_ == null) {
+ return account_ == null ? org.jumpserver.wisp.Common.Account.getDefaultInstance() : account_;
+ } else {
+ return accountBuilder_.getMessage();
+ }
+ }
+ /**
+ * .message.Account account = 5;
+ */
+ public Builder setAccount(org.jumpserver.wisp.Common.Account value) {
+ if (accountBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ account_ = value;
+ } else {
+ accountBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.Account account = 5;
+ */
+ public Builder setAccount(
+ org.jumpserver.wisp.Common.Account.Builder builderForValue) {
+ if (accountBuilder_ == null) {
+ account_ = builderForValue.build();
+ } else {
+ accountBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.Account account = 5;
+ */
+ public Builder mergeAccount(org.jumpserver.wisp.Common.Account value) {
+ if (accountBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0) &&
+ account_ != null &&
+ account_ != org.jumpserver.wisp.Common.Account.getDefaultInstance()) {
+ getAccountBuilder().mergeFrom(value);
+ } else {
+ account_ = value;
+ }
+ } else {
+ accountBuilder_.mergeFrom(value);
+ }
+ if (account_ != null) {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .message.Account account = 5;
+ */
+ public Builder clearAccount() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ account_ = null;
+ if (accountBuilder_ != null) {
+ accountBuilder_.dispose();
+ accountBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.Account account = 5;
+ */
+ public org.jumpserver.wisp.Common.Account.Builder getAccountBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return getAccountFieldBuilder().getBuilder();
+ }
+ /**
+ * .message.Account account = 5;
+ */
+ public org.jumpserver.wisp.Common.AccountOrBuilder getAccountOrBuilder() {
+ if (accountBuilder_ != null) {
+ return accountBuilder_.getMessageOrBuilder();
+ } else {
+ return account_ == null ?
+ org.jumpserver.wisp.Common.Account.getDefaultInstance() : account_;
+ }
+ }
+ /**
+ * .message.Account account = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.Account, org.jumpserver.wisp.Common.Account.Builder, org.jumpserver.wisp.Common.AccountOrBuilder>
+ getAccountFieldBuilder() {
+ if (accountBuilder_ == null) {
+ accountBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.Account, org.jumpserver.wisp.Common.Account.Builder, org.jumpserver.wisp.Common.AccountOrBuilder>(
+ getAccount(),
+ getParentForChildren(),
+ isClean());
+ account_ = null;
+ }
+ return accountBuilder_;
+ }
+
+ private org.jumpserver.wisp.Common.Permission permission_;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.Permission, org.jumpserver.wisp.Common.Permission.Builder, org.jumpserver.wisp.Common.PermissionOrBuilder> permissionBuilder_;
+ /**
+ * .message.Permission permission = 6;
+ * @return Whether the permission field is set.
+ */
+ public boolean hasPermission() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ * .message.Permission permission = 6;
+ * @return The permission.
+ */
+ public org.jumpserver.wisp.Common.Permission getPermission() {
+ if (permissionBuilder_ == null) {
+ return permission_ == null ? org.jumpserver.wisp.Common.Permission.getDefaultInstance() : permission_;
+ } else {
+ return permissionBuilder_.getMessage();
+ }
+ }
+ /**
+ * .message.Permission permission = 6;
+ */
+ public Builder setPermission(org.jumpserver.wisp.Common.Permission value) {
+ if (permissionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ permission_ = value;
+ } else {
+ permissionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.Permission permission = 6;
+ */
+ public Builder setPermission(
+ org.jumpserver.wisp.Common.Permission.Builder builderForValue) {
+ if (permissionBuilder_ == null) {
+ permission_ = builderForValue.build();
+ } else {
+ permissionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.Permission permission = 6;
+ */
+ public Builder mergePermission(org.jumpserver.wisp.Common.Permission value) {
+ if (permissionBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0) &&
+ permission_ != null &&
+ permission_ != org.jumpserver.wisp.Common.Permission.getDefaultInstance()) {
+ getPermissionBuilder().mergeFrom(value);
+ } else {
+ permission_ = value;
+ }
+ } else {
+ permissionBuilder_.mergeFrom(value);
+ }
+ if (permission_ != null) {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .message.Permission permission = 6;
+ */
+ public Builder clearPermission() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ permission_ = null;
+ if (permissionBuilder_ != null) {
+ permissionBuilder_.dispose();
+ permissionBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.Permission permission = 6;
+ */
+ public org.jumpserver.wisp.Common.Permission.Builder getPermissionBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return getPermissionFieldBuilder().getBuilder();
+ }
+ /**
+ * .message.Permission permission = 6;
+ */
+ public org.jumpserver.wisp.Common.PermissionOrBuilder getPermissionOrBuilder() {
+ if (permissionBuilder_ != null) {
+ return permissionBuilder_.getMessageOrBuilder();
+ } else {
+ return permission_ == null ?
+ org.jumpserver.wisp.Common.Permission.getDefaultInstance() : permission_;
+ }
+ }
+ /**
+ * .message.Permission permission = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.Permission, org.jumpserver.wisp.Common.Permission.Builder, org.jumpserver.wisp.Common.PermissionOrBuilder>
+ getPermissionFieldBuilder() {
+ if (permissionBuilder_ == null) {
+ permissionBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.Permission, org.jumpserver.wisp.Common.Permission.Builder, org.jumpserver.wisp.Common.PermissionOrBuilder>(
+ getPermission(),
+ getParentForChildren(),
+ isClean());
+ permission_ = null;
+ }
+ return permissionBuilder_;
+ }
+
+ private org.jumpserver.wisp.Common.ExpireInfo expireInfo_;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.ExpireInfo, org.jumpserver.wisp.Common.ExpireInfo.Builder, org.jumpserver.wisp.Common.ExpireInfoOrBuilder> expireInfoBuilder_;
+ /**
+ * .message.ExpireInfo expire_info = 7;
+ * @return Whether the expireInfo field is set.
+ */
+ public boolean hasExpireInfo() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ * .message.ExpireInfo expire_info = 7;
+ * @return The expireInfo.
+ */
+ public org.jumpserver.wisp.Common.ExpireInfo getExpireInfo() {
+ if (expireInfoBuilder_ == null) {
+ return expireInfo_ == null ? org.jumpserver.wisp.Common.ExpireInfo.getDefaultInstance() : expireInfo_;
+ } else {
+ return expireInfoBuilder_.getMessage();
+ }
+ }
+ /**
+ * .message.ExpireInfo expire_info = 7;
+ */
+ public Builder setExpireInfo(org.jumpserver.wisp.Common.ExpireInfo value) {
+ if (expireInfoBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ expireInfo_ = value;
+ } else {
+ expireInfoBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.ExpireInfo expire_info = 7;
+ */
+ public Builder setExpireInfo(
+ org.jumpserver.wisp.Common.ExpireInfo.Builder builderForValue) {
+ if (expireInfoBuilder_ == null) {
+ expireInfo_ = builderForValue.build();
+ } else {
+ expireInfoBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.ExpireInfo expire_info = 7;
+ */
+ public Builder mergeExpireInfo(org.jumpserver.wisp.Common.ExpireInfo value) {
+ if (expireInfoBuilder_ == null) {
+ if (((bitField0_ & 0x00000040) != 0) &&
+ expireInfo_ != null &&
+ expireInfo_ != org.jumpserver.wisp.Common.ExpireInfo.getDefaultInstance()) {
+ getExpireInfoBuilder().mergeFrom(value);
+ } else {
+ expireInfo_ = value;
+ }
+ } else {
+ expireInfoBuilder_.mergeFrom(value);
+ }
+ if (expireInfo_ != null) {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .message.ExpireInfo expire_info = 7;
+ */
+ public Builder clearExpireInfo() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ expireInfo_ = null;
+ if (expireInfoBuilder_ != null) {
+ expireInfoBuilder_.dispose();
+ expireInfoBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.ExpireInfo expire_info = 7;
+ */
+ public org.jumpserver.wisp.Common.ExpireInfo.Builder getExpireInfoBuilder() {
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return getExpireInfoFieldBuilder().getBuilder();
+ }
+ /**
+ * .message.ExpireInfo expire_info = 7;
+ */
+ public org.jumpserver.wisp.Common.ExpireInfoOrBuilder getExpireInfoOrBuilder() {
+ if (expireInfoBuilder_ != null) {
+ return expireInfoBuilder_.getMessageOrBuilder();
+ } else {
+ return expireInfo_ == null ?
+ org.jumpserver.wisp.Common.ExpireInfo.getDefaultInstance() : expireInfo_;
+ }
+ }
+ /**
+ * .message.ExpireInfo expire_info = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.ExpireInfo, org.jumpserver.wisp.Common.ExpireInfo.Builder, org.jumpserver.wisp.Common.ExpireInfoOrBuilder>
+ getExpireInfoFieldBuilder() {
+ if (expireInfoBuilder_ == null) {
+ expireInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.ExpireInfo, org.jumpserver.wisp.Common.ExpireInfo.Builder, org.jumpserver.wisp.Common.ExpireInfoOrBuilder>(
+ getExpireInfo(),
+ getParentForChildren(),
+ isClean());
+ expireInfo_ = null;
+ }
+ return expireInfoBuilder_;
+ }
+
+ private java.util.List filterRules_ =
+ java.util.Collections.emptyList();
+ private void ensureFilterRulesIsMutable() {
+ if (!((bitField0_ & 0x00000080) != 0)) {
+ filterRules_ = new java.util.ArrayList(filterRules_);
+ bitField0_ |= 0x00000080;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.jumpserver.wisp.Common.CommandACL, org.jumpserver.wisp.Common.CommandACL.Builder, org.jumpserver.wisp.Common.CommandACLOrBuilder> filterRulesBuilder_;
+
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ public java.util.List getFilterRulesList() {
+ if (filterRulesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(filterRules_);
+ } else {
+ return filterRulesBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ public int getFilterRulesCount() {
+ if (filterRulesBuilder_ == null) {
+ return filterRules_.size();
+ } else {
+ return filterRulesBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ public org.jumpserver.wisp.Common.CommandACL getFilterRules(int index) {
+ if (filterRulesBuilder_ == null) {
+ return filterRules_.get(index);
+ } else {
+ return filterRulesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ public Builder setFilterRules(
+ int index, org.jumpserver.wisp.Common.CommandACL value) {
+ if (filterRulesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFilterRulesIsMutable();
+ filterRules_.set(index, value);
+ onChanged();
+ } else {
+ filterRulesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ public Builder setFilterRules(
+ int index, org.jumpserver.wisp.Common.CommandACL.Builder builderForValue) {
+ if (filterRulesBuilder_ == null) {
+ ensureFilterRulesIsMutable();
+ filterRules_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ filterRulesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ public Builder addFilterRules(org.jumpserver.wisp.Common.CommandACL value) {
+ if (filterRulesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFilterRulesIsMutable();
+ filterRules_.add(value);
+ onChanged();
+ } else {
+ filterRulesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ public Builder addFilterRules(
+ int index, org.jumpserver.wisp.Common.CommandACL value) {
+ if (filterRulesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFilterRulesIsMutable();
+ filterRules_.add(index, value);
+ onChanged();
+ } else {
+ filterRulesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ public Builder addFilterRules(
+ org.jumpserver.wisp.Common.CommandACL.Builder builderForValue) {
+ if (filterRulesBuilder_ == null) {
+ ensureFilterRulesIsMutable();
+ filterRules_.add(builderForValue.build());
+ onChanged();
+ } else {
+ filterRulesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ public Builder addFilterRules(
+ int index, org.jumpserver.wisp.Common.CommandACL.Builder builderForValue) {
+ if (filterRulesBuilder_ == null) {
+ ensureFilterRulesIsMutable();
+ filterRules_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ filterRulesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ public Builder addAllFilterRules(
+ java.lang.Iterable extends org.jumpserver.wisp.Common.CommandACL> values) {
+ if (filterRulesBuilder_ == null) {
+ ensureFilterRulesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, filterRules_);
+ onChanged();
+ } else {
+ filterRulesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ public Builder clearFilterRules() {
+ if (filterRulesBuilder_ == null) {
+ filterRules_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000080);
+ onChanged();
+ } else {
+ filterRulesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ public Builder removeFilterRules(int index) {
+ if (filterRulesBuilder_ == null) {
+ ensureFilterRulesIsMutable();
+ filterRules_.remove(index);
+ onChanged();
+ } else {
+ filterRulesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ public org.jumpserver.wisp.Common.CommandACL.Builder getFilterRulesBuilder(
+ int index) {
+ return getFilterRulesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ public org.jumpserver.wisp.Common.CommandACLOrBuilder getFilterRulesOrBuilder(
+ int index) {
+ if (filterRulesBuilder_ == null) {
+ return filterRules_.get(index); } else {
+ return filterRulesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ public java.util.List extends org.jumpserver.wisp.Common.CommandACLOrBuilder>
+ getFilterRulesOrBuilderList() {
+ if (filterRulesBuilder_ != null) {
+ return filterRulesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(filterRules_);
+ }
+ }
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ public org.jumpserver.wisp.Common.CommandACL.Builder addFilterRulesBuilder() {
+ return getFilterRulesFieldBuilder().addBuilder(
+ org.jumpserver.wisp.Common.CommandACL.getDefaultInstance());
+ }
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ public org.jumpserver.wisp.Common.CommandACL.Builder addFilterRulesBuilder(
+ int index) {
+ return getFilterRulesFieldBuilder().addBuilder(
+ index, org.jumpserver.wisp.Common.CommandACL.getDefaultInstance());
+ }
+ /**
+ * repeated .message.CommandACL filter_rules = 8;
+ */
+ public java.util.List
+ getFilterRulesBuilderList() {
+ return getFilterRulesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.jumpserver.wisp.Common.CommandACL, org.jumpserver.wisp.Common.CommandACL.Builder, org.jumpserver.wisp.Common.CommandACLOrBuilder>
+ getFilterRulesFieldBuilder() {
+ if (filterRulesBuilder_ == null) {
+ filterRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.jumpserver.wisp.Common.CommandACL, org.jumpserver.wisp.Common.CommandACL.Builder, org.jumpserver.wisp.Common.CommandACLOrBuilder>(
+ filterRules_,
+ ((bitField0_ & 0x00000080) != 0),
+ getParentForChildren(),
+ isClean());
+ filterRules_ = null;
+ }
+ return filterRulesBuilder_;
+ }
+
+ private java.util.List gateways_ =
+ java.util.Collections.emptyList();
+ private void ensureGatewaysIsMutable() {
+ if (!((bitField0_ & 0x00000100) != 0)) {
+ gateways_ = new java.util.ArrayList(gateways_);
+ bitField0_ |= 0x00000100;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.jumpserver.wisp.Common.Gateway, org.jumpserver.wisp.Common.Gateway.Builder, org.jumpserver.wisp.Common.GatewayOrBuilder> gatewaysBuilder_;
+
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ public java.util.List getGatewaysList() {
+ if (gatewaysBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(gateways_);
+ } else {
+ return gatewaysBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ public int getGatewaysCount() {
+ if (gatewaysBuilder_ == null) {
+ return gateways_.size();
+ } else {
+ return gatewaysBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ public org.jumpserver.wisp.Common.Gateway getGateways(int index) {
+ if (gatewaysBuilder_ == null) {
+ return gateways_.get(index);
+ } else {
+ return gatewaysBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ public Builder setGateways(
+ int index, org.jumpserver.wisp.Common.Gateway value) {
+ if (gatewaysBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGatewaysIsMutable();
+ gateways_.set(index, value);
+ onChanged();
+ } else {
+ gatewaysBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ public Builder setGateways(
+ int index, org.jumpserver.wisp.Common.Gateway.Builder builderForValue) {
+ if (gatewaysBuilder_ == null) {
+ ensureGatewaysIsMutable();
+ gateways_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ gatewaysBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ public Builder addGateways(org.jumpserver.wisp.Common.Gateway value) {
+ if (gatewaysBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGatewaysIsMutable();
+ gateways_.add(value);
+ onChanged();
+ } else {
+ gatewaysBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ public Builder addGateways(
+ int index, org.jumpserver.wisp.Common.Gateway value) {
+ if (gatewaysBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureGatewaysIsMutable();
+ gateways_.add(index, value);
+ onChanged();
+ } else {
+ gatewaysBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ public Builder addGateways(
+ org.jumpserver.wisp.Common.Gateway.Builder builderForValue) {
+ if (gatewaysBuilder_ == null) {
+ ensureGatewaysIsMutable();
+ gateways_.add(builderForValue.build());
+ onChanged();
+ } else {
+ gatewaysBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ public Builder addGateways(
+ int index, org.jumpserver.wisp.Common.Gateway.Builder builderForValue) {
+ if (gatewaysBuilder_ == null) {
+ ensureGatewaysIsMutable();
+ gateways_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ gatewaysBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ public Builder addAllGateways(
+ java.lang.Iterable extends org.jumpserver.wisp.Common.Gateway> values) {
+ if (gatewaysBuilder_ == null) {
+ ensureGatewaysIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, gateways_);
+ onChanged();
+ } else {
+ gatewaysBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ public Builder clearGateways() {
+ if (gatewaysBuilder_ == null) {
+ gateways_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000100);
+ onChanged();
+ } else {
+ gatewaysBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ public Builder removeGateways(int index) {
+ if (gatewaysBuilder_ == null) {
+ ensureGatewaysIsMutable();
+ gateways_.remove(index);
+ onChanged();
+ } else {
+ gatewaysBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ public org.jumpserver.wisp.Common.Gateway.Builder getGatewaysBuilder(
+ int index) {
+ return getGatewaysFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ public org.jumpserver.wisp.Common.GatewayOrBuilder getGatewaysOrBuilder(
+ int index) {
+ if (gatewaysBuilder_ == null) {
+ return gateways_.get(index); } else {
+ return gatewaysBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ public java.util.List extends org.jumpserver.wisp.Common.GatewayOrBuilder>
+ getGatewaysOrBuilderList() {
+ if (gatewaysBuilder_ != null) {
+ return gatewaysBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(gateways_);
+ }
+ }
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ public org.jumpserver.wisp.Common.Gateway.Builder addGatewaysBuilder() {
+ return getGatewaysFieldBuilder().addBuilder(
+ org.jumpserver.wisp.Common.Gateway.getDefaultInstance());
+ }
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ public org.jumpserver.wisp.Common.Gateway.Builder addGatewaysBuilder(
+ int index) {
+ return getGatewaysFieldBuilder().addBuilder(
+ index, org.jumpserver.wisp.Common.Gateway.getDefaultInstance());
+ }
+ /**
+ * repeated .message.Gateway gateways = 9;
+ */
+ public java.util.List
+ getGatewaysBuilderList() {
+ return getGatewaysFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.jumpserver.wisp.Common.Gateway, org.jumpserver.wisp.Common.Gateway.Builder, org.jumpserver.wisp.Common.GatewayOrBuilder>
+ getGatewaysFieldBuilder() {
+ if (gatewaysBuilder_ == null) {
+ gatewaysBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.jumpserver.wisp.Common.Gateway, org.jumpserver.wisp.Common.Gateway.Builder, org.jumpserver.wisp.Common.GatewayOrBuilder>(
+ gateways_,
+ ((bitField0_ & 0x00000100) != 0),
+ getParentForChildren(),
+ isClean());
+ gateways_ = null;
+ }
+ return gatewaysBuilder_;
+ }
+
+ private org.jumpserver.wisp.Common.ComponentSetting setting_;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.ComponentSetting, org.jumpserver.wisp.Common.ComponentSetting.Builder, org.jumpserver.wisp.Common.ComponentSettingOrBuilder> settingBuilder_;
+ /**
+ * .message.ComponentSetting setting = 10;
+ * @return Whether the setting field is set.
+ */
+ public boolean hasSetting() {
+ return ((bitField0_ & 0x00000200) != 0);
+ }
+ /**
+ * .message.ComponentSetting setting = 10;
+ * @return The setting.
+ */
+ public org.jumpserver.wisp.Common.ComponentSetting getSetting() {
+ if (settingBuilder_ == null) {
+ return setting_ == null ? org.jumpserver.wisp.Common.ComponentSetting.getDefaultInstance() : setting_;
+ } else {
+ return settingBuilder_.getMessage();
+ }
+ }
+ /**
+ * .message.ComponentSetting setting = 10;
+ */
+ public Builder setSetting(org.jumpserver.wisp.Common.ComponentSetting value) {
+ if (settingBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ setting_ = value;
+ } else {
+ settingBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.ComponentSetting setting = 10;
+ */
+ public Builder setSetting(
+ org.jumpserver.wisp.Common.ComponentSetting.Builder builderForValue) {
+ if (settingBuilder_ == null) {
+ setting_ = builderForValue.build();
+ } else {
+ settingBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.ComponentSetting setting = 10;
+ */
+ public Builder mergeSetting(org.jumpserver.wisp.Common.ComponentSetting value) {
+ if (settingBuilder_ == null) {
+ if (((bitField0_ & 0x00000200) != 0) &&
+ setting_ != null &&
+ setting_ != org.jumpserver.wisp.Common.ComponentSetting.getDefaultInstance()) {
+ getSettingBuilder().mergeFrom(value);
+ } else {
+ setting_ = value;
+ }
+ } else {
+ settingBuilder_.mergeFrom(value);
+ }
+ if (setting_ != null) {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .message.ComponentSetting setting = 10;
+ */
+ public Builder clearSetting() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ setting_ = null;
+ if (settingBuilder_ != null) {
+ settingBuilder_.dispose();
+ settingBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.ComponentSetting setting = 10;
+ */
+ public org.jumpserver.wisp.Common.ComponentSetting.Builder getSettingBuilder() {
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return getSettingFieldBuilder().getBuilder();
+ }
+ /**
+ * .message.ComponentSetting setting = 10;
+ */
+ public org.jumpserver.wisp.Common.ComponentSettingOrBuilder getSettingOrBuilder() {
+ if (settingBuilder_ != null) {
+ return settingBuilder_.getMessageOrBuilder();
+ } else {
+ return setting_ == null ?
+ org.jumpserver.wisp.Common.ComponentSetting.getDefaultInstance() : setting_;
+ }
+ }
+ /**
+ * .message.ComponentSetting setting = 10;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.ComponentSetting, org.jumpserver.wisp.Common.ComponentSetting.Builder, org.jumpserver.wisp.Common.ComponentSettingOrBuilder>
+ getSettingFieldBuilder() {
+ if (settingBuilder_ == null) {
+ settingBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.ComponentSetting, org.jumpserver.wisp.Common.ComponentSetting.Builder, org.jumpserver.wisp.Common.ComponentSettingOrBuilder>(
+ getSetting(),
+ getParentForChildren(),
+ isClean());
+ setting_ = null;
+ }
+ return settingBuilder_;
+ }
+
+ private org.jumpserver.wisp.Common.Platform platform_;
+ private com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.Platform, org.jumpserver.wisp.Common.Platform.Builder, org.jumpserver.wisp.Common.PlatformOrBuilder> platformBuilder_;
+ /**
+ * .message.Platform platform = 11;
+ * @return Whether the platform field is set.
+ */
+ public boolean hasPlatform() {
+ return ((bitField0_ & 0x00000400) != 0);
+ }
+ /**
+ * .message.Platform platform = 11;
+ * @return The platform.
+ */
+ public org.jumpserver.wisp.Common.Platform getPlatform() {
+ if (platformBuilder_ == null) {
+ return platform_ == null ? org.jumpserver.wisp.Common.Platform.getDefaultInstance() : platform_;
+ } else {
+ return platformBuilder_.getMessage();
+ }
+ }
+ /**
+ * .message.Platform platform = 11;
+ */
+ public Builder setPlatform(org.jumpserver.wisp.Common.Platform value) {
+ if (platformBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ platform_ = value;
+ } else {
+ platformBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.Platform platform = 11;
+ */
+ public Builder setPlatform(
+ org.jumpserver.wisp.Common.Platform.Builder builderForValue) {
+ if (platformBuilder_ == null) {
+ platform_ = builderForValue.build();
+ } else {
+ platformBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.Platform platform = 11;
+ */
+ public Builder mergePlatform(org.jumpserver.wisp.Common.Platform value) {
+ if (platformBuilder_ == null) {
+ if (((bitField0_ & 0x00000400) != 0) &&
+ platform_ != null &&
+ platform_ != org.jumpserver.wisp.Common.Platform.getDefaultInstance()) {
+ getPlatformBuilder().mergeFrom(value);
+ } else {
+ platform_ = value;
+ }
+ } else {
+ platformBuilder_.mergeFrom(value);
+ }
+ if (platform_ != null) {
+ bitField0_ |= 0x00000400;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ * .message.Platform platform = 11;
+ */
+ public Builder clearPlatform() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ platform_ = null;
+ if (platformBuilder_ != null) {
+ platformBuilder_.dispose();
+ platformBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.Platform platform = 11;
+ */
+ public org.jumpserver.wisp.Common.Platform.Builder getPlatformBuilder() {
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return getPlatformFieldBuilder().getBuilder();
+ }
+ /**
+ * .message.Platform platform = 11;
+ */
+ public org.jumpserver.wisp.Common.PlatformOrBuilder getPlatformOrBuilder() {
+ if (platformBuilder_ != null) {
+ return platformBuilder_.getMessageOrBuilder();
+ } else {
+ return platform_ == null ?
+ org.jumpserver.wisp.Common.Platform.getDefaultInstance() : platform_;
+ }
+ }
+ /**
+ * .message.Platform platform = 11;
+ */
+ private com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.Platform, org.jumpserver.wisp.Common.Platform.Builder, org.jumpserver.wisp.Common.PlatformOrBuilder>
+ getPlatformFieldBuilder() {
+ if (platformBuilder_ == null) {
+ platformBuilder_ = new com.google.protobuf.SingleFieldBuilder<
+ org.jumpserver.wisp.Common.Platform, org.jumpserver.wisp.Common.Platform.Builder, org.jumpserver.wisp.Common.PlatformOrBuilder>(
+ getPlatform(),
+ getParentForChildren(),
+ isClean());
+ platform_ = null;
+ }
+ return platformBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:message.TokenAuthInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:message.TokenAuthInfo)
+ private static final org.jumpserver.wisp.Common.TokenAuthInfo DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.jumpserver.wisp.Common.TokenAuthInfo();
+ }
+
+ public static org.jumpserver.wisp.Common.TokenAuthInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public TokenAuthInfo parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.TokenAuthInfo getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface PlatformOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:message.Platform)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * int32 id = 1;
+ * @return The id.
+ */
+ int getId();
+
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * string category = 3;
+ * @return The category.
+ */
+ java.lang.String getCategory();
+ /**
+ * string category = 3;
+ * @return The bytes for category.
+ */
+ com.google.protobuf.ByteString
+ getCategoryBytes();
+
+ /**
+ * string charset = 4;
+ * @return The charset.
+ */
+ java.lang.String getCharset();
+ /**
+ * string charset = 4;
+ * @return The bytes for charset.
+ */
+ com.google.protobuf.ByteString
+ getCharsetBytes();
+
+ /**
+ * string type = 5;
+ * @return The type.
+ */
+ java.lang.String getType();
+ /**
+ * string type = 5;
+ * @return The bytes for type.
+ */
+ com.google.protobuf.ByteString
+ getTypeBytes();
+
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ java.util.List
+ getProtocolsList();
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ org.jumpserver.wisp.Common.PlatformProtocol getProtocols(int index);
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ int getProtocolsCount();
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ java.util.List extends org.jumpserver.wisp.Common.PlatformProtocolOrBuilder>
+ getProtocolsOrBuilderList();
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ org.jumpserver.wisp.Common.PlatformProtocolOrBuilder getProtocolsOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code message.Platform}
+ */
+ public static final class Platform extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:message.Platform)
+ PlatformOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ Platform.class.getName());
+ }
+ // Use Platform.newBuilder() to construct.
+ private Platform(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private Platform() {
+ name_ = "";
+ category_ = "";
+ charset_ = "";
+ type_ = "";
+ protocols_ = java.util.Collections.emptyList();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_Platform_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_Platform_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.Platform.class, org.jumpserver.wisp.Common.Platform.Builder.class);
+ }
+
+ public static final int ID_FIELD_NUMBER = 1;
+ private int id_ = 0;
+ /**
+ * int32 id = 1;
+ * @return The id.
+ */
+ @java.lang.Override
+ public int getId() {
+ return id_;
+ }
+
+ public static final int NAME_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CATEGORY_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object category_ = "";
+ /**
+ * string category = 3;
+ * @return The category.
+ */
+ @java.lang.Override
+ public java.lang.String getCategory() {
+ java.lang.Object ref = category_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ category_ = s;
+ return s;
+ }
+ }
+ /**
+ * string category = 3;
+ * @return The bytes for category.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getCategoryBytes() {
+ java.lang.Object ref = category_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ category_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CHARSET_FIELD_NUMBER = 4;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object charset_ = "";
+ /**
+ * string charset = 4;
+ * @return The charset.
+ */
+ @java.lang.Override
+ public java.lang.String getCharset() {
+ java.lang.Object ref = charset_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ charset_ = s;
+ return s;
+ }
+ }
+ /**
+ * string charset = 4;
+ * @return The bytes for charset.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getCharsetBytes() {
+ java.lang.Object ref = charset_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ charset_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TYPE_FIELD_NUMBER = 5;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object type_ = "";
+ /**
+ * string type = 5;
+ * @return The type.
+ */
+ @java.lang.Override
+ public java.lang.String getType() {
+ java.lang.Object ref = type_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ type_ = s;
+ return s;
+ }
+ }
+ /**
+ * string type = 5;
+ * @return The bytes for type.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getTypeBytes() {
+ java.lang.Object ref = type_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ type_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PROTOCOLS_FIELD_NUMBER = 6;
+ @SuppressWarnings("serial")
+ private java.util.List protocols_;
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ @java.lang.Override
+ public java.util.List getProtocolsList() {
+ return protocols_;
+ }
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ @java.lang.Override
+ public java.util.List extends org.jumpserver.wisp.Common.PlatformProtocolOrBuilder>
+ getProtocolsOrBuilderList() {
+ return protocols_;
+ }
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ @java.lang.Override
+ public int getProtocolsCount() {
+ return protocols_.size();
+ }
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.PlatformProtocol getProtocols(int index) {
+ return protocols_.get(index);
+ }
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.PlatformProtocolOrBuilder getProtocolsOrBuilder(
+ int index) {
+ return protocols_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (id_ != 0) {
+ output.writeInt32(1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(category_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, category_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(charset_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, charset_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 5, type_);
+ }
+ for (int i = 0; i < protocols_.size(); i++) {
+ output.writeMessage(6, protocols_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (id_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(category_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, category_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(charset_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, charset_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(5, type_);
+ }
+ for (int i = 0; i < protocols_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(6, protocols_.get(i));
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.jumpserver.wisp.Common.Platform)) {
+ return super.equals(obj);
+ }
+ org.jumpserver.wisp.Common.Platform other = (org.jumpserver.wisp.Common.Platform) obj;
+
+ if (getId()
+ != other.getId()) return false;
+ if (!getName()
+ .equals(other.getName())) return false;
+ if (!getCategory()
+ .equals(other.getCategory())) return false;
+ if (!getCharset()
+ .equals(other.getCharset())) return false;
+ if (!getType()
+ .equals(other.getType())) return false;
+ if (!getProtocolsList()
+ .equals(other.getProtocolsList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + CATEGORY_FIELD_NUMBER;
+ hash = (53 * hash) + getCategory().hashCode();
+ hash = (37 * hash) + CHARSET_FIELD_NUMBER;
+ hash = (53 * hash) + getCharset().hashCode();
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getType().hashCode();
+ if (getProtocolsCount() > 0) {
+ hash = (37 * hash) + PROTOCOLS_FIELD_NUMBER;
+ hash = (53 * hash) + getProtocolsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.jumpserver.wisp.Common.Platform parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Platform parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Platform parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Platform parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Platform parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Platform parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Platform parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.Platform parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static org.jumpserver.wisp.Common.Platform parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static org.jumpserver.wisp.Common.Platform parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Platform parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.Platform parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.jumpserver.wisp.Common.Platform prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code message.Platform}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:message.Platform)
+ org.jumpserver.wisp.Common.PlatformOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_Platform_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_Platform_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.Platform.class, org.jumpserver.wisp.Common.Platform.Builder.class);
+ }
+
+ // Construct using org.jumpserver.wisp.Common.Platform.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ id_ = 0;
+ name_ = "";
+ category_ = "";
+ charset_ = "";
+ type_ = "";
+ if (protocolsBuilder_ == null) {
+ protocols_ = java.util.Collections.emptyList();
+ } else {
+ protocols_ = null;
+ protocolsBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000020);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.jumpserver.wisp.Common.internal_static_message_Platform_descriptor;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Platform getDefaultInstanceForType() {
+ return org.jumpserver.wisp.Common.Platform.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Platform build() {
+ org.jumpserver.wisp.Common.Platform result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Platform buildPartial() {
+ org.jumpserver.wisp.Common.Platform result = new org.jumpserver.wisp.Common.Platform(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(org.jumpserver.wisp.Common.Platform result) {
+ if (protocolsBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)) {
+ protocols_ = java.util.Collections.unmodifiableList(protocols_);
+ bitField0_ = (bitField0_ & ~0x00000020);
+ }
+ result.protocols_ = protocols_;
+ } else {
+ result.protocols_ = protocolsBuilder_.build();
+ }
+ }
+
+ private void buildPartial0(org.jumpserver.wisp.Common.Platform result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.id_ = id_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.category_ = category_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.charset_ = charset_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.type_ = type_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.jumpserver.wisp.Common.Platform) {
+ return mergeFrom((org.jumpserver.wisp.Common.Platform)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.jumpserver.wisp.Common.Platform other) {
+ if (other == org.jumpserver.wisp.Common.Platform.getDefaultInstance()) return this;
+ if (other.getId() != 0) {
+ setId(other.getId());
+ }
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getCategory().isEmpty()) {
+ category_ = other.category_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ if (!other.getCharset().isEmpty()) {
+ charset_ = other.charset_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ if (!other.getType().isEmpty()) {
+ type_ = other.type_;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ if (protocolsBuilder_ == null) {
+ if (!other.protocols_.isEmpty()) {
+ if (protocols_.isEmpty()) {
+ protocols_ = other.protocols_;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ } else {
+ ensureProtocolsIsMutable();
+ protocols_.addAll(other.protocols_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.protocols_.isEmpty()) {
+ if (protocolsBuilder_.isEmpty()) {
+ protocolsBuilder_.dispose();
+ protocolsBuilder_ = null;
+ protocols_ = other.protocols_;
+ bitField0_ = (bitField0_ & ~0x00000020);
+ protocolsBuilder_ =
+ com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
+ getProtocolsFieldBuilder() : null;
+ } else {
+ protocolsBuilder_.addAllMessages(other.protocols_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ id_ = input.readInt32();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ name_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ category_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34: {
+ charset_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ case 42: {
+ type_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
+ case 50: {
+ org.jumpserver.wisp.Common.PlatformProtocol m =
+ input.readMessage(
+ org.jumpserver.wisp.Common.PlatformProtocol.parser(),
+ extensionRegistry);
+ if (protocolsBuilder_ == null) {
+ ensureProtocolsIsMutable();
+ protocols_.add(m);
+ } else {
+ protocolsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 50
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private int id_ ;
+ /**
+ * int32 id = 1;
+ * @return The id.
+ */
+ @java.lang.Override
+ public int getId() {
+ return id_;
+ }
+ /**
+ * int32 id = 1;
+ * @param value The id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setId(int value) {
+
+ id_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ id_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object name_ = "";
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string name = 2;
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ name_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 2;
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object category_ = "";
+ /**
+ * string category = 3;
+ * @return The category.
+ */
+ public java.lang.String getCategory() {
+ java.lang.Object ref = category_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ category_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string category = 3;
+ * @return The bytes for category.
+ */
+ public com.google.protobuf.ByteString
+ getCategoryBytes() {
+ java.lang.Object ref = category_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ category_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string category = 3;
+ * @param value The category to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCategory(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ category_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * string category = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearCategory() {
+ category_ = getDefaultInstance().getCategory();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * string category = 3;
+ * @param value The bytes for category to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCategoryBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ category_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object charset_ = "";
+ /**
+ * string charset = 4;
+ * @return The charset.
+ */
+ public java.lang.String getCharset() {
+ java.lang.Object ref = charset_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ charset_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string charset = 4;
+ * @return The bytes for charset.
+ */
+ public com.google.protobuf.ByteString
+ getCharsetBytes() {
+ java.lang.Object ref = charset_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ charset_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string charset = 4;
+ * @param value The charset to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCharset(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ charset_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * string charset = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearCharset() {
+ charset_ = getDefaultInstance().getCharset();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ * string charset = 4;
+ * @param value The bytes for charset to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCharsetBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ charset_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object type_ = "";
+ /**
+ * string type = 5;
+ * @return The type.
+ */
+ public java.lang.String getType() {
+ java.lang.Object ref = type_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ type_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string type = 5;
+ * @return The bytes for type.
+ */
+ public com.google.protobuf.ByteString
+ getTypeBytes() {
+ java.lang.Object ref = type_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ type_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string type = 5;
+ * @param value The type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setType(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ type_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * string type = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearType() {
+ type_ = getDefaultInstance().getType();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+ /**
+ * string type = 5;
+ * @param value The bytes for type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTypeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ type_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List protocols_ =
+ java.util.Collections.emptyList();
+ private void ensureProtocolsIsMutable() {
+ if (!((bitField0_ & 0x00000020) != 0)) {
+ protocols_ = new java.util.ArrayList(protocols_);
+ bitField0_ |= 0x00000020;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.jumpserver.wisp.Common.PlatformProtocol, org.jumpserver.wisp.Common.PlatformProtocol.Builder, org.jumpserver.wisp.Common.PlatformProtocolOrBuilder> protocolsBuilder_;
+
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ public java.util.List getProtocolsList() {
+ if (protocolsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(protocols_);
+ } else {
+ return protocolsBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ public int getProtocolsCount() {
+ if (protocolsBuilder_ == null) {
+ return protocols_.size();
+ } else {
+ return protocolsBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ public org.jumpserver.wisp.Common.PlatformProtocol getProtocols(int index) {
+ if (protocolsBuilder_ == null) {
+ return protocols_.get(index);
+ } else {
+ return protocolsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ public Builder setProtocols(
+ int index, org.jumpserver.wisp.Common.PlatformProtocol value) {
+ if (protocolsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureProtocolsIsMutable();
+ protocols_.set(index, value);
+ onChanged();
+ } else {
+ protocolsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ public Builder setProtocols(
+ int index, org.jumpserver.wisp.Common.PlatformProtocol.Builder builderForValue) {
+ if (protocolsBuilder_ == null) {
+ ensureProtocolsIsMutable();
+ protocols_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ protocolsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ public Builder addProtocols(org.jumpserver.wisp.Common.PlatformProtocol value) {
+ if (protocolsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureProtocolsIsMutable();
+ protocols_.add(value);
+ onChanged();
+ } else {
+ protocolsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ public Builder addProtocols(
+ int index, org.jumpserver.wisp.Common.PlatformProtocol value) {
+ if (protocolsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureProtocolsIsMutable();
+ protocols_.add(index, value);
+ onChanged();
+ } else {
+ protocolsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ public Builder addProtocols(
+ org.jumpserver.wisp.Common.PlatformProtocol.Builder builderForValue) {
+ if (protocolsBuilder_ == null) {
+ ensureProtocolsIsMutable();
+ protocols_.add(builderForValue.build());
+ onChanged();
+ } else {
+ protocolsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ public Builder addProtocols(
+ int index, org.jumpserver.wisp.Common.PlatformProtocol.Builder builderForValue) {
+ if (protocolsBuilder_ == null) {
+ ensureProtocolsIsMutable();
+ protocols_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ protocolsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ public Builder addAllProtocols(
+ java.lang.Iterable extends org.jumpserver.wisp.Common.PlatformProtocol> values) {
+ if (protocolsBuilder_ == null) {
+ ensureProtocolsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, protocols_);
+ onChanged();
+ } else {
+ protocolsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ public Builder clearProtocols() {
+ if (protocolsBuilder_ == null) {
+ protocols_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ } else {
+ protocolsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ public Builder removeProtocols(int index) {
+ if (protocolsBuilder_ == null) {
+ ensureProtocolsIsMutable();
+ protocols_.remove(index);
+ onChanged();
+ } else {
+ protocolsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ public org.jumpserver.wisp.Common.PlatformProtocol.Builder getProtocolsBuilder(
+ int index) {
+ return getProtocolsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ public org.jumpserver.wisp.Common.PlatformProtocolOrBuilder getProtocolsOrBuilder(
+ int index) {
+ if (protocolsBuilder_ == null) {
+ return protocols_.get(index); } else {
+ return protocolsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ public java.util.List extends org.jumpserver.wisp.Common.PlatformProtocolOrBuilder>
+ getProtocolsOrBuilderList() {
+ if (protocolsBuilder_ != null) {
+ return protocolsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(protocols_);
+ }
+ }
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ public org.jumpserver.wisp.Common.PlatformProtocol.Builder addProtocolsBuilder() {
+ return getProtocolsFieldBuilder().addBuilder(
+ org.jumpserver.wisp.Common.PlatformProtocol.getDefaultInstance());
+ }
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ public org.jumpserver.wisp.Common.PlatformProtocol.Builder addProtocolsBuilder(
+ int index) {
+ return getProtocolsFieldBuilder().addBuilder(
+ index, org.jumpserver.wisp.Common.PlatformProtocol.getDefaultInstance());
+ }
+ /**
+ * repeated .message.PlatformProtocol protocols = 6;
+ */
+ public java.util.List
+ getProtocolsBuilderList() {
+ return getProtocolsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilder<
+ org.jumpserver.wisp.Common.PlatformProtocol, org.jumpserver.wisp.Common.PlatformProtocol.Builder, org.jumpserver.wisp.Common.PlatformProtocolOrBuilder>
+ getProtocolsFieldBuilder() {
+ if (protocolsBuilder_ == null) {
+ protocolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
+ org.jumpserver.wisp.Common.PlatformProtocol, org.jumpserver.wisp.Common.PlatformProtocol.Builder, org.jumpserver.wisp.Common.PlatformProtocolOrBuilder>(
+ protocols_,
+ ((bitField0_ & 0x00000020) != 0),
+ getParentForChildren(),
+ isClean());
+ protocols_ = null;
+ }
+ return protocolsBuilder_;
+ }
+
+ // @@protoc_insertion_point(builder_scope:message.Platform)
+ }
+
+ // @@protoc_insertion_point(class_scope:message.Platform)
+ private static final org.jumpserver.wisp.Common.Platform DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.jumpserver.wisp.Common.Platform();
+ }
+
+ public static org.jumpserver.wisp.Common.Platform getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Platform parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Platform getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface PlatformProtocolOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:message.PlatformProtocol)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * int32 id = 1;
+ * @return The id.
+ */
+ int getId();
+
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * int32 port = 3;
+ * @return The port.
+ */
+ int getPort();
+
+ /**
+ * map<string, string> settings = 4;
+ */
+ int getSettingsCount();
+ /**
+ * map<string, string> settings = 4;
+ */
+ boolean containsSettings(
+ java.lang.String key);
+ /**
+ * Use {@link #getSettingsMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map
+ getSettings();
+ /**
+ * map<string, string> settings = 4;
+ */
+ java.util.Map
+ getSettingsMap();
+ /**
+ * map<string, string> settings = 4;
+ */
+ /* nullable */
+java.lang.String getSettingsOrDefault(
+ java.lang.String key,
+ /* nullable */
+java.lang.String defaultValue);
+ /**
+ * map<string, string> settings = 4;
+ */
+ java.lang.String getSettingsOrThrow(
+ java.lang.String key);
+ }
+ /**
+ * Protobuf type {@code message.PlatformProtocol}
+ */
+ public static final class PlatformProtocol extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:message.PlatformProtocol)
+ PlatformProtocolOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ PlatformProtocol.class.getName());
+ }
+ // Use PlatformProtocol.newBuilder() to construct.
+ private PlatformProtocol(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private PlatformProtocol() {
+ name_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_PlatformProtocol_descriptor;
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ @java.lang.Override
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 4:
+ return internalGetSettings();
+ default:
+ throw new RuntimeException(
+ "Invalid map field number: " + number);
+ }
+ }
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_PlatformProtocol_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.PlatformProtocol.class, org.jumpserver.wisp.Common.PlatformProtocol.Builder.class);
+ }
+
+ public static final int ID_FIELD_NUMBER = 1;
+ private int id_ = 0;
+ /**
+ * int32 id = 1;
+ * @return The id.
+ */
+ @java.lang.Override
+ public int getId() {
+ return id_;
+ }
+
+ public static final int NAME_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PORT_FIELD_NUMBER = 3;
+ private int port_ = 0;
+ /**
+ * int32 port = 3;
+ * @return The port.
+ */
+ @java.lang.Override
+ public int getPort() {
+ return port_;
+ }
+
+ public static final int SETTINGS_FIELD_NUMBER = 4;
+ private static final class SettingsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, java.lang.String> defaultEntry =
+ com.google.protobuf.MapEntry
+ .newDefaultInstance(
+ org.jumpserver.wisp.Common.internal_static_message_PlatformProtocol_SettingsEntry_descriptor,
+ com.google.protobuf.WireFormat.FieldType.STRING,
+ "",
+ com.google.protobuf.WireFormat.FieldType.STRING,
+ "");
+ }
+ @SuppressWarnings("serial")
+ private com.google.protobuf.MapField<
+ java.lang.String, java.lang.String> settings_;
+ private com.google.protobuf.MapField
+ internalGetSettings() {
+ if (settings_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(
+ SettingsDefaultEntryHolder.defaultEntry);
+ }
+ return settings_;
+ }
+ public int getSettingsCount() {
+ return internalGetSettings().getMap().size();
+ }
+ /**
+ * map<string, string> settings = 4;
+ */
+ @java.lang.Override
+ public boolean containsSettings(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ return internalGetSettings().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getSettingsMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map getSettings() {
+ return getSettingsMap();
+ }
+ /**
+ * map<string, string> settings = 4;
+ */
+ @java.lang.Override
+ public java.util.Map getSettingsMap() {
+ return internalGetSettings().getMap();
+ }
+ /**
+ * map<string, string> settings = 4;
+ */
+ @java.lang.Override
+ public /* nullable */
+java.lang.String getSettingsOrDefault(
+ java.lang.String key,
+ /* nullable */
+java.lang.String defaultValue) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map map =
+ internalGetSettings().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+ /**
+ * map<string, string> settings = 4;
+ */
+ @java.lang.Override
+ public java.lang.String getSettingsOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map map =
+ internalGetSettings().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (id_ != 0) {
+ output.writeInt32(1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, name_);
+ }
+ if (port_ != 0) {
+ output.writeInt32(3, port_);
+ }
+ com.google.protobuf.GeneratedMessage
+ .serializeStringMapTo(
+ output,
+ internalGetSettings(),
+ SettingsDefaultEntryHolder.defaultEntry,
+ 4);
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (id_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_);
+ }
+ if (port_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(3, port_);
+ }
+ for (java.util.Map.Entry entry
+ : internalGetSettings().getMap().entrySet()) {
+ com.google.protobuf.MapEntry
+ settings__ = SettingsDefaultEntryHolder.defaultEntry.newBuilderForType()
+ .setKey(entry.getKey())
+ .setValue(entry.getValue())
+ .build();
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, settings__);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.jumpserver.wisp.Common.PlatformProtocol)) {
+ return super.equals(obj);
+ }
+ org.jumpserver.wisp.Common.PlatformProtocol other = (org.jumpserver.wisp.Common.PlatformProtocol) obj;
+
+ if (getId()
+ != other.getId()) return false;
+ if (!getName()
+ .equals(other.getName())) return false;
+ if (getPort()
+ != other.getPort()) return false;
+ if (!internalGetSettings().equals(
+ other.internalGetSettings())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + PORT_FIELD_NUMBER;
+ hash = (53 * hash) + getPort();
+ if (!internalGetSettings().getMap().isEmpty()) {
+ hash = (37 * hash) + SETTINGS_FIELD_NUMBER;
+ hash = (53 * hash) + internalGetSettings().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.jumpserver.wisp.Common.PlatformProtocol parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.PlatformProtocol parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.PlatformProtocol parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.PlatformProtocol parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.PlatformProtocol parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.PlatformProtocol parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.PlatformProtocol parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.PlatformProtocol parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static org.jumpserver.wisp.Common.PlatformProtocol parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static org.jumpserver.wisp.Common.PlatformProtocol parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.PlatformProtocol parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.PlatformProtocol parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.jumpserver.wisp.Common.PlatformProtocol prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code message.PlatformProtocol}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:message.PlatformProtocol)
+ org.jumpserver.wisp.Common.PlatformProtocolOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_PlatformProtocol_descriptor;
+ }
+
+ @SuppressWarnings({"rawtypes"})
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 4:
+ return internalGetSettings();
+ default:
+ throw new RuntimeException(
+ "Invalid map field number: " + number);
+ }
+ }
+ @SuppressWarnings({"rawtypes"})
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
+ int number) {
+ switch (number) {
+ case 4:
+ return internalGetMutableSettings();
+ default:
+ throw new RuntimeException(
+ "Invalid map field number: " + number);
+ }
+ }
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_PlatformProtocol_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.PlatformProtocol.class, org.jumpserver.wisp.Common.PlatformProtocol.Builder.class);
+ }
+
+ // Construct using org.jumpserver.wisp.Common.PlatformProtocol.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ id_ = 0;
+ name_ = "";
+ port_ = 0;
+ internalGetMutableSettings().clear();
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.jumpserver.wisp.Common.internal_static_message_PlatformProtocol_descriptor;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.PlatformProtocol getDefaultInstanceForType() {
+ return org.jumpserver.wisp.Common.PlatformProtocol.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.PlatformProtocol build() {
+ org.jumpserver.wisp.Common.PlatformProtocol result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.PlatformProtocol buildPartial() {
+ org.jumpserver.wisp.Common.PlatformProtocol result = new org.jumpserver.wisp.Common.PlatformProtocol(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(org.jumpserver.wisp.Common.PlatformProtocol result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.id_ = id_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.port_ = port_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.settings_ = internalGetSettings();
+ result.settings_.makeImmutable();
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.jumpserver.wisp.Common.PlatformProtocol) {
+ return mergeFrom((org.jumpserver.wisp.Common.PlatformProtocol)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.jumpserver.wisp.Common.PlatformProtocol other) {
+ if (other == org.jumpserver.wisp.Common.PlatformProtocol.getDefaultInstance()) return this;
+ if (other.getId() != 0) {
+ setId(other.getId());
+ }
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (other.getPort() != 0) {
+ setPort(other.getPort());
+ }
+ internalGetMutableSettings().mergeFrom(
+ other.internalGetSettings());
+ bitField0_ |= 0x00000008;
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ id_ = input.readInt32();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ name_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 24: {
+ port_ = input.readInt32();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
+ case 34: {
+ com.google.protobuf.MapEntry
+ settings__ = input.readMessage(
+ SettingsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+ internalGetMutableSettings().getMutableMap().put(
+ settings__.getKey(), settings__.getValue());
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private int id_ ;
+ /**
+ * int32 id = 1;
+ * @return The id.
+ */
+ @java.lang.Override
+ public int getId() {
+ return id_;
+ }
+ /**
+ * int32 id = 1;
+ * @param value The id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setId(int value) {
+
+ id_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ id_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object name_ = "";
+ /**
+ * string name = 2;
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string name = 2;
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string name = 2;
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ name_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 2;
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private int port_ ;
+ /**
+ * int32 port = 3;
+ * @return The port.
+ */
+ @java.lang.Override
+ public int getPort() {
+ return port_;
+ }
+ /**
+ * int32 port = 3;
+ * @param value The port to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPort(int value) {
+
+ port_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 port = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearPort() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ port_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, java.lang.String> settings_;
+ private com.google.protobuf.MapField
+ internalGetSettings() {
+ if (settings_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(
+ SettingsDefaultEntryHolder.defaultEntry);
+ }
+ return settings_;
+ }
+ private com.google.protobuf.MapField
+ internalGetMutableSettings() {
+ if (settings_ == null) {
+ settings_ = com.google.protobuf.MapField.newMapField(
+ SettingsDefaultEntryHolder.defaultEntry);
+ }
+ if (!settings_.isMutable()) {
+ settings_ = settings_.copy();
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return settings_;
+ }
+ public int getSettingsCount() {
+ return internalGetSettings().getMap().size();
+ }
+ /**
+ * map<string, string> settings = 4;
+ */
+ @java.lang.Override
+ public boolean containsSettings(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ return internalGetSettings().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getSettingsMap()} instead.
+ */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map getSettings() {
+ return getSettingsMap();
+ }
+ /**
+ * map<string, string> settings = 4;
+ */
+ @java.lang.Override
+ public java.util.Map getSettingsMap() {
+ return internalGetSettings().getMap();
+ }
+ /**
+ * map<string, string> settings = 4;
+ */
+ @java.lang.Override
+ public /* nullable */
+java.lang.String getSettingsOrDefault(
+ java.lang.String key,
+ /* nullable */
+java.lang.String defaultValue) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map map =
+ internalGetSettings().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+ /**
+ * map<string, string> settings = 4;
+ */
+ @java.lang.Override
+ public java.lang.String getSettingsOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ java.util.Map map =
+ internalGetSettings().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+ public Builder clearSettings() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ internalGetMutableSettings().getMutableMap()
+ .clear();
+ return this;
+ }
+ /**
+ * map<string, string> settings = 4;
+ */
+ public Builder removeSettings(
+ java.lang.String key) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ internalGetMutableSettings().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map
+ getMutableSettings() {
+ bitField0_ |= 0x00000008;
+ return internalGetMutableSettings().getMutableMap();
+ }
+ /**
+ * map<string, string> settings = 4;
+ */
+ public Builder putSettings(
+ java.lang.String key,
+ java.lang.String value) {
+ if (key == null) { throw new NullPointerException("map key"); }
+ if (value == null) { throw new NullPointerException("map value"); }
+ internalGetMutableSettings().getMutableMap()
+ .put(key, value);
+ bitField0_ |= 0x00000008;
+ return this;
+ }
+ /**
+ * map<string, string> settings = 4;
+ */
+ public Builder putAllSettings(
+ java.util.Map values) {
+ internalGetMutableSettings().getMutableMap()
+ .putAll(values);
+ bitField0_ |= 0x00000008;
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:message.PlatformProtocol)
+ }
+
+ // @@protoc_insertion_point(class_scope:message.PlatformProtocol)
+ private static final org.jumpserver.wisp.Common.PlatformProtocol DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.jumpserver.wisp.Common.PlatformProtocol();
+ }
+
+ public static org.jumpserver.wisp.Common.PlatformProtocol getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PlatformProtocol parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.PlatformProtocol getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface ComponentSettingOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:message.ComponentSetting)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * int32 max_idle_time = 1;
+ * @return The maxIdleTime.
+ */
+ int getMaxIdleTime();
+
+ /**
+ * int32 max_session_time = 2;
+ * @return The maxSessionTime.
+ */
+ int getMaxSessionTime();
+ }
+ /**
+ * Protobuf type {@code message.ComponentSetting}
+ */
+ public static final class ComponentSetting extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:message.ComponentSetting)
+ ComponentSettingOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ ComponentSetting.class.getName());
+ }
+ // Use ComponentSetting.newBuilder() to construct.
+ private ComponentSetting(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private ComponentSetting() {
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_ComponentSetting_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_ComponentSetting_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.ComponentSetting.class, org.jumpserver.wisp.Common.ComponentSetting.Builder.class);
+ }
+
+ public static final int MAX_IDLE_TIME_FIELD_NUMBER = 1;
+ private int maxIdleTime_ = 0;
+ /**
+ * int32 max_idle_time = 1;
+ * @return The maxIdleTime.
+ */
+ @java.lang.Override
+ public int getMaxIdleTime() {
+ return maxIdleTime_;
+ }
+
+ public static final int MAX_SESSION_TIME_FIELD_NUMBER = 2;
+ private int maxSessionTime_ = 0;
+ /**
+ * int32 max_session_time = 2;
+ * @return The maxSessionTime.
+ */
+ @java.lang.Override
+ public int getMaxSessionTime() {
+ return maxSessionTime_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (maxIdleTime_ != 0) {
+ output.writeInt32(1, maxIdleTime_);
+ }
+ if (maxSessionTime_ != 0) {
+ output.writeInt32(2, maxSessionTime_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (maxIdleTime_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(1, maxIdleTime_);
+ }
+ if (maxSessionTime_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(2, maxSessionTime_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.jumpserver.wisp.Common.ComponentSetting)) {
+ return super.equals(obj);
+ }
+ org.jumpserver.wisp.Common.ComponentSetting other = (org.jumpserver.wisp.Common.ComponentSetting) obj;
+
+ if (getMaxIdleTime()
+ != other.getMaxIdleTime()) return false;
+ if (getMaxSessionTime()
+ != other.getMaxSessionTime()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + MAX_IDLE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxIdleTime();
+ hash = (37 * hash) + MAX_SESSION_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getMaxSessionTime();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.jumpserver.wisp.Common.ComponentSetting parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.ComponentSetting parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.ComponentSetting parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.ComponentSetting parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.ComponentSetting parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.ComponentSetting parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.ComponentSetting parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.ComponentSetting parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static org.jumpserver.wisp.Common.ComponentSetting parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static org.jumpserver.wisp.Common.ComponentSetting parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.ComponentSetting parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.ComponentSetting parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.jumpserver.wisp.Common.ComponentSetting prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code message.ComponentSetting}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:message.ComponentSetting)
+ org.jumpserver.wisp.Common.ComponentSettingOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_ComponentSetting_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_ComponentSetting_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.ComponentSetting.class, org.jumpserver.wisp.Common.ComponentSetting.Builder.class);
+ }
+
+ // Construct using org.jumpserver.wisp.Common.ComponentSetting.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ maxIdleTime_ = 0;
+ maxSessionTime_ = 0;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.jumpserver.wisp.Common.internal_static_message_ComponentSetting_descriptor;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.ComponentSetting getDefaultInstanceForType() {
+ return org.jumpserver.wisp.Common.ComponentSetting.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.ComponentSetting build() {
+ org.jumpserver.wisp.Common.ComponentSetting result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.ComponentSetting buildPartial() {
+ org.jumpserver.wisp.Common.ComponentSetting result = new org.jumpserver.wisp.Common.ComponentSetting(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(org.jumpserver.wisp.Common.ComponentSetting result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.maxIdleTime_ = maxIdleTime_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.maxSessionTime_ = maxSessionTime_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.jumpserver.wisp.Common.ComponentSetting) {
+ return mergeFrom((org.jumpserver.wisp.Common.ComponentSetting)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.jumpserver.wisp.Common.ComponentSetting other) {
+ if (other == org.jumpserver.wisp.Common.ComponentSetting.getDefaultInstance()) return this;
+ if (other.getMaxIdleTime() != 0) {
+ setMaxIdleTime(other.getMaxIdleTime());
+ }
+ if (other.getMaxSessionTime() != 0) {
+ setMaxSessionTime(other.getMaxSessionTime());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ maxIdleTime_ = input.readInt32();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 16: {
+ maxSessionTime_ = input.readInt32();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private int maxIdleTime_ ;
+ /**
+ * int32 max_idle_time = 1;
+ * @return The maxIdleTime.
+ */
+ @java.lang.Override
+ public int getMaxIdleTime() {
+ return maxIdleTime_;
+ }
+ /**
+ * int32 max_idle_time = 1;
+ * @param value The maxIdleTime to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaxIdleTime(int value) {
+
+ maxIdleTime_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 max_idle_time = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearMaxIdleTime() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ maxIdleTime_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int maxSessionTime_ ;
+ /**
+ * int32 max_session_time = 2;
+ * @return The maxSessionTime.
+ */
+ @java.lang.Override
+ public int getMaxSessionTime() {
+ return maxSessionTime_;
+ }
+ /**
+ * int32 max_session_time = 2;
+ * @param value The maxSessionTime to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaxSessionTime(int value) {
+
+ maxSessionTime_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 max_session_time = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearMaxSessionTime() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ maxSessionTime_ = 0;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:message.ComponentSetting)
+ }
+
+ // @@protoc_insertion_point(class_scope:message.ComponentSetting)
+ private static final org.jumpserver.wisp.Common.ComponentSetting DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.jumpserver.wisp.Common.ComponentSetting();
+ }
+
+ public static org.jumpserver.wisp.Common.ComponentSetting getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ComponentSetting parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.ComponentSetting getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface ForwardOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:message.Forward)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ java.lang.String getId();
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ com.google.protobuf.ByteString
+ getIdBytes();
+
+ /**
+ * string Host = 2;
+ * @return The host.
+ */
+ java.lang.String getHost();
+ /**
+ * string Host = 2;
+ * @return The bytes for host.
+ */
+ com.google.protobuf.ByteString
+ getHostBytes();
+
+ /**
+ * int32 port = 3;
+ * @return The port.
+ */
+ int getPort();
+ }
+ /**
+ * Protobuf type {@code message.Forward}
+ */
+ public static final class Forward extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:message.Forward)
+ ForwardOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ Forward.class.getName());
+ }
+ // Use Forward.newBuilder() to construct.
+ private Forward(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private Forward() {
+ id_ = "";
+ host_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_Forward_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_Forward_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.Forward.class, org.jumpserver.wisp.Common.Forward.Builder.class);
+ }
+
+ public static final int ID_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object id_ = "";
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ @java.lang.Override
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ }
+ }
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int HOST_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object host_ = "";
+ /**
+ * string Host = 2;
+ * @return The host.
+ */
+ @java.lang.Override
+ public java.lang.String getHost() {
+ java.lang.Object ref = host_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ host_ = s;
+ return s;
+ }
+ }
+ /**
+ * string Host = 2;
+ * @return The bytes for host.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getHostBytes() {
+ java.lang.Object ref = host_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ host_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PORT_FIELD_NUMBER = 3;
+ private int port_ = 0;
+ /**
+ * int32 port = 3;
+ * @return The port.
+ */
+ @java.lang.Override
+ public int getPort() {
+ return port_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(host_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, host_);
+ }
+ if (port_ != 0) {
+ output.writeInt32(3, port_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(host_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, host_);
+ }
+ if (port_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(3, port_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.jumpserver.wisp.Common.Forward)) {
+ return super.equals(obj);
+ }
+ org.jumpserver.wisp.Common.Forward other = (org.jumpserver.wisp.Common.Forward) obj;
+
+ if (!getId()
+ .equals(other.getId())) return false;
+ if (!getHost()
+ .equals(other.getHost())) return false;
+ if (getPort()
+ != other.getPort()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId().hashCode();
+ hash = (37 * hash) + HOST_FIELD_NUMBER;
+ hash = (53 * hash) + getHost().hashCode();
+ hash = (37 * hash) + PORT_FIELD_NUMBER;
+ hash = (53 * hash) + getPort();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.jumpserver.wisp.Common.Forward parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Forward parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Forward parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Forward parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Forward parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Forward parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Forward parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.Forward parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static org.jumpserver.wisp.Common.Forward parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static org.jumpserver.wisp.Common.Forward parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Forward parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.Forward parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.jumpserver.wisp.Common.Forward prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code message.Forward}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:message.Forward)
+ org.jumpserver.wisp.Common.ForwardOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_Forward_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_Forward_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.Forward.class, org.jumpserver.wisp.Common.Forward.Builder.class);
+ }
+
+ // Construct using org.jumpserver.wisp.Common.Forward.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ id_ = "";
+ host_ = "";
+ port_ = 0;
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.jumpserver.wisp.Common.internal_static_message_Forward_descriptor;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Forward getDefaultInstanceForType() {
+ return org.jumpserver.wisp.Common.Forward.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Forward build() {
+ org.jumpserver.wisp.Common.Forward result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Forward buildPartial() {
+ org.jumpserver.wisp.Common.Forward result = new org.jumpserver.wisp.Common.Forward(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(org.jumpserver.wisp.Common.Forward result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.id_ = id_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.host_ = host_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.port_ = port_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.jumpserver.wisp.Common.Forward) {
+ return mergeFrom((org.jumpserver.wisp.Common.Forward)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.jumpserver.wisp.Common.Forward other) {
+ if (other == org.jumpserver.wisp.Common.Forward.getDefaultInstance()) return this;
+ if (!other.getId().isEmpty()) {
+ id_ = other.id_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getHost().isEmpty()) {
+ host_ = other.host_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (other.getPort() != 0) {
+ setPort(other.getPort());
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ id_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ host_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 24: {
+ port_ = input.readInt32();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object id_ = "";
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ public com.google.protobuf.ByteString
+ getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string id = 1;
+ * @param value The id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setId(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ id_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+ id_ = getDefaultInstance().getId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string id = 1;
+ * @param value The bytes for id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ id_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object host_ = "";
+ /**
+ * string Host = 2;
+ * @return The host.
+ */
+ public java.lang.String getHost() {
+ java.lang.Object ref = host_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ host_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string Host = 2;
+ * @return The bytes for host.
+ */
+ public com.google.protobuf.ByteString
+ getHostBytes() {
+ java.lang.Object ref = host_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ host_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string Host = 2;
+ * @param value The host to set.
+ * @return This builder for chaining.
+ */
+ public Builder setHost(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ host_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * string Host = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearHost() {
+ host_ = getDefaultInstance().getHost();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string Host = 2;
+ * @param value The bytes for host to set.
+ * @return This builder for chaining.
+ */
+ public Builder setHostBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ host_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private int port_ ;
+ /**
+ * int32 port = 3;
+ * @return The port.
+ */
+ @java.lang.Override
+ public int getPort() {
+ return port_;
+ }
+ /**
+ * int32 port = 3;
+ * @param value The port to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPort(int value) {
+
+ port_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 port = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearPort() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ port_ = 0;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:message.Forward)
+ }
+
+ // @@protoc_insertion_point(class_scope:message.Forward)
+ private static final org.jumpserver.wisp.Common.Forward DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.jumpserver.wisp.Common.Forward();
+ }
+
+ public static org.jumpserver.wisp.Common.Forward getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Forward parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Forward getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface PublicSettingOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:message.PublicSetting)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * bool xpack_enabled = 1;
+ * @return The xpackEnabled.
+ */
+ boolean getXpackEnabled();
+
+ /**
+ * bool valid_license = 2;
+ * @return The validLicense.
+ */
+ boolean getValidLicense();
+
+ /**
+ * string gpt_base_url = 3;
+ * @return The gptBaseUrl.
+ */
+ java.lang.String getGptBaseUrl();
+ /**
+ * string gpt_base_url = 3;
+ * @return The bytes for gptBaseUrl.
+ */
+ com.google.protobuf.ByteString
+ getGptBaseUrlBytes();
+
+ /**
+ * string gpt_api_key = 4;
+ * @return The gptApiKey.
+ */
+ java.lang.String getGptApiKey();
+ /**
+ * string gpt_api_key = 4;
+ * @return The bytes for gptApiKey.
+ */
+ com.google.protobuf.ByteString
+ getGptApiKeyBytes();
+
+ /**
+ * string gpt_proxy = 5;
+ * @return The gptProxy.
+ */
+ java.lang.String getGptProxy();
+ /**
+ * string gpt_proxy = 5;
+ * @return The bytes for gptProxy.
+ */
+ com.google.protobuf.ByteString
+ getGptProxyBytes();
+
+ /**
+ * string gpt_model = 6;
+ * @return The gptModel.
+ */
+ java.lang.String getGptModel();
+ /**
+ * string gpt_model = 6;
+ * @return The bytes for gptModel.
+ */
+ com.google.protobuf.ByteString
+ getGptModelBytes();
+ }
+ /**
+ * Protobuf type {@code message.PublicSetting}
+ */
+ public static final class PublicSetting extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:message.PublicSetting)
+ PublicSettingOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ PublicSetting.class.getName());
+ }
+ // Use PublicSetting.newBuilder() to construct.
+ private PublicSetting(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private PublicSetting() {
+ gptBaseUrl_ = "";
+ gptApiKey_ = "";
+ gptProxy_ = "";
+ gptModel_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_PublicSetting_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_PublicSetting_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.PublicSetting.class, org.jumpserver.wisp.Common.PublicSetting.Builder.class);
+ }
+
+ public static final int XPACK_ENABLED_FIELD_NUMBER = 1;
+ private boolean xpackEnabled_ = false;
+ /**
+ * bool xpack_enabled = 1;
+ * @return The xpackEnabled.
+ */
+ @java.lang.Override
+ public boolean getXpackEnabled() {
+ return xpackEnabled_;
+ }
+
+ public static final int VALID_LICENSE_FIELD_NUMBER = 2;
+ private boolean validLicense_ = false;
+ /**
+ * bool valid_license = 2;
+ * @return The validLicense.
+ */
+ @java.lang.Override
+ public boolean getValidLicense() {
+ return validLicense_;
+ }
+
+ public static final int GPT_BASE_URL_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object gptBaseUrl_ = "";
+ /**
+ * string gpt_base_url = 3;
+ * @return The gptBaseUrl.
+ */
+ @java.lang.Override
+ public java.lang.String getGptBaseUrl() {
+ java.lang.Object ref = gptBaseUrl_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ gptBaseUrl_ = s;
+ return s;
+ }
+ }
+ /**
+ * string gpt_base_url = 3;
+ * @return The bytes for gptBaseUrl.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getGptBaseUrlBytes() {
+ java.lang.Object ref = gptBaseUrl_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ gptBaseUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int GPT_API_KEY_FIELD_NUMBER = 4;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object gptApiKey_ = "";
+ /**
+ * string gpt_api_key = 4;
+ * @return The gptApiKey.
+ */
+ @java.lang.Override
+ public java.lang.String getGptApiKey() {
+ java.lang.Object ref = gptApiKey_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ gptApiKey_ = s;
+ return s;
+ }
+ }
+ /**
+ * string gpt_api_key = 4;
+ * @return The bytes for gptApiKey.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getGptApiKeyBytes() {
+ java.lang.Object ref = gptApiKey_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ gptApiKey_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int GPT_PROXY_FIELD_NUMBER = 5;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object gptProxy_ = "";
+ /**
+ * string gpt_proxy = 5;
+ * @return The gptProxy.
+ */
+ @java.lang.Override
+ public java.lang.String getGptProxy() {
+ java.lang.Object ref = gptProxy_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ gptProxy_ = s;
+ return s;
+ }
+ }
+ /**
+ * string gpt_proxy = 5;
+ * @return The bytes for gptProxy.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getGptProxyBytes() {
+ java.lang.Object ref = gptProxy_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ gptProxy_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int GPT_MODEL_FIELD_NUMBER = 6;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object gptModel_ = "";
+ /**
+ * string gpt_model = 6;
+ * @return The gptModel.
+ */
+ @java.lang.Override
+ public java.lang.String getGptModel() {
+ java.lang.Object ref = gptModel_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ gptModel_ = s;
+ return s;
+ }
+ }
+ /**
+ * string gpt_model = 6;
+ * @return The bytes for gptModel.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getGptModelBytes() {
+ java.lang.Object ref = gptModel_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ gptModel_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (xpackEnabled_ != false) {
+ output.writeBool(1, xpackEnabled_);
+ }
+ if (validLicense_ != false) {
+ output.writeBool(2, validLicense_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gptBaseUrl_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, gptBaseUrl_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gptApiKey_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, gptApiKey_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gptProxy_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 5, gptProxy_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gptModel_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 6, gptModel_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (xpackEnabled_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(1, xpackEnabled_);
+ }
+ if (validLicense_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, validLicense_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gptBaseUrl_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, gptBaseUrl_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gptApiKey_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, gptApiKey_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gptProxy_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(5, gptProxy_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gptModel_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(6, gptModel_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.jumpserver.wisp.Common.PublicSetting)) {
+ return super.equals(obj);
+ }
+ org.jumpserver.wisp.Common.PublicSetting other = (org.jumpserver.wisp.Common.PublicSetting) obj;
+
+ if (getXpackEnabled()
+ != other.getXpackEnabled()) return false;
+ if (getValidLicense()
+ != other.getValidLicense()) return false;
+ if (!getGptBaseUrl()
+ .equals(other.getGptBaseUrl())) return false;
+ if (!getGptApiKey()
+ .equals(other.getGptApiKey())) return false;
+ if (!getGptProxy()
+ .equals(other.getGptProxy())) return false;
+ if (!getGptModel()
+ .equals(other.getGptModel())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + XPACK_ENABLED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getXpackEnabled());
+ hash = (37 * hash) + VALID_LICENSE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getValidLicense());
+ hash = (37 * hash) + GPT_BASE_URL_FIELD_NUMBER;
+ hash = (53 * hash) + getGptBaseUrl().hashCode();
+ hash = (37 * hash) + GPT_API_KEY_FIELD_NUMBER;
+ hash = (53 * hash) + getGptApiKey().hashCode();
+ hash = (37 * hash) + GPT_PROXY_FIELD_NUMBER;
+ hash = (53 * hash) + getGptProxy().hashCode();
+ hash = (37 * hash) + GPT_MODEL_FIELD_NUMBER;
+ hash = (53 * hash) + getGptModel().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.jumpserver.wisp.Common.PublicSetting parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.PublicSetting parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.PublicSetting parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.PublicSetting parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.PublicSetting parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.PublicSetting parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.PublicSetting parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.PublicSetting parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static org.jumpserver.wisp.Common.PublicSetting parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static org.jumpserver.wisp.Common.PublicSetting parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.PublicSetting parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.PublicSetting parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.jumpserver.wisp.Common.PublicSetting prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code message.PublicSetting}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:message.PublicSetting)
+ org.jumpserver.wisp.Common.PublicSettingOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_PublicSetting_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_PublicSetting_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.PublicSetting.class, org.jumpserver.wisp.Common.PublicSetting.Builder.class);
+ }
+
+ // Construct using org.jumpserver.wisp.Common.PublicSetting.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ xpackEnabled_ = false;
+ validLicense_ = false;
+ gptBaseUrl_ = "";
+ gptApiKey_ = "";
+ gptProxy_ = "";
+ gptModel_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.jumpserver.wisp.Common.internal_static_message_PublicSetting_descriptor;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.PublicSetting getDefaultInstanceForType() {
+ return org.jumpserver.wisp.Common.PublicSetting.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.PublicSetting build() {
+ org.jumpserver.wisp.Common.PublicSetting result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.PublicSetting buildPartial() {
+ org.jumpserver.wisp.Common.PublicSetting result = new org.jumpserver.wisp.Common.PublicSetting(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(org.jumpserver.wisp.Common.PublicSetting result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.xpackEnabled_ = xpackEnabled_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.validLicense_ = validLicense_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.gptBaseUrl_ = gptBaseUrl_;
+ }
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.gptApiKey_ = gptApiKey_;
+ }
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.gptProxy_ = gptProxy_;
+ }
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.gptModel_ = gptModel_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.jumpserver.wisp.Common.PublicSetting) {
+ return mergeFrom((org.jumpserver.wisp.Common.PublicSetting)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.jumpserver.wisp.Common.PublicSetting other) {
+ if (other == org.jumpserver.wisp.Common.PublicSetting.getDefaultInstance()) return this;
+ if (other.getXpackEnabled() != false) {
+ setXpackEnabled(other.getXpackEnabled());
+ }
+ if (other.getValidLicense() != false) {
+ setValidLicense(other.getValidLicense());
+ }
+ if (!other.getGptBaseUrl().isEmpty()) {
+ gptBaseUrl_ = other.gptBaseUrl_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ if (!other.getGptApiKey().isEmpty()) {
+ gptApiKey_ = other.gptApiKey_;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
+ if (!other.getGptProxy().isEmpty()) {
+ gptProxy_ = other.gptProxy_;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ }
+ if (!other.getGptModel().isEmpty()) {
+ gptModel_ = other.gptModel_;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ xpackEnabled_ = input.readBool();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 16: {
+ validLicense_ = input.readBool();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 26: {
+ gptBaseUrl_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34: {
+ gptApiKey_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ case 42: {
+ gptProxy_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
+ case 50: {
+ gptModel_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private boolean xpackEnabled_ ;
+ /**
+ * bool xpack_enabled = 1;
+ * @return The xpackEnabled.
+ */
+ @java.lang.Override
+ public boolean getXpackEnabled() {
+ return xpackEnabled_;
+ }
+ /**
+ * bool xpack_enabled = 1;
+ * @param value The xpackEnabled to set.
+ * @return This builder for chaining.
+ */
+ public Builder setXpackEnabled(boolean value) {
+
+ xpackEnabled_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool xpack_enabled = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearXpackEnabled() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ xpackEnabled_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean validLicense_ ;
+ /**
+ * bool valid_license = 2;
+ * @return The validLicense.
+ */
+ @java.lang.Override
+ public boolean getValidLicense() {
+ return validLicense_;
+ }
+ /**
+ * bool valid_license = 2;
+ * @param value The validLicense to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValidLicense(boolean value) {
+
+ validLicense_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool valid_license = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearValidLicense() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ validLicense_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object gptBaseUrl_ = "";
+ /**
+ * string gpt_base_url = 3;
+ * @return The gptBaseUrl.
+ */
+ public java.lang.String getGptBaseUrl() {
+ java.lang.Object ref = gptBaseUrl_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ gptBaseUrl_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string gpt_base_url = 3;
+ * @return The bytes for gptBaseUrl.
+ */
+ public com.google.protobuf.ByteString
+ getGptBaseUrlBytes() {
+ java.lang.Object ref = gptBaseUrl_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ gptBaseUrl_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string gpt_base_url = 3;
+ * @param value The gptBaseUrl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGptBaseUrl(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ gptBaseUrl_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * string gpt_base_url = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearGptBaseUrl() {
+ gptBaseUrl_ = getDefaultInstance().getGptBaseUrl();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * string gpt_base_url = 3;
+ * @param value The bytes for gptBaseUrl to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGptBaseUrlBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ gptBaseUrl_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object gptApiKey_ = "";
+ /**
+ * string gpt_api_key = 4;
+ * @return The gptApiKey.
+ */
+ public java.lang.String getGptApiKey() {
+ java.lang.Object ref = gptApiKey_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ gptApiKey_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string gpt_api_key = 4;
+ * @return The bytes for gptApiKey.
+ */
+ public com.google.protobuf.ByteString
+ getGptApiKeyBytes() {
+ java.lang.Object ref = gptApiKey_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ gptApiKey_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string gpt_api_key = 4;
+ * @param value The gptApiKey to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGptApiKey(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ gptApiKey_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ * string gpt_api_key = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearGptApiKey() {
+ gptApiKey_ = getDefaultInstance().getGptApiKey();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ * string gpt_api_key = 4;
+ * @param value The bytes for gptApiKey to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGptApiKeyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ gptApiKey_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object gptProxy_ = "";
+ /**
+ * string gpt_proxy = 5;
+ * @return The gptProxy.
+ */
+ public java.lang.String getGptProxy() {
+ java.lang.Object ref = gptProxy_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ gptProxy_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string gpt_proxy = 5;
+ * @return The bytes for gptProxy.
+ */
+ public com.google.protobuf.ByteString
+ getGptProxyBytes() {
+ java.lang.Object ref = gptProxy_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ gptProxy_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string gpt_proxy = 5;
+ * @param value The gptProxy to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGptProxy(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ gptProxy_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ * string gpt_proxy = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearGptProxy() {
+ gptProxy_ = getDefaultInstance().getGptProxy();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+ /**
+ * string gpt_proxy = 5;
+ * @param value The bytes for gptProxy to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGptProxyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ gptProxy_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object gptModel_ = "";
+ /**
+ * string gpt_model = 6;
+ * @return The gptModel.
+ */
+ public java.lang.String getGptModel() {
+ java.lang.Object ref = gptModel_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ gptModel_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string gpt_model = 6;
+ * @return The bytes for gptModel.
+ */
+ public com.google.protobuf.ByteString
+ getGptModelBytes() {
+ java.lang.Object ref = gptModel_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ gptModel_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string gpt_model = 6;
+ * @param value The gptModel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGptModel(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ gptModel_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ * string gpt_model = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearGptModel() {
+ gptModel_ = getDefaultInstance().getGptModel();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+ /**
+ * string gpt_model = 6;
+ * @param value The bytes for gptModel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setGptModelBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ gptModel_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:message.PublicSetting)
+ }
+
+ // @@protoc_insertion_point(class_scope:message.PublicSetting)
+ private static final org.jumpserver.wisp.Common.PublicSetting DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.jumpserver.wisp.Common.PublicSetting();
+ }
+
+ public static org.jumpserver.wisp.Common.PublicSetting getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PublicSetting parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.PublicSetting getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface CookieOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:message.Cookie)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string name = 1;
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ * string name = 1;
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * string value = 2;
+ * @return The value.
+ */
+ java.lang.String getValue();
+ /**
+ * string value = 2;
+ * @return The bytes for value.
+ */
+ com.google.protobuf.ByteString
+ getValueBytes();
+ }
+ /**
+ * Protobuf type {@code message.Cookie}
+ */
+ public static final class Cookie extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:message.Cookie)
+ CookieOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ Cookie.class.getName());
+ }
+ // Use Cookie.newBuilder() to construct.
+ private Cookie(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private Cookie() {
+ name_ = "";
+ value_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_Cookie_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_Cookie_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.Cookie.class, org.jumpserver.wisp.Common.Cookie.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object name_ = "";
+ /**
+ * string name = 1;
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * string name = 1;
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VALUE_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object value_ = "";
+ /**
+ * string value = 2;
+ * @return The value.
+ */
+ @java.lang.Override
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ value_ = s;
+ return s;
+ }
+ }
+ /**
+ * string value = 2;
+ * @return The bytes for value.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, value_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, value_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.jumpserver.wisp.Common.Cookie)) {
+ return super.equals(obj);
+ }
+ org.jumpserver.wisp.Common.Cookie other = (org.jumpserver.wisp.Common.Cookie) obj;
+
+ if (!getName()
+ .equals(other.getName())) return false;
+ if (!getValue()
+ .equals(other.getValue())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getValue().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.jumpserver.wisp.Common.Cookie parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Cookie parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Cookie parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Cookie parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Cookie parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.Cookie parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Cookie parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.Cookie parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static org.jumpserver.wisp.Common.Cookie parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static org.jumpserver.wisp.Common.Cookie parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.Cookie parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.Cookie parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.jumpserver.wisp.Common.Cookie prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code message.Cookie}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:message.Cookie)
+ org.jumpserver.wisp.Common.CookieOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_Cookie_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_Cookie_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.Cookie.class, org.jumpserver.wisp.Common.Cookie.Builder.class);
+ }
+
+ // Construct using org.jumpserver.wisp.Common.Cookie.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ name_ = "";
+ value_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.jumpserver.wisp.Common.internal_static_message_Cookie_descriptor;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Cookie getDefaultInstanceForType() {
+ return org.jumpserver.wisp.Common.Cookie.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Cookie build() {
+ org.jumpserver.wisp.Common.Cookie result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Cookie buildPartial() {
+ org.jumpserver.wisp.Common.Cookie result = new org.jumpserver.wisp.Common.Cookie(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(org.jumpserver.wisp.Common.Cookie result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.value_ = value_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.jumpserver.wisp.Common.Cookie) {
+ return mergeFrom((org.jumpserver.wisp.Common.Cookie)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.jumpserver.wisp.Common.Cookie other) {
+ if (other == org.jumpserver.wisp.Common.Cookie.getDefaultInstance()) return this;
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
+ if (!other.getValue().isEmpty()) {
+ value_ = other.value_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ name_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ value_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object name_ = "";
+ /**
+ * string name = 1;
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string name = 1;
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string name = 1;
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 1;
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object value_ = "";
+ /**
+ * string value = 2;
+ * @return The value.
+ */
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ value_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string value = 2;
+ * @return The bytes for value.
+ */
+ public com.google.protobuf.ByteString
+ getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string value = 2;
+ * @param value The value to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValue(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ value_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * string value = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearValue() {
+ value_ = getDefaultInstance().getValue();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string value = 2;
+ * @param value The bytes for value to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValueBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ value_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:message.Cookie)
+ }
+
+ // @@protoc_insertion_point(class_scope:message.Cookie)
+ private static final org.jumpserver.wisp.Common.Cookie DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.jumpserver.wisp.Common.Cookie();
+ }
+
+ public static org.jumpserver.wisp.Common.Cookie getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Cookie parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.Cookie getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface LifecycleLogDataOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:message.LifecycleLogData)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * .message.LifecycleLogData.event_type event = 1;
+ * @return The enum numeric value on the wire for event.
+ */
+ int getEventValue();
+ /**
+ * .message.LifecycleLogData.event_type event = 1;
+ * @return The event.
+ */
+ org.jumpserver.wisp.Common.LifecycleLogData.event_type getEvent();
+
+ /**
+ * string reason = 2;
+ * @return The reason.
+ */
+ java.lang.String getReason();
+ /**
+ * string reason = 2;
+ * @return The bytes for reason.
+ */
+ com.google.protobuf.ByteString
+ getReasonBytes();
+
+ /**
+ * string user = 3;
+ * @return The user.
+ */
+ java.lang.String getUser();
+ /**
+ * string user = 3;
+ * @return The bytes for user.
+ */
+ com.google.protobuf.ByteString
+ getUserBytes();
+ }
+ /**
+ * Protobuf type {@code message.LifecycleLogData}
+ */
+ public static final class LifecycleLogData extends
+ com.google.protobuf.GeneratedMessage implements
+ // @@protoc_insertion_point(message_implements:message.LifecycleLogData)
+ LifecycleLogDataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ LifecycleLogData.class.getName());
+ }
+ // Use LifecycleLogData.newBuilder() to construct.
+ private LifecycleLogData(com.google.protobuf.GeneratedMessage.Builder> builder) {
+ super(builder);
+ }
+ private LifecycleLogData() {
+ event_ = 0;
+ reason_ = "";
+ user_ = "";
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_LifecycleLogData_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_LifecycleLogData_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.LifecycleLogData.class, org.jumpserver.wisp.Common.LifecycleLogData.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code message.LifecycleLogData.event_type}
+ */
+ public enum event_type
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * AssetConnectSuccess = 0;
+ */
+ AssetConnectSuccess(0),
+ /**
+ * AssetConnectFinished = 1;
+ */
+ AssetConnectFinished(1),
+ /**
+ * CreateShareLink = 2;
+ */
+ CreateShareLink(2),
+ /**
+ * UserJoinSession = 3;
+ */
+ UserJoinSession(3),
+ /**
+ * UserLeaveSession = 4;
+ */
+ UserLeaveSession(4),
+ /**
+ * AdminJoinMonitor = 5;
+ */
+ AdminJoinMonitor(5),
+ /**
+ * AdminExitMonitor = 6;
+ */
+ AdminExitMonitor(6),
+ /**
+ * ReplayConvertStart = 7;
+ */
+ ReplayConvertStart(7),
+ /**
+ * ReplayConvertSuccess = 8;
+ */
+ ReplayConvertSuccess(8),
+ /**
+ * ReplayConvertFailure = 9;
+ */
+ ReplayConvertFailure(9),
+ /**
+ * ReplayUploadStart = 10;
+ */
+ ReplayUploadStart(10),
+ /**
+ * ReplayUploadSuccess = 11;
+ */
+ ReplayUploadSuccess(11),
+ /**
+ * ReplayUploadFailure = 12;
+ */
+ ReplayUploadFailure(12),
+ UNRECOGNIZED(-1),
+ ;
+
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 26,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ event_type.class.getName());
+ }
+ /**
+ * AssetConnectSuccess = 0;
+ */
+ public static final int AssetConnectSuccess_VALUE = 0;
+ /**
+ * AssetConnectFinished = 1;
+ */
+ public static final int AssetConnectFinished_VALUE = 1;
+ /**
+ * CreateShareLink = 2;
+ */
+ public static final int CreateShareLink_VALUE = 2;
+ /**
+ * UserJoinSession = 3;
+ */
+ public static final int UserJoinSession_VALUE = 3;
+ /**
+ * UserLeaveSession = 4;
+ */
+ public static final int UserLeaveSession_VALUE = 4;
+ /**
+ * AdminJoinMonitor = 5;
+ */
+ public static final int AdminJoinMonitor_VALUE = 5;
+ /**
+ * AdminExitMonitor = 6;
+ */
+ public static final int AdminExitMonitor_VALUE = 6;
+ /**
+ * ReplayConvertStart = 7;
+ */
+ public static final int ReplayConvertStart_VALUE = 7;
+ /**
+ * ReplayConvertSuccess = 8;
+ */
+ public static final int ReplayConvertSuccess_VALUE = 8;
+ /**
+ * ReplayConvertFailure = 9;
+ */
+ public static final int ReplayConvertFailure_VALUE = 9;
+ /**
+ * ReplayUploadStart = 10;
+ */
+ public static final int ReplayUploadStart_VALUE = 10;
+ /**
+ * ReplayUploadSuccess = 11;
+ */
+ public static final int ReplayUploadSuccess_VALUE = 11;
+ /**
+ * ReplayUploadFailure = 12;
+ */
+ public static final int ReplayUploadFailure_VALUE = 12;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static event_type valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static event_type forNumber(int value) {
+ switch (value) {
+ case 0: return AssetConnectSuccess;
+ case 1: return AssetConnectFinished;
+ case 2: return CreateShareLink;
+ case 3: return UserJoinSession;
+ case 4: return UserLeaveSession;
+ case 5: return AdminJoinMonitor;
+ case 6: return AdminExitMonitor;
+ case 7: return ReplayConvertStart;
+ case 8: return ReplayConvertSuccess;
+ case 9: return ReplayConvertFailure;
+ case 10: return ReplayUploadStart;
+ case 11: return ReplayUploadSuccess;
+ case 12: return ReplayUploadFailure;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ event_type> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public event_type findValueByNumber(int number) {
+ return event_type.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalStateException(
+ "Can't get the descriptor of an unrecognized enum value.");
+ }
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.LifecycleLogData.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final event_type[] VALUES = values();
+
+ public static event_type valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private event_type(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:message.LifecycleLogData.event_type)
+ }
+
+ public static final int EVENT_FIELD_NUMBER = 1;
+ private int event_ = 0;
+ /**
+ * .message.LifecycleLogData.event_type event = 1;
+ * @return The enum numeric value on the wire for event.
+ */
+ @java.lang.Override public int getEventValue() {
+ return event_;
+ }
+ /**
+ * .message.LifecycleLogData.event_type event = 1;
+ * @return The event.
+ */
+ @java.lang.Override public org.jumpserver.wisp.Common.LifecycleLogData.event_type getEvent() {
+ org.jumpserver.wisp.Common.LifecycleLogData.event_type result = org.jumpserver.wisp.Common.LifecycleLogData.event_type.forNumber(event_);
+ return result == null ? org.jumpserver.wisp.Common.LifecycleLogData.event_type.UNRECOGNIZED : result;
+ }
+
+ public static final int REASON_FIELD_NUMBER = 2;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object reason_ = "";
+ /**
+ * string reason = 2;
+ * @return The reason.
+ */
+ @java.lang.Override
+ public java.lang.String getReason() {
+ java.lang.Object ref = reason_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ reason_ = s;
+ return s;
+ }
+ }
+ /**
+ * string reason = 2;
+ * @return The bytes for reason.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getReasonBytes() {
+ java.lang.Object ref = reason_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ reason_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int USER_FIELD_NUMBER = 3;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object user_ = "";
+ /**
+ * string user = 3;
+ * @return The user.
+ */
+ @java.lang.Override
+ public java.lang.String getUser() {
+ java.lang.Object ref = user_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ user_ = s;
+ return s;
+ }
+ }
+ /**
+ * string user = 3;
+ * @return The bytes for user.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString
+ getUserBytes() {
+ java.lang.Object ref = user_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ user_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (event_ != org.jumpserver.wisp.Common.LifecycleLogData.event_type.AssetConnectSuccess.getNumber()) {
+ output.writeEnum(1, event_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(reason_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, reason_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(user_)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, user_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (event_ != org.jumpserver.wisp.Common.LifecycleLogData.event_type.AssetConnectSuccess.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(1, event_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(reason_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, reason_);
+ }
+ if (!com.google.protobuf.GeneratedMessage.isStringEmpty(user_)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, user_);
+ }
+ size += getUnknownFields().getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof org.jumpserver.wisp.Common.LifecycleLogData)) {
+ return super.equals(obj);
+ }
+ org.jumpserver.wisp.Common.LifecycleLogData other = (org.jumpserver.wisp.Common.LifecycleLogData) obj;
+
+ if (event_ != other.event_) return false;
+ if (!getReason()
+ .equals(other.getReason())) return false;
+ if (!getUser()
+ .equals(other.getUser())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + EVENT_FIELD_NUMBER;
+ hash = (53 * hash) + event_;
+ hash = (37 * hash) + REASON_FIELD_NUMBER;
+ hash = (53 * hash) + getReason().hashCode();
+ hash = (37 * hash) + USER_FIELD_NUMBER;
+ hash = (53 * hash) + getUser().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static org.jumpserver.wisp.Common.LifecycleLogData parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.LifecycleLogData parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.LifecycleLogData parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.LifecycleLogData parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.LifecycleLogData parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static org.jumpserver.wisp.Common.LifecycleLogData parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.LifecycleLogData parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.LifecycleLogData parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ public static org.jumpserver.wisp.Common.LifecycleLogData parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static org.jumpserver.wisp.Common.LifecycleLogData parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static org.jumpserver.wisp.Common.LifecycleLogData parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
+ }
+ public static org.jumpserver.wisp.Common.LifecycleLogData parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(org.jumpserver.wisp.Common.LifecycleLogData prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code message.LifecycleLogData}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessage.Builder implements
+ // @@protoc_insertion_point(builder_implements:message.LifecycleLogData)
+ org.jumpserver.wisp.Common.LifecycleLogDataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return org.jumpserver.wisp.Common.internal_static_message_LifecycleLogData_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return org.jumpserver.wisp.Common.internal_static_message_LifecycleLogData_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ org.jumpserver.wisp.Common.LifecycleLogData.class, org.jumpserver.wisp.Common.LifecycleLogData.Builder.class);
+ }
+
+ // Construct using org.jumpserver.wisp.Common.LifecycleLogData.newBuilder()
+ private Builder() {
+
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessage.BuilderParent parent) {
+ super(parent);
+
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ bitField0_ = 0;
+ event_ = 0;
+ reason_ = "";
+ user_ = "";
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return org.jumpserver.wisp.Common.internal_static_message_LifecycleLogData_descriptor;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.LifecycleLogData getDefaultInstanceForType() {
+ return org.jumpserver.wisp.Common.LifecycleLogData.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.LifecycleLogData build() {
+ org.jumpserver.wisp.Common.LifecycleLogData result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.LifecycleLogData buildPartial() {
+ org.jumpserver.wisp.Common.LifecycleLogData result = new org.jumpserver.wisp.Common.LifecycleLogData(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(org.jumpserver.wisp.Common.LifecycleLogData result) {
+ int from_bitField0_ = bitField0_;
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.event_ = event_;
+ }
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.reason_ = reason_;
+ }
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.user_ = user_;
+ }
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof org.jumpserver.wisp.Common.LifecycleLogData) {
+ return mergeFrom((org.jumpserver.wisp.Common.LifecycleLogData)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(org.jumpserver.wisp.Common.LifecycleLogData other) {
+ if (other == org.jumpserver.wisp.Common.LifecycleLogData.getDefaultInstance()) return this;
+ if (other.event_ != 0) {
+ setEventValue(other.getEventValue());
+ }
+ if (!other.getReason().isEmpty()) {
+ reason_ = other.reason_;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
+ if (!other.getUser().isEmpty()) {
+ user_ = other.user_;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ event_ = input.readEnum();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ reason_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ user_ = input.readStringRequireUtf8();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.unwrapIOException();
+ } finally {
+ onChanged();
+ } // finally
+ return this;
+ }
+ private int bitField0_;
+
+ private int event_ = 0;
+ /**
+ * .message.LifecycleLogData.event_type event = 1;
+ * @return The enum numeric value on the wire for event.
+ */
+ @java.lang.Override public int getEventValue() {
+ return event_;
+ }
+ /**
+ * .message.LifecycleLogData.event_type event = 1;
+ * @param value The enum numeric value on the wire for event to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEventValue(int value) {
+ event_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.LifecycleLogData.event_type event = 1;
+ * @return The event.
+ */
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.LifecycleLogData.event_type getEvent() {
+ org.jumpserver.wisp.Common.LifecycleLogData.event_type result = org.jumpserver.wisp.Common.LifecycleLogData.event_type.forNumber(event_);
+ return result == null ? org.jumpserver.wisp.Common.LifecycleLogData.event_type.UNRECOGNIZED : result;
+ }
+ /**
+ * .message.LifecycleLogData.event_type event = 1;
+ * @param value The event to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEvent(org.jumpserver.wisp.Common.LifecycleLogData.event_type value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ event_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * .message.LifecycleLogData.event_type event = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearEvent() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ event_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object reason_ = "";
+ /**
+ * string reason = 2;
+ * @return The reason.
+ */
+ public java.lang.String getReason() {
+ java.lang.Object ref = reason_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ reason_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string reason = 2;
+ * @return The bytes for reason.
+ */
+ public com.google.protobuf.ByteString
+ getReasonBytes() {
+ java.lang.Object ref = reason_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ reason_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string reason = 2;
+ * @param value The reason to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReason(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ reason_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ * string reason = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearReason() {
+ reason_ = getDefaultInstance().getReason();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ * string reason = 2;
+ * @param value The bytes for reason to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReasonBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ reason_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object user_ = "";
+ /**
+ * string user = 3;
+ * @return The user.
+ */
+ public java.lang.String getUser() {
+ java.lang.Object ref = user_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ user_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string user = 3;
+ * @return The bytes for user.
+ */
+ public com.google.protobuf.ByteString
+ getUserBytes() {
+ java.lang.Object ref = user_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ user_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string user = 3;
+ * @param value The user to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUser(
+ java.lang.String value) {
+ if (value == null) { throw new NullPointerException(); }
+ user_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ * string user = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearUser() {
+ user_ = getDefaultInstance().getUser();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * string user = 3;
+ * @param value The bytes for user to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUserBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) { throw new NullPointerException(); }
+ checkByteStringIsUtf8(value);
+ user_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ // @@protoc_insertion_point(builder_scope:message.LifecycleLogData)
+ }
+
+ // @@protoc_insertion_point(class_scope:message.LifecycleLogData)
+ private static final org.jumpserver.wisp.Common.LifecycleLogData DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new org.jumpserver.wisp.Common.LifecycleLogData();
+ }
+
+ public static org.jumpserver.wisp.Common.LifecycleLogData getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public LifecycleLogData parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ Builder builder = newBuilder();
+ try {
+ builder.mergeFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(builder.buildPartial());
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
+ .setUnfinishedMessage(builder.buildPartial());
+ }
+ return builder.buildPartial();
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public org.jumpserver.wisp.Common.LifecycleLogData getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_message_User_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_message_User_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_message_Account_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_message_Account_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_message_LabelValue_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_message_LabelValue_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_message_Asset_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_message_Asset_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_message_Asset_Specific_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_message_Asset_Specific_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_message_Protocol_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_message_Protocol_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_message_Gateway_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_message_Gateway_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_message_Permission_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_message_Permission_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_message_CommandACL_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_message_CommandACL_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_message_CommandGroup_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_message_CommandGroup_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_message_ExpireInfo_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_message_ExpireInfo_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_message_Session_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_message_Session_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_message_TerminalTask_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_message_TerminalTask_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_message_TokenAuthInfo_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_message_TokenAuthInfo_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_message_Platform_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_message_Platform_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_message_PlatformProtocol_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_message_PlatformProtocol_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_message_PlatformProtocol_SettingsEntry_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_message_PlatformProtocol_SettingsEntry_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_message_ComponentSetting_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_message_ComponentSetting_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_message_Forward_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_message_Forward_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_message_PublicSetting_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_message_PublicSetting_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_message_Cookie_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_message_Cookie_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_message_LifecycleLogData_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable
+ internal_static_message_LifecycleLogData_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\014common.proto\022\007message\"e\n\004User\022\n\n\002id\030\001 " +
+ "\001(\t\022\014\n\004name\030\002 \001(\t\022\020\n\010username\030\003 \001(\t\022\014\n\004r" +
+ "ole\030\004 \001(\t\022\020\n\010is_valid\030\005 \001(\010\022\021\n\tis_active" +
+ "\030\006 \001(\010\"n\n\007Account\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 " +
+ "\001(\t\022\020\n\010username\030\004 \001(\t\022\016\n\006secret\030\005 \001(\t\022\'\n" +
+ "\nsecretType\030\006 \001(\0132\023.message.LabelValue\"*" +
+ "\n\nLabelValue\022\r\n\005label\030\001 \001(\t\022\r\n\005value\030\002 \001" +
+ "(\t\"\305\003\n\005Asset\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\017" +
+ "\n\007address\030\003 \001(\t\022\016\n\006org_id\030\004 \001(\t\022\020\n\010org_n" +
+ "ame\030\005 \001(\t\022$\n\tprotocols\030\006 \003(\0132\021.message.P" +
+ "rotocol\022)\n\010specific\030\007 \001(\0132\027.message.Asse" +
+ "t.Specific\032\235\002\n\010Specific\022\017\n\007db_name\030\001 \001(\t" +
+ "\022\017\n\007use_ssl\030\002 \001(\010\022\017\n\007ca_cert\030\003 \001(\t\022\023\n\013cl" +
+ "ient_cert\030\004 \001(\t\022\022\n\nclient_key\030\005 \001(\t\022\032\n\022a" +
+ "llow_invalid_cert\030\006 \001(\010\022\021\n\tauto_fill\030\007 \001" +
+ "(\t\022\031\n\021username_selector\030\010 \001(\t\022\031\n\021passwor" +
+ "d_selector\030\t \001(\t\022\027\n\017submit_selector\030\n \001(" +
+ "\t\022\016\n\006script\030\013 \001(\t\022\022\n\nhttp_proxy\030\014 \001(\t\022\023\n" +
+ "\013pg_ssl_mode\030\r \001(\t\"2\n\010Protocol\022\014\n\004name\030\002" +
+ " \001(\t\022\n\n\002id\030\001 \001(\005\022\014\n\004port\030\003 \001(\005\"\210\001\n\007Gatew" +
+ "ay\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\n\n\002ip\030\003 \001(\t" +
+ "\022\014\n\004port\030\004 \001(\005\022\020\n\010protocol\030\005 \001(\t\022\020\n\010user" +
+ "name\030\006 \001(\t\022\020\n\010password\030\007 \001(\t\022\023\n\013private_" +
+ "key\030\010 \001(\t\"\177\n\nPermission\022\026\n\016enable_connec" +
+ "t\030\001 \001(\010\022\027\n\017enable_download\030\002 \001(\010\022\025\n\renab" +
+ "le_upload\030\003 \001(\010\022\023\n\013enable_copy\030\004 \001(\010\022\024\n\014" +
+ "enable_paste\030\005 \001(\010\"\201\002\n\nCommandACL\022\n\n\002id\030" +
+ "\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\020\n\010priority\030\003 \001(\005\022*\n" +
+ "\006action\030\005 \001(\0162\032.message.CommandACL.Actio" +
+ "n\022\021\n\tis_active\030\006 \001(\010\022-\n\016command_groups\030\007" +
+ " \003(\0132\025.message.CommandGroup\"Y\n\006Action\022\n\n" +
+ "\006Reject\020\000\022\n\n\006Accept\020\001\022\n\n\006Review\020\002\022\013\n\007War" +
+ "ning\020\003\022\021\n\rNotifyWarning\020\004\022\013\n\007Unknown\020\005\"m" +
+ "\n\014CommandGroup\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t" +
+ "\022\017\n\007content\030\003 \001(\t\022\014\n\004Type\030\004 \001(\t\022\017\n\007patte" +
+ "rn\030\005 \001(\t\022\023\n\013ignore_case\030\006 \001(\010\"\037\n\nExpireI" +
+ "nfo\022\021\n\texpire_at\030\001 \001(\003\"\242\002\n\007Session\022\n\n\002id" +
+ "\030\001 \001(\t\022\014\n\004user\030\002 \001(\t\022\r\n\005asset\030\003 \001(\t\022\017\n\007a" +
+ "ccount\030\004 \001(\t\022.\n\nlogin_from\030\005 \001(\0162\032.messa" +
+ "ge.Session.LoginFrom\022\023\n\013remote_addr\030\006 \001(" +
+ "\t\022\020\n\010protocol\030\007 \001(\t\022\022\n\ndate_start\030\010 \001(\003\022" +
+ "\016\n\006org_id\030\t \001(\t\022\017\n\007user_id\030\n \001(\t\022\020\n\010asse" +
+ "t_id\030\013 \001(\t\022\022\n\naccount_id\030\014 \001(\t\"+\n\tLoginF" +
+ "rom\022\006\n\002WT\020\000\022\006\n\002ST\020\001\022\006\n\002RT\020\002\022\006\n\002DT\020\003\"~\n\014T" +
+ "erminalTask\022\n\n\002id\030\001 \001(\t\022#\n\006action\030\002 \001(\0162" +
+ "\023.message.TaskAction\022\022\n\nsession_id\030\003 \001(\t" +
+ "\022\025\n\rterminated_by\030\004 \001(\t\022\022\n\ncreated_by\030\005 " +
+ "\001(\t\"\205\003\n\rTokenAuthInfo\022\016\n\006key_id\030\001 \001(\t\022\022\n" +
+ "\nsecrete_id\030\002 \001(\t\022\035\n\005asset\030\003 \001(\0132\016.messa" +
+ "ge.Asset\022\033\n\004user\030\004 \001(\0132\r.message.User\022!\n" +
+ "\007account\030\005 \001(\0132\020.message.Account\022\'\n\nperm" +
+ "ission\030\006 \001(\0132\023.message.Permission\022(\n\013exp" +
+ "ire_info\030\007 \001(\0132\023.message.ExpireInfo\022)\n\014f" +
+ "ilter_rules\030\010 \003(\0132\023.message.CommandACL\022\"" +
+ "\n\010gateways\030\t \003(\0132\020.message.Gateway\022*\n\007se" +
+ "tting\030\n \001(\0132\031.message.ComponentSetting\022#" +
+ "\n\010platform\030\013 \001(\0132\021.message.Platform\"\203\001\n\010" +
+ "Platform\022\n\n\002id\030\001 \001(\005\022\014\n\004name\030\002 \001(\t\022\020\n\010ca" +
+ "tegory\030\003 \001(\t\022\017\n\007charset\030\004 \001(\t\022\014\n\004type\030\005 " +
+ "\001(\t\022,\n\tprotocols\030\006 \003(\0132\031.message.Platfor" +
+ "mProtocol\"\246\001\n\020PlatformProtocol\022\n\n\002id\030\001 \001" +
+ "(\005\022\014\n\004name\030\002 \001(\t\022\014\n\004port\030\003 \001(\005\0229\n\010settin" +
+ "gs\030\004 \003(\0132\'.message.PlatformProtocol.Sett" +
+ "ingsEntry\032/\n\rSettingsEntry\022\013\n\003key\030\001 \001(\t\022" +
+ "\r\n\005value\030\002 \001(\t:\0028\001\"C\n\020ComponentSetting\022\025" +
+ "\n\rmax_idle_time\030\001 \001(\005\022\030\n\020max_session_tim" +
+ "e\030\002 \001(\005\"1\n\007Forward\022\n\n\002id\030\001 \001(\t\022\014\n\004Host\030\002" +
+ " \001(\t\022\014\n\004port\030\003 \001(\005\"\216\001\n\rPublicSetting\022\025\n\r" +
+ "xpack_enabled\030\001 \001(\010\022\025\n\rvalid_license\030\002 \001" +
+ "(\010\022\024\n\014gpt_base_url\030\003 \001(\t\022\023\n\013gpt_api_key\030" +
+ "\004 \001(\t\022\021\n\tgpt_proxy\030\005 \001(\t\022\021\n\tgpt_model\030\006 " +
+ "\001(\t\"%\n\006Cookie\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001" +
+ "(\t\"\250\003\n\020LifecycleLogData\0223\n\005event\030\001 \001(\0162$" +
+ ".message.LifecycleLogData.event_type\022\016\n\006" +
+ "reason\030\002 \001(\t\022\014\n\004user\030\003 \001(\t\"\300\002\n\nevent_typ" +
+ "e\022\027\n\023AssetConnectSuccess\020\000\022\030\n\024AssetConne" +
+ "ctFinished\020\001\022\023\n\017CreateShareLink\020\002\022\023\n\017Use" +
+ "rJoinSession\020\003\022\024\n\020UserLeaveSession\020\004\022\024\n\020" +
+ "AdminJoinMonitor\020\005\022\024\n\020AdminExitMonitor\020\006" +
+ "\022\026\n\022ReplayConvertStart\020\007\022\030\n\024ReplayConver" +
+ "tSuccess\020\010\022\030\n\024ReplayConvertFailure\020\t\022\025\n\021" +
+ "ReplayUploadStart\020\n\022\027\n\023ReplayUploadSucce" +
+ "ss\020\013\022\027\n\023ReplayUploadFailure\020\014*A\n\nTaskAct" +
+ "ion\022\017\n\013KillSession\020\000\022\017\n\013LockSession\020\001\022\021\n" +
+ "\rUnlockSession\020\002*f\n\tRiskLevel\022\n\n\006Normal\020" +
+ "\000\022\013\n\007Warning\020\001\022\n\n\006Reject\020\002\022\020\n\014ReviewReje" +
+ "ct\020\003\022\020\n\014ReviewAccept\020\004\022\020\n\014ReviewCancel\020\005" +
+ "B \n\023org.jumpserver.wispZ\t/protobufb\006prot" +
+ "o3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ });
+ internal_static_message_User_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_message_User_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_message_User_descriptor,
+ new java.lang.String[] { "Id", "Name", "Username", "Role", "IsValid", "IsActive", });
+ internal_static_message_Account_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_message_Account_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_message_Account_descriptor,
+ new java.lang.String[] { "Id", "Name", "Username", "Secret", "SecretType", });
+ internal_static_message_LabelValue_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_message_LabelValue_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_message_LabelValue_descriptor,
+ new java.lang.String[] { "Label", "Value", });
+ internal_static_message_Asset_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_message_Asset_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_message_Asset_descriptor,
+ new java.lang.String[] { "Id", "Name", "Address", "OrgId", "OrgName", "Protocols", "Specific", });
+ internal_static_message_Asset_Specific_descriptor =
+ internal_static_message_Asset_descriptor.getNestedTypes().get(0);
+ internal_static_message_Asset_Specific_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_message_Asset_Specific_descriptor,
+ new java.lang.String[] { "DbName", "UseSsl", "CaCert", "ClientCert", "ClientKey", "AllowInvalidCert", "AutoFill", "UsernameSelector", "PasswordSelector", "SubmitSelector", "Script", "HttpProxy", "PgSslMode", });
+ internal_static_message_Protocol_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_message_Protocol_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_message_Protocol_descriptor,
+ new java.lang.String[] { "Name", "Id", "Port", });
+ internal_static_message_Gateway_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_message_Gateway_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_message_Gateway_descriptor,
+ new java.lang.String[] { "Id", "Name", "Ip", "Port", "Protocol", "Username", "Password", "PrivateKey", });
+ internal_static_message_Permission_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_message_Permission_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_message_Permission_descriptor,
+ new java.lang.String[] { "EnableConnect", "EnableDownload", "EnableUpload", "EnableCopy", "EnablePaste", });
+ internal_static_message_CommandACL_descriptor =
+ getDescriptor().getMessageTypes().get(7);
+ internal_static_message_CommandACL_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_message_CommandACL_descriptor,
+ new java.lang.String[] { "Id", "Name", "Priority", "Action", "IsActive", "CommandGroups", });
+ internal_static_message_CommandGroup_descriptor =
+ getDescriptor().getMessageTypes().get(8);
+ internal_static_message_CommandGroup_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_message_CommandGroup_descriptor,
+ new java.lang.String[] { "Id", "Name", "Content", "Type", "Pattern", "IgnoreCase", });
+ internal_static_message_ExpireInfo_descriptor =
+ getDescriptor().getMessageTypes().get(9);
+ internal_static_message_ExpireInfo_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_message_ExpireInfo_descriptor,
+ new java.lang.String[] { "ExpireAt", });
+ internal_static_message_Session_descriptor =
+ getDescriptor().getMessageTypes().get(10);
+ internal_static_message_Session_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_message_Session_descriptor,
+ new java.lang.String[] { "Id", "User", "Asset", "Account", "LoginFrom", "RemoteAddr", "Protocol", "DateStart", "OrgId", "UserId", "AssetId", "AccountId", });
+ internal_static_message_TerminalTask_descriptor =
+ getDescriptor().getMessageTypes().get(11);
+ internal_static_message_TerminalTask_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_message_TerminalTask_descriptor,
+ new java.lang.String[] { "Id", "Action", "SessionId", "TerminatedBy", "CreatedBy", });
+ internal_static_message_TokenAuthInfo_descriptor =
+ getDescriptor().getMessageTypes().get(12);
+ internal_static_message_TokenAuthInfo_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_message_TokenAuthInfo_descriptor,
+ new java.lang.String[] { "KeyId", "SecreteId", "Asset", "User", "Account", "Permission", "ExpireInfo", "FilterRules", "Gateways", "Setting", "Platform", });
+ internal_static_message_Platform_descriptor =
+ getDescriptor().getMessageTypes().get(13);
+ internal_static_message_Platform_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_message_Platform_descriptor,
+ new java.lang.String[] { "Id", "Name", "Category", "Charset", "Type", "Protocols", });
+ internal_static_message_PlatformProtocol_descriptor =
+ getDescriptor().getMessageTypes().get(14);
+ internal_static_message_PlatformProtocol_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_message_PlatformProtocol_descriptor,
+ new java.lang.String[] { "Id", "Name", "Port", "Settings", });
+ internal_static_message_PlatformProtocol_SettingsEntry_descriptor =
+ internal_static_message_PlatformProtocol_descriptor.getNestedTypes().get(0);
+ internal_static_message_PlatformProtocol_SettingsEntry_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_message_PlatformProtocol_SettingsEntry_descriptor,
+ new java.lang.String[] { "Key", "Value", });
+ internal_static_message_ComponentSetting_descriptor =
+ getDescriptor().getMessageTypes().get(15);
+ internal_static_message_ComponentSetting_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_message_ComponentSetting_descriptor,
+ new java.lang.String[] { "MaxIdleTime", "MaxSessionTime", });
+ internal_static_message_Forward_descriptor =
+ getDescriptor().getMessageTypes().get(16);
+ internal_static_message_Forward_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_message_Forward_descriptor,
+ new java.lang.String[] { "Id", "Host", "Port", });
+ internal_static_message_PublicSetting_descriptor =
+ getDescriptor().getMessageTypes().get(17);
+ internal_static_message_PublicSetting_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_message_PublicSetting_descriptor,
+ new java.lang.String[] { "XpackEnabled", "ValidLicense", "GptBaseUrl", "GptApiKey", "GptProxy", "GptModel", });
+ internal_static_message_Cookie_descriptor =
+ getDescriptor().getMessageTypes().get(18);
+ internal_static_message_Cookie_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_message_Cookie_descriptor,
+ new java.lang.String[] { "Name", "Value", });
+ internal_static_message_LifecycleLogData_descriptor =
+ getDescriptor().getMessageTypes().get(19);
+ internal_static_message_LifecycleLogData_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessage.FieldAccessorTable(
+ internal_static_message_LifecycleLogData_descriptor,
+ new java.lang.String[] { "Event", "Reason", "User", });
+ descriptor.resolveAllFeaturesImmutable();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/protobuf-java/org/jumpserver/wisp/ServiceGrpc.java b/protobuf-java/org/jumpserver/wisp/ServiceGrpc.java
new file mode 100644
index 0000000..d5cd6ce
--- /dev/null
+++ b/protobuf-java/org/jumpserver/wisp/ServiceGrpc.java
@@ -0,0 +1,1683 @@
+package org.jumpserver.wisp;
+
+import static io.grpc.MethodDescriptor.generateFullMethodName;
+
+/**
+ */
+@javax.annotation.Generated(
+ value = "by gRPC proto compiler (version 1.56.1)",
+ comments = "Source: service.proto")
+@io.grpc.stub.annotations.GrpcGenerated
+public final class ServiceGrpc {
+
+ private ServiceGrpc() {}
+
+ public static final String SERVICE_NAME = "message.Service";
+
+ // Static method descriptors that strictly reflect the proto.
+ private static volatile io.grpc.MethodDescriptor getGetTokenAuthInfoMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetTokenAuthInfo",
+ requestType = org.jumpserver.wisp.ServiceOuterClass.TokenRequest.class,
+ responseType = org.jumpserver.wisp.ServiceOuterClass.TokenResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getGetTokenAuthInfoMethod() {
+ io.grpc.MethodDescriptor getGetTokenAuthInfoMethod;
+ if ((getGetTokenAuthInfoMethod = ServiceGrpc.getGetTokenAuthInfoMethod) == null) {
+ synchronized (ServiceGrpc.class) {
+ if ((getGetTokenAuthInfoMethod = ServiceGrpc.getGetTokenAuthInfoMethod) == null) {
+ ServiceGrpc.getGetTokenAuthInfoMethod = getGetTokenAuthInfoMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTokenAuthInfo"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.TokenRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.TokenResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("GetTokenAuthInfo"))
+ .build();
+ }
+ }
+ }
+ return getGetTokenAuthInfoMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getRenewTokenMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "RenewToken",
+ requestType = org.jumpserver.wisp.ServiceOuterClass.TokenRequest.class,
+ responseType = org.jumpserver.wisp.ServiceOuterClass.StatusResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getRenewTokenMethod() {
+ io.grpc.MethodDescriptor getRenewTokenMethod;
+ if ((getRenewTokenMethod = ServiceGrpc.getRenewTokenMethod) == null) {
+ synchronized (ServiceGrpc.class) {
+ if ((getRenewTokenMethod = ServiceGrpc.getRenewTokenMethod) == null) {
+ ServiceGrpc.getRenewTokenMethod = getRenewTokenMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RenewToken"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.TokenRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.StatusResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("RenewToken"))
+ .build();
+ }
+ }
+ }
+ return getRenewTokenMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getCreateSessionMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "CreateSession",
+ requestType = org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest.class,
+ responseType = org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getCreateSessionMethod() {
+ io.grpc.MethodDescriptor getCreateSessionMethod;
+ if ((getCreateSessionMethod = ServiceGrpc.getCreateSessionMethod) == null) {
+ synchronized (ServiceGrpc.class) {
+ if ((getCreateSessionMethod = ServiceGrpc.getCreateSessionMethod) == null) {
+ ServiceGrpc.getCreateSessionMethod = getCreateSessionMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSession"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("CreateSession"))
+ .build();
+ }
+ }
+ }
+ return getCreateSessionMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getFinishSessionMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "FinishSession",
+ requestType = org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest.class,
+ responseType = org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getFinishSessionMethod() {
+ io.grpc.MethodDescriptor getFinishSessionMethod;
+ if ((getFinishSessionMethod = ServiceGrpc.getFinishSessionMethod) == null) {
+ synchronized (ServiceGrpc.class) {
+ if ((getFinishSessionMethod = ServiceGrpc.getFinishSessionMethod) == null) {
+ ServiceGrpc.getFinishSessionMethod = getFinishSessionMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FinishSession"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp.getDefaultInstance()))
+ .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("FinishSession"))
+ .build();
+ }
+ }
+ }
+ return getFinishSessionMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getUploadReplayFileMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "UploadReplayFile",
+ requestType = org.jumpserver.wisp.ServiceOuterClass.ReplayRequest.class,
+ responseType = org.jumpserver.wisp.ServiceOuterClass.ReplayResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getUploadReplayFileMethod() {
+ io.grpc.MethodDescriptor getUploadReplayFileMethod;
+ if ((getUploadReplayFileMethod = ServiceGrpc.getUploadReplayFileMethod) == null) {
+ synchronized (ServiceGrpc.class) {
+ if ((getUploadReplayFileMethod = ServiceGrpc.getUploadReplayFileMethod) == null) {
+ ServiceGrpc.getUploadReplayFileMethod = getUploadReplayFileMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UploadReplayFile"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.ReplayRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.ReplayResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("UploadReplayFile"))
+ .build();
+ }
+ }
+ }
+ return getUploadReplayFileMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getUploadCommandMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "UploadCommand",
+ requestType = org.jumpserver.wisp.ServiceOuterClass.CommandRequest.class,
+ responseType = org.jumpserver.wisp.ServiceOuterClass.CommandResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getUploadCommandMethod() {
+ io.grpc.MethodDescriptor getUploadCommandMethod;
+ if ((getUploadCommandMethod = ServiceGrpc.getUploadCommandMethod) == null) {
+ synchronized (ServiceGrpc.class) {
+ if ((getUploadCommandMethod = ServiceGrpc.getUploadCommandMethod) == null) {
+ ServiceGrpc.getUploadCommandMethod = getUploadCommandMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UploadCommand"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.CommandRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.CommandResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("UploadCommand"))
+ .build();
+ }
+ }
+ }
+ return getUploadCommandMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getDispatchTaskMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "DispatchTask",
+ requestType = org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest.class,
+ responseType = org.jumpserver.wisp.ServiceOuterClass.TaskResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
+ public static io.grpc.MethodDescriptor getDispatchTaskMethod() {
+ io.grpc.MethodDescriptor getDispatchTaskMethod;
+ if ((getDispatchTaskMethod = ServiceGrpc.getDispatchTaskMethod) == null) {
+ synchronized (ServiceGrpc.class) {
+ if ((getDispatchTaskMethod = ServiceGrpc.getDispatchTaskMethod) == null) {
+ ServiceGrpc.getDispatchTaskMethod = getDispatchTaskMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DispatchTask"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.TaskResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("DispatchTask"))
+ .build();
+ }
+ }
+ }
+ return getDispatchTaskMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getScanRemainReplaysMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "ScanRemainReplays",
+ requestType = org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest.class,
+ responseType = org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getScanRemainReplaysMethod() {
+ io.grpc.MethodDescriptor getScanRemainReplaysMethod;
+ if ((getScanRemainReplaysMethod = ServiceGrpc.getScanRemainReplaysMethod) == null) {
+ synchronized (ServiceGrpc.class) {
+ if ((getScanRemainReplaysMethod = ServiceGrpc.getScanRemainReplaysMethod) == null) {
+ ServiceGrpc.getScanRemainReplaysMethod = getScanRemainReplaysMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ScanRemainReplays"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("ScanRemainReplays"))
+ .build();
+ }
+ }
+ }
+ return getScanRemainReplaysMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getCreateCommandTicketMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "CreateCommandTicket",
+ requestType = org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest.class,
+ responseType = org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getCreateCommandTicketMethod() {
+ io.grpc.MethodDescriptor getCreateCommandTicketMethod;
+ if ((getCreateCommandTicketMethod = ServiceGrpc.getCreateCommandTicketMethod) == null) {
+ synchronized (ServiceGrpc.class) {
+ if ((getCreateCommandTicketMethod = ServiceGrpc.getCreateCommandTicketMethod) == null) {
+ ServiceGrpc.getCreateCommandTicketMethod = getCreateCommandTicketMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCommandTicket"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("CreateCommandTicket"))
+ .build();
+ }
+ }
+ }
+ return getCreateCommandTicketMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getCheckOrCreateAssetLoginTicketMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "CheckOrCreateAssetLoginTicket",
+ requestType = org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest.class,
+ responseType = org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getCheckOrCreateAssetLoginTicketMethod() {
+ io.grpc.MethodDescriptor getCheckOrCreateAssetLoginTicketMethod;
+ if ((getCheckOrCreateAssetLoginTicketMethod = ServiceGrpc.getCheckOrCreateAssetLoginTicketMethod) == null) {
+ synchronized (ServiceGrpc.class) {
+ if ((getCheckOrCreateAssetLoginTicketMethod = ServiceGrpc.getCheckOrCreateAssetLoginTicketMethod) == null) {
+ ServiceGrpc.getCheckOrCreateAssetLoginTicketMethod = getCheckOrCreateAssetLoginTicketMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CheckOrCreateAssetLoginTicket"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("CheckOrCreateAssetLoginTicket"))
+ .build();
+ }
+ }
+ }
+ return getCheckOrCreateAssetLoginTicketMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getCheckTicketStateMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "CheckTicketState",
+ requestType = org.jumpserver.wisp.ServiceOuterClass.TicketRequest.class,
+ responseType = org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getCheckTicketStateMethod() {
+ io.grpc.MethodDescriptor getCheckTicketStateMethod;
+ if ((getCheckTicketStateMethod = ServiceGrpc.getCheckTicketStateMethod) == null) {
+ synchronized (ServiceGrpc.class) {
+ if ((getCheckTicketStateMethod = ServiceGrpc.getCheckTicketStateMethod) == null) {
+ ServiceGrpc.getCheckTicketStateMethod = getCheckTicketStateMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CheckTicketState"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.TicketRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("CheckTicketState"))
+ .build();
+ }
+ }
+ }
+ return getCheckTicketStateMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getCancelTicketMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "CancelTicket",
+ requestType = org.jumpserver.wisp.ServiceOuterClass.TicketRequest.class,
+ responseType = org.jumpserver.wisp.ServiceOuterClass.StatusResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getCancelTicketMethod() {
+ io.grpc.MethodDescriptor getCancelTicketMethod;
+ if ((getCancelTicketMethod = ServiceGrpc.getCancelTicketMethod) == null) {
+ synchronized (ServiceGrpc.class) {
+ if ((getCancelTicketMethod = ServiceGrpc.getCancelTicketMethod) == null) {
+ ServiceGrpc.getCancelTicketMethod = getCancelTicketMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelTicket"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.TicketRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.StatusResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("CancelTicket"))
+ .build();
+ }
+ }
+ }
+ return getCancelTicketMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getCreateForwardMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "CreateForward",
+ requestType = org.jumpserver.wisp.ServiceOuterClass.ForwardRequest.class,
+ responseType = org.jumpserver.wisp.ServiceOuterClass.ForwardResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getCreateForwardMethod() {
+ io.grpc.MethodDescriptor getCreateForwardMethod;
+ if ((getCreateForwardMethod = ServiceGrpc.getCreateForwardMethod) == null) {
+ synchronized (ServiceGrpc.class) {
+ if ((getCreateForwardMethod = ServiceGrpc.getCreateForwardMethod) == null) {
+ ServiceGrpc.getCreateForwardMethod = getCreateForwardMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateForward"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.ForwardRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.ForwardResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("CreateForward"))
+ .build();
+ }
+ }
+ }
+ return getCreateForwardMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getDeleteForwardMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "DeleteForward",
+ requestType = org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest.class,
+ responseType = org.jumpserver.wisp.ServiceOuterClass.StatusResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getDeleteForwardMethod() {
+ io.grpc.MethodDescriptor getDeleteForwardMethod;
+ if ((getDeleteForwardMethod = ServiceGrpc.getDeleteForwardMethod) == null) {
+ synchronized (ServiceGrpc.class) {
+ if ((getDeleteForwardMethod = ServiceGrpc.getDeleteForwardMethod) == null) {
+ ServiceGrpc.getDeleteForwardMethod = getDeleteForwardMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteForward"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.StatusResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("DeleteForward"))
+ .build();
+ }
+ }
+ }
+ return getDeleteForwardMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getGetPublicSettingMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetPublicSetting",
+ requestType = org.jumpserver.wisp.ServiceOuterClass.Empty.class,
+ responseType = org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getGetPublicSettingMethod() {
+ io.grpc.MethodDescriptor getGetPublicSettingMethod;
+ if ((getGetPublicSettingMethod = ServiceGrpc.getGetPublicSettingMethod) == null) {
+ synchronized (ServiceGrpc.class) {
+ if ((getGetPublicSettingMethod = ServiceGrpc.getGetPublicSettingMethod) == null) {
+ ServiceGrpc.getGetPublicSettingMethod = getGetPublicSettingMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPublicSetting"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.Empty.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("GetPublicSetting"))
+ .build();
+ }
+ }
+ }
+ return getGetPublicSettingMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getGetListenPortsMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetListenPorts",
+ requestType = org.jumpserver.wisp.ServiceOuterClass.Empty.class,
+ responseType = org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getGetListenPortsMethod() {
+ io.grpc.MethodDescriptor getGetListenPortsMethod;
+ if ((getGetListenPortsMethod = ServiceGrpc.getGetListenPortsMethod) == null) {
+ synchronized (ServiceGrpc.class) {
+ if ((getGetListenPortsMethod = ServiceGrpc.getGetListenPortsMethod) == null) {
+ ServiceGrpc.getGetListenPortsMethod = getGetListenPortsMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetListenPorts"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.Empty.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("GetListenPorts"))
+ .build();
+ }
+ }
+ }
+ return getGetListenPortsMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getGetPortInfoMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetPortInfo",
+ requestType = org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest.class,
+ responseType = org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getGetPortInfoMethod() {
+ io.grpc.MethodDescriptor getGetPortInfoMethod;
+ if ((getGetPortInfoMethod = ServiceGrpc.getGetPortInfoMethod) == null) {
+ synchronized (ServiceGrpc.class) {
+ if ((getGetPortInfoMethod = ServiceGrpc.getGetPortInfoMethod) == null) {
+ ServiceGrpc.getGetPortInfoMethod = getGetPortInfoMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPortInfo"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("GetPortInfo"))
+ .build();
+ }
+ }
+ }
+ return getGetPortInfoMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getHandlePortFailureMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "HandlePortFailure",
+ requestType = org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest.class,
+ responseType = org.jumpserver.wisp.ServiceOuterClass.StatusResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getHandlePortFailureMethod() {
+ io.grpc.MethodDescriptor getHandlePortFailureMethod;
+ if ((getHandlePortFailureMethod = ServiceGrpc.getHandlePortFailureMethod) == null) {
+ synchronized (ServiceGrpc.class) {
+ if ((getHandlePortFailureMethod = ServiceGrpc.getHandlePortFailureMethod) == null) {
+ ServiceGrpc.getHandlePortFailureMethod = getHandlePortFailureMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "HandlePortFailure"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.StatusResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("HandlePortFailure"))
+ .build();
+ }
+ }
+ }
+ return getHandlePortFailureMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getCheckUserByCookiesMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "CheckUserByCookies",
+ requestType = org.jumpserver.wisp.ServiceOuterClass.CookiesRequest.class,
+ responseType = org.jumpserver.wisp.ServiceOuterClass.UserResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getCheckUserByCookiesMethod() {
+ io.grpc.MethodDescriptor getCheckUserByCookiesMethod;
+ if ((getCheckUserByCookiesMethod = ServiceGrpc.getCheckUserByCookiesMethod) == null) {
+ synchronized (ServiceGrpc.class) {
+ if ((getCheckUserByCookiesMethod = ServiceGrpc.getCheckUserByCookiesMethod) == null) {
+ ServiceGrpc.getCheckUserByCookiesMethod = getCheckUserByCookiesMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CheckUserByCookies"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.CookiesRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.UserResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("CheckUserByCookies"))
+ .build();
+ }
+ }
+ }
+ return getCheckUserByCookiesMethod;
+ }
+
+ private static volatile io.grpc.MethodDescriptor getRecordSessionLifecycleLogMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "RecordSessionLifecycleLog",
+ requestType = org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest.class,
+ responseType = org.jumpserver.wisp.ServiceOuterClass.StatusResponse.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor getRecordSessionLifecycleLogMethod() {
+ io.grpc.MethodDescriptor getRecordSessionLifecycleLogMethod;
+ if ((getRecordSessionLifecycleLogMethod = ServiceGrpc.getRecordSessionLifecycleLogMethod) == null) {
+ synchronized (ServiceGrpc.class) {
+ if ((getRecordSessionLifecycleLogMethod = ServiceGrpc.getRecordSessionLifecycleLogMethod) == null) {
+ ServiceGrpc.getRecordSessionLifecycleLogMethod = getRecordSessionLifecycleLogMethod =
+ io.grpc.MethodDescriptor.newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RecordSessionLifecycleLog"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest.getDefaultInstance()))
+ .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+ org.jumpserver.wisp.ServiceOuterClass.StatusResponse.getDefaultInstance()))
+ .setSchemaDescriptor(new ServiceMethodDescriptorSupplier("RecordSessionLifecycleLog"))
+ .build();
+ }
+ }
+ }
+ return getRecordSessionLifecycleLogMethod;
+ }
+
+ /**
+ * Creates a new async stub that supports all call types for the service
+ */
+ public static ServiceStub newStub(io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public ServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new ServiceStub(channel, callOptions);
+ }
+ };
+ return ServiceStub.newStub(factory, channel);
+ }
+
+ /**
+ * Creates a new blocking-style stub that supports unary and streaming output calls on the service
+ */
+ public static ServiceBlockingStub newBlockingStub(
+ io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory() {
+ @java.lang.Override
+ public ServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+ return new ServiceBlockingStub(channel, callOptions);
+ }
+ };
+ return ServiceBlockingStub.newStub(factory, channel);
+ }
+
+ /**
+ * Creates a new ListenableFuture-style stub that supports unary calls on the service
+ */
+ public static ServiceFutureStub newFutureStub(
+ io.grpc.Channel channel) {
+ io.grpc.stub.AbstractStub.StubFactory factory =
+ new io.grpc.stub.AbstractStub.StubFactory