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 + 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 + 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 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 + 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 + 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 + 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 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 + 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 + 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 + 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 + 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 + 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 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 + 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 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 + 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 + 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 + 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 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 + 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() { + @java.lang.Override + public ServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceFutureStub(channel, callOptions); + } + }; + return ServiceFutureStub.newStub(factory, channel); + } + + /** + */ + public interface AsyncService { + + /** + */ + default void getTokenAuthInfo(org.jumpserver.wisp.ServiceOuterClass.TokenRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTokenAuthInfoMethod(), responseObserver); + } + + /** + */ + default void renewToken(org.jumpserver.wisp.ServiceOuterClass.TokenRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRenewTokenMethod(), responseObserver); + } + + /** + */ + default void createSession(org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSessionMethod(), responseObserver); + } + + /** + */ + default void finishSession(org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFinishSessionMethod(), responseObserver); + } + + /** + */ + default void uploadReplayFile(org.jumpserver.wisp.ServiceOuterClass.ReplayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUploadReplayFileMethod(), responseObserver); + } + + /** + */ + default void uploadCommand(org.jumpserver.wisp.ServiceOuterClass.CommandRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUploadCommandMethod(), responseObserver); + } + + /** + */ + default io.grpc.stub.StreamObserver dispatchTask( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getDispatchTaskMethod(), responseObserver); + } + + /** + */ + default void scanRemainReplays(org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getScanRemainReplaysMethod(), responseObserver); + } + + /** + */ + default void createCommandTicket(org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCommandTicketMethod(), responseObserver); + } + + /** + */ + default void checkOrCreateAssetLoginTicket(org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCheckOrCreateAssetLoginTicketMethod(), responseObserver); + } + + /** + */ + default void checkTicketState(org.jumpserver.wisp.ServiceOuterClass.TicketRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCheckTicketStateMethod(), responseObserver); + } + + /** + */ + default void cancelTicket(org.jumpserver.wisp.ServiceOuterClass.TicketRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCancelTicketMethod(), responseObserver); + } + + /** + */ + default void createForward(org.jumpserver.wisp.ServiceOuterClass.ForwardRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateForwardMethod(), responseObserver); + } + + /** + */ + default void deleteForward(org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteForwardMethod(), responseObserver); + } + + /** + */ + default void getPublicSetting(org.jumpserver.wisp.ServiceOuterClass.Empty request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPublicSettingMethod(), responseObserver); + } + + /** + */ + default void getListenPorts(org.jumpserver.wisp.ServiceOuterClass.Empty request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetListenPortsMethod(), responseObserver); + } + + /** + */ + default void getPortInfo(org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPortInfoMethod(), responseObserver); + } + + /** + */ + default void handlePortFailure(org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getHandlePortFailureMethod(), responseObserver); + } + + /** + */ + default void checkUserByCookies(org.jumpserver.wisp.ServiceOuterClass.CookiesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCheckUserByCookiesMethod(), responseObserver); + } + + /** + */ + default void recordSessionLifecycleLog(org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecordSessionLifecycleLogMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Service. + */ + public static abstract class ServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return ServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Service. + */ + public static final class ServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private ServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceStub(channel, callOptions); + } + + /** + */ + public void getTokenAuthInfo(org.jumpserver.wisp.ServiceOuterClass.TokenRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTokenAuthInfoMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void renewToken(org.jumpserver.wisp.ServiceOuterClass.TokenRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRenewTokenMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void createSession(org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSessionMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void finishSession(org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFinishSessionMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void uploadReplayFile(org.jumpserver.wisp.ServiceOuterClass.ReplayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUploadReplayFileMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void uploadCommand(org.jumpserver.wisp.ServiceOuterClass.CommandRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUploadCommandMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public io.grpc.stub.StreamObserver dispatchTask( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getDispatchTaskMethod(), getCallOptions()), responseObserver); + } + + /** + */ + public void scanRemainReplays(org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getScanRemainReplaysMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void createCommandTicket(org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCommandTicketMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void checkOrCreateAssetLoginTicket(org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCheckOrCreateAssetLoginTicketMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void checkTicketState(org.jumpserver.wisp.ServiceOuterClass.TicketRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCheckTicketStateMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void cancelTicket(org.jumpserver.wisp.ServiceOuterClass.TicketRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCancelTicketMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void createForward(org.jumpserver.wisp.ServiceOuterClass.ForwardRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateForwardMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void deleteForward(org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteForwardMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void getPublicSetting(org.jumpserver.wisp.ServiceOuterClass.Empty request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPublicSettingMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void getListenPorts(org.jumpserver.wisp.ServiceOuterClass.Empty request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetListenPortsMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void getPortInfo(org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPortInfoMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void handlePortFailure(org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getHandlePortFailureMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void checkUserByCookies(org.jumpserver.wisp.ServiceOuterClass.CookiesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCheckUserByCookiesMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void recordSessionLifecycleLog(org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRecordSessionLifecycleLogMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Service. + */ + public static final class ServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceBlockingStub(channel, callOptions); + } + + /** + */ + public org.jumpserver.wisp.ServiceOuterClass.TokenResponse getTokenAuthInfo(org.jumpserver.wisp.ServiceOuterClass.TokenRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTokenAuthInfoMethod(), getCallOptions(), request); + } + + /** + */ + public org.jumpserver.wisp.ServiceOuterClass.StatusResponse renewToken(org.jumpserver.wisp.ServiceOuterClass.TokenRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRenewTokenMethod(), getCallOptions(), request); + } + + /** + */ + public org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse createSession(org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSessionMethod(), getCallOptions(), request); + } + + /** + */ + public org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp finishSession(org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFinishSessionMethod(), getCallOptions(), request); + } + + /** + */ + public org.jumpserver.wisp.ServiceOuterClass.ReplayResponse uploadReplayFile(org.jumpserver.wisp.ServiceOuterClass.ReplayRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUploadReplayFileMethod(), getCallOptions(), request); + } + + /** + */ + public org.jumpserver.wisp.ServiceOuterClass.CommandResponse uploadCommand(org.jumpserver.wisp.ServiceOuterClass.CommandRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUploadCommandMethod(), getCallOptions(), request); + } + + /** + */ + public org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse scanRemainReplays(org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getScanRemainReplaysMethod(), getCallOptions(), request); + } + + /** + */ + public org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse createCommandTicket(org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCommandTicketMethod(), getCallOptions(), request); + } + + /** + */ + public org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse checkOrCreateAssetLoginTicket(org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCheckOrCreateAssetLoginTicketMethod(), getCallOptions(), request); + } + + /** + */ + public org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse checkTicketState(org.jumpserver.wisp.ServiceOuterClass.TicketRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCheckTicketStateMethod(), getCallOptions(), request); + } + + /** + */ + public org.jumpserver.wisp.ServiceOuterClass.StatusResponse cancelTicket(org.jumpserver.wisp.ServiceOuterClass.TicketRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelTicketMethod(), getCallOptions(), request); + } + + /** + */ + public org.jumpserver.wisp.ServiceOuterClass.ForwardResponse createForward(org.jumpserver.wisp.ServiceOuterClass.ForwardRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateForwardMethod(), getCallOptions(), request); + } + + /** + */ + public org.jumpserver.wisp.ServiceOuterClass.StatusResponse deleteForward(org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteForwardMethod(), getCallOptions(), request); + } + + /** + */ + public org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse getPublicSetting(org.jumpserver.wisp.ServiceOuterClass.Empty request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPublicSettingMethod(), getCallOptions(), request); + } + + /** + */ + public org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse getListenPorts(org.jumpserver.wisp.ServiceOuterClass.Empty request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetListenPortsMethod(), getCallOptions(), request); + } + + /** + */ + public org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse getPortInfo(org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPortInfoMethod(), getCallOptions(), request); + } + + /** + */ + public org.jumpserver.wisp.ServiceOuterClass.StatusResponse handlePortFailure(org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getHandlePortFailureMethod(), getCallOptions(), request); + } + + /** + */ + public org.jumpserver.wisp.ServiceOuterClass.UserResponse checkUserByCookies(org.jumpserver.wisp.ServiceOuterClass.CookiesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCheckUserByCookiesMethod(), getCallOptions(), request); + } + + /** + */ + public org.jumpserver.wisp.ServiceOuterClass.StatusResponse recordSessionLifecycleLog(org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRecordSessionLifecycleLogMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Service. + */ + public static final class ServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected ServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ServiceFutureStub(channel, callOptions); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture getTokenAuthInfo( + org.jumpserver.wisp.ServiceOuterClass.TokenRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTokenAuthInfoMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture renewToken( + org.jumpserver.wisp.ServiceOuterClass.TokenRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRenewTokenMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture createSession( + org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSessionMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture finishSession( + org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFinishSessionMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture uploadReplayFile( + org.jumpserver.wisp.ServiceOuterClass.ReplayRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUploadReplayFileMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture uploadCommand( + org.jumpserver.wisp.ServiceOuterClass.CommandRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUploadCommandMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture scanRemainReplays( + org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getScanRemainReplaysMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture createCommandTicket( + org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCommandTicketMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture checkOrCreateAssetLoginTicket( + org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCheckOrCreateAssetLoginTicketMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture checkTicketState( + org.jumpserver.wisp.ServiceOuterClass.TicketRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCheckTicketStateMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture cancelTicket( + org.jumpserver.wisp.ServiceOuterClass.TicketRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCancelTicketMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture createForward( + org.jumpserver.wisp.ServiceOuterClass.ForwardRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateForwardMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture deleteForward( + org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteForwardMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture getPublicSetting( + org.jumpserver.wisp.ServiceOuterClass.Empty request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPublicSettingMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture getListenPorts( + org.jumpserver.wisp.ServiceOuterClass.Empty request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetListenPortsMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture getPortInfo( + org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPortInfoMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture handlePortFailure( + org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getHandlePortFailureMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture checkUserByCookies( + org.jumpserver.wisp.ServiceOuterClass.CookiesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCheckUserByCookiesMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture recordSessionLifecycleLog( + org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRecordSessionLifecycleLogMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_TOKEN_AUTH_INFO = 0; + private static final int METHODID_RENEW_TOKEN = 1; + private static final int METHODID_CREATE_SESSION = 2; + private static final int METHODID_FINISH_SESSION = 3; + private static final int METHODID_UPLOAD_REPLAY_FILE = 4; + private static final int METHODID_UPLOAD_COMMAND = 5; + private static final int METHODID_SCAN_REMAIN_REPLAYS = 6; + private static final int METHODID_CREATE_COMMAND_TICKET = 7; + private static final int METHODID_CHECK_OR_CREATE_ASSET_LOGIN_TICKET = 8; + private static final int METHODID_CHECK_TICKET_STATE = 9; + private static final int METHODID_CANCEL_TICKET = 10; + private static final int METHODID_CREATE_FORWARD = 11; + private static final int METHODID_DELETE_FORWARD = 12; + private static final int METHODID_GET_PUBLIC_SETTING = 13; + private static final int METHODID_GET_LISTEN_PORTS = 14; + private static final int METHODID_GET_PORT_INFO = 15; + private static final int METHODID_HANDLE_PORT_FAILURE = 16; + private static final int METHODID_CHECK_USER_BY_COOKIES = 17; + private static final int METHODID_RECORD_SESSION_LIFECYCLE_LOG = 18; + private static final int METHODID_DISPATCH_TASK = 19; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_TOKEN_AUTH_INFO: + serviceImpl.getTokenAuthInfo((org.jumpserver.wisp.ServiceOuterClass.TokenRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RENEW_TOKEN: + serviceImpl.renewToken((org.jumpserver.wisp.ServiceOuterClass.TokenRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SESSION: + serviceImpl.createSession((org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_FINISH_SESSION: + serviceImpl.finishSession((org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPLOAD_REPLAY_FILE: + serviceImpl.uploadReplayFile((org.jumpserver.wisp.ServiceOuterClass.ReplayRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPLOAD_COMMAND: + serviceImpl.uploadCommand((org.jumpserver.wisp.ServiceOuterClass.CommandRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SCAN_REMAIN_REPLAYS: + serviceImpl.scanRemainReplays((org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_COMMAND_TICKET: + serviceImpl.createCommandTicket((org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CHECK_OR_CREATE_ASSET_LOGIN_TICKET: + serviceImpl.checkOrCreateAssetLoginTicket((org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CHECK_TICKET_STATE: + serviceImpl.checkTicketState((org.jumpserver.wisp.ServiceOuterClass.TicketRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CANCEL_TICKET: + serviceImpl.cancelTicket((org.jumpserver.wisp.ServiceOuterClass.TicketRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_FORWARD: + serviceImpl.createForward((org.jumpserver.wisp.ServiceOuterClass.ForwardRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_FORWARD: + serviceImpl.deleteForward((org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_PUBLIC_SETTING: + serviceImpl.getPublicSetting((org.jumpserver.wisp.ServiceOuterClass.Empty) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_LISTEN_PORTS: + serviceImpl.getListenPorts((org.jumpserver.wisp.ServiceOuterClass.Empty) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_PORT_INFO: + serviceImpl.getPortInfo((org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_HANDLE_PORT_FAILURE: + serviceImpl.handlePortFailure((org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CHECK_USER_BY_COOKIES: + serviceImpl.checkUserByCookies((org.jumpserver.wisp.ServiceOuterClass.CookiesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RECORD_SESSION_LIFECYCLE_LOG: + serviceImpl.recordSessionLifecycleLog((org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_DISPATCH_TASK: + return (io.grpc.stub.StreamObserver) serviceImpl.dispatchTask( + (io.grpc.stub.StreamObserver) responseObserver); + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetTokenAuthInfoMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.jumpserver.wisp.ServiceOuterClass.TokenRequest, + org.jumpserver.wisp.ServiceOuterClass.TokenResponse>( + service, METHODID_GET_TOKEN_AUTH_INFO))) + .addMethod( + getRenewTokenMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.jumpserver.wisp.ServiceOuterClass.TokenRequest, + org.jumpserver.wisp.ServiceOuterClass.StatusResponse>( + service, METHODID_RENEW_TOKEN))) + .addMethod( + getCreateSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest, + org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse>( + service, METHODID_CREATE_SESSION))) + .addMethod( + getFinishSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest, + org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp>( + service, METHODID_FINISH_SESSION))) + .addMethod( + getUploadReplayFileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.jumpserver.wisp.ServiceOuterClass.ReplayRequest, + org.jumpserver.wisp.ServiceOuterClass.ReplayResponse>( + service, METHODID_UPLOAD_REPLAY_FILE))) + .addMethod( + getUploadCommandMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.jumpserver.wisp.ServiceOuterClass.CommandRequest, + org.jumpserver.wisp.ServiceOuterClass.CommandResponse>( + service, METHODID_UPLOAD_COMMAND))) + .addMethod( + getDispatchTaskMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest, + org.jumpserver.wisp.ServiceOuterClass.TaskResponse>( + service, METHODID_DISPATCH_TASK))) + .addMethod( + getScanRemainReplaysMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest, + org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse>( + service, METHODID_SCAN_REMAIN_REPLAYS))) + .addMethod( + getCreateCommandTicketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest, + org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse>( + service, METHODID_CREATE_COMMAND_TICKET))) + .addMethod( + getCheckOrCreateAssetLoginTicketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest, + org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse>( + service, METHODID_CHECK_OR_CREATE_ASSET_LOGIN_TICKET))) + .addMethod( + getCheckTicketStateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.jumpserver.wisp.ServiceOuterClass.TicketRequest, + org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse>( + service, METHODID_CHECK_TICKET_STATE))) + .addMethod( + getCancelTicketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.jumpserver.wisp.ServiceOuterClass.TicketRequest, + org.jumpserver.wisp.ServiceOuterClass.StatusResponse>( + service, METHODID_CANCEL_TICKET))) + .addMethod( + getCreateForwardMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.jumpserver.wisp.ServiceOuterClass.ForwardRequest, + org.jumpserver.wisp.ServiceOuterClass.ForwardResponse>( + service, METHODID_CREATE_FORWARD))) + .addMethod( + getDeleteForwardMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest, + org.jumpserver.wisp.ServiceOuterClass.StatusResponse>( + service, METHODID_DELETE_FORWARD))) + .addMethod( + getGetPublicSettingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.jumpserver.wisp.ServiceOuterClass.Empty, + org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse>( + service, METHODID_GET_PUBLIC_SETTING))) + .addMethod( + getGetListenPortsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.jumpserver.wisp.ServiceOuterClass.Empty, + org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse>( + service, METHODID_GET_LISTEN_PORTS))) + .addMethod( + getGetPortInfoMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest, + org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse>( + service, METHODID_GET_PORT_INFO))) + .addMethod( + getHandlePortFailureMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest, + org.jumpserver.wisp.ServiceOuterClass.StatusResponse>( + service, METHODID_HANDLE_PORT_FAILURE))) + .addMethod( + getCheckUserByCookiesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.jumpserver.wisp.ServiceOuterClass.CookiesRequest, + org.jumpserver.wisp.ServiceOuterClass.UserResponse>( + service, METHODID_CHECK_USER_BY_COOKIES))) + .addMethod( + getRecordSessionLifecycleLogMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest, + org.jumpserver.wisp.ServiceOuterClass.StatusResponse>( + service, METHODID_RECORD_SESSION_LIFECYCLE_LOG))) + .build(); + } + + private static abstract class ServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Service"); + } + } + + private static final class ServiceFileDescriptorSupplier + extends ServiceBaseDescriptorSupplier { + ServiceFileDescriptorSupplier() {} + } + + private static final class ServiceMethodDescriptorSupplier + extends ServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (ServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ServiceFileDescriptorSupplier()) + .addMethod(getGetTokenAuthInfoMethod()) + .addMethod(getRenewTokenMethod()) + .addMethod(getCreateSessionMethod()) + .addMethod(getFinishSessionMethod()) + .addMethod(getUploadReplayFileMethod()) + .addMethod(getUploadCommandMethod()) + .addMethod(getDispatchTaskMethod()) + .addMethod(getScanRemainReplaysMethod()) + .addMethod(getCreateCommandTicketMethod()) + .addMethod(getCheckOrCreateAssetLoginTicketMethod()) + .addMethod(getCheckTicketStateMethod()) + .addMethod(getCancelTicketMethod()) + .addMethod(getCreateForwardMethod()) + .addMethod(getDeleteForwardMethod()) + .addMethod(getGetPublicSettingMethod()) + .addMethod(getGetListenPortsMethod()) + .addMethod(getGetPortInfoMethod()) + .addMethod(getHandlePortFailureMethod()) + .addMethod(getCheckUserByCookiesMethod()) + .addMethod(getRecordSessionLifecycleLogMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/protobuf-java/org/jumpserver/wisp/ServiceOuterClass.java b/protobuf-java/org/jumpserver/wisp/ServiceOuterClass.java new file mode 100644 index 0000000..67a816e --- /dev/null +++ b/protobuf-java/org/jumpserver/wisp/ServiceOuterClass.java @@ -0,0 +1,29878 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: service.proto +// Protobuf Java Version: 4.26.1 + +package org.jumpserver.wisp; + +public final class ServiceOuterClass { + private ServiceOuterClass() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 26, + /* patch= */ 1, + /* suffix= */ "", + ServiceOuterClass.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); + } + public interface AssetLoginTicketRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.AssetLoginTicketRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string user_id = 1; + * @return The userId. + */ + java.lang.String getUserId(); + /** + * string user_id = 1; + * @return The bytes for userId. + */ + com.google.protobuf.ByteString + getUserIdBytes(); + + /** + * string asset_id = 2; + * @return The assetId. + */ + java.lang.String getAssetId(); + /** + * string asset_id = 2; + * @return The bytes for assetId. + */ + com.google.protobuf.ByteString + getAssetIdBytes(); + + /** + * string account_username = 4; + * @return The accountUsername. + */ + java.lang.String getAccountUsername(); + /** + * string account_username = 4; + * @return The bytes for accountUsername. + */ + com.google.protobuf.ByteString + getAccountUsernameBytes(); + } + /** + * Protobuf type {@code message.AssetLoginTicketRequest} + */ + public static final class AssetLoginTicketRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.AssetLoginTicketRequest) + AssetLoginTicketRequestOrBuilder { + 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= */ "", + AssetLoginTicketRequest.class.getName()); + } + // Use AssetLoginTicketRequest.newBuilder() to construct. + private AssetLoginTicketRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private AssetLoginTicketRequest() { + userId_ = ""; + assetId_ = ""; + accountUsername_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_AssetLoginTicketRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_AssetLoginTicketRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest.class, org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest.Builder.class); + } + + public static final int USER_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object userId_ = ""; + /** + * string user_id = 1; + * @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 = 1; + * @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 = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object assetId_ = ""; + /** + * string asset_id = 2; + * @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 = 2; + * @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_USERNAME_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object accountUsername_ = ""; + /** + * string account_username = 4; + * @return The accountUsername. + */ + @java.lang.Override + public java.lang.String getAccountUsername() { + java.lang.Object ref = accountUsername_; + 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(); + accountUsername_ = s; + return s; + } + } + /** + * string account_username = 4; + * @return The bytes for accountUsername. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAccountUsernameBytes() { + java.lang.Object ref = accountUsername_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + accountUsername_ = 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(userId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, userId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assetId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, assetId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(accountUsername_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, accountUsername_); + } + 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(userId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, userId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assetId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, assetId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(accountUsername_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, accountUsername_); + } + 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.ServiceOuterClass.AssetLoginTicketRequest)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest other = (org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest) obj; + + if (!getUserId() + .equals(other.getUserId())) return false; + if (!getAssetId() + .equals(other.getAssetId())) return false; + if (!getAccountUsername() + .equals(other.getAccountUsername())) 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) + 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_USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getAccountUsername().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest 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.ServiceOuterClass.AssetLoginTicketRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest 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.ServiceOuterClass.AssetLoginTicketRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest 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.ServiceOuterClass.AssetLoginTicketRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest 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.ServiceOuterClass.AssetLoginTicketRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest 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.ServiceOuterClass.AssetLoginTicketRequest 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.AssetLoginTicketRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.AssetLoginTicketRequest) + org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_AssetLoginTicketRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_AssetLoginTicketRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest.class, org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userId_ = ""; + assetId_ = ""; + accountUsername_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_AssetLoginTicketRequest_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest build() { + org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest result = new org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userId_ = userId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.assetId_ = assetId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.accountUsername_ = accountUsername_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest.getDefaultInstance()) return this; + if (!other.getUserId().isEmpty()) { + userId_ = other.userId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAssetId().isEmpty()) { + assetId_ = other.assetId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getAccountUsername().isEmpty()) { + accountUsername_ = other.accountUsername_; + 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 10: { + userId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + assetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: { + accountUsername_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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 java.lang.Object userId_ = ""; + /** + * string user_id = 1; + * @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 = 1; + * @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 = 1; + * @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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string user_id = 1; + * @return This builder for chaining. + */ + public Builder clearUserId() { + userId_ = getDefaultInstance().getUserId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string user_id = 1; + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object assetId_ = ""; + /** + * string asset_id = 2; + * @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 = 2; + * @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 = 2; + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string asset_id = 2; + * @return This builder for chaining. + */ + public Builder clearAssetId() { + assetId_ = getDefaultInstance().getAssetId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string asset_id = 2; + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object accountUsername_ = ""; + /** + * string account_username = 4; + * @return The accountUsername. + */ + public java.lang.String getAccountUsername() { + java.lang.Object ref = accountUsername_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accountUsername_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string account_username = 4; + * @return The bytes for accountUsername. + */ + public com.google.protobuf.ByteString + getAccountUsernameBytes() { + java.lang.Object ref = accountUsername_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + accountUsername_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string account_username = 4; + * @param value The accountUsername to set. + * @return This builder for chaining. + */ + public Builder setAccountUsername( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + accountUsername_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string account_username = 4; + * @return This builder for chaining. + */ + public Builder clearAccountUsername() { + accountUsername_ = getDefaultInstance().getAccountUsername(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string account_username = 4; + * @param value The bytes for accountUsername to set. + * @return This builder for chaining. + */ + public Builder setAccountUsernameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + accountUsername_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:message.AssetLoginTicketRequest) + } + + // @@protoc_insertion_point(class_scope:message.AssetLoginTicketRequest) + private static final org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssetLoginTicketRequest 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.ServiceOuterClass.AssetLoginTicketRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AssetLoginTicketResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.AssetLoginTicketResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .message.Status status = 1; + * @return The status. + */ + org.jumpserver.wisp.ServiceOuterClass.Status getStatus(); + /** + * .message.Status status = 1; + */ + org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder(); + + /** + * .message.TicketInfo ticket_info = 2; + * @return Whether the ticketInfo field is set. + */ + boolean hasTicketInfo(); + /** + * .message.TicketInfo ticket_info = 2; + * @return The ticketInfo. + */ + org.jumpserver.wisp.ServiceOuterClass.TicketInfo getTicketInfo(); + /** + * .message.TicketInfo ticket_info = 2; + */ + org.jumpserver.wisp.ServiceOuterClass.TicketInfoOrBuilder getTicketInfoOrBuilder(); + + /** + * bool need_confirm = 3; + * @return The needConfirm. + */ + boolean getNeedConfirm(); + + /** + * string ticket_id = 4; + * @return The ticketId. + */ + java.lang.String getTicketId(); + /** + * string ticket_id = 4; + * @return The bytes for ticketId. + */ + com.google.protobuf.ByteString + getTicketIdBytes(); + } + /** + * Protobuf type {@code message.AssetLoginTicketResponse} + */ + public static final class AssetLoginTicketResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.AssetLoginTicketResponse) + AssetLoginTicketResponseOrBuilder { + 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= */ "", + AssetLoginTicketResponse.class.getName()); + } + // Use AssetLoginTicketResponse.newBuilder() to construct. + private AssetLoginTicketResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private AssetLoginTicketResponse() { + ticketId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_AssetLoginTicketResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_AssetLoginTicketResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse.class, org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private org.jumpserver.wisp.ServiceOuterClass.Status status_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + /** + * .message.Status status = 1; + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + + public static final int TICKET_INFO_FIELD_NUMBER = 2; + private org.jumpserver.wisp.ServiceOuterClass.TicketInfo ticketInfo_; + /** + * .message.TicketInfo ticket_info = 2; + * @return Whether the ticketInfo field is set. + */ + @java.lang.Override + public boolean hasTicketInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .message.TicketInfo ticket_info = 2; + * @return The ticketInfo. + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TicketInfo getTicketInfo() { + return ticketInfo_ == null ? org.jumpserver.wisp.ServiceOuterClass.TicketInfo.getDefaultInstance() : ticketInfo_; + } + /** + * .message.TicketInfo ticket_info = 2; + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TicketInfoOrBuilder getTicketInfoOrBuilder() { + return ticketInfo_ == null ? org.jumpserver.wisp.ServiceOuterClass.TicketInfo.getDefaultInstance() : ticketInfo_; + } + + public static final int NEED_CONFIRM_FIELD_NUMBER = 3; + private boolean needConfirm_ = false; + /** + * bool need_confirm = 3; + * @return The needConfirm. + */ + @java.lang.Override + public boolean getNeedConfirm() { + return needConfirm_; + } + + public static final int TICKET_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object ticketId_ = ""; + /** + * string ticket_id = 4; + * @return The ticketId. + */ + @java.lang.Override + public java.lang.String getTicketId() { + java.lang.Object ref = ticketId_; + 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(); + ticketId_ = s; + return s; + } + } + /** + * string ticket_id = 4; + * @return The bytes for ticketId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTicketIdBytes() { + java.lang.Object ref = ticketId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ticketId_ = 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStatus()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getTicketInfo()); + } + if (needConfirm_ != false) { + output.writeBool(3, needConfirm_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ticketId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, ticketId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStatus()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTicketInfo()); + } + if (needConfirm_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, needConfirm_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ticketId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, ticketId_); + } + 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.ServiceOuterClass.AssetLoginTicketResponse)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse other = (org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse) obj; + + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (hasTicketInfo() != other.hasTicketInfo()) return false; + if (hasTicketInfo()) { + if (!getTicketInfo() + .equals(other.getTicketInfo())) return false; + } + if (getNeedConfirm() + != other.getNeedConfirm()) return false; + if (!getTicketId() + .equals(other.getTicketId())) 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(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + if (hasTicketInfo()) { + hash = (37 * hash) + TICKET_INFO_FIELD_NUMBER; + hash = (53 * hash) + getTicketInfo().hashCode(); + } + hash = (37 * hash) + NEED_CONFIRM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNeedConfirm()); + hash = (37 * hash) + TICKET_ID_FIELD_NUMBER; + hash = (53 * hash) + getTicketId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse 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.ServiceOuterClass.AssetLoginTicketResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse 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.ServiceOuterClass.AssetLoginTicketResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse 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.ServiceOuterClass.AssetLoginTicketResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse 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.ServiceOuterClass.AssetLoginTicketResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse 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.ServiceOuterClass.AssetLoginTicketResponse 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.AssetLoginTicketResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.AssetLoginTicketResponse) + org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_AssetLoginTicketResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_AssetLoginTicketResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse.class, org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getStatusFieldBuilder(); + getTicketInfoFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + ticketInfo_ = null; + if (ticketInfoBuilder_ != null) { + ticketInfoBuilder_.dispose(); + ticketInfoBuilder_ = null; + } + needConfirm_ = false; + ticketId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_AssetLoginTicketResponse_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse build() { + org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse result = new org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ticketInfo_ = ticketInfoBuilder_ == null + ? ticketInfo_ + : ticketInfoBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.needConfirm_ = needConfirm_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.ticketId_ = ticketId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + if (other.hasTicketInfo()) { + mergeTicketInfo(other.getTicketInfo()); + } + if (other.getNeedConfirm() != false) { + setNeedConfirm(other.getNeedConfirm()); + } + if (!other.getTicketId().isEmpty()) { + ticketId_ = other.ticketId_; + bitField0_ |= 0x00000008; + 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: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getTicketInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + needConfirm_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + ticketId_ = input.readStringRequireUtf8(); + 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 org.jumpserver.wisp.ServiceOuterClass.Status status_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> statusBuilder_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * .message.Status status = 1; + */ + public Builder setStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder setStatus( + org.jumpserver.wisp.ServiceOuterClass.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder mergeStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + status_ != null && + status_ != org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .message.Status status = 1; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.Status.Builder getStatusBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + } + /** + * .message.Status status = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + private org.jumpserver.wisp.ServiceOuterClass.TicketInfo ticketInfo_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.TicketInfo, org.jumpserver.wisp.ServiceOuterClass.TicketInfo.Builder, org.jumpserver.wisp.ServiceOuterClass.TicketInfoOrBuilder> ticketInfoBuilder_; + /** + * .message.TicketInfo ticket_info = 2; + * @return Whether the ticketInfo field is set. + */ + public boolean hasTicketInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .message.TicketInfo ticket_info = 2; + * @return The ticketInfo. + */ + public org.jumpserver.wisp.ServiceOuterClass.TicketInfo getTicketInfo() { + if (ticketInfoBuilder_ == null) { + return ticketInfo_ == null ? org.jumpserver.wisp.ServiceOuterClass.TicketInfo.getDefaultInstance() : ticketInfo_; + } else { + return ticketInfoBuilder_.getMessage(); + } + } + /** + * .message.TicketInfo ticket_info = 2; + */ + public Builder setTicketInfo(org.jumpserver.wisp.ServiceOuterClass.TicketInfo value) { + if (ticketInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ticketInfo_ = value; + } else { + ticketInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .message.TicketInfo ticket_info = 2; + */ + public Builder setTicketInfo( + org.jumpserver.wisp.ServiceOuterClass.TicketInfo.Builder builderForValue) { + if (ticketInfoBuilder_ == null) { + ticketInfo_ = builderForValue.build(); + } else { + ticketInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .message.TicketInfo ticket_info = 2; + */ + public Builder mergeTicketInfo(org.jumpserver.wisp.ServiceOuterClass.TicketInfo value) { + if (ticketInfoBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + ticketInfo_ != null && + ticketInfo_ != org.jumpserver.wisp.ServiceOuterClass.TicketInfo.getDefaultInstance()) { + getTicketInfoBuilder().mergeFrom(value); + } else { + ticketInfo_ = value; + } + } else { + ticketInfoBuilder_.mergeFrom(value); + } + if (ticketInfo_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .message.TicketInfo ticket_info = 2; + */ + public Builder clearTicketInfo() { + bitField0_ = (bitField0_ & ~0x00000002); + ticketInfo_ = null; + if (ticketInfoBuilder_ != null) { + ticketInfoBuilder_.dispose(); + ticketInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.TicketInfo ticket_info = 2; + */ + public org.jumpserver.wisp.ServiceOuterClass.TicketInfo.Builder getTicketInfoBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getTicketInfoFieldBuilder().getBuilder(); + } + /** + * .message.TicketInfo ticket_info = 2; + */ + public org.jumpserver.wisp.ServiceOuterClass.TicketInfoOrBuilder getTicketInfoOrBuilder() { + if (ticketInfoBuilder_ != null) { + return ticketInfoBuilder_.getMessageOrBuilder(); + } else { + return ticketInfo_ == null ? + org.jumpserver.wisp.ServiceOuterClass.TicketInfo.getDefaultInstance() : ticketInfo_; + } + } + /** + * .message.TicketInfo ticket_info = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.TicketInfo, org.jumpserver.wisp.ServiceOuterClass.TicketInfo.Builder, org.jumpserver.wisp.ServiceOuterClass.TicketInfoOrBuilder> + getTicketInfoFieldBuilder() { + if (ticketInfoBuilder_ == null) { + ticketInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.TicketInfo, org.jumpserver.wisp.ServiceOuterClass.TicketInfo.Builder, org.jumpserver.wisp.ServiceOuterClass.TicketInfoOrBuilder>( + getTicketInfo(), + getParentForChildren(), + isClean()); + ticketInfo_ = null; + } + return ticketInfoBuilder_; + } + + private boolean needConfirm_ ; + /** + * bool need_confirm = 3; + * @return The needConfirm. + */ + @java.lang.Override + public boolean getNeedConfirm() { + return needConfirm_; + } + /** + * bool need_confirm = 3; + * @param value The needConfirm to set. + * @return This builder for chaining. + */ + public Builder setNeedConfirm(boolean value) { + + needConfirm_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * bool need_confirm = 3; + * @return This builder for chaining. + */ + public Builder clearNeedConfirm() { + bitField0_ = (bitField0_ & ~0x00000004); + needConfirm_ = false; + onChanged(); + return this; + } + + private java.lang.Object ticketId_ = ""; + /** + * string ticket_id = 4; + * @return The ticketId. + */ + public java.lang.String getTicketId() { + java.lang.Object ref = ticketId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ticketId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string ticket_id = 4; + * @return The bytes for ticketId. + */ + public com.google.protobuf.ByteString + getTicketIdBytes() { + java.lang.Object ref = ticketId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ticketId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string ticket_id = 4; + * @param value The ticketId to set. + * @return This builder for chaining. + */ + public Builder setTicketId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ticketId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string ticket_id = 4; + * @return This builder for chaining. + */ + public Builder clearTicketId() { + ticketId_ = getDefaultInstance().getTicketId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string ticket_id = 4; + * @param value The bytes for ticketId to set. + * @return This builder for chaining. + */ + public Builder setTicketIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ticketId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:message.AssetLoginTicketResponse) + } + + // @@protoc_insertion_point(class_scope:message.AssetLoginTicketResponse) + private static final org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.AssetLoginTicketResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssetLoginTicketResponse 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.ServiceOuterClass.AssetLoginTicketResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.Status) + com.google.protobuf.MessageOrBuilder { + + /** + * bool ok = 1; + * @return The ok. + */ + boolean getOk(); + + /** + * string err = 2; + * @return The err. + */ + java.lang.String getErr(); + /** + * string err = 2; + * @return The bytes for err. + */ + com.google.protobuf.ByteString + getErrBytes(); + } + /** + * Protobuf type {@code message.Status} + */ + public static final class Status extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.Status) + StatusOrBuilder { + 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= */ "", + Status.class.getName()); + } + // Use Status.newBuilder() to construct. + private Status(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Status() { + err_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_Status_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_Status_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.Status.class, org.jumpserver.wisp.ServiceOuterClass.Status.Builder.class); + } + + public static final int OK_FIELD_NUMBER = 1; + private boolean ok_ = false; + /** + * bool ok = 1; + * @return The ok. + */ + @java.lang.Override + public boolean getOk() { + return ok_; + } + + public static final int ERR_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object err_ = ""; + /** + * string err = 2; + * @return The err. + */ + @java.lang.Override + public java.lang.String getErr() { + java.lang.Object ref = err_; + 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(); + err_ = s; + return s; + } + } + /** + * string err = 2; + * @return The bytes for err. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getErrBytes() { + java.lang.Object ref = err_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + err_ = 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 (ok_ != false) { + output.writeBool(1, ok_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(err_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, err_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (ok_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, ok_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(err_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, err_); + } + 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.ServiceOuterClass.Status)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.Status other = (org.jumpserver.wisp.ServiceOuterClass.Status) obj; + + if (getOk() + != other.getOk()) return false; + if (!getErr() + .equals(other.getErr())) 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) + OK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getOk()); + hash = (37 * hash) + ERR_FIELD_NUMBER; + hash = (53 * hash) + getErr().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.Status parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.Status 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.ServiceOuterClass.Status parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.Status 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.ServiceOuterClass.Status parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.Status parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.Status parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.Status 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.ServiceOuterClass.Status parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.Status 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.ServiceOuterClass.Status parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.Status 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.ServiceOuterClass.Status 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.Status} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.Status) + org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_Status_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_Status_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.Status.class, org.jumpserver.wisp.ServiceOuterClass.Status.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.Status.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + ok_ = false; + err_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_Status_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.Status getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.Status build() { + org.jumpserver.wisp.ServiceOuterClass.Status result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.Status buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.Status result = new org.jumpserver.wisp.ServiceOuterClass.Status(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.Status result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.ok_ = ok_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.err_ = err_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.Status) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.Status)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.Status other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance()) return this; + if (other.getOk() != false) { + setOk(other.getOk()); + } + if (!other.getErr().isEmpty()) { + err_ = other.err_; + 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 8: { + ok_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + err_ = 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 boolean ok_ ; + /** + * bool ok = 1; + * @return The ok. + */ + @java.lang.Override + public boolean getOk() { + return ok_; + } + /** + * bool ok = 1; + * @param value The ok to set. + * @return This builder for chaining. + */ + public Builder setOk(boolean value) { + + ok_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * bool ok = 1; + * @return This builder for chaining. + */ + public Builder clearOk() { + bitField0_ = (bitField0_ & ~0x00000001); + ok_ = false; + onChanged(); + return this; + } + + private java.lang.Object err_ = ""; + /** + * string err = 2; + * @return The err. + */ + public java.lang.String getErr() { + java.lang.Object ref = err_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + err_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string err = 2; + * @return The bytes for err. + */ + public com.google.protobuf.ByteString + getErrBytes() { + java.lang.Object ref = err_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + err_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string err = 2; + * @param value The err to set. + * @return This builder for chaining. + */ + public Builder setErr( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + err_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string err = 2; + * @return This builder for chaining. + */ + public Builder clearErr() { + err_ = getDefaultInstance().getErr(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string err = 2; + * @param value The bytes for err to set. + * @return This builder for chaining. + */ + public Builder setErrBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + err_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:message.Status) + } + + // @@protoc_insertion_point(class_scope:message.Status) + private static final org.jumpserver.wisp.ServiceOuterClass.Status DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.Status(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.Status getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Status 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.ServiceOuterClass.Status getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TokenRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.TokenRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string token = 1; + * @return The token. + */ + java.lang.String getToken(); + /** + * string token = 1; + * @return The bytes for token. + */ + com.google.protobuf.ByteString + getTokenBytes(); + } + /** + * Protobuf type {@code message.TokenRequest} + */ + public static final class TokenRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.TokenRequest) + TokenRequestOrBuilder { + 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= */ "", + TokenRequest.class.getName()); + } + // Use TokenRequest.newBuilder() to construct. + private TokenRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private TokenRequest() { + token_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.TokenRequest.class, org.jumpserver.wisp.ServiceOuterClass.TokenRequest.Builder.class); + } + + public static final int TOKEN_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object token_ = ""; + /** + * string token = 1; + * @return The token. + */ + @java.lang.Override + public java.lang.String getToken() { + java.lang.Object ref = token_; + 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(); + token_ = s; + return s; + } + } + /** + * string token = 1; + * @return The bytes for token. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = 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(token_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, token_); + } + 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(token_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, token_); + } + 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.ServiceOuterClass.TokenRequest)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.TokenRequest other = (org.jumpserver.wisp.ServiceOuterClass.TokenRequest) obj; + + if (!getToken() + .equals(other.getToken())) 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) + TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.TokenRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.TokenRequest 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.ServiceOuterClass.TokenRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.TokenRequest 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.ServiceOuterClass.TokenRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.TokenRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.TokenRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.TokenRequest 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.ServiceOuterClass.TokenRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.TokenRequest 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.ServiceOuterClass.TokenRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.TokenRequest 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.ServiceOuterClass.TokenRequest 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.TokenRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.TokenRequest) + org.jumpserver.wisp.ServiceOuterClass.TokenRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TokenRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TokenRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.TokenRequest.class, org.jumpserver.wisp.ServiceOuterClass.TokenRequest.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.TokenRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + token_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TokenRequest_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TokenRequest getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.TokenRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TokenRequest build() { + org.jumpserver.wisp.ServiceOuterClass.TokenRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TokenRequest buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.TokenRequest result = new org.jumpserver.wisp.ServiceOuterClass.TokenRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.TokenRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.token_ = token_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.TokenRequest) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.TokenRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.TokenRequest other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.TokenRequest.getDefaultInstance()) return this; + if (!other.getToken().isEmpty()) { + token_ = other.token_; + bitField0_ |= 0x00000001; + 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: { + token_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + 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 token_ = ""; + /** + * string token = 1; + * @return The token. + */ + public java.lang.String getToken() { + java.lang.Object ref = token_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + token_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string token = 1; + * @return The bytes for token. + */ + public com.google.protobuf.ByteString + getTokenBytes() { + java.lang.Object ref = token_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + token_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string token = 1; + * @param value The token to set. + * @return This builder for chaining. + */ + public Builder setToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + token_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string token = 1; + * @return This builder for chaining. + */ + public Builder clearToken() { + token_ = getDefaultInstance().getToken(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string token = 1; + * @param value The bytes for token to set. + * @return This builder for chaining. + */ + public Builder setTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + token_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:message.TokenRequest) + } + + // @@protoc_insertion_point(class_scope:message.TokenRequest) + private static final org.jumpserver.wisp.ServiceOuterClass.TokenRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.TokenRequest(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.TokenRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TokenRequest 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.ServiceOuterClass.TokenRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TokenResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.TokenResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .message.Status status = 1; + * @return The status. + */ + org.jumpserver.wisp.ServiceOuterClass.Status getStatus(); + /** + * .message.Status status = 1; + */ + org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder(); + + /** + * .message.TokenAuthInfo data = 2; + * @return Whether the data field is set. + */ + boolean hasData(); + /** + * .message.TokenAuthInfo data = 2; + * @return The data. + */ + org.jumpserver.wisp.Common.TokenAuthInfo getData(); + /** + * .message.TokenAuthInfo data = 2; + */ + org.jumpserver.wisp.Common.TokenAuthInfoOrBuilder getDataOrBuilder(); + } + /** + * Protobuf type {@code message.TokenResponse} + */ + public static final class TokenResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.TokenResponse) + TokenResponseOrBuilder { + 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= */ "", + TokenResponse.class.getName()); + } + // Use TokenResponse.newBuilder() to construct. + private TokenResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private TokenResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.TokenResponse.class, org.jumpserver.wisp.ServiceOuterClass.TokenResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private org.jumpserver.wisp.ServiceOuterClass.Status status_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + /** + * .message.Status status = 1; + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + + public static final int DATA_FIELD_NUMBER = 2; + private org.jumpserver.wisp.Common.TokenAuthInfo data_; + /** + * .message.TokenAuthInfo data = 2; + * @return Whether the data field is set. + */ + @java.lang.Override + public boolean hasData() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .message.TokenAuthInfo data = 2; + * @return The data. + */ + @java.lang.Override + public org.jumpserver.wisp.Common.TokenAuthInfo getData() { + return data_ == null ? org.jumpserver.wisp.Common.TokenAuthInfo.getDefaultInstance() : data_; + } + /** + * .message.TokenAuthInfo data = 2; + */ + @java.lang.Override + public org.jumpserver.wisp.Common.TokenAuthInfoOrBuilder getDataOrBuilder() { + return data_ == null ? org.jumpserver.wisp.Common.TokenAuthInfo.getDefaultInstance() : data_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStatus()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getData()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStatus()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getData()); + } + 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.ServiceOuterClass.TokenResponse)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.TokenResponse other = (org.jumpserver.wisp.ServiceOuterClass.TokenResponse) obj; + + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (hasData() != other.hasData()) return false; + if (hasData()) { + if (!getData() + .equals(other.getData())) 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(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + if (hasData()) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.TokenResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.TokenResponse 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.ServiceOuterClass.TokenResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.TokenResponse 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.ServiceOuterClass.TokenResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.TokenResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.TokenResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.TokenResponse 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.ServiceOuterClass.TokenResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.TokenResponse 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.ServiceOuterClass.TokenResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.TokenResponse 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.ServiceOuterClass.TokenResponse 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.TokenResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.TokenResponse) + org.jumpserver.wisp.ServiceOuterClass.TokenResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TokenResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TokenResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.TokenResponse.class, org.jumpserver.wisp.ServiceOuterClass.TokenResponse.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.TokenResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getStatusFieldBuilder(); + getDataFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + data_ = null; + if (dataBuilder_ != null) { + dataBuilder_.dispose(); + dataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TokenResponse_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TokenResponse getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.TokenResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TokenResponse build() { + org.jumpserver.wisp.ServiceOuterClass.TokenResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TokenResponse buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.TokenResponse result = new org.jumpserver.wisp.ServiceOuterClass.TokenResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.TokenResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.data_ = dataBuilder_ == null + ? data_ + : dataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.TokenResponse) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.TokenResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.TokenResponse other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.TokenResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + if (other.hasData()) { + mergeData(other.getData()); + } + 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: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDataFieldBuilder().getBuilder(), + extensionRegistry); + 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 org.jumpserver.wisp.ServiceOuterClass.Status status_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> statusBuilder_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * .message.Status status = 1; + */ + public Builder setStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder setStatus( + org.jumpserver.wisp.ServiceOuterClass.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder mergeStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + status_ != null && + status_ != org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .message.Status status = 1; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.Status.Builder getStatusBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + } + /** + * .message.Status status = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + private org.jumpserver.wisp.Common.TokenAuthInfo data_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.Common.TokenAuthInfo, org.jumpserver.wisp.Common.TokenAuthInfo.Builder, org.jumpserver.wisp.Common.TokenAuthInfoOrBuilder> dataBuilder_; + /** + * .message.TokenAuthInfo data = 2; + * @return Whether the data field is set. + */ + public boolean hasData() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .message.TokenAuthInfo data = 2; + * @return The data. + */ + public org.jumpserver.wisp.Common.TokenAuthInfo getData() { + if (dataBuilder_ == null) { + return data_ == null ? org.jumpserver.wisp.Common.TokenAuthInfo.getDefaultInstance() : data_; + } else { + return dataBuilder_.getMessage(); + } + } + /** + * .message.TokenAuthInfo data = 2; + */ + public Builder setData(org.jumpserver.wisp.Common.TokenAuthInfo value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + } else { + dataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .message.TokenAuthInfo data = 2; + */ + public Builder setData( + org.jumpserver.wisp.Common.TokenAuthInfo.Builder builderForValue) { + if (dataBuilder_ == null) { + data_ = builderForValue.build(); + } else { + dataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .message.TokenAuthInfo data = 2; + */ + public Builder mergeData(org.jumpserver.wisp.Common.TokenAuthInfo value) { + if (dataBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + data_ != null && + data_ != org.jumpserver.wisp.Common.TokenAuthInfo.getDefaultInstance()) { + getDataBuilder().mergeFrom(value); + } else { + data_ = value; + } + } else { + dataBuilder_.mergeFrom(value); + } + if (data_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .message.TokenAuthInfo data = 2; + */ + public Builder clearData() { + bitField0_ = (bitField0_ & ~0x00000002); + data_ = null; + if (dataBuilder_ != null) { + dataBuilder_.dispose(); + dataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.TokenAuthInfo data = 2; + */ + public org.jumpserver.wisp.Common.TokenAuthInfo.Builder getDataBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDataFieldBuilder().getBuilder(); + } + /** + * .message.TokenAuthInfo data = 2; + */ + public org.jumpserver.wisp.Common.TokenAuthInfoOrBuilder getDataOrBuilder() { + if (dataBuilder_ != null) { + return dataBuilder_.getMessageOrBuilder(); + } else { + return data_ == null ? + org.jumpserver.wisp.Common.TokenAuthInfo.getDefaultInstance() : data_; + } + } + /** + * .message.TokenAuthInfo data = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.Common.TokenAuthInfo, org.jumpserver.wisp.Common.TokenAuthInfo.Builder, org.jumpserver.wisp.Common.TokenAuthInfoOrBuilder> + getDataFieldBuilder() { + if (dataBuilder_ == null) { + dataBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.Common.TokenAuthInfo, org.jumpserver.wisp.Common.TokenAuthInfo.Builder, org.jumpserver.wisp.Common.TokenAuthInfoOrBuilder>( + getData(), + getParentForChildren(), + isClean()); + data_ = null; + } + return dataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:message.TokenResponse) + } + + // @@protoc_insertion_point(class_scope:message.TokenResponse) + private static final org.jumpserver.wisp.ServiceOuterClass.TokenResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.TokenResponse(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.TokenResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TokenResponse 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.ServiceOuterClass.TokenResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SessionCreateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.SessionCreateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .message.Session data = 1; + * @return Whether the data field is set. + */ + boolean hasData(); + /** + * .message.Session data = 1; + * @return The data. + */ + org.jumpserver.wisp.Common.Session getData(); + /** + * .message.Session data = 1; + */ + org.jumpserver.wisp.Common.SessionOrBuilder getDataOrBuilder(); + } + /** + * Protobuf type {@code message.SessionCreateRequest} + */ + public static final class SessionCreateRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.SessionCreateRequest) + SessionCreateRequestOrBuilder { + 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= */ "", + SessionCreateRequest.class.getName()); + } + // Use SessionCreateRequest.newBuilder() to construct. + private SessionCreateRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SessionCreateRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_SessionCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_SessionCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest.class, org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest.Builder.class); + } + + private int bitField0_; + public static final int DATA_FIELD_NUMBER = 1; + private org.jumpserver.wisp.Common.Session data_; + /** + * .message.Session data = 1; + * @return Whether the data field is set. + */ + @java.lang.Override + public boolean hasData() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Session data = 1; + * @return The data. + */ + @java.lang.Override + public org.jumpserver.wisp.Common.Session getData() { + return data_ == null ? org.jumpserver.wisp.Common.Session.getDefaultInstance() : data_; + } + /** + * .message.Session data = 1; + */ + @java.lang.Override + public org.jumpserver.wisp.Common.SessionOrBuilder getDataOrBuilder() { + return data_ == null ? org.jumpserver.wisp.Common.Session.getDefaultInstance() : data_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getData()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getData()); + } + 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.ServiceOuterClass.SessionCreateRequest)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest other = (org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest) obj; + + if (hasData() != other.hasData()) return false; + if (hasData()) { + if (!getData() + .equals(other.getData())) 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(); + if (hasData()) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest 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.ServiceOuterClass.SessionCreateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest 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.ServiceOuterClass.SessionCreateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest 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.ServiceOuterClass.SessionCreateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest 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.ServiceOuterClass.SessionCreateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest 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.ServiceOuterClass.SessionCreateRequest 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.SessionCreateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.SessionCreateRequest) + org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_SessionCreateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_SessionCreateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest.class, org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getDataFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + data_ = null; + if (dataBuilder_ != null) { + dataBuilder_.dispose(); + dataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_SessionCreateRequest_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest build() { + org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest result = new org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.data_ = dataBuilder_ == null + ? data_ + : dataBuilder_.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.ServiceOuterClass.SessionCreateRequest) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest.getDefaultInstance()) return this; + if (other.hasData()) { + mergeData(other.getData()); + } + 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: { + input.readMessage( + getDataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + 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 org.jumpserver.wisp.Common.Session data_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.Common.Session, org.jumpserver.wisp.Common.Session.Builder, org.jumpserver.wisp.Common.SessionOrBuilder> dataBuilder_; + /** + * .message.Session data = 1; + * @return Whether the data field is set. + */ + public boolean hasData() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Session data = 1; + * @return The data. + */ + public org.jumpserver.wisp.Common.Session getData() { + if (dataBuilder_ == null) { + return data_ == null ? org.jumpserver.wisp.Common.Session.getDefaultInstance() : data_; + } else { + return dataBuilder_.getMessage(); + } + } + /** + * .message.Session data = 1; + */ + public Builder setData(org.jumpserver.wisp.Common.Session value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + } else { + dataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Session data = 1; + */ + public Builder setData( + org.jumpserver.wisp.Common.Session.Builder builderForValue) { + if (dataBuilder_ == null) { + data_ = builderForValue.build(); + } else { + dataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Session data = 1; + */ + public Builder mergeData(org.jumpserver.wisp.Common.Session value) { + if (dataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + data_ != null && + data_ != org.jumpserver.wisp.Common.Session.getDefaultInstance()) { + getDataBuilder().mergeFrom(value); + } else { + data_ = value; + } + } else { + dataBuilder_.mergeFrom(value); + } + if (data_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .message.Session data = 1; + */ + public Builder clearData() { + bitField0_ = (bitField0_ & ~0x00000001); + data_ = null; + if (dataBuilder_ != null) { + dataBuilder_.dispose(); + dataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.Session data = 1; + */ + public org.jumpserver.wisp.Common.Session.Builder getDataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDataFieldBuilder().getBuilder(); + } + /** + * .message.Session data = 1; + */ + public org.jumpserver.wisp.Common.SessionOrBuilder getDataOrBuilder() { + if (dataBuilder_ != null) { + return dataBuilder_.getMessageOrBuilder(); + } else { + return data_ == null ? + org.jumpserver.wisp.Common.Session.getDefaultInstance() : data_; + } + } + /** + * .message.Session data = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.Common.Session, org.jumpserver.wisp.Common.Session.Builder, org.jumpserver.wisp.Common.SessionOrBuilder> + getDataFieldBuilder() { + if (dataBuilder_ == null) { + dataBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.Common.Session, org.jumpserver.wisp.Common.Session.Builder, org.jumpserver.wisp.Common.SessionOrBuilder>( + getData(), + getParentForChildren(), + isClean()); + data_ = null; + } + return dataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:message.SessionCreateRequest) + } + + // @@protoc_insertion_point(class_scope:message.SessionCreateRequest) + private static final org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.SessionCreateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionCreateRequest 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.ServiceOuterClass.SessionCreateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SessionCreateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.SessionCreateResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .message.Status status = 1; + * @return The status. + */ + org.jumpserver.wisp.ServiceOuterClass.Status getStatus(); + /** + * .message.Status status = 1; + */ + org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder(); + + /** + * .message.Session data = 2; + * @return Whether the data field is set. + */ + boolean hasData(); + /** + * .message.Session data = 2; + * @return The data. + */ + org.jumpserver.wisp.Common.Session getData(); + /** + * .message.Session data = 2; + */ + org.jumpserver.wisp.Common.SessionOrBuilder getDataOrBuilder(); + } + /** + * Protobuf type {@code message.SessionCreateResponse} + */ + public static final class SessionCreateResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.SessionCreateResponse) + SessionCreateResponseOrBuilder { + 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= */ "", + SessionCreateResponse.class.getName()); + } + // Use SessionCreateResponse.newBuilder() to construct. + private SessionCreateResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SessionCreateResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_SessionCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_SessionCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse.class, org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private org.jumpserver.wisp.ServiceOuterClass.Status status_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + /** + * .message.Status status = 1; + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + + public static final int DATA_FIELD_NUMBER = 2; + private org.jumpserver.wisp.Common.Session data_; + /** + * .message.Session data = 2; + * @return Whether the data field is set. + */ + @java.lang.Override + public boolean hasData() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .message.Session data = 2; + * @return The data. + */ + @java.lang.Override + public org.jumpserver.wisp.Common.Session getData() { + return data_ == null ? org.jumpserver.wisp.Common.Session.getDefaultInstance() : data_; + } + /** + * .message.Session data = 2; + */ + @java.lang.Override + public org.jumpserver.wisp.Common.SessionOrBuilder getDataOrBuilder() { + return data_ == null ? org.jumpserver.wisp.Common.Session.getDefaultInstance() : data_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStatus()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getData()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStatus()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getData()); + } + 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.ServiceOuterClass.SessionCreateResponse)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse other = (org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse) obj; + + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (hasData() != other.hasData()) return false; + if (hasData()) { + if (!getData() + .equals(other.getData())) 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(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + if (hasData()) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse 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.ServiceOuterClass.SessionCreateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse 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.ServiceOuterClass.SessionCreateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse 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.ServiceOuterClass.SessionCreateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse 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.ServiceOuterClass.SessionCreateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse 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.ServiceOuterClass.SessionCreateResponse 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.SessionCreateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.SessionCreateResponse) + org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_SessionCreateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_SessionCreateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse.class, org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getStatusFieldBuilder(); + getDataFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + data_ = null; + if (dataBuilder_ != null) { + dataBuilder_.dispose(); + dataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_SessionCreateResponse_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse build() { + org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse result = new org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.data_ = dataBuilder_ == null + ? data_ + : dataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + if (other.hasData()) { + mergeData(other.getData()); + } + 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: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDataFieldBuilder().getBuilder(), + extensionRegistry); + 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 org.jumpserver.wisp.ServiceOuterClass.Status status_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> statusBuilder_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * .message.Status status = 1; + */ + public Builder setStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder setStatus( + org.jumpserver.wisp.ServiceOuterClass.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder mergeStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + status_ != null && + status_ != org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .message.Status status = 1; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.Status.Builder getStatusBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + } + /** + * .message.Status status = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + private org.jumpserver.wisp.Common.Session data_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.Common.Session, org.jumpserver.wisp.Common.Session.Builder, org.jumpserver.wisp.Common.SessionOrBuilder> dataBuilder_; + /** + * .message.Session data = 2; + * @return Whether the data field is set. + */ + public boolean hasData() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .message.Session data = 2; + * @return The data. + */ + public org.jumpserver.wisp.Common.Session getData() { + if (dataBuilder_ == null) { + return data_ == null ? org.jumpserver.wisp.Common.Session.getDefaultInstance() : data_; + } else { + return dataBuilder_.getMessage(); + } + } + /** + * .message.Session data = 2; + */ + public Builder setData(org.jumpserver.wisp.Common.Session value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + } else { + dataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .message.Session data = 2; + */ + public Builder setData( + org.jumpserver.wisp.Common.Session.Builder builderForValue) { + if (dataBuilder_ == null) { + data_ = builderForValue.build(); + } else { + dataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .message.Session data = 2; + */ + public Builder mergeData(org.jumpserver.wisp.Common.Session value) { + if (dataBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + data_ != null && + data_ != org.jumpserver.wisp.Common.Session.getDefaultInstance()) { + getDataBuilder().mergeFrom(value); + } else { + data_ = value; + } + } else { + dataBuilder_.mergeFrom(value); + } + if (data_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .message.Session data = 2; + */ + public Builder clearData() { + bitField0_ = (bitField0_ & ~0x00000002); + data_ = null; + if (dataBuilder_ != null) { + dataBuilder_.dispose(); + dataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.Session data = 2; + */ + public org.jumpserver.wisp.Common.Session.Builder getDataBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDataFieldBuilder().getBuilder(); + } + /** + * .message.Session data = 2; + */ + public org.jumpserver.wisp.Common.SessionOrBuilder getDataOrBuilder() { + if (dataBuilder_ != null) { + return dataBuilder_.getMessageOrBuilder(); + } else { + return data_ == null ? + org.jumpserver.wisp.Common.Session.getDefaultInstance() : data_; + } + } + /** + * .message.Session data = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.Common.Session, org.jumpserver.wisp.Common.Session.Builder, org.jumpserver.wisp.Common.SessionOrBuilder> + getDataFieldBuilder() { + if (dataBuilder_ == null) { + dataBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.Common.Session, org.jumpserver.wisp.Common.Session.Builder, org.jumpserver.wisp.Common.SessionOrBuilder>( + getData(), + getParentForChildren(), + isClean()); + data_ = null; + } + return dataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:message.SessionCreateResponse) + } + + // @@protoc_insertion_point(class_scope:message.SessionCreateResponse) + private static final org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.SessionCreateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionCreateResponse 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.ServiceOuterClass.SessionCreateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SessionFinishRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.SessionFinishRequest) + 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(); + + /** + * bool success = 2; + * @return The success. + */ + boolean getSuccess(); + + /** + * int64 date_end = 3; + * @return The dateEnd. + */ + long getDateEnd(); + + /** + * string err = 4; + * @return The err. + */ + java.lang.String getErr(); + /** + * string err = 4; + * @return The bytes for err. + */ + com.google.protobuf.ByteString + getErrBytes(); + } + /** + * Protobuf type {@code message.SessionFinishRequest} + */ + public static final class SessionFinishRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.SessionFinishRequest) + SessionFinishRequestOrBuilder { + 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= */ "", + SessionFinishRequest.class.getName()); + } + // Use SessionFinishRequest.newBuilder() to construct. + private SessionFinishRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SessionFinishRequest() { + id_ = ""; + err_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_SessionFinishRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_SessionFinishRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest.class, org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest.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 SUCCESS_FIELD_NUMBER = 2; + private boolean success_ = false; + /** + * bool success = 2; + * @return The success. + */ + @java.lang.Override + public boolean getSuccess() { + return success_; + } + + public static final int DATE_END_FIELD_NUMBER = 3; + private long dateEnd_ = 0L; + /** + * int64 date_end = 3; + * @return The dateEnd. + */ + @java.lang.Override + public long getDateEnd() { + return dateEnd_; + } + + public static final int ERR_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object err_ = ""; + /** + * string err = 4; + * @return The err. + */ + @java.lang.Override + public java.lang.String getErr() { + java.lang.Object ref = err_; + 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(); + err_ = s; + return s; + } + } + /** + * string err = 4; + * @return The bytes for err. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getErrBytes() { + java.lang.Object ref = err_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + err_ = 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 (success_ != false) { + output.writeBool(2, success_); + } + if (dateEnd_ != 0L) { + output.writeInt64(3, dateEnd_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(err_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, err_); + } + 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 (success_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, success_); + } + if (dateEnd_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, dateEnd_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(err_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, err_); + } + 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.ServiceOuterClass.SessionFinishRequest)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest other = (org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest) obj; + + if (!getId() + .equals(other.getId())) return false; + if (getSuccess() + != other.getSuccess()) return false; + if (getDateEnd() + != other.getDateEnd()) return false; + if (!getErr() + .equals(other.getErr())) 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) + SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSuccess()); + hash = (37 * hash) + DATE_END_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDateEnd()); + hash = (37 * hash) + ERR_FIELD_NUMBER; + hash = (53 * hash) + getErr().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest 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.ServiceOuterClass.SessionFinishRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest 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.ServiceOuterClass.SessionFinishRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest 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.ServiceOuterClass.SessionFinishRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest 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.ServiceOuterClass.SessionFinishRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest 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.ServiceOuterClass.SessionFinishRequest 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.SessionFinishRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.SessionFinishRequest) + org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_SessionFinishRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_SessionFinishRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest.class, org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + success_ = false; + dateEnd_ = 0L; + err_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_SessionFinishRequest_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest build() { + org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest result = new org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.success_ = success_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dateEnd_ = dateEnd_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.err_ = err_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getSuccess() != false) { + setSuccess(other.getSuccess()); + } + if (other.getDateEnd() != 0L) { + setDateEnd(other.getDateEnd()); + } + if (!other.getErr().isEmpty()) { + err_ = other.err_; + bitField0_ |= 0x00000008; + 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: { + success_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + dateEnd_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + err_ = input.readStringRequireUtf8(); + 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 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 boolean success_ ; + /** + * bool success = 2; + * @return The success. + */ + @java.lang.Override + public boolean getSuccess() { + return success_; + } + /** + * bool success = 2; + * @param value The success to set. + * @return This builder for chaining. + */ + public Builder setSuccess(boolean value) { + + success_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * bool success = 2; + * @return This builder for chaining. + */ + public Builder clearSuccess() { + bitField0_ = (bitField0_ & ~0x00000002); + success_ = false; + onChanged(); + return this; + } + + private long dateEnd_ ; + /** + * int64 date_end = 3; + * @return The dateEnd. + */ + @java.lang.Override + public long getDateEnd() { + return dateEnd_; + } + /** + * int64 date_end = 3; + * @param value The dateEnd to set. + * @return This builder for chaining. + */ + public Builder setDateEnd(long value) { + + dateEnd_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * int64 date_end = 3; + * @return This builder for chaining. + */ + public Builder clearDateEnd() { + bitField0_ = (bitField0_ & ~0x00000004); + dateEnd_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object err_ = ""; + /** + * string err = 4; + * @return The err. + */ + public java.lang.String getErr() { + java.lang.Object ref = err_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + err_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string err = 4; + * @return The bytes for err. + */ + public com.google.protobuf.ByteString + getErrBytes() { + java.lang.Object ref = err_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + err_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string err = 4; + * @param value The err to set. + * @return This builder for chaining. + */ + public Builder setErr( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + err_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string err = 4; + * @return This builder for chaining. + */ + public Builder clearErr() { + err_ = getDefaultInstance().getErr(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string err = 4; + * @param value The bytes for err to set. + * @return This builder for chaining. + */ + public Builder setErrBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + err_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:message.SessionFinishRequest) + } + + // @@protoc_insertion_point(class_scope:message.SessionFinishRequest) + private static final org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.SessionFinishRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionFinishRequest 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.ServiceOuterClass.SessionFinishRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SessionFinishRespOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.SessionFinishResp) + com.google.protobuf.MessageOrBuilder { + + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .message.Status status = 1; + * @return The status. + */ + org.jumpserver.wisp.ServiceOuterClass.Status getStatus(); + /** + * .message.Status status = 1; + */ + org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder(); + } + /** + * Protobuf type {@code message.SessionFinishResp} + */ + public static final class SessionFinishResp extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.SessionFinishResp) + SessionFinishRespOrBuilder { + 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= */ "", + SessionFinishResp.class.getName()); + } + // Use SessionFinishResp.newBuilder() to construct. + private SessionFinishResp(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SessionFinishResp() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_SessionFinishResp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_SessionFinishResp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp.class, org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private org.jumpserver.wisp.ServiceOuterClass.Status status_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + /** + * .message.Status status = 1; + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStatus()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStatus()); + } + 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.ServiceOuterClass.SessionFinishResp)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp other = (org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp) obj; + + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) 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(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp 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.ServiceOuterClass.SessionFinishResp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp 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.ServiceOuterClass.SessionFinishResp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp 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.ServiceOuterClass.SessionFinishResp parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp 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.ServiceOuterClass.SessionFinishResp parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp 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.ServiceOuterClass.SessionFinishResp 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.SessionFinishResp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.SessionFinishResp) + org.jumpserver.wisp.ServiceOuterClass.SessionFinishRespOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_SessionFinishResp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_SessionFinishResp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp.class, org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getStatusFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_SessionFinishResp_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp build() { + org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp result = new org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.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.ServiceOuterClass.SessionFinishResp) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp.getDefaultInstance()) return this; + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + 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: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + 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 org.jumpserver.wisp.ServiceOuterClass.Status status_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> statusBuilder_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * .message.Status status = 1; + */ + public Builder setStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder setStatus( + org.jumpserver.wisp.ServiceOuterClass.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder mergeStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + status_ != null && + status_ != org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .message.Status status = 1; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.Status.Builder getStatusBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + } + /** + * .message.Status status = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + // @@protoc_insertion_point(builder_scope:message.SessionFinishResp) + } + + // @@protoc_insertion_point(class_scope:message.SessionFinishResp) + private static final org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.SessionFinishResp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionFinishResp 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.ServiceOuterClass.SessionFinishResp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReplayRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.ReplayRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string session_id = 1; + * @return The sessionId. + */ + java.lang.String getSessionId(); + /** + * string session_id = 1; + * @return The bytes for sessionId. + */ + com.google.protobuf.ByteString + getSessionIdBytes(); + + /** + * string replay_file_path = 2; + * @return The replayFilePath. + */ + java.lang.String getReplayFilePath(); + /** + * string replay_file_path = 2; + * @return The bytes for replayFilePath. + */ + com.google.protobuf.ByteString + getReplayFilePathBytes(); + } + /** + * Protobuf type {@code message.ReplayRequest} + */ + public static final class ReplayRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.ReplayRequest) + ReplayRequestOrBuilder { + 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= */ "", + ReplayRequest.class.getName()); + } + // Use ReplayRequest.newBuilder() to construct. + private ReplayRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ReplayRequest() { + sessionId_ = ""; + replayFilePath_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ReplayRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ReplayRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.ReplayRequest.class, org.jumpserver.wisp.ServiceOuterClass.ReplayRequest.Builder.class); + } + + public static final int SESSION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object sessionId_ = ""; + /** + * string session_id = 1; + * @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 = 1; + * @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 REPLAY_FILE_PATH_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object replayFilePath_ = ""; + /** + * string replay_file_path = 2; + * @return The replayFilePath. + */ + @java.lang.Override + public java.lang.String getReplayFilePath() { + java.lang.Object ref = replayFilePath_; + 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(); + replayFilePath_ = s; + return s; + } + } + /** + * string replay_file_path = 2; + * @return The bytes for replayFilePath. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getReplayFilePathBytes() { + java.lang.Object ref = replayFilePath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + replayFilePath_ = 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(sessionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, sessionId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(replayFilePath_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, replayFilePath_); + } + 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(sessionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, sessionId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(replayFilePath_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, replayFilePath_); + } + 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.ServiceOuterClass.ReplayRequest)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.ReplayRequest other = (org.jumpserver.wisp.ServiceOuterClass.ReplayRequest) obj; + + if (!getSessionId() + .equals(other.getSessionId())) return false; + if (!getReplayFilePath() + .equals(other.getReplayFilePath())) 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) + SESSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getSessionId().hashCode(); + hash = (37 * hash) + REPLAY_FILE_PATH_FIELD_NUMBER; + hash = (53 * hash) + getReplayFilePath().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.ReplayRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.ReplayRequest 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.ServiceOuterClass.ReplayRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.ReplayRequest 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.ServiceOuterClass.ReplayRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.ReplayRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.ReplayRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.ReplayRequest 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.ServiceOuterClass.ReplayRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.ReplayRequest 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.ServiceOuterClass.ReplayRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.ReplayRequest 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.ServiceOuterClass.ReplayRequest 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.ReplayRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.ReplayRequest) + org.jumpserver.wisp.ServiceOuterClass.ReplayRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ReplayRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ReplayRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.ReplayRequest.class, org.jumpserver.wisp.ServiceOuterClass.ReplayRequest.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.ReplayRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sessionId_ = ""; + replayFilePath_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ReplayRequest_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ReplayRequest getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.ReplayRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ReplayRequest build() { + org.jumpserver.wisp.ServiceOuterClass.ReplayRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ReplayRequest buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.ReplayRequest result = new org.jumpserver.wisp.ServiceOuterClass.ReplayRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.ReplayRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sessionId_ = sessionId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.replayFilePath_ = replayFilePath_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.ReplayRequest) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.ReplayRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.ReplayRequest other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.ReplayRequest.getDefaultInstance()) return this; + if (!other.getSessionId().isEmpty()) { + sessionId_ = other.sessionId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getReplayFilePath().isEmpty()) { + replayFilePath_ = other.replayFilePath_; + 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: { + sessionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + replayFilePath_ = 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 sessionId_ = ""; + /** + * string session_id = 1; + * @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 = 1; + * @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 = 1; + * @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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string session_id = 1; + * @return This builder for chaining. + */ + public Builder clearSessionId() { + sessionId_ = getDefaultInstance().getSessionId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string session_id = 1; + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object replayFilePath_ = ""; + /** + * string replay_file_path = 2; + * @return The replayFilePath. + */ + public java.lang.String getReplayFilePath() { + java.lang.Object ref = replayFilePath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + replayFilePath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string replay_file_path = 2; + * @return The bytes for replayFilePath. + */ + public com.google.protobuf.ByteString + getReplayFilePathBytes() { + java.lang.Object ref = replayFilePath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + replayFilePath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string replay_file_path = 2; + * @param value The replayFilePath to set. + * @return This builder for chaining. + */ + public Builder setReplayFilePath( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + replayFilePath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string replay_file_path = 2; + * @return This builder for chaining. + */ + public Builder clearReplayFilePath() { + replayFilePath_ = getDefaultInstance().getReplayFilePath(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string replay_file_path = 2; + * @param value The bytes for replayFilePath to set. + * @return This builder for chaining. + */ + public Builder setReplayFilePathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + replayFilePath_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:message.ReplayRequest) + } + + // @@protoc_insertion_point(class_scope:message.ReplayRequest) + private static final org.jumpserver.wisp.ServiceOuterClass.ReplayRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.ReplayRequest(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.ReplayRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReplayRequest 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.ServiceOuterClass.ReplayRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReplayResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.ReplayResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .message.Status status = 1; + * @return The status. + */ + org.jumpserver.wisp.ServiceOuterClass.Status getStatus(); + /** + * .message.Status status = 1; + */ + org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder(); + } + /** + * Protobuf type {@code message.ReplayResponse} + */ + public static final class ReplayResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.ReplayResponse) + ReplayResponseOrBuilder { + 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= */ "", + ReplayResponse.class.getName()); + } + // Use ReplayResponse.newBuilder() to construct. + private ReplayResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ReplayResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ReplayResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ReplayResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.ReplayResponse.class, org.jumpserver.wisp.ServiceOuterClass.ReplayResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private org.jumpserver.wisp.ServiceOuterClass.Status status_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + /** + * .message.Status status = 1; + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStatus()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStatus()); + } + 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.ServiceOuterClass.ReplayResponse)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.ReplayResponse other = (org.jumpserver.wisp.ServiceOuterClass.ReplayResponse) obj; + + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) 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(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.ReplayResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.ReplayResponse 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.ServiceOuterClass.ReplayResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.ReplayResponse 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.ServiceOuterClass.ReplayResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.ReplayResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.ReplayResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.ReplayResponse 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.ServiceOuterClass.ReplayResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.ReplayResponse 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.ServiceOuterClass.ReplayResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.ReplayResponse 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.ServiceOuterClass.ReplayResponse 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.ReplayResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.ReplayResponse) + org.jumpserver.wisp.ServiceOuterClass.ReplayResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ReplayResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ReplayResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.ReplayResponse.class, org.jumpserver.wisp.ServiceOuterClass.ReplayResponse.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.ReplayResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getStatusFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ReplayResponse_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ReplayResponse getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.ReplayResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ReplayResponse build() { + org.jumpserver.wisp.ServiceOuterClass.ReplayResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ReplayResponse buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.ReplayResponse result = new org.jumpserver.wisp.ServiceOuterClass.ReplayResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.ReplayResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.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.ServiceOuterClass.ReplayResponse) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.ReplayResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.ReplayResponse other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.ReplayResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + 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: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + 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 org.jumpserver.wisp.ServiceOuterClass.Status status_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> statusBuilder_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * .message.Status status = 1; + */ + public Builder setStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder setStatus( + org.jumpserver.wisp.ServiceOuterClass.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder mergeStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + status_ != null && + status_ != org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .message.Status status = 1; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.Status.Builder getStatusBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + } + /** + * .message.Status status = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + // @@protoc_insertion_point(builder_scope:message.ReplayResponse) + } + + // @@protoc_insertion_point(class_scope:message.ReplayResponse) + private static final org.jumpserver.wisp.ServiceOuterClass.ReplayResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.ReplayResponse(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.ReplayResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReplayResponse 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.ServiceOuterClass.ReplayResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CommandRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.CommandRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string sid = 1; + * @return The sid. + */ + java.lang.String getSid(); + /** + * string sid = 1; + * @return The bytes for sid. + */ + com.google.protobuf.ByteString + getSidBytes(); + + /** + * string org_id = 2; + * @return The orgId. + */ + java.lang.String getOrgId(); + /** + * string org_id = 2; + * @return The bytes for orgId. + */ + com.google.protobuf.ByteString + getOrgIdBytes(); + + /** + * string input = 3; + * @return The input. + */ + java.lang.String getInput(); + /** + * string input = 3; + * @return The bytes for input. + */ + com.google.protobuf.ByteString + getInputBytes(); + + /** + * string output = 4; + * @return The output. + */ + java.lang.String getOutput(); + /** + * string output = 4; + * @return The bytes for output. + */ + com.google.protobuf.ByteString + getOutputBytes(); + + /** + * string user = 5; + * @return The user. + */ + java.lang.String getUser(); + /** + * string user = 5; + * @return The bytes for user. + */ + com.google.protobuf.ByteString + getUserBytes(); + + /** + * string asset = 6; + * @return The asset. + */ + java.lang.String getAsset(); + /** + * string asset = 6; + * @return The bytes for asset. + */ + com.google.protobuf.ByteString + getAssetBytes(); + + /** + * string account = 7; + * @return The account. + */ + java.lang.String getAccount(); + /** + * string account = 7; + * @return The bytes for account. + */ + com.google.protobuf.ByteString + getAccountBytes(); + + /** + * int64 timestamp = 8; + * @return The timestamp. + */ + long getTimestamp(); + + /** + * .message.RiskLevel risk_level = 9; + * @return The enum numeric value on the wire for riskLevel. + */ + int getRiskLevelValue(); + /** + * .message.RiskLevel risk_level = 9; + * @return The riskLevel. + */ + org.jumpserver.wisp.Common.RiskLevel getRiskLevel(); + + /** + * string cmd_acl_id = 10; + * @return The cmdAclId. + */ + java.lang.String getCmdAclId(); + /** + * string cmd_acl_id = 10; + * @return The bytes for cmdAclId. + */ + com.google.protobuf.ByteString + getCmdAclIdBytes(); + + /** + * string cmd_group_id = 11; + * @return The cmdGroupId. + */ + java.lang.String getCmdGroupId(); + /** + * string cmd_group_id = 11; + * @return The bytes for cmdGroupId. + */ + com.google.protobuf.ByteString + getCmdGroupIdBytes(); + } + /** + * Protobuf type {@code message.CommandRequest} + */ + public static final class CommandRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.CommandRequest) + CommandRequestOrBuilder { + 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= */ "", + CommandRequest.class.getName()); + } + // Use CommandRequest.newBuilder() to construct. + private CommandRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CommandRequest() { + sid_ = ""; + orgId_ = ""; + input_ = ""; + output_ = ""; + user_ = ""; + asset_ = ""; + account_ = ""; + riskLevel_ = 0; + cmdAclId_ = ""; + cmdGroupId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_CommandRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_CommandRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.CommandRequest.class, org.jumpserver.wisp.ServiceOuterClass.CommandRequest.Builder.class); + } + + public static final int SID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object sid_ = ""; + /** + * string sid = 1; + * @return The sid. + */ + @java.lang.Override + public java.lang.String getSid() { + java.lang.Object ref = sid_; + 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(); + sid_ = s; + return s; + } + } + /** + * string sid = 1; + * @return The bytes for sid. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSidBytes() { + java.lang.Object ref = sid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORG_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object orgId_ = ""; + /** + * string org_id = 2; + * @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 = 2; + * @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 INPUT_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object input_ = ""; + /** + * string input = 3; + * @return The input. + */ + @java.lang.Override + public java.lang.String getInput() { + java.lang.Object ref = input_; + 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(); + input_ = s; + return s; + } + } + /** + * string input = 3; + * @return The bytes for input. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getInputBytes() { + java.lang.Object ref = input_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + input_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTPUT_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object output_ = ""; + /** + * string output = 4; + * @return The output. + */ + @java.lang.Override + public java.lang.String getOutput() { + java.lang.Object ref = output_; + 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(); + output_ = s; + return s; + } + } + /** + * string output = 4; + * @return The bytes for output. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOutputBytes() { + java.lang.Object ref = output_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + output_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object user_ = ""; + /** + * string user = 5; + * @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 = 5; + * @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 = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object asset_ = ""; + /** + * string asset = 6; + * @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 = 6; + * @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 = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object account_ = ""; + /** + * string account = 7; + * @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 = 7; + * @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 TIMESTAMP_FIELD_NUMBER = 8; + private long timestamp_ = 0L; + /** + * int64 timestamp = 8; + * @return The timestamp. + */ + @java.lang.Override + public long getTimestamp() { + return timestamp_; + } + + public static final int RISK_LEVEL_FIELD_NUMBER = 9; + private int riskLevel_ = 0; + /** + * .message.RiskLevel risk_level = 9; + * @return The enum numeric value on the wire for riskLevel. + */ + @java.lang.Override public int getRiskLevelValue() { + return riskLevel_; + } + /** + * .message.RiskLevel risk_level = 9; + * @return The riskLevel. + */ + @java.lang.Override public org.jumpserver.wisp.Common.RiskLevel getRiskLevel() { + org.jumpserver.wisp.Common.RiskLevel result = org.jumpserver.wisp.Common.RiskLevel.forNumber(riskLevel_); + return result == null ? org.jumpserver.wisp.Common.RiskLevel.UNRECOGNIZED : result; + } + + public static final int CMD_ACL_ID_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private volatile java.lang.Object cmdAclId_ = ""; + /** + * string cmd_acl_id = 10; + * @return The cmdAclId. + */ + @java.lang.Override + public java.lang.String getCmdAclId() { + java.lang.Object ref = cmdAclId_; + 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(); + cmdAclId_ = s; + return s; + } + } + /** + * string cmd_acl_id = 10; + * @return The bytes for cmdAclId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCmdAclIdBytes() { + java.lang.Object ref = cmdAclId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cmdAclId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CMD_GROUP_ID_FIELD_NUMBER = 11; + @SuppressWarnings("serial") + private volatile java.lang.Object cmdGroupId_ = ""; + /** + * string cmd_group_id = 11; + * @return The cmdGroupId. + */ + @java.lang.Override + public java.lang.String getCmdGroupId() { + java.lang.Object ref = cmdGroupId_; + 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(); + cmdGroupId_ = s; + return s; + } + } + /** + * string cmd_group_id = 11; + * @return The bytes for cmdGroupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCmdGroupIdBytes() { + java.lang.Object ref = cmdGroupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cmdGroupId_ = 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(sid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, sid_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orgId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, orgId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(input_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, input_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(output_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, output_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(user_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, user_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(asset_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, asset_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(account_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, account_); + } + if (timestamp_ != 0L) { + output.writeInt64(8, timestamp_); + } + if (riskLevel_ != org.jumpserver.wisp.Common.RiskLevel.Normal.getNumber()) { + output.writeEnum(9, riskLevel_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cmdAclId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, cmdAclId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cmdGroupId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, cmdGroupId_); + } + 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(sid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, sid_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orgId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, orgId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(input_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, input_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(output_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, output_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(user_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, user_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(asset_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, asset_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(account_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, account_); + } + if (timestamp_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(8, timestamp_); + } + if (riskLevel_ != org.jumpserver.wisp.Common.RiskLevel.Normal.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(9, riskLevel_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cmdAclId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, cmdAclId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cmdGroupId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, cmdGroupId_); + } + 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.ServiceOuterClass.CommandRequest)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.CommandRequest other = (org.jumpserver.wisp.ServiceOuterClass.CommandRequest) obj; + + if (!getSid() + .equals(other.getSid())) return false; + if (!getOrgId() + .equals(other.getOrgId())) return false; + if (!getInput() + .equals(other.getInput())) return false; + if (!getOutput() + .equals(other.getOutput())) return false; + if (!getUser() + .equals(other.getUser())) return false; + if (!getAsset() + .equals(other.getAsset())) return false; + if (!getAccount() + .equals(other.getAccount())) return false; + if (getTimestamp() + != other.getTimestamp()) return false; + if (riskLevel_ != other.riskLevel_) return false; + if (!getCmdAclId() + .equals(other.getCmdAclId())) return false; + if (!getCmdGroupId() + .equals(other.getCmdGroupId())) 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) + SID_FIELD_NUMBER; + hash = (53 * hash) + getSid().hashCode(); + hash = (37 * hash) + ORG_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrgId().hashCode(); + hash = (37 * hash) + INPUT_FIELD_NUMBER; + hash = (53 * hash) + getInput().hashCode(); + hash = (37 * hash) + OUTPUT_FIELD_NUMBER; + hash = (53 * hash) + getOutput().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) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTimestamp()); + hash = (37 * hash) + RISK_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + riskLevel_; + hash = (37 * hash) + CMD_ACL_ID_FIELD_NUMBER; + hash = (53 * hash) + getCmdAclId().hashCode(); + hash = (37 * hash) + CMD_GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getCmdGroupId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.CommandRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.CommandRequest 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.ServiceOuterClass.CommandRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.CommandRequest 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.ServiceOuterClass.CommandRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.CommandRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.CommandRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.CommandRequest 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.ServiceOuterClass.CommandRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.CommandRequest 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.ServiceOuterClass.CommandRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.CommandRequest 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.ServiceOuterClass.CommandRequest 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.CommandRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.CommandRequest) + org.jumpserver.wisp.ServiceOuterClass.CommandRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_CommandRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_CommandRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.CommandRequest.class, org.jumpserver.wisp.ServiceOuterClass.CommandRequest.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.CommandRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sid_ = ""; + orgId_ = ""; + input_ = ""; + output_ = ""; + user_ = ""; + asset_ = ""; + account_ = ""; + timestamp_ = 0L; + riskLevel_ = 0; + cmdAclId_ = ""; + cmdGroupId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_CommandRequest_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.CommandRequest getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.CommandRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.CommandRequest build() { + org.jumpserver.wisp.ServiceOuterClass.CommandRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.CommandRequest buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.CommandRequest result = new org.jumpserver.wisp.ServiceOuterClass.CommandRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.CommandRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sid_ = sid_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.orgId_ = orgId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.input_ = input_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.output_ = output_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.user_ = user_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.asset_ = asset_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.account_ = account_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.timestamp_ = timestamp_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.riskLevel_ = riskLevel_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.cmdAclId_ = cmdAclId_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.cmdGroupId_ = cmdGroupId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.CommandRequest) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.CommandRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.CommandRequest other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.CommandRequest.getDefaultInstance()) return this; + if (!other.getSid().isEmpty()) { + sid_ = other.sid_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOrgId().isEmpty()) { + orgId_ = other.orgId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getInput().isEmpty()) { + input_ = other.input_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getOutput().isEmpty()) { + output_ = other.output_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getUser().isEmpty()) { + user_ = other.user_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getAsset().isEmpty()) { + asset_ = other.asset_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getAccount().isEmpty()) { + account_ = other.account_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.getTimestamp() != 0L) { + setTimestamp(other.getTimestamp()); + } + if (other.riskLevel_ != 0) { + setRiskLevelValue(other.getRiskLevelValue()); + } + if (!other.getCmdAclId().isEmpty()) { + cmdAclId_ = other.cmdAclId_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getCmdGroupId().isEmpty()) { + cmdGroupId_ = other.cmdGroupId_; + bitField0_ |= 0x00000400; + 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: { + sid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + orgId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + output_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + user_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + asset_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + account_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: { + timestamp_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: { + riskLevel_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: { + cmdAclId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + cmdGroupId_ = input.readStringRequireUtf8(); + 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 sid_ = ""; + /** + * string sid = 1; + * @return The sid. + */ + public java.lang.String getSid() { + java.lang.Object ref = sid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string sid = 1; + * @return The bytes for sid. + */ + public com.google.protobuf.ByteString + getSidBytes() { + java.lang.Object ref = sid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string sid = 1; + * @param value The sid to set. + * @return This builder for chaining. + */ + public Builder setSid( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + sid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string sid = 1; + * @return This builder for chaining. + */ + public Builder clearSid() { + sid_ = getDefaultInstance().getSid(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string sid = 1; + * @param value The bytes for sid to set. + * @return This builder for chaining. + */ + public Builder setSidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + sid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object orgId_ = ""; + /** + * string org_id = 2; + * @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 = 2; + * @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 = 2; + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string org_id = 2; + * @return This builder for chaining. + */ + public Builder clearOrgId() { + orgId_ = getDefaultInstance().getOrgId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string org_id = 2; + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object input_ = ""; + /** + * string input = 3; + * @return The input. + */ + public java.lang.String getInput() { + java.lang.Object ref = input_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + input_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string input = 3; + * @return The bytes for input. + */ + public com.google.protobuf.ByteString + getInputBytes() { + java.lang.Object ref = input_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + input_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string input = 3; + * @param value The input to set. + * @return This builder for chaining. + */ + public Builder setInput( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + input_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string input = 3; + * @return This builder for chaining. + */ + public Builder clearInput() { + input_ = getDefaultInstance().getInput(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string input = 3; + * @param value The bytes for input to set. + * @return This builder for chaining. + */ + public Builder setInputBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + input_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object output_ = ""; + /** + * string output = 4; + * @return The output. + */ + public java.lang.String getOutput() { + java.lang.Object ref = output_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + output_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string output = 4; + * @return The bytes for output. + */ + public com.google.protobuf.ByteString + getOutputBytes() { + java.lang.Object ref = output_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + output_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string output = 4; + * @param value The output to set. + * @return This builder for chaining. + */ + public Builder setOutput( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + output_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string output = 4; + * @return This builder for chaining. + */ + public Builder clearOutput() { + output_ = getDefaultInstance().getOutput(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string output = 4; + * @param value The bytes for output to set. + * @return This builder for chaining. + */ + public Builder setOutputBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + output_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object user_ = ""; + /** + * string user = 5; + * @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 = 5; + * @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 = 5; + * @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_ |= 0x00000010; + onChanged(); + return this; + } + /** + * string user = 5; + * @return This builder for chaining. + */ + public Builder clearUser() { + user_ = getDefaultInstance().getUser(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * string user = 5; + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object asset_ = ""; + /** + * string asset = 6; + * @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 = 6; + * @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 = 6; + * @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_ |= 0x00000020; + onChanged(); + return this; + } + /** + * string asset = 6; + * @return This builder for chaining. + */ + public Builder clearAsset() { + asset_ = getDefaultInstance().getAsset(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * string asset = 6; + * @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_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object account_ = ""; + /** + * string account = 7; + * @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 = 7; + * @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 = 7; + * @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_ |= 0x00000040; + onChanged(); + return this; + } + /** + * string account = 7; + * @return This builder for chaining. + */ + public Builder clearAccount() { + account_ = getDefaultInstance().getAccount(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * string account = 7; + * @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_ |= 0x00000040; + onChanged(); + return this; + } + + private long timestamp_ ; + /** + * int64 timestamp = 8; + * @return The timestamp. + */ + @java.lang.Override + public long getTimestamp() { + return timestamp_; + } + /** + * int64 timestamp = 8; + * @param value The timestamp to set. + * @return This builder for chaining. + */ + public Builder setTimestamp(long value) { + + timestamp_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * int64 timestamp = 8; + * @return This builder for chaining. + */ + public Builder clearTimestamp() { + bitField0_ = (bitField0_ & ~0x00000080); + timestamp_ = 0L; + onChanged(); + return this; + } + + private int riskLevel_ = 0; + /** + * .message.RiskLevel risk_level = 9; + * @return The enum numeric value on the wire for riskLevel. + */ + @java.lang.Override public int getRiskLevelValue() { + return riskLevel_; + } + /** + * .message.RiskLevel risk_level = 9; + * @param value The enum numeric value on the wire for riskLevel to set. + * @return This builder for chaining. + */ + public Builder setRiskLevelValue(int value) { + riskLevel_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * .message.RiskLevel risk_level = 9; + * @return The riskLevel. + */ + @java.lang.Override + public org.jumpserver.wisp.Common.RiskLevel getRiskLevel() { + org.jumpserver.wisp.Common.RiskLevel result = org.jumpserver.wisp.Common.RiskLevel.forNumber(riskLevel_); + return result == null ? org.jumpserver.wisp.Common.RiskLevel.UNRECOGNIZED : result; + } + /** + * .message.RiskLevel risk_level = 9; + * @param value The riskLevel to set. + * @return This builder for chaining. + */ + public Builder setRiskLevel(org.jumpserver.wisp.Common.RiskLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + riskLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .message.RiskLevel risk_level = 9; + * @return This builder for chaining. + */ + public Builder clearRiskLevel() { + bitField0_ = (bitField0_ & ~0x00000100); + riskLevel_ = 0; + onChanged(); + return this; + } + + private java.lang.Object cmdAclId_ = ""; + /** + * string cmd_acl_id = 10; + * @return The cmdAclId. + */ + public java.lang.String getCmdAclId() { + java.lang.Object ref = cmdAclId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cmdAclId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string cmd_acl_id = 10; + * @return The bytes for cmdAclId. + */ + public com.google.protobuf.ByteString + getCmdAclIdBytes() { + java.lang.Object ref = cmdAclId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cmdAclId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string cmd_acl_id = 10; + * @param value The cmdAclId to set. + * @return This builder for chaining. + */ + public Builder setCmdAclId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + cmdAclId_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * string cmd_acl_id = 10; + * @return This builder for chaining. + */ + public Builder clearCmdAclId() { + cmdAclId_ = getDefaultInstance().getCmdAclId(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * string cmd_acl_id = 10; + * @param value The bytes for cmdAclId to set. + * @return This builder for chaining. + */ + public Builder setCmdAclIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + cmdAclId_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object cmdGroupId_ = ""; + /** + * string cmd_group_id = 11; + * @return The cmdGroupId. + */ + public java.lang.String getCmdGroupId() { + java.lang.Object ref = cmdGroupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cmdGroupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string cmd_group_id = 11; + * @return The bytes for cmdGroupId. + */ + public com.google.protobuf.ByteString + getCmdGroupIdBytes() { + java.lang.Object ref = cmdGroupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cmdGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string cmd_group_id = 11; + * @param value The cmdGroupId to set. + * @return This builder for chaining. + */ + public Builder setCmdGroupId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + cmdGroupId_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * string cmd_group_id = 11; + * @return This builder for chaining. + */ + public Builder clearCmdGroupId() { + cmdGroupId_ = getDefaultInstance().getCmdGroupId(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * string cmd_group_id = 11; + * @param value The bytes for cmdGroupId to set. + * @return This builder for chaining. + */ + public Builder setCmdGroupIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + cmdGroupId_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:message.CommandRequest) + } + + // @@protoc_insertion_point(class_scope:message.CommandRequest) + private static final org.jumpserver.wisp.ServiceOuterClass.CommandRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.CommandRequest(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.CommandRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommandRequest 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.ServiceOuterClass.CommandRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CommandResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.CommandResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .message.Status status = 1; + * @return The status. + */ + org.jumpserver.wisp.ServiceOuterClass.Status getStatus(); + /** + * .message.Status status = 1; + */ + org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder(); + } + /** + * Protobuf type {@code message.CommandResponse} + */ + public static final class CommandResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.CommandResponse) + CommandResponseOrBuilder { + 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= */ "", + CommandResponse.class.getName()); + } + // Use CommandResponse.newBuilder() to construct. + private CommandResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CommandResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_CommandResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_CommandResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.CommandResponse.class, org.jumpserver.wisp.ServiceOuterClass.CommandResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private org.jumpserver.wisp.ServiceOuterClass.Status status_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + /** + * .message.Status status = 1; + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStatus()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStatus()); + } + 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.ServiceOuterClass.CommandResponse)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.CommandResponse other = (org.jumpserver.wisp.ServiceOuterClass.CommandResponse) obj; + + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) 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(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.CommandResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.CommandResponse 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.ServiceOuterClass.CommandResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.CommandResponse 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.ServiceOuterClass.CommandResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.CommandResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.CommandResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.CommandResponse 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.ServiceOuterClass.CommandResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.CommandResponse 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.ServiceOuterClass.CommandResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.CommandResponse 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.ServiceOuterClass.CommandResponse 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.CommandResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.CommandResponse) + org.jumpserver.wisp.ServiceOuterClass.CommandResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_CommandResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_CommandResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.CommandResponse.class, org.jumpserver.wisp.ServiceOuterClass.CommandResponse.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.CommandResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getStatusFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_CommandResponse_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.CommandResponse getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.CommandResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.CommandResponse build() { + org.jumpserver.wisp.ServiceOuterClass.CommandResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.CommandResponse buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.CommandResponse result = new org.jumpserver.wisp.ServiceOuterClass.CommandResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.CommandResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.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.ServiceOuterClass.CommandResponse) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.CommandResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.CommandResponse other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.CommandResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + 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: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + 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 org.jumpserver.wisp.ServiceOuterClass.Status status_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> statusBuilder_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * .message.Status status = 1; + */ + public Builder setStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder setStatus( + org.jumpserver.wisp.ServiceOuterClass.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder mergeStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + status_ != null && + status_ != org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .message.Status status = 1; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.Status.Builder getStatusBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + } + /** + * .message.Status status = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + // @@protoc_insertion_point(builder_scope:message.CommandResponse) + } + + // @@protoc_insertion_point(class_scope:message.CommandResponse) + private static final org.jumpserver.wisp.ServiceOuterClass.CommandResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.CommandResponse(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.CommandResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommandResponse 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.ServiceOuterClass.CommandResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FinishedTaskRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.FinishedTaskRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string task_id = 1; + * @return The taskId. + */ + java.lang.String getTaskId(); + /** + * string task_id = 1; + * @return The bytes for taskId. + */ + com.google.protobuf.ByteString + getTaskIdBytes(); + } + /** + * Protobuf type {@code message.FinishedTaskRequest} + */ + public static final class FinishedTaskRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.FinishedTaskRequest) + FinishedTaskRequestOrBuilder { + 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= */ "", + FinishedTaskRequest.class.getName()); + } + // Use FinishedTaskRequest.newBuilder() to construct. + private FinishedTaskRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private FinishedTaskRequest() { + taskId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_FinishedTaskRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_FinishedTaskRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest.class, org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest.Builder.class); + } + + public static final int TASK_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object taskId_ = ""; + /** + * string task_id = 1; + * @return The taskId. + */ + @java.lang.Override + public java.lang.String getTaskId() { + java.lang.Object ref = taskId_; + 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(); + taskId_ = s; + return s; + } + } + /** + * string task_id = 1; + * @return The bytes for taskId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTaskIdBytes() { + java.lang.Object ref = taskId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskId_ = 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(taskId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, taskId_); + } + 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(taskId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, taskId_); + } + 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.ServiceOuterClass.FinishedTaskRequest)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest other = (org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest) obj; + + if (!getTaskId() + .equals(other.getTaskId())) 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) + TASK_ID_FIELD_NUMBER; + hash = (53 * hash) + getTaskId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest 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.ServiceOuterClass.FinishedTaskRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest 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.ServiceOuterClass.FinishedTaskRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest 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.ServiceOuterClass.FinishedTaskRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest 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.ServiceOuterClass.FinishedTaskRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest 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.ServiceOuterClass.FinishedTaskRequest 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.FinishedTaskRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.FinishedTaskRequest) + org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_FinishedTaskRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_FinishedTaskRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest.class, org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + taskId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_FinishedTaskRequest_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest build() { + org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest result = new org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.taskId_ = taskId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest.getDefaultInstance()) return this; + if (!other.getTaskId().isEmpty()) { + taskId_ = other.taskId_; + bitField0_ |= 0x00000001; + 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: { + taskId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + 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 taskId_ = ""; + /** + * string task_id = 1; + * @return The taskId. + */ + public java.lang.String getTaskId() { + java.lang.Object ref = taskId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string task_id = 1; + * @return The bytes for taskId. + */ + public com.google.protobuf.ByteString + getTaskIdBytes() { + java.lang.Object ref = taskId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + taskId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string task_id = 1; + * @param value The taskId to set. + * @return This builder for chaining. + */ + public Builder setTaskId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + taskId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string task_id = 1; + * @return This builder for chaining. + */ + public Builder clearTaskId() { + taskId_ = getDefaultInstance().getTaskId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string task_id = 1; + * @param value The bytes for taskId to set. + * @return This builder for chaining. + */ + public Builder setTaskIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + taskId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:message.FinishedTaskRequest) + } + + // @@protoc_insertion_point(class_scope:message.FinishedTaskRequest) + private static final org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.FinishedTaskRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FinishedTaskRequest 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.ServiceOuterClass.FinishedTaskRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TaskResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.TaskResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .message.TerminalTask task = 1; + * @return Whether the task field is set. + */ + boolean hasTask(); + /** + * .message.TerminalTask task = 1; + * @return The task. + */ + org.jumpserver.wisp.Common.TerminalTask getTask(); + /** + * .message.TerminalTask task = 1; + */ + org.jumpserver.wisp.Common.TerminalTaskOrBuilder getTaskOrBuilder(); + } + /** + * Protobuf type {@code message.TaskResponse} + */ + public static final class TaskResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.TaskResponse) + TaskResponseOrBuilder { + 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= */ "", + TaskResponse.class.getName()); + } + // Use TaskResponse.newBuilder() to construct. + private TaskResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private TaskResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TaskResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TaskResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.TaskResponse.class, org.jumpserver.wisp.ServiceOuterClass.TaskResponse.Builder.class); + } + + private int bitField0_; + public static final int TASK_FIELD_NUMBER = 1; + private org.jumpserver.wisp.Common.TerminalTask task_; + /** + * .message.TerminalTask task = 1; + * @return Whether the task field is set. + */ + @java.lang.Override + public boolean hasTask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.TerminalTask task = 1; + * @return The task. + */ + @java.lang.Override + public org.jumpserver.wisp.Common.TerminalTask getTask() { + return task_ == null ? org.jumpserver.wisp.Common.TerminalTask.getDefaultInstance() : task_; + } + /** + * .message.TerminalTask task = 1; + */ + @java.lang.Override + public org.jumpserver.wisp.Common.TerminalTaskOrBuilder getTaskOrBuilder() { + return task_ == null ? org.jumpserver.wisp.Common.TerminalTask.getDefaultInstance() : task_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getTask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTask()); + } + 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.ServiceOuterClass.TaskResponse)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.TaskResponse other = (org.jumpserver.wisp.ServiceOuterClass.TaskResponse) obj; + + if (hasTask() != other.hasTask()) return false; + if (hasTask()) { + if (!getTask() + .equals(other.getTask())) 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(); + if (hasTask()) { + hash = (37 * hash) + TASK_FIELD_NUMBER; + hash = (53 * hash) + getTask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.TaskResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.TaskResponse 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.ServiceOuterClass.TaskResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.TaskResponse 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.ServiceOuterClass.TaskResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.TaskResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.TaskResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.TaskResponse 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.ServiceOuterClass.TaskResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.TaskResponse 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.ServiceOuterClass.TaskResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.TaskResponse 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.ServiceOuterClass.TaskResponse 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.TaskResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.TaskResponse) + org.jumpserver.wisp.ServiceOuterClass.TaskResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TaskResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TaskResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.TaskResponse.class, org.jumpserver.wisp.ServiceOuterClass.TaskResponse.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.TaskResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getTaskFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + task_ = null; + if (taskBuilder_ != null) { + taskBuilder_.dispose(); + taskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TaskResponse_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TaskResponse getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.TaskResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TaskResponse build() { + org.jumpserver.wisp.ServiceOuterClass.TaskResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TaskResponse buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.TaskResponse result = new org.jumpserver.wisp.ServiceOuterClass.TaskResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.TaskResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.task_ = taskBuilder_ == null + ? task_ + : taskBuilder_.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.ServiceOuterClass.TaskResponse) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.TaskResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.TaskResponse other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.TaskResponse.getDefaultInstance()) return this; + if (other.hasTask()) { + mergeTask(other.getTask()); + } + 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: { + input.readMessage( + getTaskFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + 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 org.jumpserver.wisp.Common.TerminalTask task_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.Common.TerminalTask, org.jumpserver.wisp.Common.TerminalTask.Builder, org.jumpserver.wisp.Common.TerminalTaskOrBuilder> taskBuilder_; + /** + * .message.TerminalTask task = 1; + * @return Whether the task field is set. + */ + public boolean hasTask() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.TerminalTask task = 1; + * @return The task. + */ + public org.jumpserver.wisp.Common.TerminalTask getTask() { + if (taskBuilder_ == null) { + return task_ == null ? org.jumpserver.wisp.Common.TerminalTask.getDefaultInstance() : task_; + } else { + return taskBuilder_.getMessage(); + } + } + /** + * .message.TerminalTask task = 1; + */ + public Builder setTask(org.jumpserver.wisp.Common.TerminalTask value) { + if (taskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + task_ = value; + } else { + taskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.TerminalTask task = 1; + */ + public Builder setTask( + org.jumpserver.wisp.Common.TerminalTask.Builder builderForValue) { + if (taskBuilder_ == null) { + task_ = builderForValue.build(); + } else { + taskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.TerminalTask task = 1; + */ + public Builder mergeTask(org.jumpserver.wisp.Common.TerminalTask value) { + if (taskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + task_ != null && + task_ != org.jumpserver.wisp.Common.TerminalTask.getDefaultInstance()) { + getTaskBuilder().mergeFrom(value); + } else { + task_ = value; + } + } else { + taskBuilder_.mergeFrom(value); + } + if (task_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .message.TerminalTask task = 1; + */ + public Builder clearTask() { + bitField0_ = (bitField0_ & ~0x00000001); + task_ = null; + if (taskBuilder_ != null) { + taskBuilder_.dispose(); + taskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.TerminalTask task = 1; + */ + public org.jumpserver.wisp.Common.TerminalTask.Builder getTaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTaskFieldBuilder().getBuilder(); + } + /** + * .message.TerminalTask task = 1; + */ + public org.jumpserver.wisp.Common.TerminalTaskOrBuilder getTaskOrBuilder() { + if (taskBuilder_ != null) { + return taskBuilder_.getMessageOrBuilder(); + } else { + return task_ == null ? + org.jumpserver.wisp.Common.TerminalTask.getDefaultInstance() : task_; + } + } + /** + * .message.TerminalTask task = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.Common.TerminalTask, org.jumpserver.wisp.Common.TerminalTask.Builder, org.jumpserver.wisp.Common.TerminalTaskOrBuilder> + getTaskFieldBuilder() { + if (taskBuilder_ == null) { + taskBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.Common.TerminalTask, org.jumpserver.wisp.Common.TerminalTask.Builder, org.jumpserver.wisp.Common.TerminalTaskOrBuilder>( + getTask(), + getParentForChildren(), + isClean()); + task_ = null; + } + return taskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:message.TaskResponse) + } + + // @@protoc_insertion_point(class_scope:message.TaskResponse) + private static final org.jumpserver.wisp.ServiceOuterClass.TaskResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.TaskResponse(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.TaskResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TaskResponse 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.ServiceOuterClass.TaskResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RemainReplayRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.RemainReplayRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string replay_dir = 1; + * @return The replayDir. + */ + java.lang.String getReplayDir(); + /** + * string replay_dir = 1; + * @return The bytes for replayDir. + */ + com.google.protobuf.ByteString + getReplayDirBytes(); + } + /** + * Protobuf type {@code message.RemainReplayRequest} + */ + public static final class RemainReplayRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.RemainReplayRequest) + RemainReplayRequestOrBuilder { + 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= */ "", + RemainReplayRequest.class.getName()); + } + // Use RemainReplayRequest.newBuilder() to construct. + private RemainReplayRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private RemainReplayRequest() { + replayDir_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_RemainReplayRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_RemainReplayRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest.class, org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest.Builder.class); + } + + public static final int REPLAY_DIR_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object replayDir_ = ""; + /** + * string replay_dir = 1; + * @return The replayDir. + */ + @java.lang.Override + public java.lang.String getReplayDir() { + java.lang.Object ref = replayDir_; + 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(); + replayDir_ = s; + return s; + } + } + /** + * string replay_dir = 1; + * @return The bytes for replayDir. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getReplayDirBytes() { + java.lang.Object ref = replayDir_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + replayDir_ = 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(replayDir_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, replayDir_); + } + 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(replayDir_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, replayDir_); + } + 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.ServiceOuterClass.RemainReplayRequest)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest other = (org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest) obj; + + if (!getReplayDir() + .equals(other.getReplayDir())) 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) + REPLAY_DIR_FIELD_NUMBER; + hash = (53 * hash) + getReplayDir().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest 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.ServiceOuterClass.RemainReplayRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest 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.ServiceOuterClass.RemainReplayRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest 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.ServiceOuterClass.RemainReplayRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest 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.ServiceOuterClass.RemainReplayRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest 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.ServiceOuterClass.RemainReplayRequest 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.RemainReplayRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.RemainReplayRequest) + org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_RemainReplayRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_RemainReplayRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest.class, org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + replayDir_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_RemainReplayRequest_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest build() { + org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest result = new org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.replayDir_ = replayDir_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest.getDefaultInstance()) return this; + if (!other.getReplayDir().isEmpty()) { + replayDir_ = other.replayDir_; + bitField0_ |= 0x00000001; + 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: { + replayDir_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + 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 replayDir_ = ""; + /** + * string replay_dir = 1; + * @return The replayDir. + */ + public java.lang.String getReplayDir() { + java.lang.Object ref = replayDir_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + replayDir_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string replay_dir = 1; + * @return The bytes for replayDir. + */ + public com.google.protobuf.ByteString + getReplayDirBytes() { + java.lang.Object ref = replayDir_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + replayDir_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string replay_dir = 1; + * @param value The replayDir to set. + * @return This builder for chaining. + */ + public Builder setReplayDir( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + replayDir_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string replay_dir = 1; + * @return This builder for chaining. + */ + public Builder clearReplayDir() { + replayDir_ = getDefaultInstance().getReplayDir(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string replay_dir = 1; + * @param value The bytes for replayDir to set. + * @return This builder for chaining. + */ + public Builder setReplayDirBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + replayDir_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:message.RemainReplayRequest) + } + + // @@protoc_insertion_point(class_scope:message.RemainReplayRequest) + private static final org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.RemainReplayRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemainReplayRequest 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.ServiceOuterClass.RemainReplayRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RemainReplayResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.RemainReplayResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .message.Status status = 1; + * @return The status. + */ + org.jumpserver.wisp.ServiceOuterClass.Status getStatus(); + /** + * .message.Status status = 1; + */ + org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder(); + + /** + * repeated string success_files = 2; + * @return A list containing the successFiles. + */ + java.util.List + getSuccessFilesList(); + /** + * repeated string success_files = 2; + * @return The count of successFiles. + */ + int getSuccessFilesCount(); + /** + * repeated string success_files = 2; + * @param index The index of the element to return. + * @return The successFiles at the given index. + */ + java.lang.String getSuccessFiles(int index); + /** + * repeated string success_files = 2; + * @param index The index of the value to return. + * @return The bytes of the successFiles at the given index. + */ + com.google.protobuf.ByteString + getSuccessFilesBytes(int index); + + /** + * repeated string failure_files = 3; + * @return A list containing the failureFiles. + */ + java.util.List + getFailureFilesList(); + /** + * repeated string failure_files = 3; + * @return The count of failureFiles. + */ + int getFailureFilesCount(); + /** + * repeated string failure_files = 3; + * @param index The index of the element to return. + * @return The failureFiles at the given index. + */ + java.lang.String getFailureFiles(int index); + /** + * repeated string failure_files = 3; + * @param index The index of the value to return. + * @return The bytes of the failureFiles at the given index. + */ + com.google.protobuf.ByteString + getFailureFilesBytes(int index); + + /** + * repeated string failure_errs = 4; + * @return A list containing the failureErrs. + */ + java.util.List + getFailureErrsList(); + /** + * repeated string failure_errs = 4; + * @return The count of failureErrs. + */ + int getFailureErrsCount(); + /** + * repeated string failure_errs = 4; + * @param index The index of the element to return. + * @return The failureErrs at the given index. + */ + java.lang.String getFailureErrs(int index); + /** + * repeated string failure_errs = 4; + * @param index The index of the value to return. + * @return The bytes of the failureErrs at the given index. + */ + com.google.protobuf.ByteString + getFailureErrsBytes(int index); + } + /** + * Protobuf type {@code message.RemainReplayResponse} + */ + public static final class RemainReplayResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.RemainReplayResponse) + RemainReplayResponseOrBuilder { + 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= */ "", + RemainReplayResponse.class.getName()); + } + // Use RemainReplayResponse.newBuilder() to construct. + private RemainReplayResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private RemainReplayResponse() { + successFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + failureFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + failureErrs_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_RemainReplayResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_RemainReplayResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse.class, org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private org.jumpserver.wisp.ServiceOuterClass.Status status_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + /** + * .message.Status status = 1; + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + + public static final int SUCCESS_FILES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList successFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string success_files = 2; + * @return A list containing the successFiles. + */ + public com.google.protobuf.ProtocolStringList + getSuccessFilesList() { + return successFiles_; + } + /** + * repeated string success_files = 2; + * @return The count of successFiles. + */ + public int getSuccessFilesCount() { + return successFiles_.size(); + } + /** + * repeated string success_files = 2; + * @param index The index of the element to return. + * @return The successFiles at the given index. + */ + public java.lang.String getSuccessFiles(int index) { + return successFiles_.get(index); + } + /** + * repeated string success_files = 2; + * @param index The index of the value to return. + * @return The bytes of the successFiles at the given index. + */ + public com.google.protobuf.ByteString + getSuccessFilesBytes(int index) { + return successFiles_.getByteString(index); + } + + public static final int FAILURE_FILES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList failureFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string failure_files = 3; + * @return A list containing the failureFiles. + */ + public com.google.protobuf.ProtocolStringList + getFailureFilesList() { + return failureFiles_; + } + /** + * repeated string failure_files = 3; + * @return The count of failureFiles. + */ + public int getFailureFilesCount() { + return failureFiles_.size(); + } + /** + * repeated string failure_files = 3; + * @param index The index of the element to return. + * @return The failureFiles at the given index. + */ + public java.lang.String getFailureFiles(int index) { + return failureFiles_.get(index); + } + /** + * repeated string failure_files = 3; + * @param index The index of the value to return. + * @return The bytes of the failureFiles at the given index. + */ + public com.google.protobuf.ByteString + getFailureFilesBytes(int index) { + return failureFiles_.getByteString(index); + } + + public static final int FAILURE_ERRS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList failureErrs_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string failure_errs = 4; + * @return A list containing the failureErrs. + */ + public com.google.protobuf.ProtocolStringList + getFailureErrsList() { + return failureErrs_; + } + /** + * repeated string failure_errs = 4; + * @return The count of failureErrs. + */ + public int getFailureErrsCount() { + return failureErrs_.size(); + } + /** + * repeated string failure_errs = 4; + * @param index The index of the element to return. + * @return The failureErrs at the given index. + */ + public java.lang.String getFailureErrs(int index) { + return failureErrs_.get(index); + } + /** + * repeated string failure_errs = 4; + * @param index The index of the value to return. + * @return The bytes of the failureErrs at the given index. + */ + public com.google.protobuf.ByteString + getFailureErrsBytes(int index) { + return failureErrs_.getByteString(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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStatus()); + } + for (int i = 0; i < successFiles_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, successFiles_.getRaw(i)); + } + for (int i = 0; i < failureFiles_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, failureFiles_.getRaw(i)); + } + for (int i = 0; i < failureErrs_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, failureErrs_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStatus()); + } + { + int dataSize = 0; + for (int i = 0; i < successFiles_.size(); i++) { + dataSize += computeStringSizeNoTag(successFiles_.getRaw(i)); + } + size += dataSize; + size += 1 * getSuccessFilesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < failureFiles_.size(); i++) { + dataSize += computeStringSizeNoTag(failureFiles_.getRaw(i)); + } + size += dataSize; + size += 1 * getFailureFilesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < failureErrs_.size(); i++) { + dataSize += computeStringSizeNoTag(failureErrs_.getRaw(i)); + } + size += dataSize; + size += 1 * getFailureErrsList().size(); + } + 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.ServiceOuterClass.RemainReplayResponse)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse other = (org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse) obj; + + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (!getSuccessFilesList() + .equals(other.getSuccessFilesList())) return false; + if (!getFailureFilesList() + .equals(other.getFailureFilesList())) return false; + if (!getFailureErrsList() + .equals(other.getFailureErrsList())) 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(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + if (getSuccessFilesCount() > 0) { + hash = (37 * hash) + SUCCESS_FILES_FIELD_NUMBER; + hash = (53 * hash) + getSuccessFilesList().hashCode(); + } + if (getFailureFilesCount() > 0) { + hash = (37 * hash) + FAILURE_FILES_FIELD_NUMBER; + hash = (53 * hash) + getFailureFilesList().hashCode(); + } + if (getFailureErrsCount() > 0) { + hash = (37 * hash) + FAILURE_ERRS_FIELD_NUMBER; + hash = (53 * hash) + getFailureErrsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse 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.ServiceOuterClass.RemainReplayResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse 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.ServiceOuterClass.RemainReplayResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse 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.ServiceOuterClass.RemainReplayResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse 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.ServiceOuterClass.RemainReplayResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse 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.ServiceOuterClass.RemainReplayResponse 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.RemainReplayResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.RemainReplayResponse) + org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_RemainReplayResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_RemainReplayResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse.class, org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getStatusFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + successFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + failureFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + failureErrs_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_RemainReplayResponse_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse build() { + org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse result = new org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + successFiles_.makeImmutable(); + result.successFiles_ = successFiles_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + failureFiles_.makeImmutable(); + result.failureFiles_ = failureFiles_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + failureErrs_.makeImmutable(); + result.failureErrs_ = failureErrs_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + if (!other.successFiles_.isEmpty()) { + if (successFiles_.isEmpty()) { + successFiles_ = other.successFiles_; + bitField0_ |= 0x00000002; + } else { + ensureSuccessFilesIsMutable(); + successFiles_.addAll(other.successFiles_); + } + onChanged(); + } + if (!other.failureFiles_.isEmpty()) { + if (failureFiles_.isEmpty()) { + failureFiles_ = other.failureFiles_; + bitField0_ |= 0x00000004; + } else { + ensureFailureFilesIsMutable(); + failureFiles_.addAll(other.failureFiles_); + } + onChanged(); + } + if (!other.failureErrs_.isEmpty()) { + if (failureErrs_.isEmpty()) { + failureErrs_ = other.failureErrs_; + bitField0_ |= 0x00000008; + } else { + ensureFailureErrsIsMutable(); + failureErrs_.addAll(other.failureErrs_); + } + 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: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureSuccessFilesIsMutable(); + successFiles_.add(s); + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureFailureFilesIsMutable(); + failureFiles_.add(s); + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureFailureErrsIsMutable(); + failureErrs_.add(s); + 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 org.jumpserver.wisp.ServiceOuterClass.Status status_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> statusBuilder_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * .message.Status status = 1; + */ + public Builder setStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder setStatus( + org.jumpserver.wisp.ServiceOuterClass.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder mergeStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + status_ != null && + status_ != org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .message.Status status = 1; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.Status.Builder getStatusBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + } + /** + * .message.Status status = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + private com.google.protobuf.LazyStringArrayList successFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureSuccessFilesIsMutable() { + if (!successFiles_.isModifiable()) { + successFiles_ = new com.google.protobuf.LazyStringArrayList(successFiles_); + } + bitField0_ |= 0x00000002; + } + /** + * repeated string success_files = 2; + * @return A list containing the successFiles. + */ + public com.google.protobuf.ProtocolStringList + getSuccessFilesList() { + successFiles_.makeImmutable(); + return successFiles_; + } + /** + * repeated string success_files = 2; + * @return The count of successFiles. + */ + public int getSuccessFilesCount() { + return successFiles_.size(); + } + /** + * repeated string success_files = 2; + * @param index The index of the element to return. + * @return The successFiles at the given index. + */ + public java.lang.String getSuccessFiles(int index) { + return successFiles_.get(index); + } + /** + * repeated string success_files = 2; + * @param index The index of the value to return. + * @return The bytes of the successFiles at the given index. + */ + public com.google.protobuf.ByteString + getSuccessFilesBytes(int index) { + return successFiles_.getByteString(index); + } + /** + * repeated string success_files = 2; + * @param index The index to set the value at. + * @param value The successFiles to set. + * @return This builder for chaining. + */ + public Builder setSuccessFiles( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureSuccessFilesIsMutable(); + successFiles_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated string success_files = 2; + * @param value The successFiles to add. + * @return This builder for chaining. + */ + public Builder addSuccessFiles( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureSuccessFilesIsMutable(); + successFiles_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated string success_files = 2; + * @param values The successFiles to add. + * @return This builder for chaining. + */ + public Builder addAllSuccessFiles( + java.lang.Iterable values) { + ensureSuccessFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, successFiles_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated string success_files = 2; + * @return This builder for chaining. + */ + public Builder clearSuccessFiles() { + successFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; + onChanged(); + return this; + } + /** + * repeated string success_files = 2; + * @param value The bytes of the successFiles to add. + * @return This builder for chaining. + */ + public Builder addSuccessFilesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureSuccessFilesIsMutable(); + successFiles_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList failureFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureFailureFilesIsMutable() { + if (!failureFiles_.isModifiable()) { + failureFiles_ = new com.google.protobuf.LazyStringArrayList(failureFiles_); + } + bitField0_ |= 0x00000004; + } + /** + * repeated string failure_files = 3; + * @return A list containing the failureFiles. + */ + public com.google.protobuf.ProtocolStringList + getFailureFilesList() { + failureFiles_.makeImmutable(); + return failureFiles_; + } + /** + * repeated string failure_files = 3; + * @return The count of failureFiles. + */ + public int getFailureFilesCount() { + return failureFiles_.size(); + } + /** + * repeated string failure_files = 3; + * @param index The index of the element to return. + * @return The failureFiles at the given index. + */ + public java.lang.String getFailureFiles(int index) { + return failureFiles_.get(index); + } + /** + * repeated string failure_files = 3; + * @param index The index of the value to return. + * @return The bytes of the failureFiles at the given index. + */ + public com.google.protobuf.ByteString + getFailureFilesBytes(int index) { + return failureFiles_.getByteString(index); + } + /** + * repeated string failure_files = 3; + * @param index The index to set the value at. + * @param value The failureFiles to set. + * @return This builder for chaining. + */ + public Builder setFailureFiles( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureFailureFilesIsMutable(); + failureFiles_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string failure_files = 3; + * @param value The failureFiles to add. + * @return This builder for chaining. + */ + public Builder addFailureFiles( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureFailureFilesIsMutable(); + failureFiles_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string failure_files = 3; + * @param values The failureFiles to add. + * @return This builder for chaining. + */ + public Builder addAllFailureFiles( + java.lang.Iterable values) { + ensureFailureFilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, failureFiles_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string failure_files = 3; + * @return This builder for chaining. + */ + public Builder clearFailureFiles() { + failureFiles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + * repeated string failure_files = 3; + * @param value The bytes of the failureFiles to add. + * @return This builder for chaining. + */ + public Builder addFailureFilesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureFailureFilesIsMutable(); + failureFiles_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList failureErrs_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureFailureErrsIsMutable() { + if (!failureErrs_.isModifiable()) { + failureErrs_ = new com.google.protobuf.LazyStringArrayList(failureErrs_); + } + bitField0_ |= 0x00000008; + } + /** + * repeated string failure_errs = 4; + * @return A list containing the failureErrs. + */ + public com.google.protobuf.ProtocolStringList + getFailureErrsList() { + failureErrs_.makeImmutable(); + return failureErrs_; + } + /** + * repeated string failure_errs = 4; + * @return The count of failureErrs. + */ + public int getFailureErrsCount() { + return failureErrs_.size(); + } + /** + * repeated string failure_errs = 4; + * @param index The index of the element to return. + * @return The failureErrs at the given index. + */ + public java.lang.String getFailureErrs(int index) { + return failureErrs_.get(index); + } + /** + * repeated string failure_errs = 4; + * @param index The index of the value to return. + * @return The bytes of the failureErrs at the given index. + */ + public com.google.protobuf.ByteString + getFailureErrsBytes(int index) { + return failureErrs_.getByteString(index); + } + /** + * repeated string failure_errs = 4; + * @param index The index to set the value at. + * @param value The failureErrs to set. + * @return This builder for chaining. + */ + public Builder setFailureErrs( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureFailureErrsIsMutable(); + failureErrs_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * repeated string failure_errs = 4; + * @param value The failureErrs to add. + * @return This builder for chaining. + */ + public Builder addFailureErrs( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureFailureErrsIsMutable(); + failureErrs_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * repeated string failure_errs = 4; + * @param values The failureErrs to add. + * @return This builder for chaining. + */ + public Builder addAllFailureErrs( + java.lang.Iterable values) { + ensureFailureErrsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, failureErrs_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * repeated string failure_errs = 4; + * @return This builder for chaining. + */ + public Builder clearFailureErrs() { + failureErrs_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; + onChanged(); + return this; + } + /** + * repeated string failure_errs = 4; + * @param value The bytes of the failureErrs to add. + * @return This builder for chaining. + */ + public Builder addFailureErrsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureFailureErrsIsMutable(); + failureErrs_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:message.RemainReplayResponse) + } + + // @@protoc_insertion_point(class_scope:message.RemainReplayResponse) + private static final org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.RemainReplayResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemainReplayResponse 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.ServiceOuterClass.RemainReplayResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StatusResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.StatusResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .message.Status status = 1; + * @return The status. + */ + org.jumpserver.wisp.ServiceOuterClass.Status getStatus(); + /** + * .message.Status status = 1; + */ + org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder(); + } + /** + * Protobuf type {@code message.StatusResponse} + */ + public static final class StatusResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.StatusResponse) + StatusResponseOrBuilder { + 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= */ "", + StatusResponse.class.getName()); + } + // Use StatusResponse.newBuilder() to construct. + private StatusResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private StatusResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_StatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_StatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.StatusResponse.class, org.jumpserver.wisp.ServiceOuterClass.StatusResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private org.jumpserver.wisp.ServiceOuterClass.Status status_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + /** + * .message.Status status = 1; + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStatus()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStatus()); + } + 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.ServiceOuterClass.StatusResponse)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.StatusResponse other = (org.jumpserver.wisp.ServiceOuterClass.StatusResponse) obj; + + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) 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(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.StatusResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.StatusResponse 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.ServiceOuterClass.StatusResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.StatusResponse 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.ServiceOuterClass.StatusResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.StatusResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.StatusResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.StatusResponse 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.ServiceOuterClass.StatusResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.StatusResponse 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.ServiceOuterClass.StatusResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.StatusResponse 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.ServiceOuterClass.StatusResponse 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.StatusResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.StatusResponse) + org.jumpserver.wisp.ServiceOuterClass.StatusResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_StatusResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_StatusResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.StatusResponse.class, org.jumpserver.wisp.ServiceOuterClass.StatusResponse.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.StatusResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getStatusFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_StatusResponse_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.StatusResponse getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.StatusResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.StatusResponse build() { + org.jumpserver.wisp.ServiceOuterClass.StatusResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.StatusResponse buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.StatusResponse result = new org.jumpserver.wisp.ServiceOuterClass.StatusResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.StatusResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.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.ServiceOuterClass.StatusResponse) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.StatusResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.StatusResponse other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.StatusResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + 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: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + 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 org.jumpserver.wisp.ServiceOuterClass.Status status_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> statusBuilder_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * .message.Status status = 1; + */ + public Builder setStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder setStatus( + org.jumpserver.wisp.ServiceOuterClass.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder mergeStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + status_ != null && + status_ != org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .message.Status status = 1; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.Status.Builder getStatusBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + } + /** + * .message.Status status = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + // @@protoc_insertion_point(builder_scope:message.StatusResponse) + } + + // @@protoc_insertion_point(class_scope:message.StatusResponse) + private static final org.jumpserver.wisp.ServiceOuterClass.StatusResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.StatusResponse(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.StatusResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StatusResponse 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.ServiceOuterClass.StatusResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CommandConfirmRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.CommandConfirmRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string session_id = 1; + * @return The sessionId. + */ + java.lang.String getSessionId(); + /** + * string session_id = 1; + * @return The bytes for sessionId. + */ + com.google.protobuf.ByteString + getSessionIdBytes(); + + /** + * string cmd_acl_id = 2; + * @return The cmdAclId. + */ + java.lang.String getCmdAclId(); + /** + * string cmd_acl_id = 2; + * @return The bytes for cmdAclId. + */ + com.google.protobuf.ByteString + getCmdAclIdBytes(); + + /** + * string cmd = 3; + * @return The cmd. + */ + java.lang.String getCmd(); + /** + * string cmd = 3; + * @return The bytes for cmd. + */ + com.google.protobuf.ByteString + getCmdBytes(); + } + /** + * Protobuf type {@code message.CommandConfirmRequest} + */ + public static final class CommandConfirmRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.CommandConfirmRequest) + CommandConfirmRequestOrBuilder { + 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= */ "", + CommandConfirmRequest.class.getName()); + } + // Use CommandConfirmRequest.newBuilder() to construct. + private CommandConfirmRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CommandConfirmRequest() { + sessionId_ = ""; + cmdAclId_ = ""; + cmd_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_CommandConfirmRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_CommandConfirmRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest.class, org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest.Builder.class); + } + + public static final int SESSION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object sessionId_ = ""; + /** + * string session_id = 1; + * @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 = 1; + * @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 CMD_ACL_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object cmdAclId_ = ""; + /** + * string cmd_acl_id = 2; + * @return The cmdAclId. + */ + @java.lang.Override + public java.lang.String getCmdAclId() { + java.lang.Object ref = cmdAclId_; + 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(); + cmdAclId_ = s; + return s; + } + } + /** + * string cmd_acl_id = 2; + * @return The bytes for cmdAclId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCmdAclIdBytes() { + java.lang.Object ref = cmdAclId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cmdAclId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CMD_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object cmd_ = ""; + /** + * string cmd = 3; + * @return The cmd. + */ + @java.lang.Override + public java.lang.String getCmd() { + java.lang.Object ref = cmd_; + 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(); + cmd_ = s; + return s; + } + } + /** + * string cmd = 3; + * @return The bytes for cmd. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCmdBytes() { + java.lang.Object ref = cmd_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cmd_ = 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(sessionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, sessionId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cmdAclId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, cmdAclId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cmd_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, cmd_); + } + 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(sessionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, sessionId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cmdAclId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, cmdAclId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cmd_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, cmd_); + } + 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.ServiceOuterClass.CommandConfirmRequest)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest other = (org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest) obj; + + if (!getSessionId() + .equals(other.getSessionId())) return false; + if (!getCmdAclId() + .equals(other.getCmdAclId())) return false; + if (!getCmd() + .equals(other.getCmd())) 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) + SESSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getSessionId().hashCode(); + hash = (37 * hash) + CMD_ACL_ID_FIELD_NUMBER; + hash = (53 * hash) + getCmdAclId().hashCode(); + hash = (37 * hash) + CMD_FIELD_NUMBER; + hash = (53 * hash) + getCmd().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest 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.ServiceOuterClass.CommandConfirmRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest 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.ServiceOuterClass.CommandConfirmRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest 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.ServiceOuterClass.CommandConfirmRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest 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.ServiceOuterClass.CommandConfirmRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest 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.ServiceOuterClass.CommandConfirmRequest 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.CommandConfirmRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.CommandConfirmRequest) + org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_CommandConfirmRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_CommandConfirmRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest.class, org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sessionId_ = ""; + cmdAclId_ = ""; + cmd_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_CommandConfirmRequest_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest build() { + org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest result = new org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sessionId_ = sessionId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.cmdAclId_ = cmdAclId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.cmd_ = cmd_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest.getDefaultInstance()) return this; + if (!other.getSessionId().isEmpty()) { + sessionId_ = other.sessionId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCmdAclId().isEmpty()) { + cmdAclId_ = other.cmdAclId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getCmd().isEmpty()) { + cmd_ = other.cmd_; + 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 10: { + sessionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + cmdAclId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + cmd_ = 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 java.lang.Object sessionId_ = ""; + /** + * string session_id = 1; + * @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 = 1; + * @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 = 1; + * @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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string session_id = 1; + * @return This builder for chaining. + */ + public Builder clearSessionId() { + sessionId_ = getDefaultInstance().getSessionId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string session_id = 1; + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object cmdAclId_ = ""; + /** + * string cmd_acl_id = 2; + * @return The cmdAclId. + */ + public java.lang.String getCmdAclId() { + java.lang.Object ref = cmdAclId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cmdAclId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string cmd_acl_id = 2; + * @return The bytes for cmdAclId. + */ + public com.google.protobuf.ByteString + getCmdAclIdBytes() { + java.lang.Object ref = cmdAclId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cmdAclId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string cmd_acl_id = 2; + * @param value The cmdAclId to set. + * @return This builder for chaining. + */ + public Builder setCmdAclId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + cmdAclId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string cmd_acl_id = 2; + * @return This builder for chaining. + */ + public Builder clearCmdAclId() { + cmdAclId_ = getDefaultInstance().getCmdAclId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string cmd_acl_id = 2; + * @param value The bytes for cmdAclId to set. + * @return This builder for chaining. + */ + public Builder setCmdAclIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + cmdAclId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object cmd_ = ""; + /** + * string cmd = 3; + * @return The cmd. + */ + public java.lang.String getCmd() { + java.lang.Object ref = cmd_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cmd_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string cmd = 3; + * @return The bytes for cmd. + */ + public com.google.protobuf.ByteString + getCmdBytes() { + java.lang.Object ref = cmd_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + cmd_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string cmd = 3; + * @param value The cmd to set. + * @return This builder for chaining. + */ + public Builder setCmd( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + cmd_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string cmd = 3; + * @return This builder for chaining. + */ + public Builder clearCmd() { + cmd_ = getDefaultInstance().getCmd(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string cmd = 3; + * @param value The bytes for cmd to set. + * @return This builder for chaining. + */ + public Builder setCmdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + cmd_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:message.CommandConfirmRequest) + } + + // @@protoc_insertion_point(class_scope:message.CommandConfirmRequest) + private static final org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.CommandConfirmRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommandConfirmRequest 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.ServiceOuterClass.CommandConfirmRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ReqInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.ReqInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * string method = 1; + * @return The method. + */ + java.lang.String getMethod(); + /** + * string method = 1; + * @return The bytes for method. + */ + com.google.protobuf.ByteString + getMethodBytes(); + + /** + * string url = 2; + * @return The url. + */ + java.lang.String getUrl(); + /** + * string url = 2; + * @return The bytes for url. + */ + com.google.protobuf.ByteString + getUrlBytes(); + } + /** + * Protobuf type {@code message.ReqInfo} + */ + public static final class ReqInfo extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.ReqInfo) + ReqInfoOrBuilder { + 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= */ "", + ReqInfo.class.getName()); + } + // Use ReqInfo.newBuilder() to construct. + private ReqInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ReqInfo() { + method_ = ""; + url_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ReqInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ReqInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.ReqInfo.class, org.jumpserver.wisp.ServiceOuterClass.ReqInfo.Builder.class); + } + + public static final int METHOD_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object method_ = ""; + /** + * string method = 1; + * @return The method. + */ + @java.lang.Override + public java.lang.String getMethod() { + java.lang.Object ref = method_; + 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(); + method_ = s; + return s; + } + } + /** + * string method = 1; + * @return The bytes for method. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getMethodBytes() { + java.lang.Object ref = method_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + method_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int URL_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object url_ = ""; + /** + * string url = 2; + * @return The url. + */ + @java.lang.Override + public java.lang.String getUrl() { + java.lang.Object ref = url_; + 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(); + url_ = s; + return s; + } + } + /** + * string url = 2; + * @return The bytes for url. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = 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(method_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, method_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, url_); + } + 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(method_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, method_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, url_); + } + 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.ServiceOuterClass.ReqInfo)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.ReqInfo other = (org.jumpserver.wisp.ServiceOuterClass.ReqInfo) obj; + + if (!getMethod() + .equals(other.getMethod())) return false; + if (!getUrl() + .equals(other.getUrl())) 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) + METHOD_FIELD_NUMBER; + hash = (53 * hash) + getMethod().hashCode(); + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.ReqInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.ReqInfo 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.ServiceOuterClass.ReqInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.ReqInfo 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.ServiceOuterClass.ReqInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.ReqInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.ReqInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.ReqInfo 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.ServiceOuterClass.ReqInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.ReqInfo 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.ServiceOuterClass.ReqInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.ReqInfo 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.ServiceOuterClass.ReqInfo 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.ReqInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.ReqInfo) + org.jumpserver.wisp.ServiceOuterClass.ReqInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ReqInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ReqInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.ReqInfo.class, org.jumpserver.wisp.ServiceOuterClass.ReqInfo.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.ReqInfo.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + method_ = ""; + url_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ReqInfo_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ReqInfo getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.ReqInfo.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ReqInfo build() { + org.jumpserver.wisp.ServiceOuterClass.ReqInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ReqInfo buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.ReqInfo result = new org.jumpserver.wisp.ServiceOuterClass.ReqInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.ReqInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.method_ = method_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.url_ = url_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.ReqInfo) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.ReqInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.ReqInfo other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.ReqInfo.getDefaultInstance()) return this; + if (!other.getMethod().isEmpty()) { + method_ = other.method_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + 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: { + method_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + url_ = 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 method_ = ""; + /** + * string method = 1; + * @return The method. + */ + public java.lang.String getMethod() { + java.lang.Object ref = method_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + method_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string method = 1; + * @return The bytes for method. + */ + public com.google.protobuf.ByteString + getMethodBytes() { + java.lang.Object ref = method_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + method_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string method = 1; + * @param value The method to set. + * @return This builder for chaining. + */ + public Builder setMethod( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + method_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string method = 1; + * @return This builder for chaining. + */ + public Builder clearMethod() { + method_ = getDefaultInstance().getMethod(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string method = 1; + * @param value The bytes for method to set. + * @return This builder for chaining. + */ + public Builder setMethodBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + method_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object url_ = ""; + /** + * string url = 2; + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string url = 2; + * @return The bytes for url. + */ + public com.google.protobuf.ByteString + getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string url = 2; + * @param value The url to set. + * @return This builder for chaining. + */ + public Builder setUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + url_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string url = 2; + * @return This builder for chaining. + */ + public Builder clearUrl() { + url_ = getDefaultInstance().getUrl(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string url = 2; + * @param value The bytes for url to set. + * @return This builder for chaining. + */ + public Builder setUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + url_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:message.ReqInfo) + } + + // @@protoc_insertion_point(class_scope:message.ReqInfo) + private static final org.jumpserver.wisp.ServiceOuterClass.ReqInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.ReqInfo(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.ReqInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReqInfo 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.ServiceOuterClass.ReqInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CommandConfirmResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.CommandConfirmResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .message.Status status = 1; + * @return The status. + */ + org.jumpserver.wisp.ServiceOuterClass.Status getStatus(); + /** + * .message.Status status = 1; + */ + org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder(); + + /** + * .message.TicketInfo info = 2; + * @return Whether the info field is set. + */ + boolean hasInfo(); + /** + * .message.TicketInfo info = 2; + * @return The info. + */ + org.jumpserver.wisp.ServiceOuterClass.TicketInfo getInfo(); + /** + * .message.TicketInfo info = 2; + */ + org.jumpserver.wisp.ServiceOuterClass.TicketInfoOrBuilder getInfoOrBuilder(); + } + /** + * Protobuf type {@code message.CommandConfirmResponse} + */ + public static final class CommandConfirmResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.CommandConfirmResponse) + CommandConfirmResponseOrBuilder { + 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= */ "", + CommandConfirmResponse.class.getName()); + } + // Use CommandConfirmResponse.newBuilder() to construct. + private CommandConfirmResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CommandConfirmResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_CommandConfirmResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_CommandConfirmResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse.class, org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private org.jumpserver.wisp.ServiceOuterClass.Status status_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + /** + * .message.Status status = 1; + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + + public static final int INFO_FIELD_NUMBER = 2; + private org.jumpserver.wisp.ServiceOuterClass.TicketInfo info_; + /** + * .message.TicketInfo info = 2; + * @return Whether the info field is set. + */ + @java.lang.Override + public boolean hasInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .message.TicketInfo info = 2; + * @return The info. + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TicketInfo getInfo() { + return info_ == null ? org.jumpserver.wisp.ServiceOuterClass.TicketInfo.getDefaultInstance() : info_; + } + /** + * .message.TicketInfo info = 2; + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TicketInfoOrBuilder getInfoOrBuilder() { + return info_ == null ? org.jumpserver.wisp.ServiceOuterClass.TicketInfo.getDefaultInstance() : info_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStatus()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getInfo()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStatus()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getInfo()); + } + 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.ServiceOuterClass.CommandConfirmResponse)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse other = (org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse) obj; + + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (hasInfo() != other.hasInfo()) return false; + if (hasInfo()) { + if (!getInfo() + .equals(other.getInfo())) 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(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + if (hasInfo()) { + hash = (37 * hash) + INFO_FIELD_NUMBER; + hash = (53 * hash) + getInfo().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse 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.ServiceOuterClass.CommandConfirmResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse 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.ServiceOuterClass.CommandConfirmResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse 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.ServiceOuterClass.CommandConfirmResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse 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.ServiceOuterClass.CommandConfirmResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse 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.ServiceOuterClass.CommandConfirmResponse 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.CommandConfirmResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.CommandConfirmResponse) + org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_CommandConfirmResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_CommandConfirmResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse.class, org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getStatusFieldBuilder(); + getInfoFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + info_ = null; + if (infoBuilder_ != null) { + infoBuilder_.dispose(); + infoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_CommandConfirmResponse_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse build() { + org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse result = new org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.info_ = infoBuilder_ == null + ? info_ + : infoBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + if (other.hasInfo()) { + mergeInfo(other.getInfo()); + } + 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: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getInfoFieldBuilder().getBuilder(), + extensionRegistry); + 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 org.jumpserver.wisp.ServiceOuterClass.Status status_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> statusBuilder_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * .message.Status status = 1; + */ + public Builder setStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder setStatus( + org.jumpserver.wisp.ServiceOuterClass.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder mergeStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + status_ != null && + status_ != org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .message.Status status = 1; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.Status.Builder getStatusBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + } + /** + * .message.Status status = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + private org.jumpserver.wisp.ServiceOuterClass.TicketInfo info_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.TicketInfo, org.jumpserver.wisp.ServiceOuterClass.TicketInfo.Builder, org.jumpserver.wisp.ServiceOuterClass.TicketInfoOrBuilder> infoBuilder_; + /** + * .message.TicketInfo info = 2; + * @return Whether the info field is set. + */ + public boolean hasInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .message.TicketInfo info = 2; + * @return The info. + */ + public org.jumpserver.wisp.ServiceOuterClass.TicketInfo getInfo() { + if (infoBuilder_ == null) { + return info_ == null ? org.jumpserver.wisp.ServiceOuterClass.TicketInfo.getDefaultInstance() : info_; + } else { + return infoBuilder_.getMessage(); + } + } + /** + * .message.TicketInfo info = 2; + */ + public Builder setInfo(org.jumpserver.wisp.ServiceOuterClass.TicketInfo value) { + if (infoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + info_ = value; + } else { + infoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .message.TicketInfo info = 2; + */ + public Builder setInfo( + org.jumpserver.wisp.ServiceOuterClass.TicketInfo.Builder builderForValue) { + if (infoBuilder_ == null) { + info_ = builderForValue.build(); + } else { + infoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .message.TicketInfo info = 2; + */ + public Builder mergeInfo(org.jumpserver.wisp.ServiceOuterClass.TicketInfo value) { + if (infoBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + info_ != null && + info_ != org.jumpserver.wisp.ServiceOuterClass.TicketInfo.getDefaultInstance()) { + getInfoBuilder().mergeFrom(value); + } else { + info_ = value; + } + } else { + infoBuilder_.mergeFrom(value); + } + if (info_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .message.TicketInfo info = 2; + */ + public Builder clearInfo() { + bitField0_ = (bitField0_ & ~0x00000002); + info_ = null; + if (infoBuilder_ != null) { + infoBuilder_.dispose(); + infoBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.TicketInfo info = 2; + */ + public org.jumpserver.wisp.ServiceOuterClass.TicketInfo.Builder getInfoBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getInfoFieldBuilder().getBuilder(); + } + /** + * .message.TicketInfo info = 2; + */ + public org.jumpserver.wisp.ServiceOuterClass.TicketInfoOrBuilder getInfoOrBuilder() { + if (infoBuilder_ != null) { + return infoBuilder_.getMessageOrBuilder(); + } else { + return info_ == null ? + org.jumpserver.wisp.ServiceOuterClass.TicketInfo.getDefaultInstance() : info_; + } + } + /** + * .message.TicketInfo info = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.TicketInfo, org.jumpserver.wisp.ServiceOuterClass.TicketInfo.Builder, org.jumpserver.wisp.ServiceOuterClass.TicketInfoOrBuilder> + getInfoFieldBuilder() { + if (infoBuilder_ == null) { + infoBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.TicketInfo, org.jumpserver.wisp.ServiceOuterClass.TicketInfo.Builder, org.jumpserver.wisp.ServiceOuterClass.TicketInfoOrBuilder>( + getInfo(), + getParentForChildren(), + isClean()); + info_ = null; + } + return infoBuilder_; + } + + // @@protoc_insertion_point(builder_scope:message.CommandConfirmResponse) + } + + // @@protoc_insertion_point(class_scope:message.CommandConfirmResponse) + private static final org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.CommandConfirmResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommandConfirmResponse 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.ServiceOuterClass.CommandConfirmResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TicketInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.TicketInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * .message.ReqInfo check_req = 1; + * @return Whether the checkReq field is set. + */ + boolean hasCheckReq(); + /** + * .message.ReqInfo check_req = 1; + * @return The checkReq. + */ + org.jumpserver.wisp.ServiceOuterClass.ReqInfo getCheckReq(); + /** + * .message.ReqInfo check_req = 1; + */ + org.jumpserver.wisp.ServiceOuterClass.ReqInfoOrBuilder getCheckReqOrBuilder(); + + /** + * .message.ReqInfo cancel_req = 2; + * @return Whether the cancelReq field is set. + */ + boolean hasCancelReq(); + /** + * .message.ReqInfo cancel_req = 2; + * @return The cancelReq. + */ + org.jumpserver.wisp.ServiceOuterClass.ReqInfo getCancelReq(); + /** + * .message.ReqInfo cancel_req = 2; + */ + org.jumpserver.wisp.ServiceOuterClass.ReqInfoOrBuilder getCancelReqOrBuilder(); + + /** + * string ticket_detail_url = 3; + * @return The ticketDetailUrl. + */ + java.lang.String getTicketDetailUrl(); + /** + * string ticket_detail_url = 3; + * @return The bytes for ticketDetailUrl. + */ + com.google.protobuf.ByteString + getTicketDetailUrlBytes(); + + /** + * repeated string reviewers = 4; + * @return A list containing the reviewers. + */ + java.util.List + getReviewersList(); + /** + * repeated string reviewers = 4; + * @return The count of reviewers. + */ + int getReviewersCount(); + /** + * repeated string reviewers = 4; + * @param index The index of the element to return. + * @return The reviewers at the given index. + */ + java.lang.String getReviewers(int index); + /** + * repeated string reviewers = 4; + * @param index The index of the value to return. + * @return The bytes of the reviewers at the given index. + */ + com.google.protobuf.ByteString + getReviewersBytes(int index); + } + /** + * Protobuf type {@code message.TicketInfo} + */ + public static final class TicketInfo extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.TicketInfo) + TicketInfoOrBuilder { + 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= */ "", + TicketInfo.class.getName()); + } + // Use TicketInfo.newBuilder() to construct. + private TicketInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private TicketInfo() { + ticketDetailUrl_ = ""; + reviewers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TicketInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TicketInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.TicketInfo.class, org.jumpserver.wisp.ServiceOuterClass.TicketInfo.Builder.class); + } + + private int bitField0_; + public static final int CHECK_REQ_FIELD_NUMBER = 1; + private org.jumpserver.wisp.ServiceOuterClass.ReqInfo checkReq_; + /** + * .message.ReqInfo check_req = 1; + * @return Whether the checkReq field is set. + */ + @java.lang.Override + public boolean hasCheckReq() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.ReqInfo check_req = 1; + * @return The checkReq. + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ReqInfo getCheckReq() { + return checkReq_ == null ? org.jumpserver.wisp.ServiceOuterClass.ReqInfo.getDefaultInstance() : checkReq_; + } + /** + * .message.ReqInfo check_req = 1; + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ReqInfoOrBuilder getCheckReqOrBuilder() { + return checkReq_ == null ? org.jumpserver.wisp.ServiceOuterClass.ReqInfo.getDefaultInstance() : checkReq_; + } + + public static final int CANCEL_REQ_FIELD_NUMBER = 2; + private org.jumpserver.wisp.ServiceOuterClass.ReqInfo cancelReq_; + /** + * .message.ReqInfo cancel_req = 2; + * @return Whether the cancelReq field is set. + */ + @java.lang.Override + public boolean hasCancelReq() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .message.ReqInfo cancel_req = 2; + * @return The cancelReq. + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ReqInfo getCancelReq() { + return cancelReq_ == null ? org.jumpserver.wisp.ServiceOuterClass.ReqInfo.getDefaultInstance() : cancelReq_; + } + /** + * .message.ReqInfo cancel_req = 2; + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ReqInfoOrBuilder getCancelReqOrBuilder() { + return cancelReq_ == null ? org.jumpserver.wisp.ServiceOuterClass.ReqInfo.getDefaultInstance() : cancelReq_; + } + + public static final int TICKET_DETAIL_URL_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object ticketDetailUrl_ = ""; + /** + * string ticket_detail_url = 3; + * @return The ticketDetailUrl. + */ + @java.lang.Override + public java.lang.String getTicketDetailUrl() { + java.lang.Object ref = ticketDetailUrl_; + 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(); + ticketDetailUrl_ = s; + return s; + } + } + /** + * string ticket_detail_url = 3; + * @return The bytes for ticketDetailUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTicketDetailUrlBytes() { + java.lang.Object ref = ticketDetailUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ticketDetailUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REVIEWERS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList reviewers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string reviewers = 4; + * @return A list containing the reviewers. + */ + public com.google.protobuf.ProtocolStringList + getReviewersList() { + return reviewers_; + } + /** + * repeated string reviewers = 4; + * @return The count of reviewers. + */ + public int getReviewersCount() { + return reviewers_.size(); + } + /** + * repeated string reviewers = 4; + * @param index The index of the element to return. + * @return The reviewers at the given index. + */ + public java.lang.String getReviewers(int index) { + return reviewers_.get(index); + } + /** + * repeated string reviewers = 4; + * @param index The index of the value to return. + * @return The bytes of the reviewers at the given index. + */ + public com.google.protobuf.ByteString + getReviewersBytes(int index) { + return reviewers_.getByteString(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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCheckReq()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getCancelReq()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ticketDetailUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, ticketDetailUrl_); + } + for (int i = 0; i < reviewers_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, reviewers_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCheckReq()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCancelReq()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ticketDetailUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, ticketDetailUrl_); + } + { + int dataSize = 0; + for (int i = 0; i < reviewers_.size(); i++) { + dataSize += computeStringSizeNoTag(reviewers_.getRaw(i)); + } + size += dataSize; + size += 1 * getReviewersList().size(); + } + 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.ServiceOuterClass.TicketInfo)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.TicketInfo other = (org.jumpserver.wisp.ServiceOuterClass.TicketInfo) obj; + + if (hasCheckReq() != other.hasCheckReq()) return false; + if (hasCheckReq()) { + if (!getCheckReq() + .equals(other.getCheckReq())) return false; + } + if (hasCancelReq() != other.hasCancelReq()) return false; + if (hasCancelReq()) { + if (!getCancelReq() + .equals(other.getCancelReq())) return false; + } + if (!getTicketDetailUrl() + .equals(other.getTicketDetailUrl())) return false; + if (!getReviewersList() + .equals(other.getReviewersList())) 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(); + if (hasCheckReq()) { + hash = (37 * hash) + CHECK_REQ_FIELD_NUMBER; + hash = (53 * hash) + getCheckReq().hashCode(); + } + if (hasCancelReq()) { + hash = (37 * hash) + CANCEL_REQ_FIELD_NUMBER; + hash = (53 * hash) + getCancelReq().hashCode(); + } + hash = (37 * hash) + TICKET_DETAIL_URL_FIELD_NUMBER; + hash = (53 * hash) + getTicketDetailUrl().hashCode(); + if (getReviewersCount() > 0) { + hash = (37 * hash) + REVIEWERS_FIELD_NUMBER; + hash = (53 * hash) + getReviewersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.TicketInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.TicketInfo 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.ServiceOuterClass.TicketInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.TicketInfo 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.ServiceOuterClass.TicketInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.TicketInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.TicketInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.TicketInfo 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.ServiceOuterClass.TicketInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.TicketInfo 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.ServiceOuterClass.TicketInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.TicketInfo 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.ServiceOuterClass.TicketInfo 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.TicketInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.TicketInfo) + org.jumpserver.wisp.ServiceOuterClass.TicketInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TicketInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TicketInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.TicketInfo.class, org.jumpserver.wisp.ServiceOuterClass.TicketInfo.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.TicketInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getCheckReqFieldBuilder(); + getCancelReqFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + checkReq_ = null; + if (checkReqBuilder_ != null) { + checkReqBuilder_.dispose(); + checkReqBuilder_ = null; + } + cancelReq_ = null; + if (cancelReqBuilder_ != null) { + cancelReqBuilder_.dispose(); + cancelReqBuilder_ = null; + } + ticketDetailUrl_ = ""; + reviewers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TicketInfo_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TicketInfo getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.TicketInfo.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TicketInfo build() { + org.jumpserver.wisp.ServiceOuterClass.TicketInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TicketInfo buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.TicketInfo result = new org.jumpserver.wisp.ServiceOuterClass.TicketInfo(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.TicketInfo result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.checkReq_ = checkReqBuilder_ == null + ? checkReq_ + : checkReqBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.cancelReq_ = cancelReqBuilder_ == null + ? cancelReq_ + : cancelReqBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.ticketDetailUrl_ = ticketDetailUrl_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + reviewers_.makeImmutable(); + result.reviewers_ = reviewers_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.TicketInfo) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.TicketInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.TicketInfo other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.TicketInfo.getDefaultInstance()) return this; + if (other.hasCheckReq()) { + mergeCheckReq(other.getCheckReq()); + } + if (other.hasCancelReq()) { + mergeCancelReq(other.getCancelReq()); + } + if (!other.getTicketDetailUrl().isEmpty()) { + ticketDetailUrl_ = other.ticketDetailUrl_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.reviewers_.isEmpty()) { + if (reviewers_.isEmpty()) { + reviewers_ = other.reviewers_; + bitField0_ |= 0x00000008; + } else { + ensureReviewersIsMutable(); + reviewers_.addAll(other.reviewers_); + } + 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: { + input.readMessage( + getCheckReqFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getCancelReqFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + ticketDetailUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureReviewersIsMutable(); + reviewers_.add(s); + 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 org.jumpserver.wisp.ServiceOuterClass.ReqInfo checkReq_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.ReqInfo, org.jumpserver.wisp.ServiceOuterClass.ReqInfo.Builder, org.jumpserver.wisp.ServiceOuterClass.ReqInfoOrBuilder> checkReqBuilder_; + /** + * .message.ReqInfo check_req = 1; + * @return Whether the checkReq field is set. + */ + public boolean hasCheckReq() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.ReqInfo check_req = 1; + * @return The checkReq. + */ + public org.jumpserver.wisp.ServiceOuterClass.ReqInfo getCheckReq() { + if (checkReqBuilder_ == null) { + return checkReq_ == null ? org.jumpserver.wisp.ServiceOuterClass.ReqInfo.getDefaultInstance() : checkReq_; + } else { + return checkReqBuilder_.getMessage(); + } + } + /** + * .message.ReqInfo check_req = 1; + */ + public Builder setCheckReq(org.jumpserver.wisp.ServiceOuterClass.ReqInfo value) { + if (checkReqBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + checkReq_ = value; + } else { + checkReqBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.ReqInfo check_req = 1; + */ + public Builder setCheckReq( + org.jumpserver.wisp.ServiceOuterClass.ReqInfo.Builder builderForValue) { + if (checkReqBuilder_ == null) { + checkReq_ = builderForValue.build(); + } else { + checkReqBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.ReqInfo check_req = 1; + */ + public Builder mergeCheckReq(org.jumpserver.wisp.ServiceOuterClass.ReqInfo value) { + if (checkReqBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + checkReq_ != null && + checkReq_ != org.jumpserver.wisp.ServiceOuterClass.ReqInfo.getDefaultInstance()) { + getCheckReqBuilder().mergeFrom(value); + } else { + checkReq_ = value; + } + } else { + checkReqBuilder_.mergeFrom(value); + } + if (checkReq_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .message.ReqInfo check_req = 1; + */ + public Builder clearCheckReq() { + bitField0_ = (bitField0_ & ~0x00000001); + checkReq_ = null; + if (checkReqBuilder_ != null) { + checkReqBuilder_.dispose(); + checkReqBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.ReqInfo check_req = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.ReqInfo.Builder getCheckReqBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCheckReqFieldBuilder().getBuilder(); + } + /** + * .message.ReqInfo check_req = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.ReqInfoOrBuilder getCheckReqOrBuilder() { + if (checkReqBuilder_ != null) { + return checkReqBuilder_.getMessageOrBuilder(); + } else { + return checkReq_ == null ? + org.jumpserver.wisp.ServiceOuterClass.ReqInfo.getDefaultInstance() : checkReq_; + } + } + /** + * .message.ReqInfo check_req = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.ReqInfo, org.jumpserver.wisp.ServiceOuterClass.ReqInfo.Builder, org.jumpserver.wisp.ServiceOuterClass.ReqInfoOrBuilder> + getCheckReqFieldBuilder() { + if (checkReqBuilder_ == null) { + checkReqBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.ReqInfo, org.jumpserver.wisp.ServiceOuterClass.ReqInfo.Builder, org.jumpserver.wisp.ServiceOuterClass.ReqInfoOrBuilder>( + getCheckReq(), + getParentForChildren(), + isClean()); + checkReq_ = null; + } + return checkReqBuilder_; + } + + private org.jumpserver.wisp.ServiceOuterClass.ReqInfo cancelReq_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.ReqInfo, org.jumpserver.wisp.ServiceOuterClass.ReqInfo.Builder, org.jumpserver.wisp.ServiceOuterClass.ReqInfoOrBuilder> cancelReqBuilder_; + /** + * .message.ReqInfo cancel_req = 2; + * @return Whether the cancelReq field is set. + */ + public boolean hasCancelReq() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .message.ReqInfo cancel_req = 2; + * @return The cancelReq. + */ + public org.jumpserver.wisp.ServiceOuterClass.ReqInfo getCancelReq() { + if (cancelReqBuilder_ == null) { + return cancelReq_ == null ? org.jumpserver.wisp.ServiceOuterClass.ReqInfo.getDefaultInstance() : cancelReq_; + } else { + return cancelReqBuilder_.getMessage(); + } + } + /** + * .message.ReqInfo cancel_req = 2; + */ + public Builder setCancelReq(org.jumpserver.wisp.ServiceOuterClass.ReqInfo value) { + if (cancelReqBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cancelReq_ = value; + } else { + cancelReqBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .message.ReqInfo cancel_req = 2; + */ + public Builder setCancelReq( + org.jumpserver.wisp.ServiceOuterClass.ReqInfo.Builder builderForValue) { + if (cancelReqBuilder_ == null) { + cancelReq_ = builderForValue.build(); + } else { + cancelReqBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .message.ReqInfo cancel_req = 2; + */ + public Builder mergeCancelReq(org.jumpserver.wisp.ServiceOuterClass.ReqInfo value) { + if (cancelReqBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + cancelReq_ != null && + cancelReq_ != org.jumpserver.wisp.ServiceOuterClass.ReqInfo.getDefaultInstance()) { + getCancelReqBuilder().mergeFrom(value); + } else { + cancelReq_ = value; + } + } else { + cancelReqBuilder_.mergeFrom(value); + } + if (cancelReq_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .message.ReqInfo cancel_req = 2; + */ + public Builder clearCancelReq() { + bitField0_ = (bitField0_ & ~0x00000002); + cancelReq_ = null; + if (cancelReqBuilder_ != null) { + cancelReqBuilder_.dispose(); + cancelReqBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.ReqInfo cancel_req = 2; + */ + public org.jumpserver.wisp.ServiceOuterClass.ReqInfo.Builder getCancelReqBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCancelReqFieldBuilder().getBuilder(); + } + /** + * .message.ReqInfo cancel_req = 2; + */ + public org.jumpserver.wisp.ServiceOuterClass.ReqInfoOrBuilder getCancelReqOrBuilder() { + if (cancelReqBuilder_ != null) { + return cancelReqBuilder_.getMessageOrBuilder(); + } else { + return cancelReq_ == null ? + org.jumpserver.wisp.ServiceOuterClass.ReqInfo.getDefaultInstance() : cancelReq_; + } + } + /** + * .message.ReqInfo cancel_req = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.ReqInfo, org.jumpserver.wisp.ServiceOuterClass.ReqInfo.Builder, org.jumpserver.wisp.ServiceOuterClass.ReqInfoOrBuilder> + getCancelReqFieldBuilder() { + if (cancelReqBuilder_ == null) { + cancelReqBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.ReqInfo, org.jumpserver.wisp.ServiceOuterClass.ReqInfo.Builder, org.jumpserver.wisp.ServiceOuterClass.ReqInfoOrBuilder>( + getCancelReq(), + getParentForChildren(), + isClean()); + cancelReq_ = null; + } + return cancelReqBuilder_; + } + + private java.lang.Object ticketDetailUrl_ = ""; + /** + * string ticket_detail_url = 3; + * @return The ticketDetailUrl. + */ + public java.lang.String getTicketDetailUrl() { + java.lang.Object ref = ticketDetailUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ticketDetailUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string ticket_detail_url = 3; + * @return The bytes for ticketDetailUrl. + */ + public com.google.protobuf.ByteString + getTicketDetailUrlBytes() { + java.lang.Object ref = ticketDetailUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ticketDetailUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string ticket_detail_url = 3; + * @param value The ticketDetailUrl to set. + * @return This builder for chaining. + */ + public Builder setTicketDetailUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ticketDetailUrl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string ticket_detail_url = 3; + * @return This builder for chaining. + */ + public Builder clearTicketDetailUrl() { + ticketDetailUrl_ = getDefaultInstance().getTicketDetailUrl(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string ticket_detail_url = 3; + * @param value The bytes for ticketDetailUrl to set. + * @return This builder for chaining. + */ + public Builder setTicketDetailUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ticketDetailUrl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList reviewers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureReviewersIsMutable() { + if (!reviewers_.isModifiable()) { + reviewers_ = new com.google.protobuf.LazyStringArrayList(reviewers_); + } + bitField0_ |= 0x00000008; + } + /** + * repeated string reviewers = 4; + * @return A list containing the reviewers. + */ + public com.google.protobuf.ProtocolStringList + getReviewersList() { + reviewers_.makeImmutable(); + return reviewers_; + } + /** + * repeated string reviewers = 4; + * @return The count of reviewers. + */ + public int getReviewersCount() { + return reviewers_.size(); + } + /** + * repeated string reviewers = 4; + * @param index The index of the element to return. + * @return The reviewers at the given index. + */ + public java.lang.String getReviewers(int index) { + return reviewers_.get(index); + } + /** + * repeated string reviewers = 4; + * @param index The index of the value to return. + * @return The bytes of the reviewers at the given index. + */ + public com.google.protobuf.ByteString + getReviewersBytes(int index) { + return reviewers_.getByteString(index); + } + /** + * repeated string reviewers = 4; + * @param index The index to set the value at. + * @param value The reviewers to set. + * @return This builder for chaining. + */ + public Builder setReviewers( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureReviewersIsMutable(); + reviewers_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * repeated string reviewers = 4; + * @param value The reviewers to add. + * @return This builder for chaining. + */ + public Builder addReviewers( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureReviewersIsMutable(); + reviewers_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * repeated string reviewers = 4; + * @param values The reviewers to add. + * @return This builder for chaining. + */ + public Builder addAllReviewers( + java.lang.Iterable values) { + ensureReviewersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, reviewers_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * repeated string reviewers = 4; + * @return This builder for chaining. + */ + public Builder clearReviewers() { + reviewers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; + onChanged(); + return this; + } + /** + * repeated string reviewers = 4; + * @param value The bytes of the reviewers to add. + * @return This builder for chaining. + */ + public Builder addReviewersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureReviewersIsMutable(); + reviewers_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:message.TicketInfo) + } + + // @@protoc_insertion_point(class_scope:message.TicketInfo) + private static final org.jumpserver.wisp.ServiceOuterClass.TicketInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.TicketInfo(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.TicketInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TicketInfo 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.ServiceOuterClass.TicketInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TicketRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.TicketRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .message.ReqInfo req = 1; + * @return Whether the req field is set. + */ + boolean hasReq(); + /** + * .message.ReqInfo req = 1; + * @return The req. + */ + org.jumpserver.wisp.ServiceOuterClass.ReqInfo getReq(); + /** + * .message.ReqInfo req = 1; + */ + org.jumpserver.wisp.ServiceOuterClass.ReqInfoOrBuilder getReqOrBuilder(); + } + /** + * Protobuf type {@code message.TicketRequest} + */ + public static final class TicketRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.TicketRequest) + TicketRequestOrBuilder { + 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= */ "", + TicketRequest.class.getName()); + } + // Use TicketRequest.newBuilder() to construct. + private TicketRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private TicketRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TicketRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TicketRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.TicketRequest.class, org.jumpserver.wisp.ServiceOuterClass.TicketRequest.Builder.class); + } + + private int bitField0_; + public static final int REQ_FIELD_NUMBER = 1; + private org.jumpserver.wisp.ServiceOuterClass.ReqInfo req_; + /** + * .message.ReqInfo req = 1; + * @return Whether the req field is set. + */ + @java.lang.Override + public boolean hasReq() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.ReqInfo req = 1; + * @return The req. + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ReqInfo getReq() { + return req_ == null ? org.jumpserver.wisp.ServiceOuterClass.ReqInfo.getDefaultInstance() : req_; + } + /** + * .message.ReqInfo req = 1; + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ReqInfoOrBuilder getReqOrBuilder() { + return req_ == null ? org.jumpserver.wisp.ServiceOuterClass.ReqInfo.getDefaultInstance() : req_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getReq()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getReq()); + } + 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.ServiceOuterClass.TicketRequest)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.TicketRequest other = (org.jumpserver.wisp.ServiceOuterClass.TicketRequest) obj; + + if (hasReq() != other.hasReq()) return false; + if (hasReq()) { + if (!getReq() + .equals(other.getReq())) 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(); + if (hasReq()) { + hash = (37 * hash) + REQ_FIELD_NUMBER; + hash = (53 * hash) + getReq().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.TicketRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.TicketRequest 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.ServiceOuterClass.TicketRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.TicketRequest 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.ServiceOuterClass.TicketRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.TicketRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.TicketRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.TicketRequest 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.ServiceOuterClass.TicketRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.TicketRequest 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.ServiceOuterClass.TicketRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.TicketRequest 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.ServiceOuterClass.TicketRequest 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.TicketRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.TicketRequest) + org.jumpserver.wisp.ServiceOuterClass.TicketRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TicketRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TicketRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.TicketRequest.class, org.jumpserver.wisp.ServiceOuterClass.TicketRequest.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.TicketRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getReqFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + req_ = null; + if (reqBuilder_ != null) { + reqBuilder_.dispose(); + reqBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TicketRequest_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TicketRequest getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.TicketRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TicketRequest build() { + org.jumpserver.wisp.ServiceOuterClass.TicketRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TicketRequest buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.TicketRequest result = new org.jumpserver.wisp.ServiceOuterClass.TicketRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.TicketRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.req_ = reqBuilder_ == null + ? req_ + : reqBuilder_.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.ServiceOuterClass.TicketRequest) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.TicketRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.TicketRequest other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.TicketRequest.getDefaultInstance()) return this; + if (other.hasReq()) { + mergeReq(other.getReq()); + } + 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: { + input.readMessage( + getReqFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + 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 org.jumpserver.wisp.ServiceOuterClass.ReqInfo req_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.ReqInfo, org.jumpserver.wisp.ServiceOuterClass.ReqInfo.Builder, org.jumpserver.wisp.ServiceOuterClass.ReqInfoOrBuilder> reqBuilder_; + /** + * .message.ReqInfo req = 1; + * @return Whether the req field is set. + */ + public boolean hasReq() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.ReqInfo req = 1; + * @return The req. + */ + public org.jumpserver.wisp.ServiceOuterClass.ReqInfo getReq() { + if (reqBuilder_ == null) { + return req_ == null ? org.jumpserver.wisp.ServiceOuterClass.ReqInfo.getDefaultInstance() : req_; + } else { + return reqBuilder_.getMessage(); + } + } + /** + * .message.ReqInfo req = 1; + */ + public Builder setReq(org.jumpserver.wisp.ServiceOuterClass.ReqInfo value) { + if (reqBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + req_ = value; + } else { + reqBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.ReqInfo req = 1; + */ + public Builder setReq( + org.jumpserver.wisp.ServiceOuterClass.ReqInfo.Builder builderForValue) { + if (reqBuilder_ == null) { + req_ = builderForValue.build(); + } else { + reqBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.ReqInfo req = 1; + */ + public Builder mergeReq(org.jumpserver.wisp.ServiceOuterClass.ReqInfo value) { + if (reqBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + req_ != null && + req_ != org.jumpserver.wisp.ServiceOuterClass.ReqInfo.getDefaultInstance()) { + getReqBuilder().mergeFrom(value); + } else { + req_ = value; + } + } else { + reqBuilder_.mergeFrom(value); + } + if (req_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .message.ReqInfo req = 1; + */ + public Builder clearReq() { + bitField0_ = (bitField0_ & ~0x00000001); + req_ = null; + if (reqBuilder_ != null) { + reqBuilder_.dispose(); + reqBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.ReqInfo req = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.ReqInfo.Builder getReqBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getReqFieldBuilder().getBuilder(); + } + /** + * .message.ReqInfo req = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.ReqInfoOrBuilder getReqOrBuilder() { + if (reqBuilder_ != null) { + return reqBuilder_.getMessageOrBuilder(); + } else { + return req_ == null ? + org.jumpserver.wisp.ServiceOuterClass.ReqInfo.getDefaultInstance() : req_; + } + } + /** + * .message.ReqInfo req = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.ReqInfo, org.jumpserver.wisp.ServiceOuterClass.ReqInfo.Builder, org.jumpserver.wisp.ServiceOuterClass.ReqInfoOrBuilder> + getReqFieldBuilder() { + if (reqBuilder_ == null) { + reqBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.ReqInfo, org.jumpserver.wisp.ServiceOuterClass.ReqInfo.Builder, org.jumpserver.wisp.ServiceOuterClass.ReqInfoOrBuilder>( + getReq(), + getParentForChildren(), + isClean()); + req_ = null; + } + return reqBuilder_; + } + + // @@protoc_insertion_point(builder_scope:message.TicketRequest) + } + + // @@protoc_insertion_point(class_scope:message.TicketRequest) + private static final org.jumpserver.wisp.ServiceOuterClass.TicketRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.TicketRequest(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.TicketRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TicketRequest 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.ServiceOuterClass.TicketRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TicketStateResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.TicketStateResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .message.TicketState Data = 1; + * @return Whether the data field is set. + */ + boolean hasData(); + /** + * .message.TicketState Data = 1; + * @return The data. + */ + org.jumpserver.wisp.ServiceOuterClass.TicketState getData(); + /** + * .message.TicketState Data = 1; + */ + org.jumpserver.wisp.ServiceOuterClass.TicketStateOrBuilder getDataOrBuilder(); + + /** + * .message.Status status = 2; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .message.Status status = 2; + * @return The status. + */ + org.jumpserver.wisp.ServiceOuterClass.Status getStatus(); + /** + * .message.Status status = 2; + */ + org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder(); + } + /** + * Protobuf type {@code message.TicketStateResponse} + */ + public static final class TicketStateResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.TicketStateResponse) + TicketStateResponseOrBuilder { + 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= */ "", + TicketStateResponse.class.getName()); + } + // Use TicketStateResponse.newBuilder() to construct. + private TicketStateResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private TicketStateResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TicketStateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TicketStateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse.class, org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse.Builder.class); + } + + private int bitField0_; + public static final int DATA_FIELD_NUMBER = 1; + private org.jumpserver.wisp.ServiceOuterClass.TicketState data_; + /** + * .message.TicketState Data = 1; + * @return Whether the data field is set. + */ + @java.lang.Override + public boolean hasData() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.TicketState Data = 1; + * @return The data. + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TicketState getData() { + return data_ == null ? org.jumpserver.wisp.ServiceOuterClass.TicketState.getDefaultInstance() : data_; + } + /** + * .message.TicketState Data = 1; + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TicketStateOrBuilder getDataOrBuilder() { + return data_ == null ? org.jumpserver.wisp.ServiceOuterClass.TicketState.getDefaultInstance() : data_; + } + + public static final int STATUS_FIELD_NUMBER = 2; + private org.jumpserver.wisp.ServiceOuterClass.Status status_; + /** + * .message.Status status = 2; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .message.Status status = 2; + * @return The status. + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + /** + * .message.Status status = 2; + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getData()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getStatus()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getData()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStatus()); + } + 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.ServiceOuterClass.TicketStateResponse)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse other = (org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse) obj; + + if (hasData() != other.hasData()) return false; + if (hasData()) { + if (!getData() + .equals(other.getData())) return false; + } + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) 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(); + if (hasData()) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse 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.ServiceOuterClass.TicketStateResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse 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.ServiceOuterClass.TicketStateResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse 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.ServiceOuterClass.TicketStateResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse 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.ServiceOuterClass.TicketStateResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse 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.ServiceOuterClass.TicketStateResponse 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.TicketStateResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.TicketStateResponse) + org.jumpserver.wisp.ServiceOuterClass.TicketStateResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TicketStateResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TicketStateResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse.class, org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getDataFieldBuilder(); + getStatusFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + data_ = null; + if (dataBuilder_ != null) { + dataBuilder_.dispose(); + dataBuilder_ = null; + } + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TicketStateResponse_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse build() { + org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse result = new org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.data_ = dataBuilder_ == null + ? data_ + : dataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse.getDefaultInstance()) return this; + if (other.hasData()) { + mergeData(other.getData()); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + 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: { + input.readMessage( + getDataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + 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 org.jumpserver.wisp.ServiceOuterClass.TicketState data_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.TicketState, org.jumpserver.wisp.ServiceOuterClass.TicketState.Builder, org.jumpserver.wisp.ServiceOuterClass.TicketStateOrBuilder> dataBuilder_; + /** + * .message.TicketState Data = 1; + * @return Whether the data field is set. + */ + public boolean hasData() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.TicketState Data = 1; + * @return The data. + */ + public org.jumpserver.wisp.ServiceOuterClass.TicketState getData() { + if (dataBuilder_ == null) { + return data_ == null ? org.jumpserver.wisp.ServiceOuterClass.TicketState.getDefaultInstance() : data_; + } else { + return dataBuilder_.getMessage(); + } + } + /** + * .message.TicketState Data = 1; + */ + public Builder setData(org.jumpserver.wisp.ServiceOuterClass.TicketState value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + } else { + dataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.TicketState Data = 1; + */ + public Builder setData( + org.jumpserver.wisp.ServiceOuterClass.TicketState.Builder builderForValue) { + if (dataBuilder_ == null) { + data_ = builderForValue.build(); + } else { + dataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.TicketState Data = 1; + */ + public Builder mergeData(org.jumpserver.wisp.ServiceOuterClass.TicketState value) { + if (dataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + data_ != null && + data_ != org.jumpserver.wisp.ServiceOuterClass.TicketState.getDefaultInstance()) { + getDataBuilder().mergeFrom(value); + } else { + data_ = value; + } + } else { + dataBuilder_.mergeFrom(value); + } + if (data_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .message.TicketState Data = 1; + */ + public Builder clearData() { + bitField0_ = (bitField0_ & ~0x00000001); + data_ = null; + if (dataBuilder_ != null) { + dataBuilder_.dispose(); + dataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.TicketState Data = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.TicketState.Builder getDataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDataFieldBuilder().getBuilder(); + } + /** + * .message.TicketState Data = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.TicketStateOrBuilder getDataOrBuilder() { + if (dataBuilder_ != null) { + return dataBuilder_.getMessageOrBuilder(); + } else { + return data_ == null ? + org.jumpserver.wisp.ServiceOuterClass.TicketState.getDefaultInstance() : data_; + } + } + /** + * .message.TicketState Data = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.TicketState, org.jumpserver.wisp.ServiceOuterClass.TicketState.Builder, org.jumpserver.wisp.ServiceOuterClass.TicketStateOrBuilder> + getDataFieldBuilder() { + if (dataBuilder_ == null) { + dataBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.TicketState, org.jumpserver.wisp.ServiceOuterClass.TicketState.Builder, org.jumpserver.wisp.ServiceOuterClass.TicketStateOrBuilder>( + getData(), + getParentForChildren(), + isClean()); + data_ = null; + } + return dataBuilder_; + } + + private org.jumpserver.wisp.ServiceOuterClass.Status status_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> statusBuilder_; + /** + * .message.Status status = 2; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .message.Status status = 2; + * @return The status. + */ + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * .message.Status status = 2; + */ + public Builder setStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .message.Status status = 2; + */ + public Builder setStatus( + org.jumpserver.wisp.ServiceOuterClass.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .message.Status status = 2; + */ + public Builder mergeStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + status_ != null && + status_ != org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .message.Status status = 2; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000002); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.Status status = 2; + */ + public org.jumpserver.wisp.ServiceOuterClass.Status.Builder getStatusBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * .message.Status status = 2; + */ + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + } + /** + * .message.Status status = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + // @@protoc_insertion_point(builder_scope:message.TicketStateResponse) + } + + // @@protoc_insertion_point(class_scope:message.TicketStateResponse) + private static final org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.TicketStateResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TicketStateResponse 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.ServiceOuterClass.TicketStateResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TicketStateOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.TicketState) + com.google.protobuf.MessageOrBuilder { + + /** + * .message.TicketState.State state = 1; + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * .message.TicketState.State state = 1; + * @return The state. + */ + org.jumpserver.wisp.ServiceOuterClass.TicketState.State getState(); + + /** + * string processor = 2; + * @return The processor. + */ + java.lang.String getProcessor(); + /** + * string processor = 2; + * @return The bytes for processor. + */ + com.google.protobuf.ByteString + getProcessorBytes(); + } + /** + * Protobuf type {@code message.TicketState} + */ + public static final class TicketState extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.TicketState) + TicketStateOrBuilder { + 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= */ "", + TicketState.class.getName()); + } + // Use TicketState.newBuilder() to construct. + private TicketState(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private TicketState() { + state_ = 0; + processor_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TicketState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TicketState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.TicketState.class, org.jumpserver.wisp.ServiceOuterClass.TicketState.Builder.class); + } + + /** + * Protobuf enum {@code message.TicketState.State} + */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + * Open = 0; + */ + Open(0), + /** + * Approved = 1; + */ + Approved(1), + /** + * Rejected = 2; + */ + Rejected(2), + /** + * Closed = 3; + */ + Closed(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 26, + /* patch= */ 1, + /* suffix= */ "", + State.class.getName()); + } + /** + * Open = 0; + */ + public static final int Open_VALUE = 0; + /** + * Approved = 1; + */ + public static final int Approved_VALUE = 1; + /** + * Rejected = 2; + */ + public static final int Rejected_VALUE = 2; + /** + * Closed = 3; + */ + public static final int Closed_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 State 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 State forNumber(int value) { + switch (value) { + case 0: return Open; + case 1: return Approved; + case 2: return Rejected; + case 3: return Closed; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.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.ServiceOuterClass.TicketState.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:message.TicketState.State) + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_ = 0; + /** + * .message.TicketState.State state = 1; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + * .message.TicketState.State state = 1; + * @return The state. + */ + @java.lang.Override public org.jumpserver.wisp.ServiceOuterClass.TicketState.State getState() { + org.jumpserver.wisp.ServiceOuterClass.TicketState.State result = org.jumpserver.wisp.ServiceOuterClass.TicketState.State.forNumber(state_); + return result == null ? org.jumpserver.wisp.ServiceOuterClass.TicketState.State.UNRECOGNIZED : result; + } + + public static final int PROCESSOR_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object processor_ = ""; + /** + * string processor = 2; + * @return The processor. + */ + @java.lang.Override + public java.lang.String getProcessor() { + java.lang.Object ref = processor_; + 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(); + processor_ = s; + return s; + } + } + /** + * string processor = 2; + * @return The bytes for processor. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProcessorBytes() { + java.lang.Object ref = processor_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + processor_ = 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 (state_ != org.jumpserver.wisp.ServiceOuterClass.TicketState.State.Open.getNumber()) { + output.writeEnum(1, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(processor_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, processor_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ != org.jumpserver.wisp.ServiceOuterClass.TicketState.State.Open.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(processor_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, processor_); + } + 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.ServiceOuterClass.TicketState)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.TicketState other = (org.jumpserver.wisp.ServiceOuterClass.TicketState) obj; + + if (state_ != other.state_) return false; + if (!getProcessor() + .equals(other.getProcessor())) 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) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + PROCESSOR_FIELD_NUMBER; + hash = (53 * hash) + getProcessor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.TicketState parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.TicketState 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.ServiceOuterClass.TicketState parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.TicketState 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.ServiceOuterClass.TicketState parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.TicketState parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.TicketState parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.TicketState 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.ServiceOuterClass.TicketState parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.TicketState 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.ServiceOuterClass.TicketState parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.TicketState 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.ServiceOuterClass.TicketState 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.TicketState} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.TicketState) + org.jumpserver.wisp.ServiceOuterClass.TicketStateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TicketState_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TicketState_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.TicketState.class, org.jumpserver.wisp.ServiceOuterClass.TicketState.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.TicketState.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + state_ = 0; + processor_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_TicketState_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TicketState getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.TicketState.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TicketState build() { + org.jumpserver.wisp.ServiceOuterClass.TicketState result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TicketState buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.TicketState result = new org.jumpserver.wisp.ServiceOuterClass.TicketState(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.TicketState result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.processor_ = processor_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.TicketState) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.TicketState)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.TicketState other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.TicketState.getDefaultInstance()) return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getProcessor().isEmpty()) { + processor_ = other.processor_; + 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 8: { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + processor_ = 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 int state_ = 0; + /** + * .message.TicketState.State state = 1; + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override public int getStateValue() { + return state_; + } + /** + * .message.TicketState.State state = 1; + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.TicketState.State state = 1; + * @return The state. + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.TicketState.State getState() { + org.jumpserver.wisp.ServiceOuterClass.TicketState.State result = org.jumpserver.wisp.ServiceOuterClass.TicketState.State.forNumber(state_); + return result == null ? org.jumpserver.wisp.ServiceOuterClass.TicketState.State.UNRECOGNIZED : result; + } + /** + * .message.TicketState.State state = 1; + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(org.jumpserver.wisp.ServiceOuterClass.TicketState.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .message.TicketState.State state = 1; + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object processor_ = ""; + /** + * string processor = 2; + * @return The processor. + */ + public java.lang.String getProcessor() { + java.lang.Object ref = processor_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + processor_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string processor = 2; + * @return The bytes for processor. + */ + public com.google.protobuf.ByteString + getProcessorBytes() { + java.lang.Object ref = processor_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + processor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string processor = 2; + * @param value The processor to set. + * @return This builder for chaining. + */ + public Builder setProcessor( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + processor_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string processor = 2; + * @return This builder for chaining. + */ + public Builder clearProcessor() { + processor_ = getDefaultInstance().getProcessor(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string processor = 2; + * @param value The bytes for processor to set. + * @return This builder for chaining. + */ + public Builder setProcessorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + processor_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:message.TicketState) + } + + // @@protoc_insertion_point(class_scope:message.TicketState) + private static final org.jumpserver.wisp.ServiceOuterClass.TicketState DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.TicketState(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.TicketState getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TicketState 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.ServiceOuterClass.TicketState getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ForwardRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.ForwardRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string host = 1; + * @return The host. + */ + java.lang.String getHost(); + /** + * string host = 1; + * @return The bytes for host. + */ + com.google.protobuf.ByteString + getHostBytes(); + + /** + * int32 port = 2; + * @return The port. + */ + int getPort(); + + /** + * repeated .message.Gateway gateways = 3; + */ + java.util.List + getGatewaysList(); + /** + * repeated .message.Gateway gateways = 3; + */ + org.jumpserver.wisp.Common.Gateway getGateways(int index); + /** + * repeated .message.Gateway gateways = 3; + */ + int getGatewaysCount(); + /** + * repeated .message.Gateway gateways = 3; + */ + java.util.List + getGatewaysOrBuilderList(); + /** + * repeated .message.Gateway gateways = 3; + */ + org.jumpserver.wisp.Common.GatewayOrBuilder getGatewaysOrBuilder( + int index); + } + /** + * Protobuf type {@code message.ForwardRequest} + */ + public static final class ForwardRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.ForwardRequest) + ForwardRequestOrBuilder { + 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= */ "", + ForwardRequest.class.getName()); + } + // Use ForwardRequest.newBuilder() to construct. + private ForwardRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ForwardRequest() { + host_ = ""; + gateways_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ForwardRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ForwardRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.ForwardRequest.class, org.jumpserver.wisp.ServiceOuterClass.ForwardRequest.Builder.class); + } + + public static final int HOST_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object host_ = ""; + /** + * string host = 1; + * @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 = 1; + * @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 = 2; + private int port_ = 0; + /** + * int32 port = 2; + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + + public static final int GATEWAYS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private java.util.List gateways_; + /** + * repeated .message.Gateway gateways = 3; + */ + @java.lang.Override + public java.util.List getGatewaysList() { + return gateways_; + } + /** + * repeated .message.Gateway gateways = 3; + */ + @java.lang.Override + public java.util.List + getGatewaysOrBuilderList() { + return gateways_; + } + /** + * repeated .message.Gateway gateways = 3; + */ + @java.lang.Override + public int getGatewaysCount() { + return gateways_.size(); + } + /** + * repeated .message.Gateway gateways = 3; + */ + @java.lang.Override + public org.jumpserver.wisp.Common.Gateway getGateways(int index) { + return gateways_.get(index); + } + /** + * repeated .message.Gateway gateways = 3; + */ + @java.lang.Override + public org.jumpserver.wisp.Common.GatewayOrBuilder getGatewaysOrBuilder( + int index) { + return gateways_.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(host_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, host_); + } + if (port_ != 0) { + output.writeInt32(2, port_); + } + for (int i = 0; i < gateways_.size(); i++) { + output.writeMessage(3, gateways_.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(host_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, host_); + } + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, port_); + } + for (int i = 0; i < gateways_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, gateways_.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.ServiceOuterClass.ForwardRequest)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.ForwardRequest other = (org.jumpserver.wisp.ServiceOuterClass.ForwardRequest) obj; + + if (!getHost() + .equals(other.getHost())) return false; + if (getPort() + != other.getPort()) return false; + if (!getGatewaysList() + .equals(other.getGatewaysList())) 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) + HOST_FIELD_NUMBER; + hash = (53 * hash) + getHost().hashCode(); + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort(); + if (getGatewaysCount() > 0) { + hash = (37 * hash) + GATEWAYS_FIELD_NUMBER; + hash = (53 * hash) + getGatewaysList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.ForwardRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.ForwardRequest 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.ServiceOuterClass.ForwardRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.ForwardRequest 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.ServiceOuterClass.ForwardRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.ForwardRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.ForwardRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.ForwardRequest 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.ServiceOuterClass.ForwardRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.ForwardRequest 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.ServiceOuterClass.ForwardRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.ForwardRequest 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.ServiceOuterClass.ForwardRequest 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.ForwardRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.ForwardRequest) + org.jumpserver.wisp.ServiceOuterClass.ForwardRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ForwardRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ForwardRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.ForwardRequest.class, org.jumpserver.wisp.ServiceOuterClass.ForwardRequest.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.ForwardRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + host_ = ""; + port_ = 0; + if (gatewaysBuilder_ == null) { + gateways_ = java.util.Collections.emptyList(); + } else { + gateways_ = null; + gatewaysBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ForwardRequest_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ForwardRequest getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.ForwardRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ForwardRequest build() { + org.jumpserver.wisp.ServiceOuterClass.ForwardRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ForwardRequest buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.ForwardRequest result = new org.jumpserver.wisp.ServiceOuterClass.ForwardRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(org.jumpserver.wisp.ServiceOuterClass.ForwardRequest result) { + if (gatewaysBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + gateways_ = java.util.Collections.unmodifiableList(gateways_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.gateways_ = gateways_; + } else { + result.gateways_ = gatewaysBuilder_.build(); + } + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.ForwardRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.host_ = host_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.port_ = port_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.ForwardRequest) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.ForwardRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.ForwardRequest other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.ForwardRequest.getDefaultInstance()) return this; + if (!other.getHost().isEmpty()) { + host_ = other.host_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPort() != 0) { + setPort(other.getPort()); + } + if (gatewaysBuilder_ == null) { + if (!other.gateways_.isEmpty()) { + if (gateways_.isEmpty()) { + gateways_ = other.gateways_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureGatewaysIsMutable(); + gateways_.addAll(other.gateways_); + } + onChanged(); + } + } else { + if (!other.gateways_.isEmpty()) { + if (gatewaysBuilder_.isEmpty()) { + gatewaysBuilder_.dispose(); + gatewaysBuilder_ = null; + gateways_ = other.gateways_; + bitField0_ = (bitField0_ & ~0x00000004); + gatewaysBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getGatewaysFieldBuilder() : null; + } else { + gatewaysBuilder_.addAllMessages(other.gateways_); + } + } + } + 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: { + host_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + port_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + 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 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 java.lang.Object host_ = ""; + /** + * string host = 1; + * @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 = 1; + * @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 = 1; + * @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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string host = 1; + * @return This builder for chaining. + */ + public Builder clearHost() { + host_ = getDefaultInstance().getHost(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string host = 1; + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private int port_ ; + /** + * int32 port = 2; + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + /** + * int32 port = 2; + * @param value The port to set. + * @return This builder for chaining. + */ + public Builder setPort(int value) { + + port_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * int32 port = 2; + * @return This builder for chaining. + */ + public Builder clearPort() { + bitField0_ = (bitField0_ & ~0x00000002); + port_ = 0; + onChanged(); + return this; + } + + private java.util.List gateways_ = + java.util.Collections.emptyList(); + private void ensureGatewaysIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + gateways_ = new java.util.ArrayList(gateways_); + bitField0_ |= 0x00000004; + } + } + + 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 = 3; + */ + public java.util.List getGatewaysList() { + if (gatewaysBuilder_ == null) { + return java.util.Collections.unmodifiableList(gateways_); + } else { + return gatewaysBuilder_.getMessageList(); + } + } + /** + * repeated .message.Gateway gateways = 3; + */ + public int getGatewaysCount() { + if (gatewaysBuilder_ == null) { + return gateways_.size(); + } else { + return gatewaysBuilder_.getCount(); + } + } + /** + * repeated .message.Gateway gateways = 3; + */ + 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 = 3; + */ + 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 = 3; + */ + 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 = 3; + */ + 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 = 3; + */ + 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 = 3; + */ + 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 = 3; + */ + 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 = 3; + */ + public Builder addAllGateways( + java.lang.Iterable values) { + if (gatewaysBuilder_ == null) { + ensureGatewaysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, gateways_); + onChanged(); + } else { + gatewaysBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .message.Gateway gateways = 3; + */ + public Builder clearGateways() { + if (gatewaysBuilder_ == null) { + gateways_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + gatewaysBuilder_.clear(); + } + return this; + } + /** + * repeated .message.Gateway gateways = 3; + */ + public Builder removeGateways(int index) { + if (gatewaysBuilder_ == null) { + ensureGatewaysIsMutable(); + gateways_.remove(index); + onChanged(); + } else { + gatewaysBuilder_.remove(index); + } + return this; + } + /** + * repeated .message.Gateway gateways = 3; + */ + public org.jumpserver.wisp.Common.Gateway.Builder getGatewaysBuilder( + int index) { + return getGatewaysFieldBuilder().getBuilder(index); + } + /** + * repeated .message.Gateway gateways = 3; + */ + 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 = 3; + */ + public java.util.List + getGatewaysOrBuilderList() { + if (gatewaysBuilder_ != null) { + return gatewaysBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(gateways_); + } + } + /** + * repeated .message.Gateway gateways = 3; + */ + public org.jumpserver.wisp.Common.Gateway.Builder addGatewaysBuilder() { + return getGatewaysFieldBuilder().addBuilder( + org.jumpserver.wisp.Common.Gateway.getDefaultInstance()); + } + /** + * repeated .message.Gateway gateways = 3; + */ + public org.jumpserver.wisp.Common.Gateway.Builder addGatewaysBuilder( + int index) { + return getGatewaysFieldBuilder().addBuilder( + index, org.jumpserver.wisp.Common.Gateway.getDefaultInstance()); + } + /** + * repeated .message.Gateway gateways = 3; + */ + 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_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + gateways_ = null; + } + return gatewaysBuilder_; + } + + // @@protoc_insertion_point(builder_scope:message.ForwardRequest) + } + + // @@protoc_insertion_point(class_scope:message.ForwardRequest) + private static final org.jumpserver.wisp.ServiceOuterClass.ForwardRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.ForwardRequest(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.ForwardRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ForwardRequest 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.ServiceOuterClass.ForwardRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ForwardDeleteRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.ForwardDeleteRequest) + 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(); + } + /** + * Protobuf type {@code message.ForwardDeleteRequest} + */ + public static final class ForwardDeleteRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.ForwardDeleteRequest) + ForwardDeleteRequestOrBuilder { + 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= */ "", + ForwardDeleteRequest.class.getName()); + } + // Use ForwardDeleteRequest.newBuilder() to construct. + private ForwardDeleteRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ForwardDeleteRequest() { + id_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ForwardDeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ForwardDeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest.class, org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest.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; + } + } + + 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_); + } + 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_); + } + 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.ServiceOuterClass.ForwardDeleteRequest)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest other = (org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest) obj; + + if (!getId() + .equals(other.getId())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest 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.ServiceOuterClass.ForwardDeleteRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest 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.ServiceOuterClass.ForwardDeleteRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest 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.ServiceOuterClass.ForwardDeleteRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest 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.ServiceOuterClass.ForwardDeleteRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest 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.ServiceOuterClass.ForwardDeleteRequest 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.ForwardDeleteRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.ForwardDeleteRequest) + org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ForwardDeleteRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ForwardDeleteRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest.class, org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ForwardDeleteRequest_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest build() { + org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest result = new org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + 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 + 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; + } + + // @@protoc_insertion_point(builder_scope:message.ForwardDeleteRequest) + } + + // @@protoc_insertion_point(class_scope:message.ForwardDeleteRequest) + private static final org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.ForwardDeleteRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ForwardDeleteRequest 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.ServiceOuterClass.ForwardDeleteRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ForwardResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.ForwardResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .message.Status status = 1; + * @return The status. + */ + org.jumpserver.wisp.ServiceOuterClass.Status getStatus(); + /** + * .message.Status status = 1; + */ + org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder(); + + /** + * string id = 2; + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 2; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * string host = 3; + * @return The host. + */ + java.lang.String getHost(); + /** + * string host = 3; + * @return The bytes for host. + */ + com.google.protobuf.ByteString + getHostBytes(); + + /** + * int32 port = 4; + * @return The port. + */ + int getPort(); + } + /** + * Protobuf type {@code message.ForwardResponse} + */ + public static final class ForwardResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.ForwardResponse) + ForwardResponseOrBuilder { + 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= */ "", + ForwardResponse.class.getName()); + } + // Use ForwardResponse.newBuilder() to construct. + private ForwardResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ForwardResponse() { + id_ = ""; + host_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ForwardResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ForwardResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.ForwardResponse.class, org.jumpserver.wisp.ServiceOuterClass.ForwardResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private org.jumpserver.wisp.ServiceOuterClass.Status status_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + /** + * .message.Status status = 1; + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + + public static final int ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 2; + * @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 = 2; + * @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 = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object host_ = ""; + /** + * string host = 3; + * @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 = 3; + * @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 = 4; + private int port_ = 0; + /** + * int32 port = 4; + * @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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStatus()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(host_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, host_); + } + if (port_ != 0) { + output.writeInt32(4, port_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStatus()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(host_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, host_); + } + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, 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.ServiceOuterClass.ForwardResponse)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.ForwardResponse other = (org.jumpserver.wisp.ServiceOuterClass.ForwardResponse) obj; + + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + 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(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().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.ServiceOuterClass.ForwardResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.ForwardResponse 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.ServiceOuterClass.ForwardResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.ForwardResponse 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.ServiceOuterClass.ForwardResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.ForwardResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.ForwardResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.ForwardResponse 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.ServiceOuterClass.ForwardResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.ForwardResponse 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.ServiceOuterClass.ForwardResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.ForwardResponse 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.ServiceOuterClass.ForwardResponse 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.ForwardResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.ForwardResponse) + org.jumpserver.wisp.ServiceOuterClass.ForwardResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ForwardResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ForwardResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.ForwardResponse.class, org.jumpserver.wisp.ServiceOuterClass.ForwardResponse.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.ForwardResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getStatusFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + id_ = ""; + host_ = ""; + port_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ForwardResponse_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ForwardResponse getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.ForwardResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ForwardResponse build() { + org.jumpserver.wisp.ServiceOuterClass.ForwardResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ForwardResponse buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.ForwardResponse result = new org.jumpserver.wisp.ServiceOuterClass.ForwardResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.ForwardResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.host_ = host_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.port_ = port_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.ForwardResponse) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.ForwardResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.ForwardResponse other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.ForwardResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getHost().isEmpty()) { + host_ = other.host_; + bitField0_ |= 0x00000004; + 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: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + host_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + port_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + 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 org.jumpserver.wisp.ServiceOuterClass.Status status_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> statusBuilder_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * .message.Status status = 1; + */ + public Builder setStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder setStatus( + org.jumpserver.wisp.ServiceOuterClass.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder mergeStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + status_ != null && + status_ != org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .message.Status status = 1; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.Status.Builder getStatusBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + } + /** + * .message.Status status = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + private java.lang.Object id_ = ""; + /** + * string id = 2; + * @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 = 2; + * @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 = 2; + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string id = 2; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string id = 2; + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object host_ = ""; + /** + * string host = 3; + * @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 = 3; + * @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 = 3; + * @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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string host = 3; + * @return This builder for chaining. + */ + public Builder clearHost() { + host_ = getDefaultInstance().getHost(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string host = 3; + * @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_ |= 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; + } + + // @@protoc_insertion_point(builder_scope:message.ForwardResponse) + } + + // @@protoc_insertion_point(class_scope:message.ForwardResponse) + private static final org.jumpserver.wisp.ServiceOuterClass.ForwardResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.ForwardResponse(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.ForwardResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ForwardResponse 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.ServiceOuterClass.ForwardResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PublicSettingResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.PublicSettingResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .message.Status status = 1; + * @return The status. + */ + org.jumpserver.wisp.ServiceOuterClass.Status getStatus(); + /** + * .message.Status status = 1; + */ + org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder(); + + /** + * .message.PublicSetting data = 2; + * @return Whether the data field is set. + */ + boolean hasData(); + /** + * .message.PublicSetting data = 2; + * @return The data. + */ + org.jumpserver.wisp.Common.PublicSetting getData(); + /** + * .message.PublicSetting data = 2; + */ + org.jumpserver.wisp.Common.PublicSettingOrBuilder getDataOrBuilder(); + } + /** + * Protobuf type {@code message.PublicSettingResponse} + */ + public static final class PublicSettingResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.PublicSettingResponse) + PublicSettingResponseOrBuilder { + 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= */ "", + PublicSettingResponse.class.getName()); + } + // Use PublicSettingResponse.newBuilder() to construct. + private PublicSettingResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PublicSettingResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PublicSettingResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PublicSettingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse.class, org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private org.jumpserver.wisp.ServiceOuterClass.Status status_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + /** + * .message.Status status = 1; + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + + public static final int DATA_FIELD_NUMBER = 2; + private org.jumpserver.wisp.Common.PublicSetting data_; + /** + * .message.PublicSetting data = 2; + * @return Whether the data field is set. + */ + @java.lang.Override + public boolean hasData() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .message.PublicSetting data = 2; + * @return The data. + */ + @java.lang.Override + public org.jumpserver.wisp.Common.PublicSetting getData() { + return data_ == null ? org.jumpserver.wisp.Common.PublicSetting.getDefaultInstance() : data_; + } + /** + * .message.PublicSetting data = 2; + */ + @java.lang.Override + public org.jumpserver.wisp.Common.PublicSettingOrBuilder getDataOrBuilder() { + return data_ == null ? org.jumpserver.wisp.Common.PublicSetting.getDefaultInstance() : data_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStatus()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getData()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStatus()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getData()); + } + 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.ServiceOuterClass.PublicSettingResponse)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse other = (org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse) obj; + + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (hasData() != other.hasData()) return false; + if (hasData()) { + if (!getData() + .equals(other.getData())) 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(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + if (hasData()) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse 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.ServiceOuterClass.PublicSettingResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse 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.ServiceOuterClass.PublicSettingResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse 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.ServiceOuterClass.PublicSettingResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse 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.ServiceOuterClass.PublicSettingResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse 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.ServiceOuterClass.PublicSettingResponse 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.PublicSettingResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.PublicSettingResponse) + org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PublicSettingResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PublicSettingResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse.class, org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getStatusFieldBuilder(); + getDataFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + data_ = null; + if (dataBuilder_ != null) { + dataBuilder_.dispose(); + dataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PublicSettingResponse_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse build() { + org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse result = new org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.data_ = dataBuilder_ == null + ? data_ + : dataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + if (other.hasData()) { + mergeData(other.getData()); + } + 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: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDataFieldBuilder().getBuilder(), + extensionRegistry); + 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 org.jumpserver.wisp.ServiceOuterClass.Status status_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> statusBuilder_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * .message.Status status = 1; + */ + public Builder setStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder setStatus( + org.jumpserver.wisp.ServiceOuterClass.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder mergeStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + status_ != null && + status_ != org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .message.Status status = 1; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.Status.Builder getStatusBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + } + /** + * .message.Status status = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + private org.jumpserver.wisp.Common.PublicSetting data_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.Common.PublicSetting, org.jumpserver.wisp.Common.PublicSetting.Builder, org.jumpserver.wisp.Common.PublicSettingOrBuilder> dataBuilder_; + /** + * .message.PublicSetting data = 2; + * @return Whether the data field is set. + */ + public boolean hasData() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .message.PublicSetting data = 2; + * @return The data. + */ + public org.jumpserver.wisp.Common.PublicSetting getData() { + if (dataBuilder_ == null) { + return data_ == null ? org.jumpserver.wisp.Common.PublicSetting.getDefaultInstance() : data_; + } else { + return dataBuilder_.getMessage(); + } + } + /** + * .message.PublicSetting data = 2; + */ + public Builder setData(org.jumpserver.wisp.Common.PublicSetting value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + } else { + dataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .message.PublicSetting data = 2; + */ + public Builder setData( + org.jumpserver.wisp.Common.PublicSetting.Builder builderForValue) { + if (dataBuilder_ == null) { + data_ = builderForValue.build(); + } else { + dataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .message.PublicSetting data = 2; + */ + public Builder mergeData(org.jumpserver.wisp.Common.PublicSetting value) { + if (dataBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + data_ != null && + data_ != org.jumpserver.wisp.Common.PublicSetting.getDefaultInstance()) { + getDataBuilder().mergeFrom(value); + } else { + data_ = value; + } + } else { + dataBuilder_.mergeFrom(value); + } + if (data_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .message.PublicSetting data = 2; + */ + public Builder clearData() { + bitField0_ = (bitField0_ & ~0x00000002); + data_ = null; + if (dataBuilder_ != null) { + dataBuilder_.dispose(); + dataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.PublicSetting data = 2; + */ + public org.jumpserver.wisp.Common.PublicSetting.Builder getDataBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDataFieldBuilder().getBuilder(); + } + /** + * .message.PublicSetting data = 2; + */ + public org.jumpserver.wisp.Common.PublicSettingOrBuilder getDataOrBuilder() { + if (dataBuilder_ != null) { + return dataBuilder_.getMessageOrBuilder(); + } else { + return data_ == null ? + org.jumpserver.wisp.Common.PublicSetting.getDefaultInstance() : data_; + } + } + /** + * .message.PublicSetting data = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.Common.PublicSetting, org.jumpserver.wisp.Common.PublicSetting.Builder, org.jumpserver.wisp.Common.PublicSettingOrBuilder> + getDataFieldBuilder() { + if (dataBuilder_ == null) { + dataBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.Common.PublicSetting, org.jumpserver.wisp.Common.PublicSetting.Builder, org.jumpserver.wisp.Common.PublicSettingOrBuilder>( + getData(), + getParentForChildren(), + isClean()); + data_ = null; + } + return dataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:message.PublicSettingResponse) + } + + // @@protoc_insertion_point(class_scope:message.PublicSettingResponse) + private static final org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.PublicSettingResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublicSettingResponse 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.ServiceOuterClass.PublicSettingResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EmptyOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.Empty) + com.google.protobuf.MessageOrBuilder { + } + /** + * Protobuf type {@code message.Empty} + */ + public static final class Empty extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.Empty) + EmptyOrBuilder { + 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= */ "", + Empty.class.getName()); + } + // Use Empty.newBuilder() to construct. + private Empty(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private Empty() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_Empty_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_Empty_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.Empty.class, org.jumpserver.wisp.ServiceOuterClass.Empty.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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.ServiceOuterClass.Empty)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.Empty other = (org.jumpserver.wisp.ServiceOuterClass.Empty) obj; + + 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.Empty parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.Empty 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.ServiceOuterClass.Empty parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.Empty 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.ServiceOuterClass.Empty parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.Empty parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.Empty parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.Empty 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.ServiceOuterClass.Empty parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.Empty 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.ServiceOuterClass.Empty parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.Empty 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.ServiceOuterClass.Empty 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.Empty} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.Empty) + org.jumpserver.wisp.ServiceOuterClass.EmptyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_Empty_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_Empty_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.Empty.class, org.jumpserver.wisp.ServiceOuterClass.Empty.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.Empty.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_Empty_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.Empty getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.Empty.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.Empty build() { + org.jumpserver.wisp.ServiceOuterClass.Empty result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.Empty buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.Empty result = new org.jumpserver.wisp.ServiceOuterClass.Empty(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.Empty) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.Empty)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.Empty other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.Empty.getDefaultInstance()) return this; + 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; + 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; + } + + // @@protoc_insertion_point(builder_scope:message.Empty) + } + + // @@protoc_insertion_point(class_scope:message.Empty) + private static final org.jumpserver.wisp.ServiceOuterClass.Empty DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.Empty(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.Empty getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Empty 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.ServiceOuterClass.Empty getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ListenPortResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.ListenPortResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .message.Status status = 1; + * @return The status. + */ + org.jumpserver.wisp.ServiceOuterClass.Status getStatus(); + /** + * .message.Status status = 1; + */ + org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder(); + + /** + * repeated int32 ports = 2; + * @return A list containing the ports. + */ + java.util.List getPortsList(); + /** + * repeated int32 ports = 2; + * @return The count of ports. + */ + int getPortsCount(); + /** + * repeated int32 ports = 2; + * @param index The index of the element to return. + * @return The ports at the given index. + */ + int getPorts(int index); + } + /** + * Protobuf type {@code message.ListenPortResponse} + */ + public static final class ListenPortResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.ListenPortResponse) + ListenPortResponseOrBuilder { + 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= */ "", + ListenPortResponse.class.getName()); + } + // Use ListenPortResponse.newBuilder() to construct. + private ListenPortResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private ListenPortResponse() { + ports_ = emptyIntList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ListenPortResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ListenPortResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse.class, org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private org.jumpserver.wisp.ServiceOuterClass.Status status_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + /** + * .message.Status status = 1; + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + + public static final int PORTS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList ports_ = + emptyIntList(); + /** + * repeated int32 ports = 2; + * @return A list containing the ports. + */ + @java.lang.Override + public java.util.List + getPortsList() { + return ports_; + } + /** + * repeated int32 ports = 2; + * @return The count of ports. + */ + public int getPortsCount() { + return ports_.size(); + } + /** + * repeated int32 ports = 2; + * @param index The index of the element to return. + * @return The ports at the given index. + */ + public int getPorts(int index) { + return ports_.getInt(index); + } + private int portsMemoizedSerializedSize = -1; + + 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 { + getSerializedSize(); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStatus()); + } + if (getPortsList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(portsMemoizedSerializedSize); + } + for (int i = 0; i < ports_.size(); i++) { + output.writeInt32NoTag(ports_.getInt(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStatus()); + } + { + int dataSize = 0; + for (int i = 0; i < ports_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(ports_.getInt(i)); + } + size += dataSize; + if (!getPortsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream + .computeInt32SizeNoTag(dataSize); + } + portsMemoizedSerializedSize = dataSize; + } + 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.ServiceOuterClass.ListenPortResponse)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse other = (org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse) obj; + + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (!getPortsList() + .equals(other.getPortsList())) 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(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + if (getPortsCount() > 0) { + hash = (37 * hash) + PORTS_FIELD_NUMBER; + hash = (53 * hash) + getPortsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse 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.ServiceOuterClass.ListenPortResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse 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.ServiceOuterClass.ListenPortResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse 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.ServiceOuterClass.ListenPortResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse 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.ServiceOuterClass.ListenPortResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse 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.ServiceOuterClass.ListenPortResponse 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.ListenPortResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.ListenPortResponse) + org.jumpserver.wisp.ServiceOuterClass.ListenPortResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ListenPortResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ListenPortResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse.class, org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getStatusFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + ports_ = emptyIntList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_ListenPortResponse_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse build() { + org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse result = new org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + ports_.makeImmutable(); + result.ports_ = ports_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + if (!other.ports_.isEmpty()) { + if (ports_.isEmpty()) { + ports_ = other.ports_; + ports_.makeImmutable(); + bitField0_ |= 0x00000002; + } else { + ensurePortsIsMutable(); + ports_.addAll(other.ports_); + } + 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: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + int v = input.readInt32(); + ensurePortsIsMutable(); + ports_.addInt(v); + break; + } // case 16 + case 18: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensurePortsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + ports_.addInt(input.readInt32()); + } + input.popLimit(limit); + 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 org.jumpserver.wisp.ServiceOuterClass.Status status_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> statusBuilder_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * .message.Status status = 1; + */ + public Builder setStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder setStatus( + org.jumpserver.wisp.ServiceOuterClass.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder mergeStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + status_ != null && + status_ != org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .message.Status status = 1; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.Status.Builder getStatusBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + } + /** + * .message.Status status = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + private com.google.protobuf.Internal.IntList ports_ = emptyIntList(); + private void ensurePortsIsMutable() { + if (!ports_.isModifiable()) { + ports_ = makeMutableCopy(ports_); + } + bitField0_ |= 0x00000002; + } + /** + * repeated int32 ports = 2; + * @return A list containing the ports. + */ + public java.util.List + getPortsList() { + ports_.makeImmutable(); + return ports_; + } + /** + * repeated int32 ports = 2; + * @return The count of ports. + */ + public int getPortsCount() { + return ports_.size(); + } + /** + * repeated int32 ports = 2; + * @param index The index of the element to return. + * @return The ports at the given index. + */ + public int getPorts(int index) { + return ports_.getInt(index); + } + /** + * repeated int32 ports = 2; + * @param index The index to set the value at. + * @param value The ports to set. + * @return This builder for chaining. + */ + public Builder setPorts( + int index, int value) { + + ensurePortsIsMutable(); + ports_.setInt(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated int32 ports = 2; + * @param value The ports to add. + * @return This builder for chaining. + */ + public Builder addPorts(int value) { + + ensurePortsIsMutable(); + ports_.addInt(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated int32 ports = 2; + * @param values The ports to add. + * @return This builder for chaining. + */ + public Builder addAllPorts( + java.lang.Iterable values) { + ensurePortsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ports_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated int32 ports = 2; + * @return This builder for chaining. + */ + public Builder clearPorts() { + ports_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:message.ListenPortResponse) + } + + // @@protoc_insertion_point(class_scope:message.ListenPortResponse) + private static final org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.ListenPortResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListenPortResponse 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.ServiceOuterClass.ListenPortResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PortInfoRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.PortInfoRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 port = 1; + * @return The port. + */ + int getPort(); + } + /** + * Protobuf type {@code message.PortInfoRequest} + */ + public static final class PortInfoRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.PortInfoRequest) + PortInfoRequestOrBuilder { + 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= */ "", + PortInfoRequest.class.getName()); + } + // Use PortInfoRequest.newBuilder() to construct. + private PortInfoRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PortInfoRequest() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PortInfoRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PortInfoRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest.class, org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest.Builder.class); + } + + public static final int PORT_FIELD_NUMBER = 1; + private int port_ = 0; + /** + * int32 port = 1; + * @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 (port_ != 0) { + output.writeInt32(1, port_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, 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.ServiceOuterClass.PortInfoRequest)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest other = (org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest) obj; + + 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) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest 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.ServiceOuterClass.PortInfoRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest 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.ServiceOuterClass.PortInfoRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest 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.ServiceOuterClass.PortInfoRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest 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.ServiceOuterClass.PortInfoRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest 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.ServiceOuterClass.PortInfoRequest 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.PortInfoRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.PortInfoRequest) + org.jumpserver.wisp.ServiceOuterClass.PortInfoRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PortInfoRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PortInfoRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest.class, org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + port_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PortInfoRequest_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest build() { + org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest result = new org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.port_ = port_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest.getDefaultInstance()) return this; + 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: { + port_ = input.readInt32(); + 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 int port_ ; + /** + * int32 port = 1; + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + /** + * int32 port = 1; + * @param value The port to set. + * @return This builder for chaining. + */ + public Builder setPort(int value) { + + port_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * int32 port = 1; + * @return This builder for chaining. + */ + public Builder clearPort() { + bitField0_ = (bitField0_ & ~0x00000001); + port_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:message.PortInfoRequest) + } + + // @@protoc_insertion_point(class_scope:message.PortInfoRequest) + private static final org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.PortInfoRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PortInfoRequest 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.ServiceOuterClass.PortInfoRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PortInfoResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.PortInfoResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .message.Status status = 1; + * @return The status. + */ + org.jumpserver.wisp.ServiceOuterClass.Status getStatus(); + /** + * .message.Status status = 1; + */ + org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder(); + + /** + * .message.PortInfo data = 2; + * @return Whether the data field is set. + */ + boolean hasData(); + /** + * .message.PortInfo data = 2; + * @return The data. + */ + org.jumpserver.wisp.ServiceOuterClass.PortInfo getData(); + /** + * .message.PortInfo data = 2; + */ + org.jumpserver.wisp.ServiceOuterClass.PortInfoOrBuilder getDataOrBuilder(); + } + /** + * Protobuf type {@code message.PortInfoResponse} + */ + public static final class PortInfoResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.PortInfoResponse) + PortInfoResponseOrBuilder { + 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= */ "", + PortInfoResponse.class.getName()); + } + // Use PortInfoResponse.newBuilder() to construct. + private PortInfoResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PortInfoResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PortInfoResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PortInfoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse.class, org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private org.jumpserver.wisp.ServiceOuterClass.Status status_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + /** + * .message.Status status = 1; + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + + public static final int DATA_FIELD_NUMBER = 2; + private org.jumpserver.wisp.ServiceOuterClass.PortInfo data_; + /** + * .message.PortInfo data = 2; + * @return Whether the data field is set. + */ + @java.lang.Override + public boolean hasData() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .message.PortInfo data = 2; + * @return The data. + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.PortInfo getData() { + return data_ == null ? org.jumpserver.wisp.ServiceOuterClass.PortInfo.getDefaultInstance() : data_; + } + /** + * .message.PortInfo data = 2; + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.PortInfoOrBuilder getDataOrBuilder() { + return data_ == null ? org.jumpserver.wisp.ServiceOuterClass.PortInfo.getDefaultInstance() : data_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStatus()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getData()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStatus()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getData()); + } + 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.ServiceOuterClass.PortInfoResponse)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse other = (org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse) obj; + + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (hasData() != other.hasData()) return false; + if (hasData()) { + if (!getData() + .equals(other.getData())) 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(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + if (hasData()) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse 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.ServiceOuterClass.PortInfoResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse 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.ServiceOuterClass.PortInfoResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse 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.ServiceOuterClass.PortInfoResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse 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.ServiceOuterClass.PortInfoResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse 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.ServiceOuterClass.PortInfoResponse 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.PortInfoResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.PortInfoResponse) + org.jumpserver.wisp.ServiceOuterClass.PortInfoResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PortInfoResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PortInfoResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse.class, org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getStatusFieldBuilder(); + getDataFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + data_ = null; + if (dataBuilder_ != null) { + dataBuilder_.dispose(); + dataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PortInfoResponse_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse build() { + org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse result = new org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.data_ = dataBuilder_ == null + ? data_ + : dataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + if (other.hasData()) { + mergeData(other.getData()); + } + 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: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDataFieldBuilder().getBuilder(), + extensionRegistry); + 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 org.jumpserver.wisp.ServiceOuterClass.Status status_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> statusBuilder_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * .message.Status status = 1; + */ + public Builder setStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder setStatus( + org.jumpserver.wisp.ServiceOuterClass.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder mergeStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + status_ != null && + status_ != org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .message.Status status = 1; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.Status.Builder getStatusBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + } + /** + * .message.Status status = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + private org.jumpserver.wisp.ServiceOuterClass.PortInfo data_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.PortInfo, org.jumpserver.wisp.ServiceOuterClass.PortInfo.Builder, org.jumpserver.wisp.ServiceOuterClass.PortInfoOrBuilder> dataBuilder_; + /** + * .message.PortInfo data = 2; + * @return Whether the data field is set. + */ + public boolean hasData() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .message.PortInfo data = 2; + * @return The data. + */ + public org.jumpserver.wisp.ServiceOuterClass.PortInfo getData() { + if (dataBuilder_ == null) { + return data_ == null ? org.jumpserver.wisp.ServiceOuterClass.PortInfo.getDefaultInstance() : data_; + } else { + return dataBuilder_.getMessage(); + } + } + /** + * .message.PortInfo data = 2; + */ + public Builder setData(org.jumpserver.wisp.ServiceOuterClass.PortInfo value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + } else { + dataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .message.PortInfo data = 2; + */ + public Builder setData( + org.jumpserver.wisp.ServiceOuterClass.PortInfo.Builder builderForValue) { + if (dataBuilder_ == null) { + data_ = builderForValue.build(); + } else { + dataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .message.PortInfo data = 2; + */ + public Builder mergeData(org.jumpserver.wisp.ServiceOuterClass.PortInfo value) { + if (dataBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + data_ != null && + data_ != org.jumpserver.wisp.ServiceOuterClass.PortInfo.getDefaultInstance()) { + getDataBuilder().mergeFrom(value); + } else { + data_ = value; + } + } else { + dataBuilder_.mergeFrom(value); + } + if (data_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .message.PortInfo data = 2; + */ + public Builder clearData() { + bitField0_ = (bitField0_ & ~0x00000002); + data_ = null; + if (dataBuilder_ != null) { + dataBuilder_.dispose(); + dataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.PortInfo data = 2; + */ + public org.jumpserver.wisp.ServiceOuterClass.PortInfo.Builder getDataBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDataFieldBuilder().getBuilder(); + } + /** + * .message.PortInfo data = 2; + */ + public org.jumpserver.wisp.ServiceOuterClass.PortInfoOrBuilder getDataOrBuilder() { + if (dataBuilder_ != null) { + return dataBuilder_.getMessageOrBuilder(); + } else { + return data_ == null ? + org.jumpserver.wisp.ServiceOuterClass.PortInfo.getDefaultInstance() : data_; + } + } + /** + * .message.PortInfo data = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.PortInfo, org.jumpserver.wisp.ServiceOuterClass.PortInfo.Builder, org.jumpserver.wisp.ServiceOuterClass.PortInfoOrBuilder> + getDataFieldBuilder() { + if (dataBuilder_ == null) { + dataBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.PortInfo, org.jumpserver.wisp.ServiceOuterClass.PortInfo.Builder, org.jumpserver.wisp.ServiceOuterClass.PortInfoOrBuilder>( + getData(), + getParentForChildren(), + isClean()); + data_ = null; + } + return dataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:message.PortInfoResponse) + } + + // @@protoc_insertion_point(class_scope:message.PortInfoResponse) + private static final org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.PortInfoResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PortInfoResponse 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.ServiceOuterClass.PortInfoResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PortInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.PortInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * .message.Asset asset = 1; + * @return Whether the asset field is set. + */ + boolean hasAsset(); + /** + * .message.Asset asset = 1; + * @return The asset. + */ + org.jumpserver.wisp.Common.Asset getAsset(); + /** + * .message.Asset asset = 1; + */ + org.jumpserver.wisp.Common.AssetOrBuilder getAssetOrBuilder(); + + /** + * repeated .message.Gateway gateways = 2; + */ + java.util.List + getGatewaysList(); + /** + * repeated .message.Gateway gateways = 2; + */ + org.jumpserver.wisp.Common.Gateway getGateways(int index); + /** + * repeated .message.Gateway gateways = 2; + */ + int getGatewaysCount(); + /** + * repeated .message.Gateway gateways = 2; + */ + java.util.List + getGatewaysOrBuilderList(); + /** + * repeated .message.Gateway gateways = 2; + */ + org.jumpserver.wisp.Common.GatewayOrBuilder getGatewaysOrBuilder( + int index); + } + /** + * Protobuf type {@code message.PortInfo} + */ + public static final class PortInfo extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.PortInfo) + PortInfoOrBuilder { + 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= */ "", + PortInfo.class.getName()); + } + // Use PortInfo.newBuilder() to construct. + private PortInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PortInfo() { + gateways_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PortInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PortInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.PortInfo.class, org.jumpserver.wisp.ServiceOuterClass.PortInfo.Builder.class); + } + + private int bitField0_; + public static final int ASSET_FIELD_NUMBER = 1; + private org.jumpserver.wisp.Common.Asset asset_; + /** + * .message.Asset asset = 1; + * @return Whether the asset field is set. + */ + @java.lang.Override + public boolean hasAsset() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Asset asset = 1; + * @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 = 1; + */ + @java.lang.Override + public org.jumpserver.wisp.Common.AssetOrBuilder getAssetOrBuilder() { + return asset_ == null ? org.jumpserver.wisp.Common.Asset.getDefaultInstance() : asset_; + } + + public static final int GATEWAYS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private java.util.List gateways_; + /** + * repeated .message.Gateway gateways = 2; + */ + @java.lang.Override + public java.util.List getGatewaysList() { + return gateways_; + } + /** + * repeated .message.Gateway gateways = 2; + */ + @java.lang.Override + public java.util.List + getGatewaysOrBuilderList() { + return gateways_; + } + /** + * repeated .message.Gateway gateways = 2; + */ + @java.lang.Override + public int getGatewaysCount() { + return gateways_.size(); + } + /** + * repeated .message.Gateway gateways = 2; + */ + @java.lang.Override + public org.jumpserver.wisp.Common.Gateway getGateways(int index) { + return gateways_.get(index); + } + /** + * repeated .message.Gateway gateways = 2; + */ + @java.lang.Override + public org.jumpserver.wisp.Common.GatewayOrBuilder getGatewaysOrBuilder( + int index) { + return gateways_.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAsset()); + } + for (int i = 0; i < gateways_.size(); i++) { + output.writeMessage(2, gateways_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAsset()); + } + for (int i = 0; i < gateways_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, gateways_.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.ServiceOuterClass.PortInfo)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.PortInfo other = (org.jumpserver.wisp.ServiceOuterClass.PortInfo) obj; + + if (hasAsset() != other.hasAsset()) return false; + if (hasAsset()) { + if (!getAsset() + .equals(other.getAsset())) return false; + } + if (!getGatewaysList() + .equals(other.getGatewaysList())) 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(); + if (hasAsset()) { + hash = (37 * hash) + ASSET_FIELD_NUMBER; + hash = (53 * hash) + getAsset().hashCode(); + } + if (getGatewaysCount() > 0) { + hash = (37 * hash) + GATEWAYS_FIELD_NUMBER; + hash = (53 * hash) + getGatewaysList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.PortInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortInfo 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.ServiceOuterClass.PortInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortInfo 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.ServiceOuterClass.PortInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortInfo 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.ServiceOuterClass.PortInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.PortInfo 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.ServiceOuterClass.PortInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortInfo 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.ServiceOuterClass.PortInfo 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.PortInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.PortInfo) + org.jumpserver.wisp.ServiceOuterClass.PortInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PortInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PortInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.PortInfo.class, org.jumpserver.wisp.ServiceOuterClass.PortInfo.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.PortInfo.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(); + getGatewaysFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + asset_ = null; + if (assetBuilder_ != null) { + assetBuilder_.dispose(); + assetBuilder_ = null; + } + if (gatewaysBuilder_ == null) { + gateways_ = java.util.Collections.emptyList(); + } else { + gateways_ = null; + gatewaysBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PortInfo_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.PortInfo getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.PortInfo.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.PortInfo build() { + org.jumpserver.wisp.ServiceOuterClass.PortInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.PortInfo buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.PortInfo result = new org.jumpserver.wisp.ServiceOuterClass.PortInfo(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(org.jumpserver.wisp.ServiceOuterClass.PortInfo result) { + if (gatewaysBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + gateways_ = java.util.Collections.unmodifiableList(gateways_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.gateways_ = gateways_; + } else { + result.gateways_ = gatewaysBuilder_.build(); + } + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.PortInfo result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.asset_ = assetBuilder_ == null + ? asset_ + : assetBuilder_.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.ServiceOuterClass.PortInfo) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.PortInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.PortInfo other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.PortInfo.getDefaultInstance()) return this; + if (other.hasAsset()) { + mergeAsset(other.getAsset()); + } + if (gatewaysBuilder_ == null) { + if (!other.gateways_.isEmpty()) { + if (gateways_.isEmpty()) { + gateways_ = other.gateways_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureGatewaysIsMutable(); + gateways_.addAll(other.gateways_); + } + onChanged(); + } + } else { + if (!other.gateways_.isEmpty()) { + if (gatewaysBuilder_.isEmpty()) { + gatewaysBuilder_.dispose(); + gatewaysBuilder_ = null; + gateways_ = other.gateways_; + bitField0_ = (bitField0_ & ~0x00000002); + gatewaysBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getGatewaysFieldBuilder() : null; + } else { + gatewaysBuilder_.addAllMessages(other.gateways_); + } + } + } + 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: { + input.readMessage( + getAssetFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + 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 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 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 = 1; + * @return Whether the asset field is set. + */ + public boolean hasAsset() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Asset asset = 1; + * @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 = 1; + */ + 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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Asset asset = 1; + */ + public Builder setAsset( + org.jumpserver.wisp.Common.Asset.Builder builderForValue) { + if (assetBuilder_ == null) { + asset_ = builderForValue.build(); + } else { + assetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Asset asset = 1; + */ + public Builder mergeAsset(org.jumpserver.wisp.Common.Asset value) { + if (assetBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + asset_ != null && + asset_ != org.jumpserver.wisp.Common.Asset.getDefaultInstance()) { + getAssetBuilder().mergeFrom(value); + } else { + asset_ = value; + } + } else { + assetBuilder_.mergeFrom(value); + } + if (asset_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .message.Asset asset = 1; + */ + public Builder clearAsset() { + bitField0_ = (bitField0_ & ~0x00000001); + asset_ = null; + if (assetBuilder_ != null) { + assetBuilder_.dispose(); + assetBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.Asset asset = 1; + */ + public org.jumpserver.wisp.Common.Asset.Builder getAssetBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAssetFieldBuilder().getBuilder(); + } + /** + * .message.Asset asset = 1; + */ + 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 = 1; + */ + 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 java.util.List gateways_ = + java.util.Collections.emptyList(); + private void ensureGatewaysIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + gateways_ = new java.util.ArrayList(gateways_); + bitField0_ |= 0x00000002; + } + } + + 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 = 2; + */ + public java.util.List getGatewaysList() { + if (gatewaysBuilder_ == null) { + return java.util.Collections.unmodifiableList(gateways_); + } else { + return gatewaysBuilder_.getMessageList(); + } + } + /** + * repeated .message.Gateway gateways = 2; + */ + public int getGatewaysCount() { + if (gatewaysBuilder_ == null) { + return gateways_.size(); + } else { + return gatewaysBuilder_.getCount(); + } + } + /** + * repeated .message.Gateway gateways = 2; + */ + 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 = 2; + */ + 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 = 2; + */ + 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 = 2; + */ + 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 = 2; + */ + 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 = 2; + */ + 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 = 2; + */ + 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 = 2; + */ + public Builder addAllGateways( + java.lang.Iterable values) { + if (gatewaysBuilder_ == null) { + ensureGatewaysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, gateways_); + onChanged(); + } else { + gatewaysBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .message.Gateway gateways = 2; + */ + public Builder clearGateways() { + if (gatewaysBuilder_ == null) { + gateways_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + gatewaysBuilder_.clear(); + } + return this; + } + /** + * repeated .message.Gateway gateways = 2; + */ + public Builder removeGateways(int index) { + if (gatewaysBuilder_ == null) { + ensureGatewaysIsMutable(); + gateways_.remove(index); + onChanged(); + } else { + gatewaysBuilder_.remove(index); + } + return this; + } + /** + * repeated .message.Gateway gateways = 2; + */ + public org.jumpserver.wisp.Common.Gateway.Builder getGatewaysBuilder( + int index) { + return getGatewaysFieldBuilder().getBuilder(index); + } + /** + * repeated .message.Gateway gateways = 2; + */ + 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 = 2; + */ + public java.util.List + getGatewaysOrBuilderList() { + if (gatewaysBuilder_ != null) { + return gatewaysBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(gateways_); + } + } + /** + * repeated .message.Gateway gateways = 2; + */ + public org.jumpserver.wisp.Common.Gateway.Builder addGatewaysBuilder() { + return getGatewaysFieldBuilder().addBuilder( + org.jumpserver.wisp.Common.Gateway.getDefaultInstance()); + } + /** + * repeated .message.Gateway gateways = 2; + */ + public org.jumpserver.wisp.Common.Gateway.Builder addGatewaysBuilder( + int index) { + return getGatewaysFieldBuilder().addBuilder( + index, org.jumpserver.wisp.Common.Gateway.getDefaultInstance()); + } + /** + * repeated .message.Gateway gateways = 2; + */ + 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_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + gateways_ = null; + } + return gatewaysBuilder_; + } + + // @@protoc_insertion_point(builder_scope:message.PortInfo) + } + + // @@protoc_insertion_point(class_scope:message.PortInfo) + private static final org.jumpserver.wisp.ServiceOuterClass.PortInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.PortInfo(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.PortInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PortInfo 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.ServiceOuterClass.PortInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PortFailureOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.PortFailure) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 port = 1; + * @return The port. + */ + int getPort(); + + /** + * string reason = 2; + * @return The reason. + */ + java.lang.String getReason(); + /** + * string reason = 2; + * @return The bytes for reason. + */ + com.google.protobuf.ByteString + getReasonBytes(); + } + /** + * Protobuf type {@code message.PortFailure} + */ + public static final class PortFailure extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.PortFailure) + PortFailureOrBuilder { + 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= */ "", + PortFailure.class.getName()); + } + // Use PortFailure.newBuilder() to construct. + private PortFailure(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PortFailure() { + reason_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PortFailure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PortFailure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.PortFailure.class, org.jumpserver.wisp.ServiceOuterClass.PortFailure.Builder.class); + } + + public static final int PORT_FIELD_NUMBER = 1; + private int port_ = 0; + /** + * int32 port = 1; + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + + 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; + } + } + + 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 (port_ != 0) { + output.writeInt32(1, port_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(reason_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, reason_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, port_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(reason_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, reason_); + } + 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.ServiceOuterClass.PortFailure)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.PortFailure other = (org.jumpserver.wisp.ServiceOuterClass.PortFailure) obj; + + if (getPort() + != other.getPort()) return false; + if (!getReason() + .equals(other.getReason())) 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) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort(); + hash = (37 * hash) + REASON_FIELD_NUMBER; + hash = (53 * hash) + getReason().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.PortFailure parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortFailure 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.ServiceOuterClass.PortFailure parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortFailure 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.ServiceOuterClass.PortFailure parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortFailure parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortFailure parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortFailure 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.ServiceOuterClass.PortFailure parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.PortFailure 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.ServiceOuterClass.PortFailure parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortFailure 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.ServiceOuterClass.PortFailure 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.PortFailure} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.PortFailure) + org.jumpserver.wisp.ServiceOuterClass.PortFailureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PortFailure_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PortFailure_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.PortFailure.class, org.jumpserver.wisp.ServiceOuterClass.PortFailure.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.PortFailure.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + port_ = 0; + reason_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PortFailure_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.PortFailure getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.PortFailure.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.PortFailure build() { + org.jumpserver.wisp.ServiceOuterClass.PortFailure result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.PortFailure buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.PortFailure result = new org.jumpserver.wisp.ServiceOuterClass.PortFailure(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.PortFailure result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.port_ = port_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.reason_ = reason_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.PortFailure) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.PortFailure)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.PortFailure other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.PortFailure.getDefaultInstance()) return this; + if (other.getPort() != 0) { + setPort(other.getPort()); + } + if (!other.getReason().isEmpty()) { + reason_ = other.reason_; + 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 8: { + port_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + reason_ = 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 int port_ ; + /** + * int32 port = 1; + * @return The port. + */ + @java.lang.Override + public int getPort() { + return port_; + } + /** + * int32 port = 1; + * @param value The port to set. + * @return This builder for chaining. + */ + public Builder setPort(int value) { + + port_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * int32 port = 1; + * @return This builder for chaining. + */ + public Builder clearPort() { + bitField0_ = (bitField0_ & ~0x00000001); + port_ = 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; + } + + // @@protoc_insertion_point(builder_scope:message.PortFailure) + } + + // @@protoc_insertion_point(class_scope:message.PortFailure) + private static final org.jumpserver.wisp.ServiceOuterClass.PortFailure DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.PortFailure(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.PortFailure getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PortFailure 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.ServiceOuterClass.PortFailure getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PortFailureRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.PortFailureRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .message.PortFailure data = 1; + */ + java.util.List + getDataList(); + /** + * repeated .message.PortFailure data = 1; + */ + org.jumpserver.wisp.ServiceOuterClass.PortFailure getData(int index); + /** + * repeated .message.PortFailure data = 1; + */ + int getDataCount(); + /** + * repeated .message.PortFailure data = 1; + */ + java.util.List + getDataOrBuilderList(); + /** + * repeated .message.PortFailure data = 1; + */ + org.jumpserver.wisp.ServiceOuterClass.PortFailureOrBuilder getDataOrBuilder( + int index); + } + /** + * Protobuf type {@code message.PortFailureRequest} + */ + public static final class PortFailureRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.PortFailureRequest) + PortFailureRequestOrBuilder { + 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= */ "", + PortFailureRequest.class.getName()); + } + // Use PortFailureRequest.newBuilder() to construct. + private PortFailureRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private PortFailureRequest() { + data_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PortFailureRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PortFailureRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest.class, org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest.Builder.class); + } + + public static final int DATA_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List data_; + /** + * repeated .message.PortFailure data = 1; + */ + @java.lang.Override + public java.util.List getDataList() { + return data_; + } + /** + * repeated .message.PortFailure data = 1; + */ + @java.lang.Override + public java.util.List + getDataOrBuilderList() { + return data_; + } + /** + * repeated .message.PortFailure data = 1; + */ + @java.lang.Override + public int getDataCount() { + return data_.size(); + } + /** + * repeated .message.PortFailure data = 1; + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.PortFailure getData(int index) { + return data_.get(index); + } + /** + * repeated .message.PortFailure data = 1; + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.PortFailureOrBuilder getDataOrBuilder( + int index) { + return data_.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 { + for (int i = 0; i < data_.size(); i++) { + output.writeMessage(1, data_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < data_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, data_.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.ServiceOuterClass.PortFailureRequest)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest other = (org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest) obj; + + if (!getDataList() + .equals(other.getDataList())) 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(); + if (getDataCount() > 0) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getDataList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest 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.ServiceOuterClass.PortFailureRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest 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.ServiceOuterClass.PortFailureRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest 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.ServiceOuterClass.PortFailureRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest 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.ServiceOuterClass.PortFailureRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest 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.ServiceOuterClass.PortFailureRequest 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.PortFailureRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.PortFailureRequest) + org.jumpserver.wisp.ServiceOuterClass.PortFailureRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PortFailureRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PortFailureRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest.class, org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dataBuilder_ == null) { + data_ = java.util.Collections.emptyList(); + } else { + data_ = null; + dataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_PortFailureRequest_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest build() { + org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest result = new org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest result) { + if (dataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + data_ = java.util.Collections.unmodifiableList(data_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.data_ = data_; + } else { + result.data_ = dataBuilder_.build(); + } + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest.getDefaultInstance()) return this; + if (dataBuilder_ == null) { + if (!other.data_.isEmpty()) { + if (data_.isEmpty()) { + data_ = other.data_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDataIsMutable(); + data_.addAll(other.data_); + } + onChanged(); + } + } else { + if (!other.data_.isEmpty()) { + if (dataBuilder_.isEmpty()) { + dataBuilder_.dispose(); + dataBuilder_ = null; + data_ = other.data_; + bitField0_ = (bitField0_ & ~0x00000001); + dataBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getDataFieldBuilder() : null; + } else { + dataBuilder_.addAllMessages(other.data_); + } + } + } + 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: { + org.jumpserver.wisp.ServiceOuterClass.PortFailure m = + input.readMessage( + org.jumpserver.wisp.ServiceOuterClass.PortFailure.parser(), + extensionRegistry); + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.add(m); + } else { + dataBuilder_.addMessage(m); + } + break; + } // case 10 + 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.util.List data_ = + java.util.Collections.emptyList(); + private void ensureDataIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + data_ = new java.util.ArrayList(data_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.PortFailure, org.jumpserver.wisp.ServiceOuterClass.PortFailure.Builder, org.jumpserver.wisp.ServiceOuterClass.PortFailureOrBuilder> dataBuilder_; + + /** + * repeated .message.PortFailure data = 1; + */ + public java.util.List getDataList() { + if (dataBuilder_ == null) { + return java.util.Collections.unmodifiableList(data_); + } else { + return dataBuilder_.getMessageList(); + } + } + /** + * repeated .message.PortFailure data = 1; + */ + public int getDataCount() { + if (dataBuilder_ == null) { + return data_.size(); + } else { + return dataBuilder_.getCount(); + } + } + /** + * repeated .message.PortFailure data = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.PortFailure getData(int index) { + if (dataBuilder_ == null) { + return data_.get(index); + } else { + return dataBuilder_.getMessage(index); + } + } + /** + * repeated .message.PortFailure data = 1; + */ + public Builder setData( + int index, org.jumpserver.wisp.ServiceOuterClass.PortFailure value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataIsMutable(); + data_.set(index, value); + onChanged(); + } else { + dataBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .message.PortFailure data = 1; + */ + public Builder setData( + int index, org.jumpserver.wisp.ServiceOuterClass.PortFailure.Builder builderForValue) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.set(index, builderForValue.build()); + onChanged(); + } else { + dataBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .message.PortFailure data = 1; + */ + public Builder addData(org.jumpserver.wisp.ServiceOuterClass.PortFailure value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataIsMutable(); + data_.add(value); + onChanged(); + } else { + dataBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .message.PortFailure data = 1; + */ + public Builder addData( + int index, org.jumpserver.wisp.ServiceOuterClass.PortFailure value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataIsMutable(); + data_.add(index, value); + onChanged(); + } else { + dataBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .message.PortFailure data = 1; + */ + public Builder addData( + org.jumpserver.wisp.ServiceOuterClass.PortFailure.Builder builderForValue) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.add(builderForValue.build()); + onChanged(); + } else { + dataBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .message.PortFailure data = 1; + */ + public Builder addData( + int index, org.jumpserver.wisp.ServiceOuterClass.PortFailure.Builder builderForValue) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.add(index, builderForValue.build()); + onChanged(); + } else { + dataBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .message.PortFailure data = 1; + */ + public Builder addAllData( + java.lang.Iterable values) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, data_); + onChanged(); + } else { + dataBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .message.PortFailure data = 1; + */ + public Builder clearData() { + if (dataBuilder_ == null) { + data_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dataBuilder_.clear(); + } + return this; + } + /** + * repeated .message.PortFailure data = 1; + */ + public Builder removeData(int index) { + if (dataBuilder_ == null) { + ensureDataIsMutable(); + data_.remove(index); + onChanged(); + } else { + dataBuilder_.remove(index); + } + return this; + } + /** + * repeated .message.PortFailure data = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.PortFailure.Builder getDataBuilder( + int index) { + return getDataFieldBuilder().getBuilder(index); + } + /** + * repeated .message.PortFailure data = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.PortFailureOrBuilder getDataOrBuilder( + int index) { + if (dataBuilder_ == null) { + return data_.get(index); } else { + return dataBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .message.PortFailure data = 1; + */ + public java.util.List + getDataOrBuilderList() { + if (dataBuilder_ != null) { + return dataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(data_); + } + } + /** + * repeated .message.PortFailure data = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.PortFailure.Builder addDataBuilder() { + return getDataFieldBuilder().addBuilder( + org.jumpserver.wisp.ServiceOuterClass.PortFailure.getDefaultInstance()); + } + /** + * repeated .message.PortFailure data = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.PortFailure.Builder addDataBuilder( + int index) { + return getDataFieldBuilder().addBuilder( + index, org.jumpserver.wisp.ServiceOuterClass.PortFailure.getDefaultInstance()); + } + /** + * repeated .message.PortFailure data = 1; + */ + public java.util.List + getDataBuilderList() { + return getDataFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.PortFailure, org.jumpserver.wisp.ServiceOuterClass.PortFailure.Builder, org.jumpserver.wisp.ServiceOuterClass.PortFailureOrBuilder> + getDataFieldBuilder() { + if (dataBuilder_ == null) { + dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.PortFailure, org.jumpserver.wisp.ServiceOuterClass.PortFailure.Builder, org.jumpserver.wisp.ServiceOuterClass.PortFailureOrBuilder>( + data_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + data_ = null; + } + return dataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:message.PortFailureRequest) + } + + // @@protoc_insertion_point(class_scope:message.PortFailureRequest) + private static final org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.PortFailureRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PortFailureRequest 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.ServiceOuterClass.PortFailureRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CookiesRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.CookiesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .message.Cookie cookies = 1; + */ + java.util.List + getCookiesList(); + /** + * repeated .message.Cookie cookies = 1; + */ + org.jumpserver.wisp.Common.Cookie getCookies(int index); + /** + * repeated .message.Cookie cookies = 1; + */ + int getCookiesCount(); + /** + * repeated .message.Cookie cookies = 1; + */ + java.util.List + getCookiesOrBuilderList(); + /** + * repeated .message.Cookie cookies = 1; + */ + org.jumpserver.wisp.Common.CookieOrBuilder getCookiesOrBuilder( + int index); + } + /** + * Protobuf type {@code message.CookiesRequest} + */ + public static final class CookiesRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.CookiesRequest) + CookiesRequestOrBuilder { + 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= */ "", + CookiesRequest.class.getName()); + } + // Use CookiesRequest.newBuilder() to construct. + private CookiesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CookiesRequest() { + cookies_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_CookiesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_CookiesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.CookiesRequest.class, org.jumpserver.wisp.ServiceOuterClass.CookiesRequest.Builder.class); + } + + public static final int COOKIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List cookies_; + /** + * repeated .message.Cookie cookies = 1; + */ + @java.lang.Override + public java.util.List getCookiesList() { + return cookies_; + } + /** + * repeated .message.Cookie cookies = 1; + */ + @java.lang.Override + public java.util.List + getCookiesOrBuilderList() { + return cookies_; + } + /** + * repeated .message.Cookie cookies = 1; + */ + @java.lang.Override + public int getCookiesCount() { + return cookies_.size(); + } + /** + * repeated .message.Cookie cookies = 1; + */ + @java.lang.Override + public org.jumpserver.wisp.Common.Cookie getCookies(int index) { + return cookies_.get(index); + } + /** + * repeated .message.Cookie cookies = 1; + */ + @java.lang.Override + public org.jumpserver.wisp.Common.CookieOrBuilder getCookiesOrBuilder( + int index) { + return cookies_.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 { + for (int i = 0; i < cookies_.size(); i++) { + output.writeMessage(1, cookies_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < cookies_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, cookies_.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.ServiceOuterClass.CookiesRequest)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.CookiesRequest other = (org.jumpserver.wisp.ServiceOuterClass.CookiesRequest) obj; + + if (!getCookiesList() + .equals(other.getCookiesList())) 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(); + if (getCookiesCount() > 0) { + hash = (37 * hash) + COOKIES_FIELD_NUMBER; + hash = (53 * hash) + getCookiesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.CookiesRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.CookiesRequest 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.ServiceOuterClass.CookiesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.CookiesRequest 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.ServiceOuterClass.CookiesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.CookiesRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.CookiesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.CookiesRequest 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.ServiceOuterClass.CookiesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.CookiesRequest 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.ServiceOuterClass.CookiesRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.CookiesRequest 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.ServiceOuterClass.CookiesRequest 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.CookiesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.CookiesRequest) + org.jumpserver.wisp.ServiceOuterClass.CookiesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_CookiesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_CookiesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.CookiesRequest.class, org.jumpserver.wisp.ServiceOuterClass.CookiesRequest.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.CookiesRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (cookiesBuilder_ == null) { + cookies_ = java.util.Collections.emptyList(); + } else { + cookies_ = null; + cookiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_CookiesRequest_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.CookiesRequest getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.CookiesRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.CookiesRequest build() { + org.jumpserver.wisp.ServiceOuterClass.CookiesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.CookiesRequest buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.CookiesRequest result = new org.jumpserver.wisp.ServiceOuterClass.CookiesRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(org.jumpserver.wisp.ServiceOuterClass.CookiesRequest result) { + if (cookiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + cookies_ = java.util.Collections.unmodifiableList(cookies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.cookies_ = cookies_; + } else { + result.cookies_ = cookiesBuilder_.build(); + } + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.CookiesRequest result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.CookiesRequest) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.CookiesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.CookiesRequest other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.CookiesRequest.getDefaultInstance()) return this; + if (cookiesBuilder_ == null) { + if (!other.cookies_.isEmpty()) { + if (cookies_.isEmpty()) { + cookies_ = other.cookies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCookiesIsMutable(); + cookies_.addAll(other.cookies_); + } + onChanged(); + } + } else { + if (!other.cookies_.isEmpty()) { + if (cookiesBuilder_.isEmpty()) { + cookiesBuilder_.dispose(); + cookiesBuilder_ = null; + cookies_ = other.cookies_; + bitField0_ = (bitField0_ & ~0x00000001); + cookiesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getCookiesFieldBuilder() : null; + } else { + cookiesBuilder_.addAllMessages(other.cookies_); + } + } + } + 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: { + org.jumpserver.wisp.Common.Cookie m = + input.readMessage( + org.jumpserver.wisp.Common.Cookie.parser(), + extensionRegistry); + if (cookiesBuilder_ == null) { + ensureCookiesIsMutable(); + cookies_.add(m); + } else { + cookiesBuilder_.addMessage(m); + } + break; + } // case 10 + 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.util.List cookies_ = + java.util.Collections.emptyList(); + private void ensureCookiesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + cookies_ = new java.util.ArrayList(cookies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + org.jumpserver.wisp.Common.Cookie, org.jumpserver.wisp.Common.Cookie.Builder, org.jumpserver.wisp.Common.CookieOrBuilder> cookiesBuilder_; + + /** + * repeated .message.Cookie cookies = 1; + */ + public java.util.List getCookiesList() { + if (cookiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(cookies_); + } else { + return cookiesBuilder_.getMessageList(); + } + } + /** + * repeated .message.Cookie cookies = 1; + */ + public int getCookiesCount() { + if (cookiesBuilder_ == null) { + return cookies_.size(); + } else { + return cookiesBuilder_.getCount(); + } + } + /** + * repeated .message.Cookie cookies = 1; + */ + public org.jumpserver.wisp.Common.Cookie getCookies(int index) { + if (cookiesBuilder_ == null) { + return cookies_.get(index); + } else { + return cookiesBuilder_.getMessage(index); + } + } + /** + * repeated .message.Cookie cookies = 1; + */ + public Builder setCookies( + int index, org.jumpserver.wisp.Common.Cookie value) { + if (cookiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCookiesIsMutable(); + cookies_.set(index, value); + onChanged(); + } else { + cookiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .message.Cookie cookies = 1; + */ + public Builder setCookies( + int index, org.jumpserver.wisp.Common.Cookie.Builder builderForValue) { + if (cookiesBuilder_ == null) { + ensureCookiesIsMutable(); + cookies_.set(index, builderForValue.build()); + onChanged(); + } else { + cookiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .message.Cookie cookies = 1; + */ + public Builder addCookies(org.jumpserver.wisp.Common.Cookie value) { + if (cookiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCookiesIsMutable(); + cookies_.add(value); + onChanged(); + } else { + cookiesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .message.Cookie cookies = 1; + */ + public Builder addCookies( + int index, org.jumpserver.wisp.Common.Cookie value) { + if (cookiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCookiesIsMutable(); + cookies_.add(index, value); + onChanged(); + } else { + cookiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .message.Cookie cookies = 1; + */ + public Builder addCookies( + org.jumpserver.wisp.Common.Cookie.Builder builderForValue) { + if (cookiesBuilder_ == null) { + ensureCookiesIsMutable(); + cookies_.add(builderForValue.build()); + onChanged(); + } else { + cookiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .message.Cookie cookies = 1; + */ + public Builder addCookies( + int index, org.jumpserver.wisp.Common.Cookie.Builder builderForValue) { + if (cookiesBuilder_ == null) { + ensureCookiesIsMutable(); + cookies_.add(index, builderForValue.build()); + onChanged(); + } else { + cookiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .message.Cookie cookies = 1; + */ + public Builder addAllCookies( + java.lang.Iterable values) { + if (cookiesBuilder_ == null) { + ensureCookiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, cookies_); + onChanged(); + } else { + cookiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .message.Cookie cookies = 1; + */ + public Builder clearCookies() { + if (cookiesBuilder_ == null) { + cookies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + cookiesBuilder_.clear(); + } + return this; + } + /** + * repeated .message.Cookie cookies = 1; + */ + public Builder removeCookies(int index) { + if (cookiesBuilder_ == null) { + ensureCookiesIsMutable(); + cookies_.remove(index); + onChanged(); + } else { + cookiesBuilder_.remove(index); + } + return this; + } + /** + * repeated .message.Cookie cookies = 1; + */ + public org.jumpserver.wisp.Common.Cookie.Builder getCookiesBuilder( + int index) { + return getCookiesFieldBuilder().getBuilder(index); + } + /** + * repeated .message.Cookie cookies = 1; + */ + public org.jumpserver.wisp.Common.CookieOrBuilder getCookiesOrBuilder( + int index) { + if (cookiesBuilder_ == null) { + return cookies_.get(index); } else { + return cookiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .message.Cookie cookies = 1; + */ + public java.util.List + getCookiesOrBuilderList() { + if (cookiesBuilder_ != null) { + return cookiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cookies_); + } + } + /** + * repeated .message.Cookie cookies = 1; + */ + public org.jumpserver.wisp.Common.Cookie.Builder addCookiesBuilder() { + return getCookiesFieldBuilder().addBuilder( + org.jumpserver.wisp.Common.Cookie.getDefaultInstance()); + } + /** + * repeated .message.Cookie cookies = 1; + */ + public org.jumpserver.wisp.Common.Cookie.Builder addCookiesBuilder( + int index) { + return getCookiesFieldBuilder().addBuilder( + index, org.jumpserver.wisp.Common.Cookie.getDefaultInstance()); + } + /** + * repeated .message.Cookie cookies = 1; + */ + public java.util.List + getCookiesBuilderList() { + return getCookiesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + org.jumpserver.wisp.Common.Cookie, org.jumpserver.wisp.Common.Cookie.Builder, org.jumpserver.wisp.Common.CookieOrBuilder> + getCookiesFieldBuilder() { + if (cookiesBuilder_ == null) { + cookiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + org.jumpserver.wisp.Common.Cookie, org.jumpserver.wisp.Common.Cookie.Builder, org.jumpserver.wisp.Common.CookieOrBuilder>( + cookies_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + cookies_ = null; + } + return cookiesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:message.CookiesRequest) + } + + // @@protoc_insertion_point(class_scope:message.CookiesRequest) + private static final org.jumpserver.wisp.ServiceOuterClass.CookiesRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.CookiesRequest(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.CookiesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CookiesRequest 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.ServiceOuterClass.CookiesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UserResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.UserResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + * .message.Status status = 1; + * @return The status. + */ + org.jumpserver.wisp.ServiceOuterClass.Status getStatus(); + /** + * .message.Status status = 1; + */ + org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder(); + + /** + * .message.User data = 2; + * @return Whether the data field is set. + */ + boolean hasData(); + /** + * .message.User data = 2; + * @return The data. + */ + org.jumpserver.wisp.Common.User getData(); + /** + * .message.User data = 2; + */ + org.jumpserver.wisp.Common.UserOrBuilder getDataOrBuilder(); + } + /** + * Protobuf type {@code message.UserResponse} + */ + public static final class UserResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.UserResponse) + UserResponseOrBuilder { + 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= */ "", + UserResponse.class.getName()); + } + // Use UserResponse.newBuilder() to construct. + private UserResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private UserResponse() { + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_UserResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_UserResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.UserResponse.class, org.jumpserver.wisp.ServiceOuterClass.UserResponse.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + private org.jumpserver.wisp.ServiceOuterClass.Status status_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + /** + * .message.Status status = 1; + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + + public static final int DATA_FIELD_NUMBER = 2; + private org.jumpserver.wisp.Common.User data_; + /** + * .message.User data = 2; + * @return Whether the data field is set. + */ + @java.lang.Override + public boolean hasData() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .message.User data = 2; + * @return The data. + */ + @java.lang.Override + public org.jumpserver.wisp.Common.User getData() { + return data_ == null ? org.jumpserver.wisp.Common.User.getDefaultInstance() : data_; + } + /** + * .message.User data = 2; + */ + @java.lang.Override + public org.jumpserver.wisp.Common.UserOrBuilder getDataOrBuilder() { + return data_ == null ? org.jumpserver.wisp.Common.User.getDefaultInstance() : data_; + } + + 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStatus()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getData()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStatus()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getData()); + } + 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.ServiceOuterClass.UserResponse)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.UserResponse other = (org.jumpserver.wisp.ServiceOuterClass.UserResponse) obj; + + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) return false; + } + if (hasData() != other.hasData()) return false; + if (hasData()) { + if (!getData() + .equals(other.getData())) 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(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + if (hasData()) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static org.jumpserver.wisp.ServiceOuterClass.UserResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.UserResponse 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.ServiceOuterClass.UserResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.UserResponse 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.ServiceOuterClass.UserResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.UserResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.UserResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.UserResponse 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.ServiceOuterClass.UserResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.UserResponse 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.ServiceOuterClass.UserResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.UserResponse 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.ServiceOuterClass.UserResponse 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.UserResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.UserResponse) + org.jumpserver.wisp.ServiceOuterClass.UserResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_UserResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_UserResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.UserResponse.class, org.jumpserver.wisp.ServiceOuterClass.UserResponse.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.UserResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getStatusFieldBuilder(); + getDataFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + data_ = null; + if (dataBuilder_ != null) { + dataBuilder_.dispose(); + dataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_UserResponse_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.UserResponse getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.UserResponse.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.UserResponse build() { + org.jumpserver.wisp.ServiceOuterClass.UserResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.UserResponse buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.UserResponse result = new org.jumpserver.wisp.ServiceOuterClass.UserResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.UserResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = statusBuilder_ == null + ? status_ + : statusBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.data_ = dataBuilder_ == null + ? data_ + : dataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.UserResponse) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.UserResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.UserResponse other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.UserResponse.getDefaultInstance()) return this; + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + if (other.hasData()) { + mergeData(other.getData()); + } + 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: { + input.readMessage( + getStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getDataFieldBuilder().getBuilder(), + extensionRegistry); + 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 org.jumpserver.wisp.ServiceOuterClass.Status status_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> statusBuilder_; + /** + * .message.Status status = 1; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .message.Status status = 1; + * @return The status. + */ + public org.jumpserver.wisp.ServiceOuterClass.Status getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + * .message.Status status = 1; + */ + public Builder setStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder setStatus( + org.jumpserver.wisp.ServiceOuterClass.Status.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public Builder mergeStatus(org.jumpserver.wisp.ServiceOuterClass.Status value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + status_ != null && + status_ != org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); + } else { + status_ = value; + } + } else { + statusBuilder_.mergeFrom(value); + } + if (status_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .message.Status status = 1; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000001); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); + statusBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.Status.Builder getStatusBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + * .message.Status status = 1; + */ + public org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + org.jumpserver.wisp.ServiceOuterClass.Status.getDefaultInstance() : status_; + } + } + /** + * .message.Status status = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.ServiceOuterClass.Status, org.jumpserver.wisp.ServiceOuterClass.Status.Builder, org.jumpserver.wisp.ServiceOuterClass.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + + private org.jumpserver.wisp.Common.User data_; + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.Common.User, org.jumpserver.wisp.Common.User.Builder, org.jumpserver.wisp.Common.UserOrBuilder> dataBuilder_; + /** + * .message.User data = 2; + * @return Whether the data field is set. + */ + public boolean hasData() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .message.User data = 2; + * @return The data. + */ + public org.jumpserver.wisp.Common.User getData() { + if (dataBuilder_ == null) { + return data_ == null ? org.jumpserver.wisp.Common.User.getDefaultInstance() : data_; + } else { + return dataBuilder_.getMessage(); + } + } + /** + * .message.User data = 2; + */ + public Builder setData(org.jumpserver.wisp.Common.User value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + } else { + dataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .message.User data = 2; + */ + public Builder setData( + org.jumpserver.wisp.Common.User.Builder builderForValue) { + if (dataBuilder_ == null) { + data_ = builderForValue.build(); + } else { + dataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .message.User data = 2; + */ + public Builder mergeData(org.jumpserver.wisp.Common.User value) { + if (dataBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + data_ != null && + data_ != org.jumpserver.wisp.Common.User.getDefaultInstance()) { + getDataBuilder().mergeFrom(value); + } else { + data_ = value; + } + } else { + dataBuilder_.mergeFrom(value); + } + if (data_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .message.User data = 2; + */ + public Builder clearData() { + bitField0_ = (bitField0_ & ~0x00000002); + data_ = null; + if (dataBuilder_ != null) { + dataBuilder_.dispose(); + dataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .message.User data = 2; + */ + public org.jumpserver.wisp.Common.User.Builder getDataBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDataFieldBuilder().getBuilder(); + } + /** + * .message.User data = 2; + */ + public org.jumpserver.wisp.Common.UserOrBuilder getDataOrBuilder() { + if (dataBuilder_ != null) { + return dataBuilder_.getMessageOrBuilder(); + } else { + return data_ == null ? + org.jumpserver.wisp.Common.User.getDefaultInstance() : data_; + } + } + /** + * .message.User data = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.Common.User, org.jumpserver.wisp.Common.User.Builder, org.jumpserver.wisp.Common.UserOrBuilder> + getDataFieldBuilder() { + if (dataBuilder_ == null) { + dataBuilder_ = new com.google.protobuf.SingleFieldBuilder< + org.jumpserver.wisp.Common.User, org.jumpserver.wisp.Common.User.Builder, org.jumpserver.wisp.Common.UserOrBuilder>( + getData(), + getParentForChildren(), + isClean()); + data_ = null; + } + return dataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:message.UserResponse) + } + + // @@protoc_insertion_point(class_scope:message.UserResponse) + private static final org.jumpserver.wisp.ServiceOuterClass.UserResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.UserResponse(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.UserResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserResponse 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.ServiceOuterClass.UserResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SessionLifecycleLogRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:message.SessionLifecycleLogRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string session_id = 1; + * @return The sessionId. + */ + java.lang.String getSessionId(); + /** + * string session_id = 1; + * @return The bytes for sessionId. + */ + com.google.protobuf.ByteString + getSessionIdBytes(); + + /** + * .message.SessionLifecycleLogRequest.EventType event = 2; + * @return The enum numeric value on the wire for event. + */ + int getEventValue(); + /** + * .message.SessionLifecycleLogRequest.EventType event = 2; + * @return The event. + */ + org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest.EventType getEvent(); + + /** + * string reason = 3; + * @return The reason. + */ + java.lang.String getReason(); + /** + * string reason = 3; + * @return The bytes for reason. + */ + com.google.protobuf.ByteString + getReasonBytes(); + + /** + * string user = 4; + * @return The user. + */ + java.lang.String getUser(); + /** + * string user = 4; + * @return The bytes for user. + */ + com.google.protobuf.ByteString + getUserBytes(); + } + /** + * Protobuf type {@code message.SessionLifecycleLogRequest} + */ + public static final class SessionLifecycleLogRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:message.SessionLifecycleLogRequest) + SessionLifecycleLogRequestOrBuilder { + 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= */ "", + SessionLifecycleLogRequest.class.getName()); + } + // Use SessionLifecycleLogRequest.newBuilder() to construct. + private SessionLifecycleLogRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private SessionLifecycleLogRequest() { + sessionId_ = ""; + event_ = 0; + reason_ = ""; + user_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_SessionLifecycleLogRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_SessionLifecycleLogRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest.class, org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest.Builder.class); + } + + /** + * Protobuf enum {@code message.SessionLifecycleLogRequest.EventType} + */ + public enum EventType + 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= */ "", + EventType.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 EventType 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 EventType 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< + EventType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public EventType findValueByNumber(int number) { + return EventType.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.ServiceOuterClass.SessionLifecycleLogRequest.getDescriptor().getEnumTypes().get(0); + } + + private static final EventType[] VALUES = values(); + + public static EventType 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 EventType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:message.SessionLifecycleLogRequest.EventType) + } + + public static final int SESSION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object sessionId_ = ""; + /** + * string session_id = 1; + * @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 = 1; + * @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 EVENT_FIELD_NUMBER = 2; + private int event_ = 0; + /** + * .message.SessionLifecycleLogRequest.EventType event = 2; + * @return The enum numeric value on the wire for event. + */ + @java.lang.Override public int getEventValue() { + return event_; + } + /** + * .message.SessionLifecycleLogRequest.EventType event = 2; + * @return The event. + */ + @java.lang.Override public org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest.EventType getEvent() { + org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest.EventType result = org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest.EventType.forNumber(event_); + return result == null ? org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest.EventType.UNRECOGNIZED : result; + } + + public static final int REASON_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object reason_ = ""; + /** + * string reason = 3; + * @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 = 3; + * @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 = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object user_ = ""; + /** + * string user = 4; + * @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 = 4; + * @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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(sessionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, sessionId_); + } + if (event_ != org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest.EventType.AssetConnectSuccess.getNumber()) { + output.writeEnum(2, event_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(reason_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, reason_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(user_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, user_); + } + 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(sessionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, sessionId_); + } + if (event_ != org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest.EventType.AssetConnectSuccess.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, event_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(reason_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, reason_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(user_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, 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.ServiceOuterClass.SessionLifecycleLogRequest)) { + return super.equals(obj); + } + org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest other = (org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest) obj; + + if (!getSessionId() + .equals(other.getSessionId())) return false; + 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) + SESSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getSessionId().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.ServiceOuterClass.SessionLifecycleLogRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest 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.ServiceOuterClass.SessionLifecycleLogRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest 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.ServiceOuterClass.SessionLifecycleLogRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest 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.ServiceOuterClass.SessionLifecycleLogRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest 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.ServiceOuterClass.SessionLifecycleLogRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest 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.ServiceOuterClass.SessionLifecycleLogRequest 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.SessionLifecycleLogRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:message.SessionLifecycleLogRequest) + org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_SessionLifecycleLogRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_SessionLifecycleLogRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest.class, org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest.Builder.class); + } + + // Construct using org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sessionId_ = ""; + event_ = 0; + reason_ = ""; + user_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.jumpserver.wisp.ServiceOuterClass.internal_static_message_SessionLifecycleLogRequest_descriptor; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest getDefaultInstanceForType() { + return org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest.getDefaultInstance(); + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest build() { + org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest buildPartial() { + org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest result = new org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sessionId_ = sessionId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.event_ = event_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.reason_ = reason_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.user_ = user_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest) { + return mergeFrom((org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest other) { + if (other == org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest.getDefaultInstance()) return this; + if (!other.getSessionId().isEmpty()) { + sessionId_ = other.sessionId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.event_ != 0) { + setEventValue(other.getEventValue()); + } + if (!other.getReason().isEmpty()) { + reason_ = other.reason_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getUser().isEmpty()) { + user_ = other.user_; + bitField0_ |= 0x00000008; + 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: { + sessionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + event_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + reason_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + user_ = input.readStringRequireUtf8(); + 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 java.lang.Object sessionId_ = ""; + /** + * string session_id = 1; + * @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 = 1; + * @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 = 1; + * @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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string session_id = 1; + * @return This builder for chaining. + */ + public Builder clearSessionId() { + sessionId_ = getDefaultInstance().getSessionId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string session_id = 1; + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private int event_ = 0; + /** + * .message.SessionLifecycleLogRequest.EventType event = 2; + * @return The enum numeric value on the wire for event. + */ + @java.lang.Override public int getEventValue() { + return event_; + } + /** + * .message.SessionLifecycleLogRequest.EventType event = 2; + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .message.SessionLifecycleLogRequest.EventType event = 2; + * @return The event. + */ + @java.lang.Override + public org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest.EventType getEvent() { + org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest.EventType result = org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest.EventType.forNumber(event_); + return result == null ? org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest.EventType.UNRECOGNIZED : result; + } + /** + * .message.SessionLifecycleLogRequest.EventType event = 2; + * @param value The event to set. + * @return This builder for chaining. + */ + public Builder setEvent(org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest.EventType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + event_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .message.SessionLifecycleLogRequest.EventType event = 2; + * @return This builder for chaining. + */ + public Builder clearEvent() { + bitField0_ = (bitField0_ & ~0x00000002); + event_ = 0; + onChanged(); + return this; + } + + private java.lang.Object reason_ = ""; + /** + * string reason = 3; + * @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 = 3; + * @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 = 3; + * @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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string reason = 3; + * @return This builder for chaining. + */ + public Builder clearReason() { + reason_ = getDefaultInstance().getReason(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string reason = 3; + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object user_ = ""; + /** + * string user = 4; + * @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 = 4; + * @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 = 4; + * @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_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string user = 4; + * @return This builder for chaining. + */ + public Builder clearUser() { + user_ = getDefaultInstance().getUser(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string user = 4; + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:message.SessionLifecycleLogRequest) + } + + // @@protoc_insertion_point(class_scope:message.SessionLifecycleLogRequest) + private static final org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest(); + } + + public static org.jumpserver.wisp.ServiceOuterClass.SessionLifecycleLogRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionLifecycleLogRequest 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.ServiceOuterClass.SessionLifecycleLogRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_AssetLoginTicketRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_AssetLoginTicketRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_AssetLoginTicketResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_AssetLoginTicketResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_Status_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_Status_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_TokenRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_TokenRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_TokenResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_TokenResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_SessionCreateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_SessionCreateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_SessionCreateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_SessionCreateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_SessionFinishRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_SessionFinishRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_SessionFinishResp_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_SessionFinishResp_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_ReplayRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_ReplayRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_ReplayResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_ReplayResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_CommandRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_CommandRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_CommandResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_CommandResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_FinishedTaskRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_FinishedTaskRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_TaskResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_TaskResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_RemainReplayRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_RemainReplayRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_RemainReplayResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_RemainReplayResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_StatusResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_StatusResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_CommandConfirmRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_CommandConfirmRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_ReqInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_ReqInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_CommandConfirmResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_CommandConfirmResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_TicketInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_TicketInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_TicketRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_TicketRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_TicketStateResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_TicketStateResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_TicketState_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_TicketState_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_ForwardRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_ForwardRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_ForwardDeleteRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_ForwardDeleteRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_ForwardResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_ForwardResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_PublicSettingResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_PublicSettingResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_Empty_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_Empty_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_ListenPortResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_ListenPortResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_PortInfoRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_PortInfoRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_PortInfoResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_PortInfoResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_PortInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_PortInfo_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_PortFailure_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_PortFailure_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_PortFailureRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_PortFailureRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_CookiesRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_CookiesRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_UserResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_UserResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_message_SessionLifecycleLogRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_message_SessionLifecycleLogRequest_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\rservice.proto\022\007message\032\014common.proto\"V" + + "\n\027AssetLoginTicketRequest\022\017\n\007user_id\030\001 \001" + + "(\t\022\020\n\010asset_id\030\002 \001(\t\022\030\n\020account_username" + + "\030\004 \001(\t\"\216\001\n\030AssetLoginTicketResponse\022\037\n\006s" + + "tatus\030\001 \001(\0132\017.message.Status\022(\n\013ticket_i" + + "nfo\030\002 \001(\0132\023.message.TicketInfo\022\024\n\014need_c" + + "onfirm\030\003 \001(\010\022\021\n\tticket_id\030\004 \001(\t\"!\n\006Statu" + + "s\022\n\n\002ok\030\001 \001(\010\022\013\n\003err\030\002 \001(\t\"\035\n\014TokenReque" + + "st\022\r\n\005token\030\001 \001(\t\"V\n\rTokenResponse\022\037\n\006st" + + "atus\030\001 \001(\0132\017.message.Status\022$\n\004data\030\002 \001(" + + "\0132\026.message.TokenAuthInfo\"6\n\024SessionCrea" + + "teRequest\022\036\n\004data\030\001 \001(\0132\020.message.Sessio" + + "n\"X\n\025SessionCreateResponse\022\037\n\006status\030\001 \001" + + "(\0132\017.message.Status\022\036\n\004data\030\002 \001(\0132\020.mess" + + "age.Session\"R\n\024SessionFinishRequest\022\n\n\002i" + + "d\030\001 \001(\t\022\017\n\007success\030\002 \001(\010\022\020\n\010date_end\030\003 \001" + + "(\003\022\013\n\003err\030\004 \001(\t\"4\n\021SessionFinishResp\022\037\n\006" + + "status\030\001 \001(\0132\017.message.Status\"=\n\rReplayR" + + "equest\022\022\n\nsession_id\030\001 \001(\t\022\030\n\020replay_fil" + + "e_path\030\002 \001(\t\"1\n\016ReplayResponse\022\037\n\006status" + + "\030\001 \001(\0132\017.message.Status\"\337\001\n\016CommandReque" + + "st\022\013\n\003sid\030\001 \001(\t\022\016\n\006org_id\030\002 \001(\t\022\r\n\005input" + + "\030\003 \001(\t\022\016\n\006output\030\004 \001(\t\022\014\n\004user\030\005 \001(\t\022\r\n\005" + + "asset\030\006 \001(\t\022\017\n\007account\030\007 \001(\t\022\021\n\ttimestam" + + "p\030\010 \001(\003\022&\n\nrisk_level\030\t \001(\0162\022.message.Ri" + + "skLevel\022\022\n\ncmd_acl_id\030\n \001(\t\022\024\n\014cmd_group" + + "_id\030\013 \001(\t\"2\n\017CommandResponse\022\037\n\006status\030\001" + + " \001(\0132\017.message.Status\"&\n\023FinishedTaskReq" + + "uest\022\017\n\007task_id\030\001 \001(\t\"3\n\014TaskResponse\022#\n" + + "\004task\030\001 \001(\0132\025.message.TerminalTask\")\n\023Re" + + "mainReplayRequest\022\022\n\nreplay_dir\030\001 \001(\t\"{\n" + + "\024RemainReplayResponse\022\037\n\006status\030\001 \001(\0132\017." + + "message.Status\022\025\n\rsuccess_files\030\002 \003(\t\022\025\n" + + "\rfailure_files\030\003 \003(\t\022\024\n\014failure_errs\030\004 \003" + + "(\t\"1\n\016StatusResponse\022\037\n\006status\030\001 \001(\0132\017.m" + + "essage.Status\"L\n\025CommandConfirmRequest\022\022" + + "\n\nsession_id\030\001 \001(\t\022\022\n\ncmd_acl_id\030\002 \001(\t\022\013" + + "\n\003cmd\030\003 \001(\t\"&\n\007ReqInfo\022\016\n\006method\030\001 \001(\t\022\013" + + "\n\003url\030\002 \001(\t\"\\\n\026CommandConfirmResponse\022\037\n" + + "\006status\030\001 \001(\0132\017.message.Status\022!\n\004info\030\002" + + " \001(\0132\023.message.TicketInfo\"\205\001\n\nTicketInfo" + + "\022#\n\tcheck_req\030\001 \001(\0132\020.message.ReqInfo\022$\n" + + "\ncancel_req\030\002 \001(\0132\020.message.ReqInfo\022\031\n\021t" + + "icket_detail_url\030\003 \001(\t\022\021\n\treviewers\030\004 \003(" + + "\t\".\n\rTicketRequest\022\035\n\003req\030\001 \001(\0132\020.messag" + + "e.ReqInfo\"Z\n\023TicketStateResponse\022\"\n\004Data" + + "\030\001 \001(\0132\024.message.TicketState\022\037\n\006status\030\002" + + " \001(\0132\017.message.Status\"\206\001\n\013TicketState\022)\n" + + "\005state\030\001 \001(\0162\032.message.TicketState.State" + + "\022\021\n\tprocessor\030\002 \001(\t\"9\n\005State\022\010\n\004Open\020\000\022\014" + + "\n\010Approved\020\001\022\014\n\010Rejected\020\002\022\n\n\006Closed\020\003\"P" + + "\n\016ForwardRequest\022\014\n\004host\030\001 \001(\t\022\014\n\004port\030\002" + + " \001(\005\022\"\n\010gateways\030\003 \003(\0132\020.message.Gateway" + + "\"\"\n\024ForwardDeleteRequest\022\n\n\002id\030\001 \001(\t\"Z\n\017" + + "ForwardResponse\022\037\n\006status\030\001 \001(\0132\017.messag" + + "e.Status\022\n\n\002id\030\002 \001(\t\022\014\n\004host\030\003 \001(\t\022\014\n\004po" + + "rt\030\004 \001(\005\"^\n\025PublicSettingResponse\022\037\n\006sta" + + "tus\030\001 \001(\0132\017.message.Status\022$\n\004data\030\002 \001(\013" + + "2\026.message.PublicSetting\"\007\n\005Empty\"D\n\022Lis" + + "tenPortResponse\022\037\n\006status\030\001 \001(\0132\017.messag" + + "e.Status\022\r\n\005ports\030\002 \003(\005\"\037\n\017PortInfoReque" + + "st\022\014\n\004port\030\001 \001(\005\"T\n\020PortInfoResponse\022\037\n\006" + + "status\030\001 \001(\0132\017.message.Status\022\037\n\004data\030\002 " + + "\001(\0132\021.message.PortInfo\"M\n\010PortInfo\022\035\n\005as" + + "set\030\001 \001(\0132\016.message.Asset\022\"\n\010gateways\030\002 " + + "\003(\0132\020.message.Gateway\"+\n\013PortFailure\022\014\n\004" + + "port\030\001 \001(\005\022\016\n\006reason\030\002 \001(\t\"8\n\022PortFailur" + + "eRequest\022\"\n\004data\030\001 \003(\0132\024.message.PortFai" + + "lure\"2\n\016CookiesRequest\022 \n\007cookies\030\001 \003(\0132" + + "\017.message.Cookie\"L\n\014UserResponse\022\037\n\006stat" + + "us\030\001 \001(\0132\017.message.Status\022\033\n\004data\030\002 \001(\0132" + + "\r.message.User\"\316\003\n\032SessionLifecycleLogRe" + + "quest\022\022\n\nsession_id\030\001 \001(\t\022<\n\005event\030\002 \001(\016" + + "2-.message.SessionLifecycleLogRequest.Ev" + + "entType\022\016\n\006reason\030\003 \001(\t\022\014\n\004user\030\004 \001(\t\"\277\002" + + "\n\tEventType\022\027\n\023AssetConnectSuccess\020\000\022\030\n\024" + + "AssetConnectFinished\020\001\022\023\n\017CreateShareLin" + + "k\020\002\022\023\n\017UserJoinSession\020\003\022\024\n\020UserLeaveSes" + + "sion\020\004\022\024\n\020AdminJoinMonitor\020\005\022\024\n\020AdminExi" + + "tMonitor\020\006\022\026\n\022ReplayConvertStart\020\007\022\030\n\024Re" + + "playConvertSuccess\020\010\022\030\n\024ReplayConvertFai" + + "lure\020\t\022\025\n\021ReplayUploadStart\020\n\022\027\n\023ReplayU" + + "ploadSuccess\020\013\022\027\n\023ReplayUploadFailure\020\0142" + + "\373\013\n\007Service\022C\n\020GetTokenAuthInfo\022\025.messag" + + "e.TokenRequest\032\026.message.TokenResponse\"\000" + + "\022>\n\nRenewToken\022\025.message.TokenRequest\032\027." + + "message.StatusResponse\"\000\022P\n\rCreateSessio" + + "n\022\035.message.SessionCreateRequest\032\036.messa" + + "ge.SessionCreateResponse\"\000\022L\n\rFinishSess" + + "ion\022\035.message.SessionFinishRequest\032\032.mes" + + "sage.SessionFinishResp\"\000\022E\n\020UploadReplay" + + "File\022\026.message.ReplayRequest\032\027.message.R" + + "eplayResponse\"\000\022D\n\rUploadCommand\022\027.messa" + + "ge.CommandRequest\032\030.message.CommandRespo" + + "nse\"\000\022I\n\014DispatchTask\022\034.message.Finished" + + "TaskRequest\032\025.message.TaskResponse\"\000(\0010\001" + + "\022R\n\021ScanRemainReplays\022\034.message.RemainRe" + + "playRequest\032\035.message.RemainReplayRespon" + + "se\"\000\022X\n\023CreateCommandTicket\022\036.message.Co" + + "mmandConfirmRequest\032\037.message.CommandCon" + + "firmResponse\"\000\022f\n\035CheckOrCreateAssetLogi" + + "nTicket\022 .message.AssetLoginTicketReques" + + "t\032!.message.AssetLoginTicketResponse\"\000\022J" + + "\n\020CheckTicketState\022\026.message.TicketReque" + + "st\032\034.message.TicketStateResponse\"\000\022A\n\014Ca" + + "ncelTicket\022\026.message.TicketRequest\032\027.mes" + + "sage.StatusResponse\"\000\022D\n\rCreateForward\022\027" + + ".message.ForwardRequest\032\030.message.Forwar" + + "dResponse\"\000\022I\n\rDeleteForward\022\035.message.F" + + "orwardDeleteRequest\032\027.message.StatusResp" + + "onse\"\000\022D\n\020GetPublicSetting\022\016.message.Emp" + + "ty\032\036.message.PublicSettingResponse\"\000\022?\n\016" + + "GetListenPorts\022\016.message.Empty\032\033.message" + + ".ListenPortResponse\"\000\022D\n\013GetPortInfo\022\030.m" + + "essage.PortInfoRequest\032\031.message.PortInf" + + "oResponse\"\000\022K\n\021HandlePortFailure\022\033.messa" + + "ge.PortFailureRequest\032\027.message.StatusRe" + + "sponse\"\000\022F\n\022CheckUserByCookies\022\027.message" + + ".CookiesRequest\032\025.message.UserResponse\"\000" + + "\022[\n\031RecordSessionLifecycleLog\022#.message." + + "SessionLifecycleLogRequest\032\027.message.Sta" + + "tusResponse\"\000B \n\023org.jumpserver.wispZ\t/p" + + "rotobufb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + org.jumpserver.wisp.Common.getDescriptor(), + }); + internal_static_message_AssetLoginTicketRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_message_AssetLoginTicketRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_AssetLoginTicketRequest_descriptor, + new java.lang.String[] { "UserId", "AssetId", "AccountUsername", }); + internal_static_message_AssetLoginTicketResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_message_AssetLoginTicketResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_AssetLoginTicketResponse_descriptor, + new java.lang.String[] { "Status", "TicketInfo", "NeedConfirm", "TicketId", }); + internal_static_message_Status_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_message_Status_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_Status_descriptor, + new java.lang.String[] { "Ok", "Err", }); + internal_static_message_TokenRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_message_TokenRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_TokenRequest_descriptor, + new java.lang.String[] { "Token", }); + internal_static_message_TokenResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_message_TokenResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_TokenResponse_descriptor, + new java.lang.String[] { "Status", "Data", }); + internal_static_message_SessionCreateRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_message_SessionCreateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_SessionCreateRequest_descriptor, + new java.lang.String[] { "Data", }); + internal_static_message_SessionCreateResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_message_SessionCreateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_SessionCreateResponse_descriptor, + new java.lang.String[] { "Status", "Data", }); + internal_static_message_SessionFinishRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_message_SessionFinishRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_SessionFinishRequest_descriptor, + new java.lang.String[] { "Id", "Success", "DateEnd", "Err", }); + internal_static_message_SessionFinishResp_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_message_SessionFinishResp_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_SessionFinishResp_descriptor, + new java.lang.String[] { "Status", }); + internal_static_message_ReplayRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_message_ReplayRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_ReplayRequest_descriptor, + new java.lang.String[] { "SessionId", "ReplayFilePath", }); + internal_static_message_ReplayResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_message_ReplayResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_ReplayResponse_descriptor, + new java.lang.String[] { "Status", }); + internal_static_message_CommandRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_message_CommandRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_CommandRequest_descriptor, + new java.lang.String[] { "Sid", "OrgId", "Input", "Output", "User", "Asset", "Account", "Timestamp", "RiskLevel", "CmdAclId", "CmdGroupId", }); + internal_static_message_CommandResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_message_CommandResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_CommandResponse_descriptor, + new java.lang.String[] { "Status", }); + internal_static_message_FinishedTaskRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_message_FinishedTaskRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_FinishedTaskRequest_descriptor, + new java.lang.String[] { "TaskId", }); + internal_static_message_TaskResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_message_TaskResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_TaskResponse_descriptor, + new java.lang.String[] { "Task", }); + internal_static_message_RemainReplayRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_message_RemainReplayRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_RemainReplayRequest_descriptor, + new java.lang.String[] { "ReplayDir", }); + internal_static_message_RemainReplayResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_message_RemainReplayResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_RemainReplayResponse_descriptor, + new java.lang.String[] { "Status", "SuccessFiles", "FailureFiles", "FailureErrs", }); + internal_static_message_StatusResponse_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_message_StatusResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_StatusResponse_descriptor, + new java.lang.String[] { "Status", }); + internal_static_message_CommandConfirmRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_message_CommandConfirmRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_CommandConfirmRequest_descriptor, + new java.lang.String[] { "SessionId", "CmdAclId", "Cmd", }); + internal_static_message_ReqInfo_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_message_ReqInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_ReqInfo_descriptor, + new java.lang.String[] { "Method", "Url", }); + internal_static_message_CommandConfirmResponse_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_message_CommandConfirmResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_CommandConfirmResponse_descriptor, + new java.lang.String[] { "Status", "Info", }); + internal_static_message_TicketInfo_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_message_TicketInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_TicketInfo_descriptor, + new java.lang.String[] { "CheckReq", "CancelReq", "TicketDetailUrl", "Reviewers", }); + internal_static_message_TicketRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_message_TicketRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_TicketRequest_descriptor, + new java.lang.String[] { "Req", }); + internal_static_message_TicketStateResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_message_TicketStateResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_TicketStateResponse_descriptor, + new java.lang.String[] { "Data", "Status", }); + internal_static_message_TicketState_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_message_TicketState_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_TicketState_descriptor, + new java.lang.String[] { "State", "Processor", }); + internal_static_message_ForwardRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_message_ForwardRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_ForwardRequest_descriptor, + new java.lang.String[] { "Host", "Port", "Gateways", }); + internal_static_message_ForwardDeleteRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_message_ForwardDeleteRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_ForwardDeleteRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_message_ForwardResponse_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_message_ForwardResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_ForwardResponse_descriptor, + new java.lang.String[] { "Status", "Id", "Host", "Port", }); + internal_static_message_PublicSettingResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_message_PublicSettingResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_PublicSettingResponse_descriptor, + new java.lang.String[] { "Status", "Data", }); + internal_static_message_Empty_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_message_Empty_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_Empty_descriptor, + new java.lang.String[] { }); + internal_static_message_ListenPortResponse_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_message_ListenPortResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_ListenPortResponse_descriptor, + new java.lang.String[] { "Status", "Ports", }); + internal_static_message_PortInfoRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_message_PortInfoRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_PortInfoRequest_descriptor, + new java.lang.String[] { "Port", }); + internal_static_message_PortInfoResponse_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_message_PortInfoResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_PortInfoResponse_descriptor, + new java.lang.String[] { "Status", "Data", }); + internal_static_message_PortInfo_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_message_PortInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_PortInfo_descriptor, + new java.lang.String[] { "Asset", "Gateways", }); + internal_static_message_PortFailure_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_message_PortFailure_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_PortFailure_descriptor, + new java.lang.String[] { "Port", "Reason", }); + internal_static_message_PortFailureRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_message_PortFailureRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_PortFailureRequest_descriptor, + new java.lang.String[] { "Data", }); + internal_static_message_CookiesRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_message_CookiesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_CookiesRequest_descriptor, + new java.lang.String[] { "Cookies", }); + internal_static_message_UserResponse_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_message_UserResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_UserResponse_descriptor, + new java.lang.String[] { "Status", "Data", }); + internal_static_message_SessionLifecycleLogRequest_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_message_SessionLifecycleLogRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_message_SessionLifecycleLogRequest_descriptor, + new java.lang.String[] { "SessionId", "Event", "Reason", "User", }); + descriptor.resolveAllFeaturesImmutable(); + org.jumpserver.wisp.Common.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/protos/common.proto b/protos/common.proto index 5340adc..a9cf940 100644 --- a/protos/common.proto +++ b/protos/common.proto @@ -41,6 +41,7 @@ message Asset { string submit_selector = 10; string script = 11; string http_proxy = 12; + string pg_ssl_mode = 13; } string id = 1;