diff --git a/proto/Certificates/CertificateVerification.proto b/proto/Certificates/CertificateVerification.proto new file mode 100644 index 00000000..ee9fbaca --- /dev/null +++ b/proto/Certificates/CertificateVerification.proto @@ -0,0 +1,16 @@ +import "Timestamp.proto"; +import "Certificates/CertificateInfoV2.proto"; + +package Diadoc.Api.Proto.Certificates; + +option java_outer_classname = "CertificateVerificationProtos"; + +message CertificateVerificationRequest { + required bytes CertificateContent = 1; +} + +message CertificateVerificationResponse { + required bool IsValid = 1; + required Timestamp VerifiedAt = 2; + optional CertificateSubjectType SubjectType = 3 [default = UnknownCertificateSubjectType]; +} \ No newline at end of file diff --git a/proto/RoamingOperator.proto b/proto/RoamingOperator.proto new file mode 100644 index 00000000..a0f966d2 --- /dev/null +++ b/proto/RoamingOperator.proto @@ -0,0 +1,19 @@ +package Diadoc.Api.Proto; + +option java_outer_classname = "RoamingOperatorProtos"; + +message RoamingOperatorList { + repeated RoamingOperator RoamingOperators = 1; +} + +message RoamingOperator { + required string FnsId = 1; + required string Name = 2; + required bool IsActive = 3; + repeated OperatorFeature Features = 4; +} + +message OperatorFeature { + required string Name = 1; + required string Description = 2; +} \ No newline at end of file diff --git a/proto/SignatureInfo.proto b/proto/SignatureInfo.proto index 7bdab608..80ea5e42 100644 --- a/proto/SignatureInfo.proto +++ b/proto/SignatureInfo.proto @@ -1,4 +1,4 @@ -import "CertificateInfoV2.proto"; +import "Certificates/CertificateInfoV2.proto"; import "SignatureVerificationResult.proto"; import "Timestamp.proto"; @@ -23,5 +23,5 @@ message SignatureInfo optional string Surname = 13; //Фамилия optional string Snils = 14; //СНИЛС optional string Email = 15; //Email - optional CertificateSubjectType CertificateSubjectType = 16 [default = UnknownCertificateSubjectType]; // Тип владельца сертификата + optional Certificates.CertificateSubjectType CertificateSubjectType = 16 [default = UnknownCertificateSubjectType]; // Тип владельца сертификата } diff --git a/src/main/java/Diadoc/Api/Proto/Certificates/CertificateVerificationProtos.java b/src/main/java/Diadoc/Api/Proto/Certificates/CertificateVerificationProtos.java new file mode 100644 index 00000000..8b4a3862 --- /dev/null +++ b/src/main/java/Diadoc/Api/Proto/Certificates/CertificateVerificationProtos.java @@ -0,0 +1,1353 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: Certificates/CertificateVerification.proto +// Protobuf Java Version: 4.28.1 + +package Diadoc.Api.Proto.Certificates; + +public final class CertificateVerificationProtos { + private CertificateVerificationProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CertificateVerificationProtos.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 CertificateVerificationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Certificates.CertificateVerificationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * required bytes CertificateContent = 1; + * @return Whether the certificateContent field is set. + */ + boolean hasCertificateContent(); + /** + * required bytes CertificateContent = 1; + * @return The certificateContent. + */ + com.google.protobuf.ByteString getCertificateContent(); + } + /** + * Protobuf type {@code Diadoc.Api.Proto.Certificates.CertificateVerificationRequest} + */ + public static final class CertificateVerificationRequest extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Certificates.CertificateVerificationRequest) + CertificateVerificationRequestOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CertificateVerificationRequest.class.getName()); + } + // Use CertificateVerificationRequest.newBuilder() to construct. + private CertificateVerificationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CertificateVerificationRequest() { + certificateContent_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.internal_static_Diadoc_Api_Proto_Certificates_CertificateVerificationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.internal_static_Diadoc_Api_Proto_Certificates_CertificateVerificationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest.class, Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest.Builder.class); + } + + private int bitField0_; + public static final int CERTIFICATECONTENT_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString certificateContent_ = com.google.protobuf.ByteString.EMPTY; + /** + * required bytes CertificateContent = 1; + * @return Whether the certificateContent field is set. + */ + @java.lang.Override + public boolean hasCertificateContent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required bytes CertificateContent = 1; + * @return The certificateContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCertificateContent() { + return certificateContent_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasCertificateContent()) { + memoizedIsInitialized = 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.writeBytes(1, certificateContent_); + } + 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 + .computeBytesSize(1, certificateContent_); + } + 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 Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest other = (Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest) obj; + + if (hasCertificateContent() != other.hasCertificateContent()) return false; + if (hasCertificateContent()) { + if (!getCertificateContent() + .equals(other.getCertificateContent())) 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 (hasCertificateContent()) { + hash = (37 * hash) + CERTIFICATECONTENT_FIELD_NUMBER; + hash = (53 * hash) + getCertificateContent().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest 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 Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest 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 Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest 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(Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest 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 Diadoc.Api.Proto.Certificates.CertificateVerificationRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Diadoc.Api.Proto.Certificates.CertificateVerificationRequest) + Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.internal_static_Diadoc_Api_Proto_Certificates_CertificateVerificationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.internal_static_Diadoc_Api_Proto_Certificates_CertificateVerificationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest.class, Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest.Builder.class); + } + + // Construct using Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + certificateContent_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.internal_static_Diadoc_Api_Proto_Certificates_CertificateVerificationRequest_descriptor; + } + + @java.lang.Override + public Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest getDefaultInstanceForType() { + return Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest.getDefaultInstance(); + } + + @java.lang.Override + public Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest build() { + Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest buildPartial() { + Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest result = new Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.certificateContent_ = certificateContent_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest) { + return mergeFrom((Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest other) { + if (other == Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest.getDefaultInstance()) return this; + if (other.hasCertificateContent()) { + setCertificateContent(other.getCertificateContent()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasCertificateContent()) { + return false; + } + 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: { + certificateContent_ = input.readBytes(); + 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 com.google.protobuf.ByteString certificateContent_ = com.google.protobuf.ByteString.EMPTY; + /** + * required bytes CertificateContent = 1; + * @return Whether the certificateContent field is set. + */ + @java.lang.Override + public boolean hasCertificateContent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required bytes CertificateContent = 1; + * @return The certificateContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCertificateContent() { + return certificateContent_; + } + /** + * required bytes CertificateContent = 1; + * @param value The certificateContent to set. + * @return This builder for chaining. + */ + public Builder setCertificateContent(com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + certificateContent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * required bytes CertificateContent = 1; + * @return This builder for chaining. + */ + public Builder clearCertificateContent() { + bitField0_ = (bitField0_ & ~0x00000001); + certificateContent_ = getDefaultInstance().getCertificateContent(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Certificates.CertificateVerificationRequest) + } + + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Certificates.CertificateVerificationRequest) + private static final Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest(); + } + + public static Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateVerificationRequest 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 Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CertificateVerificationResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.Certificates.CertificateVerificationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * required bool IsValid = 1; + * @return Whether the isValid field is set. + */ + boolean hasIsValid(); + /** + * required bool IsValid = 1; + * @return The isValid. + */ + boolean getIsValid(); + + /** + * required .Diadoc.Api.Proto.Timestamp VerifiedAt = 2; + * @return Whether the verifiedAt field is set. + */ + boolean hasVerifiedAt(); + /** + * required .Diadoc.Api.Proto.Timestamp VerifiedAt = 2; + * @return The verifiedAt. + */ + Diadoc.Api.Proto.TimestampProtos.Timestamp getVerifiedAt(); + /** + * required .Diadoc.Api.Proto.Timestamp VerifiedAt = 2; + */ + Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getVerifiedAtOrBuilder(); + + /** + * optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType SubjectType = 3 [default = UnknownCertificateSubjectType]; + * @return Whether the subjectType field is set. + */ + boolean hasSubjectType(); + /** + * optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType SubjectType = 3 [default = UnknownCertificateSubjectType]; + * @return The subjectType. + */ + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType getSubjectType(); + } + /** + * Protobuf type {@code Diadoc.Api.Proto.Certificates.CertificateVerificationResponse} + */ + public static final class CertificateVerificationResponse extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Certificates.CertificateVerificationResponse) + CertificateVerificationResponseOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + CertificateVerificationResponse.class.getName()); + } + // Use CertificateVerificationResponse.newBuilder() to construct. + private CertificateVerificationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private CertificateVerificationResponse() { + subjectType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.internal_static_Diadoc_Api_Proto_Certificates_CertificateVerificationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.internal_static_Diadoc_Api_Proto_Certificates_CertificateVerificationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse.class, Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse.Builder.class); + } + + private int bitField0_; + public static final int ISVALID_FIELD_NUMBER = 1; + private boolean isValid_ = false; + /** + * required bool IsValid = 1; + * @return Whether the isValid field is set. + */ + @java.lang.Override + public boolean hasIsValid() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required bool IsValid = 1; + * @return The isValid. + */ + @java.lang.Override + public boolean getIsValid() { + return isValid_; + } + + public static final int VERIFIEDAT_FIELD_NUMBER = 2; + private Diadoc.Api.Proto.TimestampProtos.Timestamp verifiedAt_; + /** + * required .Diadoc.Api.Proto.Timestamp VerifiedAt = 2; + * @return Whether the verifiedAt field is set. + */ + @java.lang.Override + public boolean hasVerifiedAt() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required .Diadoc.Api.Proto.Timestamp VerifiedAt = 2; + * @return The verifiedAt. + */ + @java.lang.Override + public Diadoc.Api.Proto.TimestampProtos.Timestamp getVerifiedAt() { + return verifiedAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : verifiedAt_; + } + /** + * required .Diadoc.Api.Proto.Timestamp VerifiedAt = 2; + */ + @java.lang.Override + public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getVerifiedAtOrBuilder() { + return verifiedAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : verifiedAt_; + } + + public static final int SUBJECTTYPE_FIELD_NUMBER = 3; + private int subjectType_ = 0; + /** + * optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType SubjectType = 3 [default = UnknownCertificateSubjectType]; + * @return Whether the subjectType field is set. + */ + @java.lang.Override public boolean hasSubjectType() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType SubjectType = 3 [default = UnknownCertificateSubjectType]; + * @return The subjectType. + */ + @java.lang.Override public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType getSubjectType() { + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType result = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType.forNumber(subjectType_); + return result == null ? Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasIsValid()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasVerifiedAt()) { + memoizedIsInitialized = 0; + return false; + } + if (!getVerifiedAt().isInitialized()) { + memoizedIsInitialized = 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.writeBool(1, isValid_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getVerifiedAt()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(3, subjectType_); + } + 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 + .computeBoolSize(1, isValid_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getVerifiedAt()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, subjectType_); + } + 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 Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse)) { + return super.equals(obj); + } + Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse other = (Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse) obj; + + if (hasIsValid() != other.hasIsValid()) return false; + if (hasIsValid()) { + if (getIsValid() + != other.getIsValid()) return false; + } + if (hasVerifiedAt() != other.hasVerifiedAt()) return false; + if (hasVerifiedAt()) { + if (!getVerifiedAt() + .equals(other.getVerifiedAt())) return false; + } + if (hasSubjectType() != other.hasSubjectType()) return false; + if (hasSubjectType()) { + if (subjectType_ != other.subjectType_) 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 (hasIsValid()) { + hash = (37 * hash) + ISVALID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsValid()); + } + if (hasVerifiedAt()) { + hash = (37 * hash) + VERIFIEDAT_FIELD_NUMBER; + hash = (53 * hash) + getVerifiedAt().hashCode(); + } + if (hasSubjectType()) { + hash = (37 * hash) + SUBJECTTYPE_FIELD_NUMBER; + hash = (53 * hash) + subjectType_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse 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 Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse 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 Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse 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(Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse 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 Diadoc.Api.Proto.Certificates.CertificateVerificationResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Diadoc.Api.Proto.Certificates.CertificateVerificationResponse) + Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.internal_static_Diadoc_Api_Proto_Certificates_CertificateVerificationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.internal_static_Diadoc_Api_Proto_Certificates_CertificateVerificationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse.class, Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse.Builder.class); + } + + // Construct using Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage + .alwaysUseFieldBuilders) { + getVerifiedAtFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + isValid_ = false; + verifiedAt_ = null; + if (verifiedAtBuilder_ != null) { + verifiedAtBuilder_.dispose(); + verifiedAtBuilder_ = null; + } + subjectType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.internal_static_Diadoc_Api_Proto_Certificates_CertificateVerificationResponse_descriptor; + } + + @java.lang.Override + public Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse getDefaultInstanceForType() { + return Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse.getDefaultInstance(); + } + + @java.lang.Override + public Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse build() { + Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse buildPartial() { + Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse result = new Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.isValid_ = isValid_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.verifiedAt_ = verifiedAtBuilder_ == null + ? verifiedAt_ + : verifiedAtBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.subjectType_ = subjectType_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse) { + return mergeFrom((Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse other) { + if (other == Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse.getDefaultInstance()) return this; + if (other.hasIsValid()) { + setIsValid(other.getIsValid()); + } + if (other.hasVerifiedAt()) { + mergeVerifiedAt(other.getVerifiedAt()); + } + if (other.hasSubjectType()) { + setSubjectType(other.getSubjectType()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasIsValid()) { + return false; + } + if (!hasVerifiedAt()) { + return false; + } + if (!getVerifiedAt().isInitialized()) { + return false; + } + 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: { + isValid_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getVerifiedAtFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + int tmpRaw = input.readEnum(); + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType tmpValue = + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType.forNumber(tmpRaw); + if (tmpValue == null) { + mergeUnknownVarintField(3, tmpRaw); + } else { + subjectType_ = tmpRaw; + 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 boolean isValid_ ; + /** + * required bool IsValid = 1; + * @return Whether the isValid field is set. + */ + @java.lang.Override + public boolean hasIsValid() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required bool IsValid = 1; + * @return The isValid. + */ + @java.lang.Override + public boolean getIsValid() { + return isValid_; + } + /** + * required bool IsValid = 1; + * @param value The isValid to set. + * @return This builder for chaining. + */ + public Builder setIsValid(boolean value) { + + isValid_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * required bool IsValid = 1; + * @return This builder for chaining. + */ + public Builder clearIsValid() { + bitField0_ = (bitField0_ & ~0x00000001); + isValid_ = false; + onChanged(); + return this; + } + + private Diadoc.Api.Proto.TimestampProtos.Timestamp verifiedAt_; + private com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> verifiedAtBuilder_; + /** + * required .Diadoc.Api.Proto.Timestamp VerifiedAt = 2; + * @return Whether the verifiedAt field is set. + */ + public boolean hasVerifiedAt() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required .Diadoc.Api.Proto.Timestamp VerifiedAt = 2; + * @return The verifiedAt. + */ + public Diadoc.Api.Proto.TimestampProtos.Timestamp getVerifiedAt() { + if (verifiedAtBuilder_ == null) { + return verifiedAt_ == null ? Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : verifiedAt_; + } else { + return verifiedAtBuilder_.getMessage(); + } + } + /** + * required .Diadoc.Api.Proto.Timestamp VerifiedAt = 2; + */ + public Builder setVerifiedAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { + if (verifiedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + verifiedAt_ = value; + } else { + verifiedAtBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * required .Diadoc.Api.Proto.Timestamp VerifiedAt = 2; + */ + public Builder setVerifiedAt( + Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder builderForValue) { + if (verifiedAtBuilder_ == null) { + verifiedAt_ = builderForValue.build(); + } else { + verifiedAtBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * required .Diadoc.Api.Proto.Timestamp VerifiedAt = 2; + */ + public Builder mergeVerifiedAt(Diadoc.Api.Proto.TimestampProtos.Timestamp value) { + if (verifiedAtBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + verifiedAt_ != null && + verifiedAt_ != Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance()) { + getVerifiedAtBuilder().mergeFrom(value); + } else { + verifiedAt_ = value; + } + } else { + verifiedAtBuilder_.mergeFrom(value); + } + if (verifiedAt_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * required .Diadoc.Api.Proto.Timestamp VerifiedAt = 2; + */ + public Builder clearVerifiedAt() { + bitField0_ = (bitField0_ & ~0x00000002); + verifiedAt_ = null; + if (verifiedAtBuilder_ != null) { + verifiedAtBuilder_.dispose(); + verifiedAtBuilder_ = null; + } + onChanged(); + return this; + } + /** + * required .Diadoc.Api.Proto.Timestamp VerifiedAt = 2; + */ + public Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder getVerifiedAtBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getVerifiedAtFieldBuilder().getBuilder(); + } + /** + * required .Diadoc.Api.Proto.Timestamp VerifiedAt = 2; + */ + public Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder getVerifiedAtOrBuilder() { + if (verifiedAtBuilder_ != null) { + return verifiedAtBuilder_.getMessageOrBuilder(); + } else { + return verifiedAt_ == null ? + Diadoc.Api.Proto.TimestampProtos.Timestamp.getDefaultInstance() : verifiedAt_; + } + } + /** + * required .Diadoc.Api.Proto.Timestamp VerifiedAt = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder> + getVerifiedAtFieldBuilder() { + if (verifiedAtBuilder_ == null) { + verifiedAtBuilder_ = new com.google.protobuf.SingleFieldBuilder< + Diadoc.Api.Proto.TimestampProtos.Timestamp, Diadoc.Api.Proto.TimestampProtos.Timestamp.Builder, Diadoc.Api.Proto.TimestampProtos.TimestampOrBuilder>( + getVerifiedAt(), + getParentForChildren(), + isClean()); + verifiedAt_ = null; + } + return verifiedAtBuilder_; + } + + private int subjectType_ = 0; + /** + * optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType SubjectType = 3 [default = UnknownCertificateSubjectType]; + * @return Whether the subjectType field is set. + */ + @java.lang.Override public boolean hasSubjectType() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType SubjectType = 3 [default = UnknownCertificateSubjectType]; + * @return The subjectType. + */ + @java.lang.Override + public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType getSubjectType() { + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType result = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType.forNumber(subjectType_); + return result == null ? Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType : result; + } + /** + * optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType SubjectType = 3 [default = UnknownCertificateSubjectType]; + * @param value The subjectType to set. + * @return This builder for chaining. + */ + public Builder setSubjectType(Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + subjectType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType SubjectType = 3 [default = UnknownCertificateSubjectType]; + * @return This builder for chaining. + */ + public Builder clearSubjectType() { + bitField0_ = (bitField0_ & ~0x00000004); + subjectType_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Certificates.CertificateVerificationResponse) + } + + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Certificates.CertificateVerificationResponse) + private static final Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse(); + } + + public static Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CertificateVerificationResponse 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 Diadoc.Api.Proto.Certificates.CertificateVerificationProtos.CertificateVerificationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Diadoc_Api_Proto_Certificates_CertificateVerificationRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Diadoc_Api_Proto_Certificates_CertificateVerificationRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Diadoc_Api_Proto_Certificates_CertificateVerificationResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Diadoc_Api_Proto_Certificates_CertificateVerificationResponse_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*Certificates/CertificateVerification.p" + + "roto\022\035Diadoc.Api.Proto.Certificates\032\017Tim" + + "estamp.proto\032$Certificates/CertificateIn" + + "foV2.proto\"<\n\036CertificateVerificationReq" + + "uest\022\032\n\022CertificateContent\030\001 \002(\014\"\316\001\n\037Cer" + + "tificateVerificationResponse\022\017\n\007IsValid\030" + + "\001 \002(\010\022/\n\nVerifiedAt\030\002 \002(\0132\033.Diadoc.Api.P" + + "roto.Timestamp\022i\n\013SubjectType\030\003 \001(\01625.Di" + + "adoc.Api.Proto.Certificates.CertificateS" + + "ubjectType:\035UnknownCertificateSubjectTyp" + + "eB\037B\035CertificateVerificationProtos" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + Diadoc.Api.Proto.TimestampProtos.getDescriptor(), + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.getDescriptor(), + }); + internal_static_Diadoc_Api_Proto_Certificates_CertificateVerificationRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Diadoc_Api_Proto_Certificates_CertificateVerificationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Diadoc_Api_Proto_Certificates_CertificateVerificationRequest_descriptor, + new java.lang.String[] { "CertificateContent", }); + internal_static_Diadoc_Api_Proto_Certificates_CertificateVerificationResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_Diadoc_Api_Proto_Certificates_CertificateVerificationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Diadoc_Api_Proto_Certificates_CertificateVerificationResponse_descriptor, + new java.lang.String[] { "IsValid", "VerifiedAt", "SubjectType", }); + descriptor.resolveAllFeaturesImmutable(); + Diadoc.Api.Proto.TimestampProtos.getDescriptor(); + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/Diadoc/Api/Proto/RoamingOperatorProtos.java b/src/main/java/Diadoc/Api/Proto/RoamingOperatorProtos.java new file mode 100644 index 00000000..bfc27c6b --- /dev/null +++ b/src/main/java/Diadoc/Api/Proto/RoamingOperatorProtos.java @@ -0,0 +1,2801 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: RoamingOperator.proto +// Protobuf Java Version: 4.28.1 + +package Diadoc.Api.Proto; + +public final class RoamingOperatorProtos { + private RoamingOperatorProtos() {} + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + RoamingOperatorProtos.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 RoamingOperatorListOrBuilder extends + // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.RoamingOperatorList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + java.util.List + getRoamingOperatorsList(); + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator getRoamingOperators(int index); + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + int getRoamingOperatorsCount(); + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + java.util.List + getRoamingOperatorsOrBuilderList(); + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorOrBuilder getRoamingOperatorsOrBuilder( + int index); + } + /** + * Protobuf type {@code Diadoc.Api.Proto.RoamingOperatorList} + */ + public static final class RoamingOperatorList extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.RoamingOperatorList) + RoamingOperatorListOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + RoamingOperatorList.class.getName()); + } + // Use RoamingOperatorList.newBuilder() to construct. + private RoamingOperatorList(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private RoamingOperatorList() { + roamingOperators_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Diadoc.Api.Proto.RoamingOperatorProtos.internal_static_Diadoc_Api_Proto_RoamingOperatorList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return Diadoc.Api.Proto.RoamingOperatorProtos.internal_static_Diadoc_Api_Proto_RoamingOperatorList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList.class, Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList.Builder.class); + } + + public static final int ROAMINGOPERATORS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List roamingOperators_; + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + @java.lang.Override + public java.util.List getRoamingOperatorsList() { + return roamingOperators_; + } + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + @java.lang.Override + public java.util.List + getRoamingOperatorsOrBuilderList() { + return roamingOperators_; + } + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + @java.lang.Override + public int getRoamingOperatorsCount() { + return roamingOperators_.size(); + } + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + @java.lang.Override + public Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator getRoamingOperators(int index) { + return roamingOperators_.get(index); + } + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + @java.lang.Override + public Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorOrBuilder getRoamingOperatorsOrBuilder( + int index) { + return roamingOperators_.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; + + for (int i = 0; i < getRoamingOperatorsCount(); i++) { + if (!getRoamingOperators(i).isInitialized()) { + memoizedIsInitialized = 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 < roamingOperators_.size(); i++) { + output.writeMessage(1, roamingOperators_.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 < roamingOperators_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, roamingOperators_.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 Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList)) { + return super.equals(obj); + } + Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList other = (Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList) obj; + + if (!getRoamingOperatorsList() + .equals(other.getRoamingOperatorsList())) 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 (getRoamingOperatorsCount() > 0) { + hash = (37 * hash) + ROAMINGOPERATORS_FIELD_NUMBER; + hash = (53 * hash) + getRoamingOperatorsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList 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 Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList 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 Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList 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(Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList 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 Diadoc.Api.Proto.RoamingOperatorList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Diadoc.Api.Proto.RoamingOperatorList) + Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Diadoc.Api.Proto.RoamingOperatorProtos.internal_static_Diadoc_Api_Proto_RoamingOperatorList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return Diadoc.Api.Proto.RoamingOperatorProtos.internal_static_Diadoc_Api_Proto_RoamingOperatorList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList.class, Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList.Builder.class); + } + + // Construct using Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (roamingOperatorsBuilder_ == null) { + roamingOperators_ = java.util.Collections.emptyList(); + } else { + roamingOperators_ = null; + roamingOperatorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return Diadoc.Api.Proto.RoamingOperatorProtos.internal_static_Diadoc_Api_Proto_RoamingOperatorList_descriptor; + } + + @java.lang.Override + public Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList getDefaultInstanceForType() { + return Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList.getDefaultInstance(); + } + + @java.lang.Override + public Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList build() { + Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList buildPartial() { + Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList result = new Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList result) { + if (roamingOperatorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + roamingOperators_ = java.util.Collections.unmodifiableList(roamingOperators_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.roamingOperators_ = roamingOperators_; + } else { + result.roamingOperators_ = roamingOperatorsBuilder_.build(); + } + } + + private void buildPartial0(Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList) { + return mergeFrom((Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList other) { + if (other == Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList.getDefaultInstance()) return this; + if (roamingOperatorsBuilder_ == null) { + if (!other.roamingOperators_.isEmpty()) { + if (roamingOperators_.isEmpty()) { + roamingOperators_ = other.roamingOperators_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRoamingOperatorsIsMutable(); + roamingOperators_.addAll(other.roamingOperators_); + } + onChanged(); + } + } else { + if (!other.roamingOperators_.isEmpty()) { + if (roamingOperatorsBuilder_.isEmpty()) { + roamingOperatorsBuilder_.dispose(); + roamingOperatorsBuilder_ = null; + roamingOperators_ = other.roamingOperators_; + bitField0_ = (bitField0_ & ~0x00000001); + roamingOperatorsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getRoamingOperatorsFieldBuilder() : null; + } else { + roamingOperatorsBuilder_.addAllMessages(other.roamingOperators_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + for (int i = 0; i < getRoamingOperatorsCount(); i++) { + if (!getRoamingOperators(i).isInitialized()) { + return false; + } + } + 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: { + Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator m = + input.readMessage( + Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator.parser(), + extensionRegistry); + if (roamingOperatorsBuilder_ == null) { + ensureRoamingOperatorsIsMutable(); + roamingOperators_.add(m); + } else { + roamingOperatorsBuilder_.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 roamingOperators_ = + java.util.Collections.emptyList(); + private void ensureRoamingOperatorsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + roamingOperators_ = new java.util.ArrayList(roamingOperators_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator, Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator.Builder, Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorOrBuilder> roamingOperatorsBuilder_; + + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + public java.util.List getRoamingOperatorsList() { + if (roamingOperatorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(roamingOperators_); + } else { + return roamingOperatorsBuilder_.getMessageList(); + } + } + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + public int getRoamingOperatorsCount() { + if (roamingOperatorsBuilder_ == null) { + return roamingOperators_.size(); + } else { + return roamingOperatorsBuilder_.getCount(); + } + } + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + public Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator getRoamingOperators(int index) { + if (roamingOperatorsBuilder_ == null) { + return roamingOperators_.get(index); + } else { + return roamingOperatorsBuilder_.getMessage(index); + } + } + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + public Builder setRoamingOperators( + int index, Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator value) { + if (roamingOperatorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoamingOperatorsIsMutable(); + roamingOperators_.set(index, value); + onChanged(); + } else { + roamingOperatorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + public Builder setRoamingOperators( + int index, Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator.Builder builderForValue) { + if (roamingOperatorsBuilder_ == null) { + ensureRoamingOperatorsIsMutable(); + roamingOperators_.set(index, builderForValue.build()); + onChanged(); + } else { + roamingOperatorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + public Builder addRoamingOperators(Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator value) { + if (roamingOperatorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoamingOperatorsIsMutable(); + roamingOperators_.add(value); + onChanged(); + } else { + roamingOperatorsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + public Builder addRoamingOperators( + int index, Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator value) { + if (roamingOperatorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoamingOperatorsIsMutable(); + roamingOperators_.add(index, value); + onChanged(); + } else { + roamingOperatorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + public Builder addRoamingOperators( + Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator.Builder builderForValue) { + if (roamingOperatorsBuilder_ == null) { + ensureRoamingOperatorsIsMutable(); + roamingOperators_.add(builderForValue.build()); + onChanged(); + } else { + roamingOperatorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + public Builder addRoamingOperators( + int index, Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator.Builder builderForValue) { + if (roamingOperatorsBuilder_ == null) { + ensureRoamingOperatorsIsMutable(); + roamingOperators_.add(index, builderForValue.build()); + onChanged(); + } else { + roamingOperatorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + public Builder addAllRoamingOperators( + java.lang.Iterable values) { + if (roamingOperatorsBuilder_ == null) { + ensureRoamingOperatorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, roamingOperators_); + onChanged(); + } else { + roamingOperatorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + public Builder clearRoamingOperators() { + if (roamingOperatorsBuilder_ == null) { + roamingOperators_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + roamingOperatorsBuilder_.clear(); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + public Builder removeRoamingOperators(int index) { + if (roamingOperatorsBuilder_ == null) { + ensureRoamingOperatorsIsMutable(); + roamingOperators_.remove(index); + onChanged(); + } else { + roamingOperatorsBuilder_.remove(index); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + public Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator.Builder getRoamingOperatorsBuilder( + int index) { + return getRoamingOperatorsFieldBuilder().getBuilder(index); + } + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + public Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorOrBuilder getRoamingOperatorsOrBuilder( + int index) { + if (roamingOperatorsBuilder_ == null) { + return roamingOperators_.get(index); } else { + return roamingOperatorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + public java.util.List + getRoamingOperatorsOrBuilderList() { + if (roamingOperatorsBuilder_ != null) { + return roamingOperatorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(roamingOperators_); + } + } + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + public Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator.Builder addRoamingOperatorsBuilder() { + return getRoamingOperatorsFieldBuilder().addBuilder( + Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator.getDefaultInstance()); + } + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + public Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator.Builder addRoamingOperatorsBuilder( + int index) { + return getRoamingOperatorsFieldBuilder().addBuilder( + index, Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator.getDefaultInstance()); + } + /** + * repeated .Diadoc.Api.Proto.RoamingOperator RoamingOperators = 1; + */ + public java.util.List + getRoamingOperatorsBuilderList() { + return getRoamingOperatorsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator, Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator.Builder, Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorOrBuilder> + getRoamingOperatorsFieldBuilder() { + if (roamingOperatorsBuilder_ == null) { + roamingOperatorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator, Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator.Builder, Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorOrBuilder>( + roamingOperators_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + roamingOperators_ = null; + } + return roamingOperatorsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.RoamingOperatorList) + } + + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.RoamingOperatorList) + private static final Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList(); + } + + public static Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoamingOperatorList 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 Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RoamingOperatorOrBuilder extends + // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.RoamingOperator) + com.google.protobuf.MessageOrBuilder { + + /** + * required string FnsId = 1; + * @return Whether the fnsId field is set. + */ + boolean hasFnsId(); + /** + * required string FnsId = 1; + * @return The fnsId. + */ + java.lang.String getFnsId(); + /** + * required string FnsId = 1; + * @return The bytes for fnsId. + */ + com.google.protobuf.ByteString + getFnsIdBytes(); + + /** + * required string Name = 2; + * @return Whether the name field is set. + */ + boolean hasName(); + /** + * required string Name = 2; + * @return The name. + */ + java.lang.String getName(); + /** + * required string Name = 2; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * required bool IsActive = 3; + * @return Whether the isActive field is set. + */ + boolean hasIsActive(); + /** + * required bool IsActive = 3; + * @return The isActive. + */ + boolean getIsActive(); + + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + java.util.List + getFeaturesList(); + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature getFeatures(int index); + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + int getFeaturesCount(); + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + java.util.List + getFeaturesOrBuilderList(); + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeatureOrBuilder getFeaturesOrBuilder( + int index); + } + /** + * Protobuf type {@code Diadoc.Api.Proto.RoamingOperator} + */ + public static final class RoamingOperator extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.RoamingOperator) + RoamingOperatorOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + RoamingOperator.class.getName()); + } + // Use RoamingOperator.newBuilder() to construct. + private RoamingOperator(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private RoamingOperator() { + fnsId_ = ""; + name_ = ""; + features_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Diadoc.Api.Proto.RoamingOperatorProtos.internal_static_Diadoc_Api_Proto_RoamingOperator_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return Diadoc.Api.Proto.RoamingOperatorProtos.internal_static_Diadoc_Api_Proto_RoamingOperator_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator.class, Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator.Builder.class); + } + + private int bitField0_; + public static final int FNSID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object fnsId_ = ""; + /** + * required string FnsId = 1; + * @return Whether the fnsId field is set. + */ + @java.lang.Override + public boolean hasFnsId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required string FnsId = 1; + * @return The fnsId. + */ + @java.lang.Override + public java.lang.String getFnsId() { + java.lang.Object ref = fnsId_; + 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(); + if (bs.isValidUtf8()) { + fnsId_ = s; + } + return s; + } + } + /** + * required string FnsId = 1; + * @return The bytes for fnsId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFnsIdBytes() { + java.lang.Object ref = fnsId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fnsId_ = 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_ = ""; + /** + * required string Name = 2; + * @return Whether the name field is set. + */ + @java.lang.Override + public boolean hasName() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required 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(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } + } + /** + * required 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 ISACTIVE_FIELD_NUMBER = 3; + private boolean isActive_ = false; + /** + * required bool IsActive = 3; + * @return Whether the isActive field is set. + */ + @java.lang.Override + public boolean hasIsActive() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required bool IsActive = 3; + * @return The isActive. + */ + @java.lang.Override + public boolean getIsActive() { + return isActive_; + } + + public static final int FEATURES_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private java.util.List features_; + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + @java.lang.Override + public java.util.List getFeaturesList() { + return features_; + } + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + @java.lang.Override + public java.util.List + getFeaturesOrBuilderList() { + return features_; + } + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + @java.lang.Override + public int getFeaturesCount() { + return features_.size(); + } + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + @java.lang.Override + public Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature getFeatures(int index) { + return features_.get(index); + } + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + @java.lang.Override + public Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeatureOrBuilder getFeaturesOrBuilder( + int index) { + return features_.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; + + if (!hasFnsId()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasName()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasIsActive()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getFeaturesCount(); i++) { + if (!getFeatures(i).isInitialized()) { + memoizedIsInitialized = 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)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, fnsId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(3, isActive_); + } + for (int i = 0; i < features_.size(); i++) { + output.writeMessage(4, features_.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.GeneratedMessage.computeStringSize(1, fnsId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, isActive_); + } + for (int i = 0; i < features_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, features_.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 Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator)) { + return super.equals(obj); + } + Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator other = (Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator) obj; + + if (hasFnsId() != other.hasFnsId()) return false; + if (hasFnsId()) { + if (!getFnsId() + .equals(other.getFnsId())) return false; + } + if (hasName() != other.hasName()) return false; + if (hasName()) { + if (!getName() + .equals(other.getName())) return false; + } + if (hasIsActive() != other.hasIsActive()) return false; + if (hasIsActive()) { + if (getIsActive() + != other.getIsActive()) return false; + } + if (!getFeaturesList() + .equals(other.getFeaturesList())) 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 (hasFnsId()) { + hash = (37 * hash) + FNSID_FIELD_NUMBER; + hash = (53 * hash) + getFnsId().hashCode(); + } + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasIsActive()) { + hash = (37 * hash) + ISACTIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsActive()); + } + if (getFeaturesCount() > 0) { + hash = (37 * hash) + FEATURES_FIELD_NUMBER; + hash = (53 * hash) + getFeaturesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator 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 Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator 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 Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator 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(Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator 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 Diadoc.Api.Proto.RoamingOperator} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Diadoc.Api.Proto.RoamingOperator) + Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperatorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Diadoc.Api.Proto.RoamingOperatorProtos.internal_static_Diadoc_Api_Proto_RoamingOperator_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return Diadoc.Api.Proto.RoamingOperatorProtos.internal_static_Diadoc_Api_Proto_RoamingOperator_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator.class, Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator.Builder.class); + } + + // Construct using Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fnsId_ = ""; + name_ = ""; + isActive_ = false; + if (featuresBuilder_ == null) { + features_ = java.util.Collections.emptyList(); + } else { + features_ = null; + featuresBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return Diadoc.Api.Proto.RoamingOperatorProtos.internal_static_Diadoc_Api_Proto_RoamingOperator_descriptor; + } + + @java.lang.Override + public Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator getDefaultInstanceForType() { + return Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator.getDefaultInstance(); + } + + @java.lang.Override + public Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator build() { + Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator buildPartial() { + Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator result = new Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator result) { + if (featuresBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + features_ = java.util.Collections.unmodifiableList(features_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.features_ = features_; + } else { + result.features_ = featuresBuilder_.build(); + } + } + + private void buildPartial0(Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fnsId_ = fnsId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isActive_ = isActive_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator) { + return mergeFrom((Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator other) { + if (other == Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator.getDefaultInstance()) return this; + if (other.hasFnsId()) { + fnsId_ = other.fnsId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasName()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasIsActive()) { + setIsActive(other.getIsActive()); + } + if (featuresBuilder_ == null) { + if (!other.features_.isEmpty()) { + if (features_.isEmpty()) { + features_ = other.features_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureFeaturesIsMutable(); + features_.addAll(other.features_); + } + onChanged(); + } + } else { + if (!other.features_.isEmpty()) { + if (featuresBuilder_.isEmpty()) { + featuresBuilder_.dispose(); + featuresBuilder_ = null; + features_ = other.features_; + bitField0_ = (bitField0_ & ~0x00000008); + featuresBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getFeaturesFieldBuilder() : null; + } else { + featuresBuilder_.addAllMessages(other.features_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasFnsId()) { + return false; + } + if (!hasName()) { + return false; + } + if (!hasIsActive()) { + return false; + } + for (int i = 0; i < getFeaturesCount(); i++) { + if (!getFeatures(i).isInitialized()) { + return false; + } + } + 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: { + fnsId_ = input.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + name_ = input.readBytes(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + isActive_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature m = + input.readMessage( + Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature.parser(), + extensionRegistry); + if (featuresBuilder_ == null) { + ensureFeaturesIsMutable(); + features_.add(m); + } else { + featuresBuilder_.addMessage(m); + } + 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 fnsId_ = ""; + /** + * required string FnsId = 1; + * @return Whether the fnsId field is set. + */ + public boolean hasFnsId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required string FnsId = 1; + * @return The fnsId. + */ + public java.lang.String getFnsId() { + java.lang.Object ref = fnsId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + fnsId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string FnsId = 1; + * @return The bytes for fnsId. + */ + public com.google.protobuf.ByteString + getFnsIdBytes() { + java.lang.Object ref = fnsId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fnsId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string FnsId = 1; + * @param value The fnsId to set. + * @return This builder for chaining. + */ + public Builder setFnsId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + fnsId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * required string FnsId = 1; + * @return This builder for chaining. + */ + public Builder clearFnsId() { + fnsId_ = getDefaultInstance().getFnsId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * required string FnsId = 1; + * @param value The bytes for fnsId to set. + * @return This builder for chaining. + */ + public Builder setFnsIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + fnsId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * required string Name = 2; + * @return Whether the name field is set. + */ + public boolean hasName() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required 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(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required 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; + } + } + /** + * required 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; + } + /** + * required string Name = 2; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * required 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(); } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean isActive_ ; + /** + * required bool IsActive = 3; + * @return Whether the isActive field is set. + */ + @java.lang.Override + public boolean hasIsActive() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * required bool IsActive = 3; + * @return The isActive. + */ + @java.lang.Override + public boolean getIsActive() { + return isActive_; + } + /** + * required bool IsActive = 3; + * @param value The isActive to set. + * @return This builder for chaining. + */ + public Builder setIsActive(boolean value) { + + isActive_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * required bool IsActive = 3; + * @return This builder for chaining. + */ + public Builder clearIsActive() { + bitField0_ = (bitField0_ & ~0x00000004); + isActive_ = false; + onChanged(); + return this; + } + + private java.util.List features_ = + java.util.Collections.emptyList(); + private void ensureFeaturesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + features_ = new java.util.ArrayList(features_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature, Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature.Builder, Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeatureOrBuilder> featuresBuilder_; + + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + public java.util.List getFeaturesList() { + if (featuresBuilder_ == null) { + return java.util.Collections.unmodifiableList(features_); + } else { + return featuresBuilder_.getMessageList(); + } + } + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + public int getFeaturesCount() { + if (featuresBuilder_ == null) { + return features_.size(); + } else { + return featuresBuilder_.getCount(); + } + } + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + public Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature getFeatures(int index) { + if (featuresBuilder_ == null) { + return features_.get(index); + } else { + return featuresBuilder_.getMessage(index); + } + } + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + public Builder setFeatures( + int index, Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature value) { + if (featuresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeaturesIsMutable(); + features_.set(index, value); + onChanged(); + } else { + featuresBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + public Builder setFeatures( + int index, Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature.Builder builderForValue) { + if (featuresBuilder_ == null) { + ensureFeaturesIsMutable(); + features_.set(index, builderForValue.build()); + onChanged(); + } else { + featuresBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + public Builder addFeatures(Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature value) { + if (featuresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeaturesIsMutable(); + features_.add(value); + onChanged(); + } else { + featuresBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + public Builder addFeatures( + int index, Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature value) { + if (featuresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFeaturesIsMutable(); + features_.add(index, value); + onChanged(); + } else { + featuresBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + public Builder addFeatures( + Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature.Builder builderForValue) { + if (featuresBuilder_ == null) { + ensureFeaturesIsMutable(); + features_.add(builderForValue.build()); + onChanged(); + } else { + featuresBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + public Builder addFeatures( + int index, Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature.Builder builderForValue) { + if (featuresBuilder_ == null) { + ensureFeaturesIsMutable(); + features_.add(index, builderForValue.build()); + onChanged(); + } else { + featuresBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + public Builder addAllFeatures( + java.lang.Iterable values) { + if (featuresBuilder_ == null) { + ensureFeaturesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, features_); + onChanged(); + } else { + featuresBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + public Builder clearFeatures() { + if (featuresBuilder_ == null) { + features_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + featuresBuilder_.clear(); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + public Builder removeFeatures(int index) { + if (featuresBuilder_ == null) { + ensureFeaturesIsMutable(); + features_.remove(index); + onChanged(); + } else { + featuresBuilder_.remove(index); + } + return this; + } + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + public Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature.Builder getFeaturesBuilder( + int index) { + return getFeaturesFieldBuilder().getBuilder(index); + } + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + public Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeatureOrBuilder getFeaturesOrBuilder( + int index) { + if (featuresBuilder_ == null) { + return features_.get(index); } else { + return featuresBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + public java.util.List + getFeaturesOrBuilderList() { + if (featuresBuilder_ != null) { + return featuresBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(features_); + } + } + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + public Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature.Builder addFeaturesBuilder() { + return getFeaturesFieldBuilder().addBuilder( + Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature.getDefaultInstance()); + } + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + public Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature.Builder addFeaturesBuilder( + int index) { + return getFeaturesFieldBuilder().addBuilder( + index, Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature.getDefaultInstance()); + } + /** + * repeated .Diadoc.Api.Proto.OperatorFeature Features = 4; + */ + public java.util.List + getFeaturesBuilderList() { + return getFeaturesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature, Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature.Builder, Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeatureOrBuilder> + getFeaturesFieldBuilder() { + if (featuresBuilder_ == null) { + featuresBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature, Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature.Builder, Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeatureOrBuilder>( + features_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + features_ = null; + } + return featuresBuilder_; + } + + // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.RoamingOperator) + } + + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.RoamingOperator) + private static final Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator(); + } + + public static Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RoamingOperator 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 Diadoc.Api.Proto.RoamingOperatorProtos.RoamingOperator getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OperatorFeatureOrBuilder extends + // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.OperatorFeature) + com.google.protobuf.MessageOrBuilder { + + /** + * required string Name = 1; + * @return Whether the name field is set. + */ + boolean hasName(); + /** + * required string Name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * required string Name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * required string Description = 2; + * @return Whether the description field is set. + */ + boolean hasDescription(); + /** + * required string Description = 2; + * @return The description. + */ + java.lang.String getDescription(); + /** + * required string Description = 2; + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + } + /** + * Protobuf type {@code Diadoc.Api.Proto.OperatorFeature} + */ + public static final class OperatorFeature extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.OperatorFeature) + OperatorFeatureOrBuilder { + private static final long serialVersionUID = 0L; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 28, + /* patch= */ 1, + /* suffix= */ "", + OperatorFeature.class.getName()); + } + // Use OperatorFeature.newBuilder() to construct. + private OperatorFeature(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + private OperatorFeature() { + name_ = ""; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Diadoc.Api.Proto.RoamingOperatorProtos.internal_static_Diadoc_Api_Proto_OperatorFeature_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return Diadoc.Api.Proto.RoamingOperatorProtos.internal_static_Diadoc_Api_Proto_OperatorFeature_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature.class, Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * required string Name = 1; + * @return Whether the name field is set. + */ + @java.lang.Override + public boolean hasName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required 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(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } + } + /** + * required 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 DESCRIPTION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * required string Description = 2; + * @return Whether the description field is set. + */ + @java.lang.Override + public boolean hasDescription() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required string Description = 2; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + if (bs.isValidUtf8()) { + description_ = s; + } + return s; + } + } + /** + * required string Description = 2; + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = 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; + + if (!hasName()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasDescription()) { + memoizedIsInitialized = 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)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + 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.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + 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 Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature)) { + return super.equals(obj); + } + Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature other = (Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature) obj; + + if (hasName() != other.hasName()) return false; + if (hasName()) { + if (!getName() + .equals(other.getName())) return false; + } + if (hasDescription() != other.hasDescription()) return false; + if (hasDescription()) { + if (!getDescription() + .equals(other.getDescription())) 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 (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasDescription()) { + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature 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 Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseDelimitedWithIOException(PARSER, input); + } + + public static Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature 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 Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage + .parseWithIOException(PARSER, input); + } + public static Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature 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(Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature 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 Diadoc.Api.Proto.OperatorFeature} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:Diadoc.Api.Proto.OperatorFeature) + Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeatureOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Diadoc.Api.Proto.RoamingOperatorProtos.internal_static_Diadoc_Api_Proto_OperatorFeature_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return Diadoc.Api.Proto.RoamingOperatorProtos.internal_static_Diadoc_Api_Proto_OperatorFeature_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature.class, Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature.Builder.class); + } + + // Construct using Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return Diadoc.Api.Proto.RoamingOperatorProtos.internal_static_Diadoc_Api_Proto_OperatorFeature_descriptor; + } + + @java.lang.Override + public Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature getDefaultInstanceForType() { + return Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature.getDefaultInstance(); + } + + @java.lang.Override + public Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature build() { + Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature buildPartial() { + Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature result = new Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature) { + return mergeFrom((Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature other) { + if (other == Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature.getDefaultInstance()) return this; + if (other.hasName()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDescription()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + if (!hasName()) { + return false; + } + if (!hasDescription()) { + return false; + } + 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.readBytes(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + description_ = input.readBytes(); + 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_ = ""; + /** + * required string Name = 1; + * @return Whether the name field is set. + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * required 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(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required 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; + } + } + /** + * required 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; + } + /** + * required string Name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * required 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(); } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * required string Description = 2; + * @return Whether the description field is set. + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * required string Description = 2; + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + description_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * required string Description = 2; + * @return The bytes for description. + */ + public com.google.protobuf.ByteString + getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string Description = 2; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * required string Description = 2; + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * required string Description = 2; + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.OperatorFeature) + } + + // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.OperatorFeature) + private static final Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature(); + } + + public static Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperatorFeature 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 Diadoc.Api.Proto.RoamingOperatorProtos.OperatorFeature getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Diadoc_Api_Proto_RoamingOperatorList_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Diadoc_Api_Proto_RoamingOperatorList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Diadoc_Api_Proto_RoamingOperator_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Diadoc_Api_Proto_RoamingOperator_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_Diadoc_Api_Proto_OperatorFeature_descriptor; + private static final + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_Diadoc_Api_Proto_OperatorFeature_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\025RoamingOperator.proto\022\020Diadoc.Api.Prot" + + "o\"R\n\023RoamingOperatorList\022;\n\020RoamingOpera" + + "tors\030\001 \003(\0132!.Diadoc.Api.Proto.RoamingOpe" + + "rator\"u\n\017RoamingOperator\022\r\n\005FnsId\030\001 \002(\t\022" + + "\014\n\004Name\030\002 \002(\t\022\020\n\010IsActive\030\003 \002(\010\0223\n\010Featu" + + "res\030\004 \003(\0132!.Diadoc.Api.Proto.OperatorFea" + + "ture\"4\n\017OperatorFeature\022\014\n\004Name\030\001 \002(\t\022\023\n" + + "\013Description\030\002 \002(\tB\027B\025RoamingOperatorPro" + + "tos" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_Diadoc_Api_Proto_RoamingOperatorList_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_Diadoc_Api_Proto_RoamingOperatorList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Diadoc_Api_Proto_RoamingOperatorList_descriptor, + new java.lang.String[] { "RoamingOperators", }); + internal_static_Diadoc_Api_Proto_RoamingOperator_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_Diadoc_Api_Proto_RoamingOperator_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Diadoc_Api_Proto_RoamingOperator_descriptor, + new java.lang.String[] { "FnsId", "Name", "IsActive", "Features", }); + internal_static_Diadoc_Api_Proto_OperatorFeature_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_Diadoc_Api_Proto_OperatorFeature_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_Diadoc_Api_Proto_OperatorFeature_descriptor, + new java.lang.String[] { "Name", "Description", }); + descriptor.resolveAllFeaturesImmutable(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/Diadoc/Api/Proto/SignatureInfoProtos.java b/src/main/java/Diadoc/Api/Proto/SignatureInfoProtos.java index 03ffb70a..648a78aa 100644 --- a/src/main/java/Diadoc/Api/Proto/SignatureInfoProtos.java +++ b/src/main/java/Diadoc/Api/Proto/SignatureInfoProtos.java @@ -463,7 +463,7 @@ public interface SignatureInfoOrBuilder extends * Тип владельца сертификата * * - * optional .Diadoc.Api.Proto.CertificateSubjectType CertificateSubjectType = 16 [default = UnknownCertificateSubjectType]; + * optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType CertificateSubjectType = 16 [default = UnknownCertificateSubjectType]; * @return Whether the certificateSubjectType field is set. */ boolean hasCertificateSubjectType(); @@ -472,10 +472,10 @@ public interface SignatureInfoOrBuilder extends * Тип владельца сертификата * * - * optional .Diadoc.Api.Proto.CertificateSubjectType CertificateSubjectType = 16 [default = UnknownCertificateSubjectType]; + * optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType CertificateSubjectType = 16 [default = UnknownCertificateSubjectType]; * @return The certificateSubjectType. */ - Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType getCertificateSubjectType(); + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType getCertificateSubjectType(); } /** * Protobuf type {@code Diadoc.Api.Proto.SignatureInfo} @@ -1381,7 +1381,7 @@ public java.lang.String getEmail() { * Тип владельца сертификата * * - * optional .Diadoc.Api.Proto.CertificateSubjectType CertificateSubjectType = 16 [default = UnknownCertificateSubjectType]; + * optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType CertificateSubjectType = 16 [default = UnknownCertificateSubjectType]; * @return Whether the certificateSubjectType field is set. */ @java.lang.Override public boolean hasCertificateSubjectType() { @@ -1392,12 +1392,12 @@ public java.lang.String getEmail() { * Тип владельца сертификата * * - * optional .Diadoc.Api.Proto.CertificateSubjectType CertificateSubjectType = 16 [default = UnknownCertificateSubjectType]; + * optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType CertificateSubjectType = 16 [default = UnknownCertificateSubjectType]; * @return The certificateSubjectType. */ - @java.lang.Override public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType getCertificateSubjectType() { - Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType result = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType.forNumber(certificateSubjectType_); - return result == null ? Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType : result; + @java.lang.Override public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType getCertificateSubjectType() { + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType result = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType.forNumber(certificateSubjectType_); + return result == null ? Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType : result; } private byte memoizedIsInitialized = -1; @@ -2209,8 +2209,8 @@ public Builder mergeFrom( } // case 122 case 128: { int tmpRaw = input.readEnum(); - Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType tmpValue = - Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType.forNumber(tmpRaw); + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType tmpValue = + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(16, tmpRaw); } else { @@ -3961,7 +3961,7 @@ public Builder setEmailBytes( * Тип владельца сертификата * * - * optional .Diadoc.Api.Proto.CertificateSubjectType CertificateSubjectType = 16 [default = UnknownCertificateSubjectType]; + * optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType CertificateSubjectType = 16 [default = UnknownCertificateSubjectType]; * @return Whether the certificateSubjectType field is set. */ @java.lang.Override public boolean hasCertificateSubjectType() { @@ -3972,24 +3972,24 @@ public Builder setEmailBytes( * Тип владельца сертификата * * - * optional .Diadoc.Api.Proto.CertificateSubjectType CertificateSubjectType = 16 [default = UnknownCertificateSubjectType]; + * optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType CertificateSubjectType = 16 [default = UnknownCertificateSubjectType]; * @return The certificateSubjectType. */ @java.lang.Override - public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType getCertificateSubjectType() { - Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType result = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType.forNumber(certificateSubjectType_); - return result == null ? Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType : result; + public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType getCertificateSubjectType() { + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType result = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType.forNumber(certificateSubjectType_); + return result == null ? Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType : result; } /** *
        * Тип владельца сертификата
        * 
* - * optional .Diadoc.Api.Proto.CertificateSubjectType CertificateSubjectType = 16 [default = UnknownCertificateSubjectType]; + * optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType CertificateSubjectType = 16 [default = UnknownCertificateSubjectType]; * @param value The certificateSubjectType to set. * @return This builder for chaining. */ - public Builder setCertificateSubjectType(Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType value) { + public Builder setCertificateSubjectType(Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType value) { if (value == null) { throw new NullPointerException(); } @@ -4003,7 +4003,7 @@ public Builder setCertificateSubjectType(Diadoc.Api.Proto.CertificateInfoV2Proto * Тип владельца сертификата * * - * optional .Diadoc.Api.Proto.CertificateSubjectType CertificateSubjectType = 16 [default = UnknownCertificateSubjectType]; + * optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType CertificateSubjectType = 16 [default = UnknownCertificateSubjectType]; * @return This builder for chaining. */ public Builder clearCertificateSubjectType() { @@ -4079,27 +4079,28 @@ public Diadoc.Api.Proto.SignatureInfoProtos.SignatureInfo getDefaultInstanceForT static { java.lang.String[] descriptorData = { "\n\023SignatureInfo.proto\022\020Diadoc.Api.Proto\032" + - "\027CertificateInfoV2.proto\032!SignatureVerif" + - "icationResult.proto\032\017Timestamp.proto\"\221\004\n" + - "\rSignatureInfo\0220\n\013SigningTime\030\001 \002(\0132\033.Di" + - "adoc.Api.Proto.Timestamp\022>\n\031SignatureVer" + - "ificationTime\030\002 \001(\0132\033.Diadoc.Api.Proto.T" + - "imestamp\022R\n\033SignatureVerificationResult\030" + - "\003 \001(\0132-.Diadoc.Api.Proto.SignatureVerifi" + - "cationResult\022\022\n\nThumbprint\030\004 \002(\t\022\024\n\014Seri" + - "alNumber\030\005 \002(\t\022\016\n\006Issuer\030\006 \001(\t\022\021\n\tStartD" + - "ate\030\007 \001(\t\022\017\n\007EndDate\030\010 \001(\t\022\017\n\007OrgName\030\t " + - "\001(\t\022\016\n\006OrgInn\030\n \001(\t\022\020\n\010JobTitle\030\013 \001(\t\022\021\n" + - "\tFirstName\030\014 \001(\t\022\017\n\007Surname\030\r \001(\t\022\r\n\005Sni" + - "ls\030\016 \001(\t\022\r\n\005Email\030\017 \001(\t\022g\n\026CertificateSu" + - "bjectType\030\020 \001(\0162(.Diadoc.Api.Proto.Certi" + - "ficateSubjectType:\035UnknownCertificateSub" + - "jectTypeB\025B\023SignatureInfoProtos" + "$Certificates/CertificateInfoV2.proto\032!S" + + "ignatureVerificationResult.proto\032\017Timest" + + "amp.proto\"\236\004\n\rSignatureInfo\0220\n\013SigningTi" + + "me\030\001 \002(\0132\033.Diadoc.Api.Proto.Timestamp\022>\n" + + "\031SignatureVerificationTime\030\002 \001(\0132\033.Diado" + + "c.Api.Proto.Timestamp\022R\n\033SignatureVerifi" + + "cationResult\030\003 \001(\0132-.Diadoc.Api.Proto.Si" + + "gnatureVerificationResult\022\022\n\nThumbprint\030" + + "\004 \002(\t\022\024\n\014SerialNumber\030\005 \002(\t\022\016\n\006Issuer\030\006 " + + "\001(\t\022\021\n\tStartDate\030\007 \001(\t\022\017\n\007EndDate\030\010 \001(\t\022" + + "\017\n\007OrgName\030\t \001(\t\022\016\n\006OrgInn\030\n \001(\t\022\020\n\010JobT" + + "itle\030\013 \001(\t\022\021\n\tFirstName\030\014 \001(\t\022\017\n\007Surname" + + "\030\r \001(\t\022\r\n\005Snils\030\016 \001(\t\022\r\n\005Email\030\017 \001(\t\022t\n\026" + + "CertificateSubjectType\030\020 \001(\01625.Diadoc.Ap" + + "i.Proto.Certificates.CertificateSubjectT" + + "ype:\035UnknownCertificateSubjectTypeB\025B\023Si" + + "gnatureInfoProtos" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { - Diadoc.Api.Proto.CertificateInfoV2Protos.getDescriptor(), + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.getDescriptor(), Diadoc.Api.Proto.SignatureVerificationResultProtos.getDescriptor(), Diadoc.Api.Proto.TimestampProtos.getDescriptor(), }); @@ -4110,7 +4111,7 @@ public Diadoc.Api.Proto.SignatureInfoProtos.SignatureInfo getDefaultInstanceForT internal_static_Diadoc_Api_Proto_SignatureInfo_descriptor, new java.lang.String[] { "SigningTime", "SignatureVerificationTime", "SignatureVerificationResult", "Thumbprint", "SerialNumber", "Issuer", "StartDate", "EndDate", "OrgName", "OrgInn", "JobTitle", "FirstName", "Surname", "Snils", "Email", "CertificateSubjectType", }); descriptor.resolveAllFeaturesImmutable(); - Diadoc.Api.Proto.CertificateInfoV2Protos.getDescriptor(); + Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.getDescriptor(); Diadoc.Api.Proto.SignatureVerificationResultProtos.getDescriptor(); Diadoc.Api.Proto.TimestampProtos.getDescriptor(); }