optional string OrgId = 1;
+ * @return Whether the orgId field is set.
*/
boolean hasOrgId();
/**
* optional string OrgId = 1;
+ * @return The orgId.
*/
java.lang.String getOrgId();
/**
* optional string OrgId = 1;
+ * @return The bytes for orgId.
*/
com.google.protobuf.ByteString
getOrgIdBytes();
/**
* optional string Inn = 2;
+ * @return Whether the inn field is set.
*/
boolean hasInn();
/**
* optional string Inn = 2;
+ * @return The inn.
*/
java.lang.String getInn();
/**
* optional string Inn = 2;
+ * @return The bytes for inn.
*/
com.google.protobuf.ByteString
getInnBytes();
/**
* optional string MessageToCounteragent = 3;
+ * @return Whether the messageToCounteragent field is set.
*/
boolean hasMessageToCounteragent();
/**
* optional string MessageToCounteragent = 3;
+ * @return The messageToCounteragent.
*/
java.lang.String getMessageToCounteragent();
/**
* optional string MessageToCounteragent = 3;
+ * @return The bytes for messageToCounteragent.
*/
com.google.protobuf.ByteString
getMessageToCounteragentBytes();
/**
* optional .Diadoc.Api.Proto.InvitationDocument InvitationDocument = 4;
+ * @return Whether the invitationDocument field is set.
*/
boolean hasInvitationDocument();
/**
* optional .Diadoc.Api.Proto.InvitationDocument InvitationDocument = 4;
+ * @return The invitationDocument.
*/
Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument getInvitationDocument();
/**
@@ -69,14 +97,17 @@ public interface AcquireCounteragentRequestOrBuilder extends
/**
* optional string BoxId = 5;
+ * @return Whether the boxId field is set.
*/
boolean hasBoxId();
/**
* optional string BoxId = 5;
+ * @return The boxId.
*/
java.lang.String getBoxId();
/**
* optional string BoxId = 5;
+ * @return The bytes for boxId.
*/
com.google.protobuf.ByteString
getBoxIdBytes();
@@ -88,105 +119,33 @@ public static final class AcquireCounteragentRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.AcquireCounteragentRequest)
AcquireCounteragentRequestOrBuilder {
+ 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= */ "",
+ AcquireCounteragentRequest.class.getName());
+ }
// Use AcquireCounteragentRequest.newBuilder() to construct.
private AcquireCounteragentRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private AcquireCounteragentRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final AcquireCounteragentRequest defaultInstance;
- public static AcquireCounteragentRequest getDefaultInstance() {
- return defaultInstance;
}
-
- public AcquireCounteragentRequest getDefaultInstanceForType() {
- return defaultInstance;
+ private AcquireCounteragentRequest() {
+ orgId_ = "";
+ inn_ = "";
+ messageToCounteragent_ = "";
+ boxId_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private AcquireCounteragentRequest(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000001;
- orgId_ = bs;
- break;
- }
- case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- inn_ = bs;
- break;
- }
- case 26: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000004;
- messageToCounteragent_ = bs;
- break;
- }
- case 34: {
- Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.Builder subBuilder = null;
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- subBuilder = invitationDocument_.toBuilder();
- }
- invitationDocument_ = input.readMessage(Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(invitationDocument_);
- invitationDocument_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000008;
- break;
- }
- case 42: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000010;
- boxId_ = bs;
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentRequest_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentRequest_fieldAccessorTable
@@ -194,33 +153,23 @@ private AcquireCounteragentRequest(
Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest.class, Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest.Builder.class);
}
- public static com.google.protobuf.Parseroptional string OrgId = 1;
+ * @return Whether the orgId field is set.
*/
+ @java.lang.Override
public boolean hasOrgId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string OrgId = 1;
+ * @return The orgId.
*/
+ @java.lang.Override
public java.lang.String getOrgId() {
java.lang.Object ref = orgId_;
if (ref instanceof java.lang.String) {
@@ -237,7 +186,9 @@ public java.lang.String getOrgId() {
}
/**
* optional string OrgId = 1;
+ * @return The bytes for orgId.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getOrgIdBytes() {
java.lang.Object ref = orgId_;
@@ -253,16 +204,21 @@ public java.lang.String getOrgId() {
}
public static final int INN_FIELD_NUMBER = 2;
- private java.lang.Object inn_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object inn_ = "";
/**
* optional string Inn = 2;
+ * @return Whether the inn field is set.
*/
+ @java.lang.Override
public boolean hasInn() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string Inn = 2;
+ * @return The inn.
*/
+ @java.lang.Override
public java.lang.String getInn() {
java.lang.Object ref = inn_;
if (ref instanceof java.lang.String) {
@@ -279,7 +235,9 @@ public java.lang.String getInn() {
}
/**
* optional string Inn = 2;
+ * @return The bytes for inn.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getInnBytes() {
java.lang.Object ref = inn_;
@@ -295,16 +253,21 @@ public java.lang.String getInn() {
}
public static final int MESSAGETOCOUNTERAGENT_FIELD_NUMBER = 3;
- private java.lang.Object messageToCounteragent_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object messageToCounteragent_ = "";
/**
* optional string MessageToCounteragent = 3;
+ * @return Whether the messageToCounteragent field is set.
*/
+ @java.lang.Override
public boolean hasMessageToCounteragent() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string MessageToCounteragent = 3;
+ * @return The messageToCounteragent.
*/
+ @java.lang.Override
public java.lang.String getMessageToCounteragent() {
java.lang.Object ref = messageToCounteragent_;
if (ref instanceof java.lang.String) {
@@ -321,7 +284,9 @@ public java.lang.String getMessageToCounteragent() {
}
/**
* optional string MessageToCounteragent = 3;
+ * @return The bytes for messageToCounteragent.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getMessageToCounteragentBytes() {
java.lang.Object ref = messageToCounteragent_;
@@ -340,34 +305,44 @@ public java.lang.String getMessageToCounteragent() {
private Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument invitationDocument_;
/**
* optional .Diadoc.Api.Proto.InvitationDocument InvitationDocument = 4;
+ * @return Whether the invitationDocument field is set.
*/
+ @java.lang.Override
public boolean hasInvitationDocument() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .Diadoc.Api.Proto.InvitationDocument InvitationDocument = 4;
+ * @return The invitationDocument.
*/
+ @java.lang.Override
public Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument getInvitationDocument() {
- return invitationDocument_;
+ return invitationDocument_ == null ? Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.getDefaultInstance() : invitationDocument_;
}
/**
* optional .Diadoc.Api.Proto.InvitationDocument InvitationDocument = 4;
*/
+ @java.lang.Override
public Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocumentOrBuilder getInvitationDocumentOrBuilder() {
- return invitationDocument_;
+ return invitationDocument_ == null ? Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.getDefaultInstance() : invitationDocument_;
}
public static final int BOXID_FIELD_NUMBER = 5;
- private java.lang.Object boxId_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object boxId_ = "";
/**
* optional string BoxId = 5;
+ * @return Whether the boxId field is set.
*/
+ @java.lang.Override
public boolean hasBoxId() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string BoxId = 5;
+ * @return The boxId.
*/
+ @java.lang.Override
public java.lang.String getBoxId() {
java.lang.Object ref = boxId_;
if (ref instanceof java.lang.String) {
@@ -384,7 +359,9 @@ public java.lang.String getBoxId() {
}
/**
* optional string BoxId = 5;
+ * @return The bytes for boxId.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getBoxIdBytes() {
java.lang.Object ref = boxId_;
@@ -399,14 +376,8 @@ public java.lang.String getBoxId() {
}
}
- private void initFields() {
- orgId_ = "";
- inn_ = "";
- messageToCounteragent_ = "";
- invitationDocument_ = Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.getDefaultInstance();
- boxId_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -422,65 +393,136 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getOrgIdBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, orgId_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getInnBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, inn_);
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(3, getMessageToCounteragentBytes());
+ if (((bitField0_ & 0x00000004) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, messageToCounteragent_);
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeMessage(4, invitationDocument_);
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(4, getInvitationDocument());
}
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeBytes(5, getBoxIdBytes());
+ if (((bitField0_ & 0x00000010) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 5, boxId_);
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getOrgIdBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, orgId_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getInnBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, inn_);
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, getMessageToCounteragentBytes());
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, messageToCounteragent_);
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, invitationDocument_);
+ .computeMessageSize(4, getInvitationDocument());
}
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(5, getBoxIdBytes());
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(5, boxId_);
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest other = (Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest) obj;
+
+ if (hasOrgId() != other.hasOrgId()) return false;
+ if (hasOrgId()) {
+ if (!getOrgId()
+ .equals(other.getOrgId())) return false;
+ }
+ if (hasInn() != other.hasInn()) return false;
+ if (hasInn()) {
+ if (!getInn()
+ .equals(other.getInn())) return false;
+ }
+ if (hasMessageToCounteragent() != other.hasMessageToCounteragent()) return false;
+ if (hasMessageToCounteragent()) {
+ if (!getMessageToCounteragent()
+ .equals(other.getMessageToCounteragent())) return false;
+ }
+ if (hasInvitationDocument() != other.hasInvitationDocument()) return false;
+ if (hasInvitationDocument()) {
+ if (!getInvitationDocument()
+ .equals(other.getInvitationDocument())) return false;
+ }
+ if (hasBoxId() != other.hasBoxId()) return false;
+ if (hasBoxId()) {
+ if (!getBoxId()
+ .equals(other.getBoxId())) 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 (hasOrgId()) {
+ hash = (37 * hash) + ORGID_FIELD_NUMBER;
+ hash = (53 * hash) + getOrgId().hashCode();
+ }
+ if (hasInn()) {
+ hash = (37 * hash) + INN_FIELD_NUMBER;
+ hash = (53 * hash) + getInn().hashCode();
+ }
+ if (hasMessageToCounteragent()) {
+ hash = (37 * hash) + MESSAGETOCOUNTERAGENT_FIELD_NUMBER;
+ hash = (53 * hash) + getMessageToCounteragent().hashCode();
+ }
+ if (hasInvitationDocument()) {
+ hash = (37 * hash) + INVITATIONDOCUMENT_FIELD_NUMBER;
+ hash = (53 * hash) + getInvitationDocument().hashCode();
+ }
+ if (hasBoxId()) {
+ hash = (37 * hash) + BOXID_FIELD_NUMBER;
+ hash = (53 * hash) + getBoxId().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
+ public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest 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.AcquireCounteragentProtos.AcquireCounteragentRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -504,42 +546,57 @@ public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequ
}
public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -559,6 +616,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentRequest_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentRequest_fieldAccessorTable
@@ -577,46 +635,39 @@ private Builder(
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessage
+ .alwaysUseFieldBuilders) {
getInvitationDocumentFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
orgId_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
inn_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
messageToCounteragent_ = "";
- bitField0_ = (bitField0_ & ~0x00000004);
- if (invitationDocumentBuilder_ == null) {
- invitationDocument_ = Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.getDefaultInstance();
- } else {
- invitationDocumentBuilder_.clear();
+ invitationDocument_ = null;
+ if (invitationDocumentBuilder_ != null) {
+ invitationDocumentBuilder_.dispose();
+ invitationDocumentBuilder_ = null;
}
- bitField0_ = (bitField0_ & ~0x00000008);
boxId_ = "";
- bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentRequest_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest getDefaultInstanceForType() {
return Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest build() {
Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest result = buildPartial();
if (!result.isInitialized()) {
@@ -625,39 +676,43 @@ public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest bui
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest buildPartial() {
Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest result = new Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.orgId_ = orgId_;
to_bitField0_ |= 0x00000001;
}
- result.orgId_ = orgId_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.inn_ = inn_;
to_bitField0_ |= 0x00000002;
}
- result.inn_ = inn_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.messageToCounteragent_ = messageToCounteragent_;
to_bitField0_ |= 0x00000004;
}
- result.messageToCounteragent_ = messageToCounteragent_;
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.invitationDocument_ = invitationDocumentBuilder_ == null
+ ? invitationDocument_
+ : invitationDocumentBuilder_.build();
to_bitField0_ |= 0x00000008;
}
- if (invitationDocumentBuilder_ == null) {
- result.invitationDocument_ = invitationDocument_;
- } else {
- result.invitationDocument_ = invitationDocumentBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.boxId_ = boxId_;
to_bitField0_ |= 0x00000010;
}
- result.boxId_ = boxId_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
+ result.bitField0_ |= to_bitField0_;
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest) {
return mergeFrom((Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest)other);
@@ -670,57 +725,99 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest other) {
if (other == Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest.getDefaultInstance()) return this;
if (other.hasOrgId()) {
- bitField0_ |= 0x00000001;
orgId_ = other.orgId_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasInn()) {
- bitField0_ |= 0x00000002;
inn_ = other.inn_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasMessageToCounteragent()) {
- bitField0_ |= 0x00000004;
messageToCounteragent_ = other.messageToCounteragent_;
+ bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasInvitationDocument()) {
mergeInvitationDocument(other.getInvitationDocument());
}
if (other.hasBoxId()) {
- bitField0_ |= 0x00000010;
boxId_ = other.boxId_;
+ bitField0_ |= 0x00000010;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
if (hasInvitationDocument()) {
if (!getInvitationDocument().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 {
- Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ orgId_ = input.readBytes();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ inn_ = input.readBytes();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ messageToCounteragent_ = input.readBytes();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34: {
+ input.readMessage(
+ getInvitationDocumentFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ case 42: {
+ boxId_ = input.readBytes();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
@@ -728,12 +825,14 @@ public Builder mergeFrom(
private java.lang.Object orgId_ = "";
/**
* optional string OrgId = 1;
+ * @return Whether the orgId field is set.
*/
public boolean hasOrgId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string OrgId = 1;
+ * @return The orgId.
*/
public java.lang.String getOrgId() {
java.lang.Object ref = orgId_;
@@ -751,6 +850,7 @@ public java.lang.String getOrgId() {
}
/**
* optional string OrgId = 1;
+ * @return The bytes for orgId.
*/
public com.google.protobuf.ByteString
getOrgIdBytes() {
@@ -767,36 +867,37 @@ public java.lang.String getOrgId() {
}
/**
* optional string OrgId = 1;
+ * @param value The orgId to set.
+ * @return This builder for chaining.
*/
public Builder setOrgId(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
orgId_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional string OrgId = 1;
+ * @return This builder for chaining.
*/
public Builder clearOrgId() {
- bitField0_ = (bitField0_ & ~0x00000001);
orgId_ = getDefaultInstance().getOrgId();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* optional string OrgId = 1;
+ * @param value The bytes for orgId to set.
+ * @return This builder for chaining.
*/
public Builder setOrgIdBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
orgId_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -804,12 +905,14 @@ public Builder setOrgIdBytes(
private java.lang.Object inn_ = "";
/**
* optional string Inn = 2;
+ * @return Whether the inn field is set.
*/
public boolean hasInn() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string Inn = 2;
+ * @return The inn.
*/
public java.lang.String getInn() {
java.lang.Object ref = inn_;
@@ -827,6 +930,7 @@ public java.lang.String getInn() {
}
/**
* optional string Inn = 2;
+ * @return The bytes for inn.
*/
public com.google.protobuf.ByteString
getInnBytes() {
@@ -843,36 +947,37 @@ public java.lang.String getInn() {
}
/**
* optional string Inn = 2;
+ * @param value The inn to set.
+ * @return This builder for chaining.
*/
public Builder setInn(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
+ if (value == null) { throw new NullPointerException(); }
inn_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional string Inn = 2;
+ * @return This builder for chaining.
*/
public Builder clearInn() {
- bitField0_ = (bitField0_ & ~0x00000002);
inn_ = getDefaultInstance().getInn();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* optional string Inn = 2;
+ * @param value The bytes for inn to set.
+ * @return This builder for chaining.
*/
public Builder setInnBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
+ if (value == null) { throw new NullPointerException(); }
inn_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -880,12 +985,14 @@ public Builder setInnBytes(
private java.lang.Object messageToCounteragent_ = "";
/**
* optional string MessageToCounteragent = 3;
+ * @return Whether the messageToCounteragent field is set.
*/
public boolean hasMessageToCounteragent() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string MessageToCounteragent = 3;
+ * @return The messageToCounteragent.
*/
public java.lang.String getMessageToCounteragent() {
java.lang.Object ref = messageToCounteragent_;
@@ -903,6 +1010,7 @@ public java.lang.String getMessageToCounteragent() {
}
/**
* optional string MessageToCounteragent = 3;
+ * @return The bytes for messageToCounteragent.
*/
public com.google.protobuf.ByteString
getMessageToCounteragentBytes() {
@@ -919,55 +1027,58 @@ public java.lang.String getMessageToCounteragent() {
}
/**
* optional string MessageToCounteragent = 3;
+ * @param value The messageToCounteragent to set.
+ * @return This builder for chaining.
*/
public Builder setMessageToCounteragent(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
+ if (value == null) { throw new NullPointerException(); }
messageToCounteragent_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional string MessageToCounteragent = 3;
+ * @return This builder for chaining.
*/
public Builder clearMessageToCounteragent() {
- bitField0_ = (bitField0_ & ~0x00000004);
messageToCounteragent_ = getDefaultInstance().getMessageToCounteragent();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* optional string MessageToCounteragent = 3;
+ * @param value The bytes for messageToCounteragent to set.
+ * @return This builder for chaining.
*/
public Builder setMessageToCounteragentBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
+ if (value == null) { throw new NullPointerException(); }
messageToCounteragent_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
- private Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument invitationDocument_ = Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.getDefaultInstance();
+ private Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument invitationDocument_;
private com.google.protobuf.SingleFieldBuilder<
Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument, Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.Builder, Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocumentOrBuilder> invitationDocumentBuilder_;
/**
* optional .Diadoc.Api.Proto.InvitationDocument InvitationDocument = 4;
+ * @return Whether the invitationDocument field is set.
*/
public boolean hasInvitationDocument() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .Diadoc.Api.Proto.InvitationDocument InvitationDocument = 4;
+ * @return The invitationDocument.
*/
public Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument getInvitationDocument() {
if (invitationDocumentBuilder_ == null) {
- return invitationDocument_;
+ return invitationDocument_ == null ? Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.getDefaultInstance() : invitationDocument_;
} else {
return invitationDocumentBuilder_.getMessage();
}
@@ -981,11 +1092,11 @@ public Builder setInvitationDocument(Diadoc.Api.Proto.AcquireCounteragentProtos.
throw new NullPointerException();
}
invitationDocument_ = value;
- onChanged();
} else {
invitationDocumentBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
@@ -995,11 +1106,11 @@ public Builder setInvitationDocument(
Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.Builder builderForValue) {
if (invitationDocumentBuilder_ == null) {
invitationDocument_ = builderForValue.build();
- onChanged();
} else {
invitationDocumentBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
@@ -1007,31 +1118,33 @@ public Builder setInvitationDocument(
*/
public Builder mergeInvitationDocument(Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument value) {
if (invitationDocumentBuilder_ == null) {
- if (((bitField0_ & 0x00000008) == 0x00000008) &&
- invitationDocument_ != Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.getDefaultInstance()) {
- invitationDocument_ =
- Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.newBuilder(invitationDocument_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000008) != 0) &&
+ invitationDocument_ != null &&
+ invitationDocument_ != Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.getDefaultInstance()) {
+ getInvitationDocumentBuilder().mergeFrom(value);
} else {
invitationDocument_ = value;
}
- onChanged();
} else {
invitationDocumentBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000008;
+ if (invitationDocument_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
return this;
}
/**
* optional .Diadoc.Api.Proto.InvitationDocument InvitationDocument = 4;
*/
public Builder clearInvitationDocument() {
- if (invitationDocumentBuilder_ == null) {
- invitationDocument_ = Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.getDefaultInstance();
- onChanged();
- } else {
- invitationDocumentBuilder_.clear();
- }
bitField0_ = (bitField0_ & ~0x00000008);
+ invitationDocument_ = null;
+ if (invitationDocumentBuilder_ != null) {
+ invitationDocumentBuilder_.dispose();
+ invitationDocumentBuilder_ = null;
+ }
+ onChanged();
return this;
}
/**
@@ -1049,7 +1162,8 @@ public Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocumentOrBuilder ge
if (invitationDocumentBuilder_ != null) {
return invitationDocumentBuilder_.getMessageOrBuilder();
} else {
- return invitationDocument_;
+ return invitationDocument_ == null ?
+ Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.getDefaultInstance() : invitationDocument_;
}
}
/**
@@ -1072,12 +1186,14 @@ public Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocumentOrBuilder ge
private java.lang.Object boxId_ = "";
/**
* optional string BoxId = 5;
+ * @return Whether the boxId field is set.
*/
public boolean hasBoxId() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string BoxId = 5;
+ * @return The boxId.
*/
public java.lang.String getBoxId() {
java.lang.Object ref = boxId_;
@@ -1095,6 +1211,7 @@ public java.lang.String getBoxId() {
}
/**
* optional string BoxId = 5;
+ * @return The bytes for boxId.
*/
public com.google.protobuf.ByteString
getBoxIdBytes() {
@@ -1111,36 +1228,37 @@ public java.lang.String getBoxId() {
}
/**
* optional string BoxId = 5;
+ * @param value The boxId to set.
+ * @return This builder for chaining.
*/
public Builder setBoxId(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000010;
+ if (value == null) { throw new NullPointerException(); }
boxId_ = value;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* optional string BoxId = 5;
+ * @return This builder for chaining.
*/
public Builder clearBoxId() {
- bitField0_ = (bitField0_ & ~0x00000010);
boxId_ = getDefaultInstance().getBoxId();
+ bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
* optional string BoxId = 5;
+ * @param value The bytes for boxId to set.
+ * @return This builder for chaining.
*/
public Builder setBoxIdBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000010;
+ if (value == null) { throw new NullPointerException(); }
boxId_ = value;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -1148,12 +1266,52 @@ public Builder setBoxIdBytes(
// @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.AcquireCounteragentRequest)
}
+ // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.AcquireCounteragentRequest)
+ private static final Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest DEFAULT_INSTANCE;
static {
- defaultInstance = new AcquireCounteragentRequest(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest();
+ }
+
+ public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserrequired .Diadoc.Api.Proto.Events.SignedContent SignedContent = 1;
+ * @return Whether the signedContent field is set.
*/
boolean hasSignedContent();
/**
* required .Diadoc.Api.Proto.Events.SignedContent SignedContent = 1;
+ * @return The signedContent.
*/
Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent getSignedContent();
/**
@@ -1175,37 +1335,45 @@ public interface InvitationDocumentOrBuilder extends
/**
* required string FileName = 2;
+ * @return Whether the fileName field is set.
*/
boolean hasFileName();
/**
* required string FileName = 2;
+ * @return The fileName.
*/
java.lang.String getFileName();
/**
* required string FileName = 2;
+ * @return The bytes for fileName.
*/
com.google.protobuf.ByteString
getFileNameBytes();
/**
* optional bool SignatureRequested = 3 [default = false];
+ * @return Whether the signatureRequested field is set.
*/
boolean hasSignatureRequested();
/**
* optional bool SignatureRequested = 3 [default = false];
+ * @return The signatureRequested.
*/
boolean getSignatureRequested();
/**
* optional string Type = 4;
+ * @return Whether the type field is set.
*/
boolean hasType();
/**
* optional string Type = 4;
+ * @return The type.
*/
java.lang.String getType();
/**
* optional string Type = 4;
+ * @return The bytes for type.
*/
com.google.protobuf.ByteString
getTypeBytes();
@@ -1217,98 +1385,31 @@ public static final class InvitationDocument extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.InvitationDocument)
InvitationDocumentOrBuilder {
+ 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= */ "",
+ InvitationDocument.class.getName());
+ }
// Use InvitationDocument.newBuilder() to construct.
private InvitationDocument(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private InvitationDocument(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final InvitationDocument defaultInstance;
- public static InvitationDocument getDefaultInstance() {
- return defaultInstance;
}
-
- public InvitationDocument getDefaultInstanceForType() {
- return defaultInstance;
+ private InvitationDocument() {
+ fileName_ = "";
+ type_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private InvitationDocument(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.Builder subBuilder = null;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- subBuilder = signedContent_.toBuilder();
- }
- signedContent_ = input.readMessage(Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(signedContent_);
- signedContent_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000001;
- break;
- }
- case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- fileName_ = bs;
- break;
- }
- case 24: {
- bitField0_ |= 0x00000004;
- signatureRequested_ = input.readBool();
- break;
- }
- case 34: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000008;
- type_ = bs;
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_InvitationDocument_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_InvitationDocument_fieldAccessorTable
@@ -1316,54 +1417,49 @@ private InvitationDocument(
Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.class, Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.Builder.class);
}
- public static com.google.protobuf.Parserrequired .Diadoc.Api.Proto.Events.SignedContent SignedContent = 1;
+ * @return Whether the signedContent field is set.
*/
+ @java.lang.Override
public boolean hasSignedContent() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required .Diadoc.Api.Proto.Events.SignedContent SignedContent = 1;
+ * @return The signedContent.
*/
+ @java.lang.Override
public Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent getSignedContent() {
- return signedContent_;
+ return signedContent_ == null ? Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.getDefaultInstance() : signedContent_;
}
/**
* required .Diadoc.Api.Proto.Events.SignedContent SignedContent = 1;
*/
+ @java.lang.Override
public Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContentOrBuilder getSignedContentOrBuilder() {
- return signedContent_;
+ return signedContent_ == null ? Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.getDefaultInstance() : signedContent_;
}
public static final int FILENAME_FIELD_NUMBER = 2;
- private java.lang.Object fileName_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object fileName_ = "";
/**
* required string FileName = 2;
+ * @return Whether the fileName field is set.
*/
+ @java.lang.Override
public boolean hasFileName() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required string FileName = 2;
+ * @return The fileName.
*/
+ @java.lang.Override
public java.lang.String getFileName() {
java.lang.Object ref = fileName_;
if (ref instanceof java.lang.String) {
@@ -1380,7 +1476,9 @@ public java.lang.String getFileName() {
}
/**
* required string FileName = 2;
+ * @return The bytes for fileName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getFileNameBytes() {
java.lang.Object ref = fileName_;
@@ -1396,31 +1494,40 @@ public java.lang.String getFileName() {
}
public static final int SIGNATUREREQUESTED_FIELD_NUMBER = 3;
- private boolean signatureRequested_;
+ private boolean signatureRequested_ = false;
/**
* optional bool SignatureRequested = 3 [default = false];
+ * @return Whether the signatureRequested field is set.
*/
+ @java.lang.Override
public boolean hasSignatureRequested() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional bool SignatureRequested = 3 [default = false];
+ * @return The signatureRequested.
*/
+ @java.lang.Override
public boolean getSignatureRequested() {
return signatureRequested_;
}
public static final int TYPE_FIELD_NUMBER = 4;
- private java.lang.Object type_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object type_ = "";
/**
* optional string Type = 4;
+ * @return Whether the type field is set.
*/
+ @java.lang.Override
public boolean hasType() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string Type = 4;
+ * @return The type.
*/
+ @java.lang.Override
public java.lang.String getType() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
@@ -1437,7 +1544,9 @@ public java.lang.String getType() {
}
/**
* optional string Type = 4;
+ * @return The bytes for type.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
@@ -1452,13 +1561,8 @@ public java.lang.String getType() {
}
}
- private void initFields() {
- signedContent_ = Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.getDefaultInstance();
- fileName_ = "";
- signatureRequested_ = false;
- type_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -1480,60 +1584,125 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, signedContent_);
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getSignedContent());
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getFileNameBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, fileName_);
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
output.writeBool(3, signatureRequested_);
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBytes(4, getTypeBytes());
+ if (((bitField0_ & 0x00000008) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, type_);
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, signedContent_);
+ .computeMessageSize(1, getSignedContent());
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getFileNameBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, fileName_);
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, signatureRequested_);
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getTypeBytes());
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, type_);
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument other = (Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument) obj;
+
+ if (hasSignedContent() != other.hasSignedContent()) return false;
+ if (hasSignedContent()) {
+ if (!getSignedContent()
+ .equals(other.getSignedContent())) return false;
+ }
+ if (hasFileName() != other.hasFileName()) return false;
+ if (hasFileName()) {
+ if (!getFileName()
+ .equals(other.getFileName())) return false;
+ }
+ if (hasSignatureRequested() != other.hasSignatureRequested()) return false;
+ if (hasSignatureRequested()) {
+ if (getSignatureRequested()
+ != other.getSignatureRequested()) return false;
+ }
+ if (hasType() != other.hasType()) return false;
+ if (hasType()) {
+ if (!getType()
+ .equals(other.getType())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
}
- public static Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument parseFrom(
- com.google.protobuf.ByteString data)
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasSignedContent()) {
+ hash = (37 * hash) + SIGNEDCONTENT_FIELD_NUMBER;
+ hash = (53 * hash) + getSignedContent().hashCode();
+ }
+ if (hasFileName()) {
+ hash = (37 * hash) + FILENAME_FIELD_NUMBER;
+ hash = (53 * hash) + getFileName().hashCode();
+ }
+ if (hasSignatureRequested()) {
+ hash = (37 * hash) + SIGNATUREREQUESTED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getSignatureRequested());
+ }
+ if (hasType()) {
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getType().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument 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.AcquireCounteragentProtos.InvitationDocument parseFrom(
+ com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
@@ -1555,42 +1724,57 @@ public static Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument pars
}
public static Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -1610,6 +1794,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_InvitationDocument_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_InvitationDocument_fieldAccessorTable
@@ -1628,44 +1813,38 @@ private Builder(
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessage
+ .alwaysUseFieldBuilders) {
getSignedContentFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
- if (signedContentBuilder_ == null) {
- signedContent_ = Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.getDefaultInstance();
- } else {
- signedContentBuilder_.clear();
+ bitField0_ = 0;
+ signedContent_ = null;
+ if (signedContentBuilder_ != null) {
+ signedContentBuilder_.dispose();
+ signedContentBuilder_ = null;
}
- bitField0_ = (bitField0_ & ~0x00000001);
fileName_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
signatureRequested_ = false;
- bitField0_ = (bitField0_ & ~0x00000004);
type_ = "";
- bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_InvitationDocument_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument getDefaultInstanceForType() {
return Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument build() {
Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument result = buildPartial();
if (!result.isInitialized()) {
@@ -1674,35 +1853,39 @@ public Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument build() {
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument buildPartial() {
Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument result = new Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.signedContent_ = signedContentBuilder_ == null
+ ? signedContent_
+ : signedContentBuilder_.build();
to_bitField0_ |= 0x00000001;
}
- if (signedContentBuilder_ == null) {
- result.signedContent_ = signedContent_;
- } else {
- result.signedContent_ = signedContentBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.fileName_ = fileName_;
to_bitField0_ |= 0x00000002;
}
- result.fileName_ = fileName_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.signatureRequested_ = signatureRequested_;
to_bitField0_ |= 0x00000004;
}
- result.signatureRequested_ = signatureRequested_;
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.type_ = type_;
to_bitField0_ |= 0x00000008;
}
- result.type_ = type_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
+ result.bitField0_ |= to_bitField0_;
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument) {
return mergeFrom((Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument)other);
@@ -1718,72 +1901,109 @@ public Builder mergeFrom(Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDo
mergeSignedContent(other.getSignedContent());
}
if (other.hasFileName()) {
- bitField0_ |= 0x00000002;
fileName_ = other.fileName_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasSignatureRequested()) {
setSignatureRequested(other.getSignatureRequested());
}
if (other.hasType()) {
- bitField0_ |= 0x00000008;
type_ = other.type_;
+ bitField0_ |= 0x00000008;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
if (!hasSignedContent()) {
-
return false;
}
if (!hasFileName()) {
-
return false;
}
if (!getSignedContent().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 {
- Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ input.readMessage(
+ getSignedContentFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ fileName_ = input.readBytes();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 24: {
+ signatureRequested_ = input.readBool();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 24
+ case 34: {
+ type_ = input.readBytes();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
- private Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent signedContent_ = Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.getDefaultInstance();
+ private Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent signedContent_;
private com.google.protobuf.SingleFieldBuilder<
Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent, Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.Builder, Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContentOrBuilder> signedContentBuilder_;
/**
* required .Diadoc.Api.Proto.Events.SignedContent SignedContent = 1;
+ * @return Whether the signedContent field is set.
*/
public boolean hasSignedContent() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required .Diadoc.Api.Proto.Events.SignedContent SignedContent = 1;
+ * @return The signedContent.
*/
public Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent getSignedContent() {
if (signedContentBuilder_ == null) {
- return signedContent_;
+ return signedContent_ == null ? Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.getDefaultInstance() : signedContent_;
} else {
return signedContentBuilder_.getMessage();
}
@@ -1797,11 +2017,11 @@ public Builder setSignedContent(Diadoc.Api.Proto.Events.DiadocMessage_PostApiPro
throw new NullPointerException();
}
signedContent_ = value;
- onChanged();
} else {
signedContentBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -1811,11 +2031,11 @@ public Builder setSignedContent(
Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.Builder builderForValue) {
if (signedContentBuilder_ == null) {
signedContent_ = builderForValue.build();
- onChanged();
} else {
signedContentBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -1823,31 +2043,33 @@ public Builder setSignedContent(
*/
public Builder mergeSignedContent(Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent value) {
if (signedContentBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001) &&
- signedContent_ != Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.getDefaultInstance()) {
- signedContent_ =
- Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.newBuilder(signedContent_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000001) != 0) &&
+ signedContent_ != null &&
+ signedContent_ != Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.getDefaultInstance()) {
+ getSignedContentBuilder().mergeFrom(value);
} else {
signedContent_ = value;
}
- onChanged();
} else {
signedContentBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000001;
+ if (signedContent_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
return this;
}
/**
* required .Diadoc.Api.Proto.Events.SignedContent SignedContent = 1;
*/
public Builder clearSignedContent() {
- if (signedContentBuilder_ == null) {
- signedContent_ = Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.getDefaultInstance();
- onChanged();
- } else {
- signedContentBuilder_.clear();
- }
bitField0_ = (bitField0_ & ~0x00000001);
+ signedContent_ = null;
+ if (signedContentBuilder_ != null) {
+ signedContentBuilder_.dispose();
+ signedContentBuilder_ = null;
+ }
+ onChanged();
return this;
}
/**
@@ -1865,7 +2087,8 @@ public Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContentOrBuilde
if (signedContentBuilder_ != null) {
return signedContentBuilder_.getMessageOrBuilder();
} else {
- return signedContent_;
+ return signedContent_ == null ?
+ Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContent.getDefaultInstance() : signedContent_;
}
}
/**
@@ -1888,12 +2111,14 @@ public Diadoc.Api.Proto.Events.DiadocMessage_PostApiProtos.SignedContentOrBuilde
private java.lang.Object fileName_ = "";
/**
* required string FileName = 2;
+ * @return Whether the fileName field is set.
*/
public boolean hasFileName() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required string FileName = 2;
+ * @return The fileName.
*/
public java.lang.String getFileName() {
java.lang.Object ref = fileName_;
@@ -1911,6 +2136,7 @@ public java.lang.String getFileName() {
}
/**
* required string FileName = 2;
+ * @return The bytes for fileName.
*/
public com.google.protobuf.ByteString
getFileNameBytes() {
@@ -1927,36 +2153,37 @@ public java.lang.String getFileName() {
}
/**
* required string FileName = 2;
+ * @param value The fileName to set.
+ * @return This builder for chaining.
*/
public Builder setFileName(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
+ if (value == null) { throw new NullPointerException(); }
fileName_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* required string FileName = 2;
+ * @return This builder for chaining.
*/
public Builder clearFileName() {
- bitField0_ = (bitField0_ & ~0x00000002);
fileName_ = getDefaultInstance().getFileName();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* required string FileName = 2;
+ * @param value The bytes for fileName to set.
+ * @return This builder for chaining.
*/
public Builder setFileNameBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
+ if (value == null) { throw new NullPointerException(); }
fileName_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1964,27 +2191,35 @@ public Builder setFileNameBytes(
private boolean signatureRequested_ ;
/**
* optional bool SignatureRequested = 3 [default = false];
+ * @return Whether the signatureRequested field is set.
*/
+ @java.lang.Override
public boolean hasSignatureRequested() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional bool SignatureRequested = 3 [default = false];
+ * @return The signatureRequested.
*/
+ @java.lang.Override
public boolean getSignatureRequested() {
return signatureRequested_;
}
/**
* optional bool SignatureRequested = 3 [default = false];
+ * @param value The signatureRequested to set.
+ * @return This builder for chaining.
*/
public Builder setSignatureRequested(boolean value) {
- bitField0_ |= 0x00000004;
+
signatureRequested_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional bool SignatureRequested = 3 [default = false];
+ * @return This builder for chaining.
*/
public Builder clearSignatureRequested() {
bitField0_ = (bitField0_ & ~0x00000004);
@@ -1996,12 +2231,14 @@ public Builder clearSignatureRequested() {
private java.lang.Object type_ = "";
/**
* optional string Type = 4;
+ * @return Whether the type field is set.
*/
public boolean hasType() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string Type = 4;
+ * @return The type.
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
@@ -2019,6 +2256,7 @@ public java.lang.String getType() {
}
/**
* optional string Type = 4;
+ * @return The bytes for type.
*/
public com.google.protobuf.ByteString
getTypeBytes() {
@@ -2035,36 +2273,37 @@ public java.lang.String getType() {
}
/**
* optional string Type = 4;
+ * @param value The type to set.
+ * @return This builder for chaining.
*/
public Builder setType(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
+ if (value == null) { throw new NullPointerException(); }
type_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional string Type = 4;
+ * @return This builder for chaining.
*/
public Builder clearType() {
- bitField0_ = (bitField0_ & ~0x00000008);
type_ = getDefaultInstance().getType();
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* optional string Type = 4;
+ * @param value The bytes for type to set.
+ * @return This builder for chaining.
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
+ if (value == null) { throw new NullPointerException(); }
type_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -2072,12 +2311,52 @@ public Builder setTypeBytes(
// @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.InvitationDocument)
}
+ // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.InvitationDocument)
+ private static final Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument DEFAULT_INSTANCE;
static {
- defaultInstance = new InvitationDocument(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument();
+ }
+
+ public static Diadoc.Api.Proto.AcquireCounteragentProtos.InvitationDocument getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserrequired string OrgId = 1;
+ * @return Whether the orgId field is set.
*/
boolean hasOrgId();
/**
* required string OrgId = 1;
+ * @return The orgId.
*/
java.lang.String getOrgId();
/**
* required string OrgId = 1;
+ * @return The bytes for orgId.
*/
com.google.protobuf.ByteString
getOrgIdBytes();
/**
* optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2;
+ * @return Whether the invitationDocumentId field is set.
*/
boolean hasInvitationDocumentId();
/**
* optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2;
+ * @return The invitationDocumentId.
*/
Diadoc.Api.Proto.DocumentIdProtos.DocumentId getInvitationDocumentId();
/**
@@ -2118,87 +2402,30 @@ public static final class AcquireCounteragentResult extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.AcquireCounteragentResult)
AcquireCounteragentResultOrBuilder {
+ 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= */ "",
+ AcquireCounteragentResult.class.getName());
+ }
// Use AcquireCounteragentResult.newBuilder() to construct.
private AcquireCounteragentResult(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private AcquireCounteragentResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final AcquireCounteragentResult defaultInstance;
- public static AcquireCounteragentResult getDefaultInstance() {
- return defaultInstance;
- }
-
- public AcquireCounteragentResult getDefaultInstanceForType() {
- return defaultInstance;
+ private AcquireCounteragentResult() {
+ orgId_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private AcquireCounteragentResult(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000001;
- orgId_ = bs;
- break;
- }
- case 18: {
- Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder subBuilder = null;
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- subBuilder = invitationDocumentId_.toBuilder();
- }
- invitationDocumentId_ = input.readMessage(Diadoc.Api.Proto.DocumentIdProtos.DocumentId.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(invitationDocumentId_);
- invitationDocumentId_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000002;
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentResult_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentResult_fieldAccessorTable
@@ -2206,33 +2433,23 @@ private AcquireCounteragentResult(
Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult.class, Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult.Builder.class);
}
- public static com.google.protobuf.Parserrequired string OrgId = 1;
+ * @return Whether the orgId field is set.
*/
+ @java.lang.Override
public boolean hasOrgId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string OrgId = 1;
+ * @return The orgId.
*/
+ @java.lang.Override
public java.lang.String getOrgId() {
java.lang.Object ref = orgId_;
if (ref instanceof java.lang.String) {
@@ -2249,7 +2466,9 @@ public java.lang.String getOrgId() {
}
/**
* required string OrgId = 1;
+ * @return The bytes for orgId.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getOrgIdBytes() {
java.lang.Object ref = orgId_;
@@ -2268,28 +2487,30 @@ public java.lang.String getOrgId() {
private Diadoc.Api.Proto.DocumentIdProtos.DocumentId invitationDocumentId_;
/**
* optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2;
+ * @return Whether the invitationDocumentId field is set.
*/
+ @java.lang.Override
public boolean hasInvitationDocumentId() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2;
+ * @return The invitationDocumentId.
*/
+ @java.lang.Override
public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getInvitationDocumentId() {
- return invitationDocumentId_;
+ return invitationDocumentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : invitationDocumentId_;
}
/**
* optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2;
*/
+ @java.lang.Override
public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getInvitationDocumentIdOrBuilder() {
- return invitationDocumentId_;
+ return invitationDocumentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : invitationDocumentId_;
}
- private void initFields() {
- orgId_ = "";
- invitationDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -2309,44 +2530,91 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getOrgIdBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, orgId_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, invitationDocumentId_);
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(2, getInvitationDocumentId());
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getOrgIdBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, orgId_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, invitationDocumentId_);
+ .computeMessageSize(2, getInvitationDocumentId());
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult other = (Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult) obj;
+
+ if (hasOrgId() != other.hasOrgId()) return false;
+ if (hasOrgId()) {
+ if (!getOrgId()
+ .equals(other.getOrgId())) return false;
+ }
+ if (hasInvitationDocumentId() != other.hasInvitationDocumentId()) return false;
+ if (hasInvitationDocumentId()) {
+ if (!getInvitationDocumentId()
+ .equals(other.getInvitationDocumentId())) 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 (hasOrgId()) {
+ hash = (37 * hash) + ORGID_FIELD_NUMBER;
+ hash = (53 * hash) + getOrgId().hashCode();
+ }
+ if (hasInvitationDocumentId()) {
+ hash = (37 * hash) + INVITATIONDOCUMENTID_FIELD_NUMBER;
+ hash = (53 * hash) + getInvitationDocumentId().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult 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.AcquireCounteragentProtos.AcquireCounteragentResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -2370,42 +2638,57 @@ public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResu
}
public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -2425,6 +2708,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentResult_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentResult_fieldAccessorTable
@@ -2443,40 +2727,36 @@ private Builder(
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessage
+ .alwaysUseFieldBuilders) {
getInvitationDocumentIdFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
orgId_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
- if (invitationDocumentIdBuilder_ == null) {
- invitationDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance();
- } else {
- invitationDocumentIdBuilder_.clear();
+ invitationDocumentId_ = null;
+ if (invitationDocumentIdBuilder_ != null) {
+ invitationDocumentIdBuilder_.dispose();
+ invitationDocumentIdBuilder_ = null;
}
- bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentResult_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult getDefaultInstanceForType() {
return Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult build() {
Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult result = buildPartial();
if (!result.isInitialized()) {
@@ -2485,27 +2765,31 @@ public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult buil
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult buildPartial() {
Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult result = new Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.orgId_ = orgId_;
to_bitField0_ |= 0x00000001;
}
- result.orgId_ = orgId_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.invitationDocumentId_ = invitationDocumentIdBuilder_ == null
+ ? invitationDocumentId_
+ : invitationDocumentIdBuilder_.build();
to_bitField0_ |= 0x00000002;
}
- if (invitationDocumentIdBuilder_ == null) {
- result.invitationDocumentId_ = invitationDocumentId_;
- } else {
- result.invitationDocumentId_ = invitationDocumentIdBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
+ result.bitField0_ |= to_bitField0_;
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult) {
return mergeFrom((Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult)other);
@@ -2518,46 +2802,72 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult other) {
if (other == Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult.getDefaultInstance()) return this;
if (other.hasOrgId()) {
- bitField0_ |= 0x00000001;
orgId_ = other.orgId_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasInvitationDocumentId()) {
mergeInvitationDocumentId(other.getInvitationDocumentId());
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
if (!hasOrgId()) {
-
return false;
}
if (hasInvitationDocumentId()) {
if (!getInvitationDocumentId().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 {
- Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ orgId_ = input.readBytes();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ input.readMessage(
+ getInvitationDocumentIdFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
@@ -2565,12 +2875,14 @@ public Builder mergeFrom(
private java.lang.Object orgId_ = "";
/**
* required string OrgId = 1;
+ * @return Whether the orgId field is set.
*/
public boolean hasOrgId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string OrgId = 1;
+ * @return The orgId.
*/
public java.lang.String getOrgId() {
java.lang.Object ref = orgId_;
@@ -2588,6 +2900,7 @@ public java.lang.String getOrgId() {
}
/**
* required string OrgId = 1;
+ * @return The bytes for orgId.
*/
public com.google.protobuf.ByteString
getOrgIdBytes() {
@@ -2604,55 +2917,58 @@ public java.lang.String getOrgId() {
}
/**
* required string OrgId = 1;
+ * @param value The orgId to set.
+ * @return This builder for chaining.
*/
public Builder setOrgId(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
orgId_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required string OrgId = 1;
+ * @return This builder for chaining.
*/
public Builder clearOrgId() {
- bitField0_ = (bitField0_ & ~0x00000001);
orgId_ = getDefaultInstance().getOrgId();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* required string OrgId = 1;
+ * @param value The bytes for orgId to set.
+ * @return This builder for chaining.
*/
public Builder setOrgIdBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
orgId_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
- private Diadoc.Api.Proto.DocumentIdProtos.DocumentId invitationDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance();
+ private Diadoc.Api.Proto.DocumentIdProtos.DocumentId invitationDocumentId_;
private com.google.protobuf.SingleFieldBuilder<
Diadoc.Api.Proto.DocumentIdProtos.DocumentId, Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder> invitationDocumentIdBuilder_;
/**
* optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2;
+ * @return Whether the invitationDocumentId field is set.
*/
public boolean hasInvitationDocumentId() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2;
+ * @return The invitationDocumentId.
*/
public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getInvitationDocumentId() {
if (invitationDocumentIdBuilder_ == null) {
- return invitationDocumentId_;
+ return invitationDocumentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : invitationDocumentId_;
} else {
return invitationDocumentIdBuilder_.getMessage();
}
@@ -2666,11 +2982,11 @@ public Builder setInvitationDocumentId(Diadoc.Api.Proto.DocumentIdProtos.Documen
throw new NullPointerException();
}
invitationDocumentId_ = value;
- onChanged();
} else {
invitationDocumentIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -2680,11 +2996,11 @@ public Builder setInvitationDocumentId(
Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder builderForValue) {
if (invitationDocumentIdBuilder_ == null) {
invitationDocumentId_ = builderForValue.build();
- onChanged();
} else {
invitationDocumentIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -2692,31 +3008,33 @@ public Builder setInvitationDocumentId(
*/
public Builder mergeInvitationDocumentId(Diadoc.Api.Proto.DocumentIdProtos.DocumentId value) {
if (invitationDocumentIdBuilder_ == null) {
- if (((bitField0_ & 0x00000002) == 0x00000002) &&
- invitationDocumentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) {
- invitationDocumentId_ =
- Diadoc.Api.Proto.DocumentIdProtos.DocumentId.newBuilder(invitationDocumentId_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000002) != 0) &&
+ invitationDocumentId_ != null &&
+ invitationDocumentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) {
+ getInvitationDocumentIdBuilder().mergeFrom(value);
} else {
invitationDocumentId_ = value;
}
- onChanged();
} else {
invitationDocumentIdBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000002;
+ if (invitationDocumentId_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
return this;
}
/**
* optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2;
*/
public Builder clearInvitationDocumentId() {
- if (invitationDocumentIdBuilder_ == null) {
- invitationDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance();
- onChanged();
- } else {
- invitationDocumentIdBuilder_.clear();
- }
bitField0_ = (bitField0_ & ~0x00000002);
+ invitationDocumentId_ = null;
+ if (invitationDocumentIdBuilder_ != null) {
+ invitationDocumentIdBuilder_.dispose();
+ invitationDocumentIdBuilder_ = null;
+ }
+ onChanged();
return this;
}
/**
@@ -2734,7 +3052,8 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getInvitationDocume
if (invitationDocumentIdBuilder_ != null) {
return invitationDocumentIdBuilder_.getMessageOrBuilder();
} else {
- return invitationDocumentId_;
+ return invitationDocumentId_ == null ?
+ Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : invitationDocumentId_;
}
}
/**
@@ -2757,12 +3076,52 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getInvitationDocume
// @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.AcquireCounteragentResult)
}
+ // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.AcquireCounteragentResult)
+ private static final Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult DEFAULT_INSTANCE;
static {
- defaultInstance = new AcquireCounteragentResult(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult();
+ }
+
+ public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResult getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserrequired string BoxId = 1;
+ * @return Whether the boxId field is set.
*/
boolean hasBoxId();
/**
* required string BoxId = 1;
+ * @return The boxId.
*/
java.lang.String getBoxId();
/**
* required string BoxId = 1;
+ * @return The bytes for boxId.
*/
com.google.protobuf.ByteString
getBoxIdBytes();
/**
* optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2;
+ * @return Whether the invitationDocumentId field is set.
*/
boolean hasInvitationDocumentId();
/**
* optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2;
+ * @return The invitationDocumentId.
*/
Diadoc.Api.Proto.DocumentIdProtos.DocumentId getInvitationDocumentId();
/**
@@ -2803,87 +3167,30 @@ public static final class AcquireCounteragentResultV2 extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.AcquireCounteragentResultV2)
AcquireCounteragentResultV2OrBuilder {
+ 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= */ "",
+ AcquireCounteragentResultV2.class.getName());
+ }
// Use AcquireCounteragentResultV2.newBuilder() to construct.
private AcquireCounteragentResultV2(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private AcquireCounteragentResultV2(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final AcquireCounteragentResultV2 defaultInstance;
- public static AcquireCounteragentResultV2 getDefaultInstance() {
- return defaultInstance;
- }
-
- public AcquireCounteragentResultV2 getDefaultInstanceForType() {
- return defaultInstance;
+ private AcquireCounteragentResultV2() {
+ boxId_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private AcquireCounteragentResultV2(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000001;
- boxId_ = bs;
- break;
- }
- case 18: {
- Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder subBuilder = null;
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- subBuilder = invitationDocumentId_.toBuilder();
- }
- invitationDocumentId_ = input.readMessage(Diadoc.Api.Proto.DocumentIdProtos.DocumentId.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(invitationDocumentId_);
- invitationDocumentId_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000002;
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentResultV2_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentResultV2_fieldAccessorTable
@@ -2891,33 +3198,23 @@ private AcquireCounteragentResultV2(
Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2.class, Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2.Builder.class);
}
- public static com.google.protobuf.Parserrequired string BoxId = 1;
+ * @return Whether the boxId field is set.
*/
+ @java.lang.Override
public boolean hasBoxId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string BoxId = 1;
+ * @return The boxId.
*/
+ @java.lang.Override
public java.lang.String getBoxId() {
java.lang.Object ref = boxId_;
if (ref instanceof java.lang.String) {
@@ -2934,7 +3231,9 @@ public java.lang.String getBoxId() {
}
/**
* required string BoxId = 1;
+ * @return The bytes for boxId.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getBoxIdBytes() {
java.lang.Object ref = boxId_;
@@ -2953,28 +3252,30 @@ public java.lang.String getBoxId() {
private Diadoc.Api.Proto.DocumentIdProtos.DocumentId invitationDocumentId_;
/**
* optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2;
+ * @return Whether the invitationDocumentId field is set.
*/
+ @java.lang.Override
public boolean hasInvitationDocumentId() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2;
+ * @return The invitationDocumentId.
*/
+ @java.lang.Override
public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getInvitationDocumentId() {
- return invitationDocumentId_;
+ return invitationDocumentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : invitationDocumentId_;
}
/**
* optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2;
*/
+ @java.lang.Override
public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getInvitationDocumentIdOrBuilder() {
- return invitationDocumentId_;
+ return invitationDocumentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : invitationDocumentId_;
}
- private void initFields() {
- boxId_ = "";
- invitationDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -2994,44 +3295,91 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getBoxIdBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, boxId_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, invitationDocumentId_);
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(2, getInvitationDocumentId());
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getBoxIdBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, boxId_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, invitationDocumentId_);
+ .computeMessageSize(2, getInvitationDocumentId());
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 other = (Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2) obj;
+
+ if (hasBoxId() != other.hasBoxId()) return false;
+ if (hasBoxId()) {
+ if (!getBoxId()
+ .equals(other.getBoxId())) return false;
+ }
+ if (hasInvitationDocumentId() != other.hasInvitationDocumentId()) return false;
+ if (hasInvitationDocumentId()) {
+ if (!getInvitationDocumentId()
+ .equals(other.getInvitationDocumentId())) 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 (hasBoxId()) {
+ hash = (37 * hash) + BOXID_FIELD_NUMBER;
+ hash = (53 * hash) + getBoxId().hashCode();
+ }
+ if (hasInvitationDocumentId()) {
+ hash = (37 * hash) + INVITATIONDOCUMENTID_FIELD_NUMBER;
+ hash = (53 * hash) + getInvitationDocumentId().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
+ public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 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.AcquireCounteragentProtos.AcquireCounteragentResultV2 parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -3055,42 +3403,57 @@ public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResu
}
public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -3110,6 +3473,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentResultV2_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentResultV2_fieldAccessorTable
@@ -3128,40 +3492,36 @@ private Builder(
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessage
+ .alwaysUseFieldBuilders) {
getInvitationDocumentIdFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
boxId_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
- if (invitationDocumentIdBuilder_ == null) {
- invitationDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance();
- } else {
- invitationDocumentIdBuilder_.clear();
+ invitationDocumentId_ = null;
+ if (invitationDocumentIdBuilder_ != null) {
+ invitationDocumentIdBuilder_.dispose();
+ invitationDocumentIdBuilder_ = null;
}
- bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.AcquireCounteragentProtos.internal_static_Diadoc_Api_Proto_AcquireCounteragentResultV2_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 getDefaultInstanceForType() {
return Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 build() {
Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 result = buildPartial();
if (!result.isInitialized()) {
@@ -3170,27 +3530,31 @@ public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 bu
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 buildPartial() {
Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 result = new Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.boxId_ = boxId_;
to_bitField0_ |= 0x00000001;
}
- result.boxId_ = boxId_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.invitationDocumentId_ = invitationDocumentIdBuilder_ == null
+ ? invitationDocumentId_
+ : invitationDocumentIdBuilder_.build();
to_bitField0_ |= 0x00000002;
}
- if (invitationDocumentIdBuilder_ == null) {
- result.invitationDocumentId_ = invitationDocumentId_;
- } else {
- result.invitationDocumentId_ = invitationDocumentIdBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
+ result.bitField0_ |= to_bitField0_;
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2) {
return mergeFrom((Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2)other);
@@ -3203,46 +3567,72 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 other) {
if (other == Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2.getDefaultInstance()) return this;
if (other.hasBoxId()) {
- bitField0_ |= 0x00000001;
boxId_ = other.boxId_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasInvitationDocumentId()) {
mergeInvitationDocumentId(other.getInvitationDocumentId());
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
if (!hasBoxId()) {
-
return false;
}
if (hasInvitationDocumentId()) {
if (!getInvitationDocumentId().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 {
- Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ boxId_ = input.readBytes();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ input.readMessage(
+ getInvitationDocumentIdFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
@@ -3250,12 +3640,14 @@ public Builder mergeFrom(
private java.lang.Object boxId_ = "";
/**
* required string BoxId = 1;
+ * @return Whether the boxId field is set.
*/
public boolean hasBoxId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string BoxId = 1;
+ * @return The boxId.
*/
public java.lang.String getBoxId() {
java.lang.Object ref = boxId_;
@@ -3273,6 +3665,7 @@ public java.lang.String getBoxId() {
}
/**
* required string BoxId = 1;
+ * @return The bytes for boxId.
*/
public com.google.protobuf.ByteString
getBoxIdBytes() {
@@ -3289,55 +3682,58 @@ public java.lang.String getBoxId() {
}
/**
* required string BoxId = 1;
+ * @param value The boxId to set.
+ * @return This builder for chaining.
*/
public Builder setBoxId(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
boxId_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required string BoxId = 1;
+ * @return This builder for chaining.
*/
public Builder clearBoxId() {
- bitField0_ = (bitField0_ & ~0x00000001);
boxId_ = getDefaultInstance().getBoxId();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* required string BoxId = 1;
+ * @param value The bytes for boxId to set.
+ * @return This builder for chaining.
*/
public Builder setBoxIdBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
boxId_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
- private Diadoc.Api.Proto.DocumentIdProtos.DocumentId invitationDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance();
+ private Diadoc.Api.Proto.DocumentIdProtos.DocumentId invitationDocumentId_;
private com.google.protobuf.SingleFieldBuilder<
Diadoc.Api.Proto.DocumentIdProtos.DocumentId, Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder> invitationDocumentIdBuilder_;
/**
* optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2;
+ * @return Whether the invitationDocumentId field is set.
*/
public boolean hasInvitationDocumentId() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2;
+ * @return The invitationDocumentId.
*/
public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getInvitationDocumentId() {
if (invitationDocumentIdBuilder_ == null) {
- return invitationDocumentId_;
+ return invitationDocumentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : invitationDocumentId_;
} else {
return invitationDocumentIdBuilder_.getMessage();
}
@@ -3351,11 +3747,11 @@ public Builder setInvitationDocumentId(Diadoc.Api.Proto.DocumentIdProtos.Documen
throw new NullPointerException();
}
invitationDocumentId_ = value;
- onChanged();
} else {
invitationDocumentIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -3365,11 +3761,11 @@ public Builder setInvitationDocumentId(
Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder builderForValue) {
if (invitationDocumentIdBuilder_ == null) {
invitationDocumentId_ = builderForValue.build();
- onChanged();
} else {
invitationDocumentIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -3377,31 +3773,33 @@ public Builder setInvitationDocumentId(
*/
public Builder mergeInvitationDocumentId(Diadoc.Api.Proto.DocumentIdProtos.DocumentId value) {
if (invitationDocumentIdBuilder_ == null) {
- if (((bitField0_ & 0x00000002) == 0x00000002) &&
- invitationDocumentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) {
- invitationDocumentId_ =
- Diadoc.Api.Proto.DocumentIdProtos.DocumentId.newBuilder(invitationDocumentId_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000002) != 0) &&
+ invitationDocumentId_ != null &&
+ invitationDocumentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) {
+ getInvitationDocumentIdBuilder().mergeFrom(value);
} else {
invitationDocumentId_ = value;
}
- onChanged();
} else {
invitationDocumentIdBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000002;
+ if (invitationDocumentId_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
return this;
}
/**
* optional .Diadoc.Api.Proto.DocumentId InvitationDocumentId = 2;
*/
public Builder clearInvitationDocumentId() {
- if (invitationDocumentIdBuilder_ == null) {
- invitationDocumentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance();
- onChanged();
- } else {
- invitationDocumentIdBuilder_.clear();
- }
bitField0_ = (bitField0_ & ~0x00000002);
+ invitationDocumentId_ = null;
+ if (invitationDocumentIdBuilder_ != null) {
+ invitationDocumentIdBuilder_.dispose();
+ invitationDocumentIdBuilder_ = null;
+ }
+ onChanged();
return this;
}
/**
@@ -3419,7 +3817,8 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getInvitationDocume
if (invitationDocumentIdBuilder_ != null) {
return invitationDocumentIdBuilder_.getMessageOrBuilder();
} else {
- return invitationDocumentId_;
+ return invitationDocumentId_ == null ?
+ Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : invitationDocumentId_;
}
}
/**
@@ -3442,32 +3841,72 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getInvitationDocume
// @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.AcquireCounteragentResultV2)
}
+ // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.AcquireCounteragentResultV2)
+ private static final Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 DEFAULT_INSTANCE;
static {
- defaultInstance = new AcquireCounteragentResultV2(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2();
+ }
+
+ public static Diadoc.Api.Proto.AcquireCounteragentProtos.AcquireCounteragentResultV2 getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parseroptional .Diadoc.Api.Proto.RussianAddress RussianAddress = 1;
+ * @return Whether the russianAddress field is set.
*/
boolean hasRussianAddress();
/**
* optional .Diadoc.Api.Proto.RussianAddress RussianAddress = 1;
+ * @return The russianAddress.
*/
Diadoc.Api.Proto.AddressProtos.RussianAddress getRussianAddress();
/**
@@ -27,10 +46,12 @@ public interface AddressOrBuilder extends
/**
* optional .Diadoc.Api.Proto.ForeignAddress ForeignAddress = 2;
+ * @return Whether the foreignAddress field is set.
*/
boolean hasForeignAddress();
/**
* optional .Diadoc.Api.Proto.ForeignAddress ForeignAddress = 2;
+ * @return The foreignAddress.
*/
Diadoc.Api.Proto.AddressProtos.ForeignAddress getForeignAddress();
/**
@@ -40,14 +61,17 @@ public interface AddressOrBuilder extends
/**
* optional string AddressCode = 3;
+ * @return Whether the addressCode field is set.
*/
boolean hasAddressCode();
/**
* optional string AddressCode = 3;
+ * @return The addressCode.
*/
java.lang.String getAddressCode();
/**
* optional string AddressCode = 3;
+ * @return The bytes for addressCode.
*/
com.google.protobuf.ByteString
getAddressCodeBytes();
@@ -59,100 +83,30 @@ public static final class Address extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Address)
AddressOrBuilder {
+ 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= */ "",
+ Address.class.getName());
+ }
// Use Address.newBuilder() to construct.
private Address(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private Address(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Address defaultInstance;
- public static Address getDefaultInstance() {
- return defaultInstance;
}
-
- public Address getDefaultInstanceForType() {
- return defaultInstance;
+ private Address() {
+ addressCode_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private Address(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- Diadoc.Api.Proto.AddressProtos.RussianAddress.Builder subBuilder = null;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- subBuilder = russianAddress_.toBuilder();
- }
- russianAddress_ = input.readMessage(Diadoc.Api.Proto.AddressProtos.RussianAddress.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(russianAddress_);
- russianAddress_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000001;
- break;
- }
- case 18: {
- Diadoc.Api.Proto.AddressProtos.ForeignAddress.Builder subBuilder = null;
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- subBuilder = foreignAddress_.toBuilder();
- }
- foreignAddress_ = input.readMessage(Diadoc.Api.Proto.AddressProtos.ForeignAddress.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(foreignAddress_);
- foreignAddress_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000002;
- break;
- }
- case 26: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000004;
- addressCode_ = bs;
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_Address_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_Address_fieldAccessorTable
@@ -160,75 +114,75 @@ private Address(
Diadoc.Api.Proto.AddressProtos.Address.class, Diadoc.Api.Proto.AddressProtos.Address.Builder.class);
}
- public static com.google.protobuf.Parser PARSER =
- new com.google.protobuf.AbstractParser() {
- public Address parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Address(input, extensionRegistry);
- }
- };
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
private int bitField0_;
public static final int RUSSIANADDRESS_FIELD_NUMBER = 1;
private Diadoc.Api.Proto.AddressProtos.RussianAddress russianAddress_;
/**
* optional .Diadoc.Api.Proto.RussianAddress RussianAddress = 1;
+ * @return Whether the russianAddress field is set.
*/
+ @java.lang.Override
public boolean hasRussianAddress() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .Diadoc.Api.Proto.RussianAddress RussianAddress = 1;
+ * @return The russianAddress.
*/
+ @java.lang.Override
public Diadoc.Api.Proto.AddressProtos.RussianAddress getRussianAddress() {
- return russianAddress_;
+ return russianAddress_ == null ? Diadoc.Api.Proto.AddressProtos.RussianAddress.getDefaultInstance() : russianAddress_;
}
/**
* optional .Diadoc.Api.Proto.RussianAddress RussianAddress = 1;
*/
+ @java.lang.Override
public Diadoc.Api.Proto.AddressProtos.RussianAddressOrBuilder getRussianAddressOrBuilder() {
- return russianAddress_;
+ return russianAddress_ == null ? Diadoc.Api.Proto.AddressProtos.RussianAddress.getDefaultInstance() : russianAddress_;
}
public static final int FOREIGNADDRESS_FIELD_NUMBER = 2;
private Diadoc.Api.Proto.AddressProtos.ForeignAddress foreignAddress_;
/**
* optional .Diadoc.Api.Proto.ForeignAddress ForeignAddress = 2;
+ * @return Whether the foreignAddress field is set.
*/
+ @java.lang.Override
public boolean hasForeignAddress() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .Diadoc.Api.Proto.ForeignAddress ForeignAddress = 2;
+ * @return The foreignAddress.
*/
+ @java.lang.Override
public Diadoc.Api.Proto.AddressProtos.ForeignAddress getForeignAddress() {
- return foreignAddress_;
+ return foreignAddress_ == null ? Diadoc.Api.Proto.AddressProtos.ForeignAddress.getDefaultInstance() : foreignAddress_;
}
/**
* optional .Diadoc.Api.Proto.ForeignAddress ForeignAddress = 2;
*/
+ @java.lang.Override
public Diadoc.Api.Proto.AddressProtos.ForeignAddressOrBuilder getForeignAddressOrBuilder() {
- return foreignAddress_;
+ return foreignAddress_ == null ? Diadoc.Api.Proto.AddressProtos.ForeignAddress.getDefaultInstance() : foreignAddress_;
}
public static final int ADDRESSCODE_FIELD_NUMBER = 3;
- private java.lang.Object addressCode_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object addressCode_ = "";
/**
* optional string AddressCode = 3;
+ * @return Whether the addressCode field is set.
*/
+ @java.lang.Override
public boolean hasAddressCode() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string AddressCode = 3;
+ * @return The addressCode.
*/
+ @java.lang.Override
public java.lang.String getAddressCode() {
java.lang.Object ref = addressCode_;
if (ref instanceof java.lang.String) {
@@ -245,7 +199,9 @@ public java.lang.String getAddressCode() {
}
/**
* optional string AddressCode = 3;
+ * @return The bytes for addressCode.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getAddressCodeBytes() {
java.lang.Object ref = addressCode_;
@@ -260,12 +216,8 @@ public java.lang.String getAddressCode() {
}
}
- private void initFields() {
- russianAddress_ = Diadoc.Api.Proto.AddressProtos.RussianAddress.getDefaultInstance();
- foreignAddress_ = Diadoc.Api.Proto.AddressProtos.ForeignAddress.getDefaultInstance();
- addressCode_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -287,51 +239,107 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, russianAddress_);
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getRussianAddress());
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, foreignAddress_);
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(2, getForeignAddress());
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(3, getAddressCodeBytes());
+ if (((bitField0_ & 0x00000004) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, addressCode_);
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, russianAddress_);
+ .computeMessageSize(1, getRussianAddress());
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, foreignAddress_);
+ .computeMessageSize(2, getForeignAddress());
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, getAddressCodeBytes());
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, addressCode_);
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.AddressProtos.Address)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.AddressProtos.Address other = (Diadoc.Api.Proto.AddressProtos.Address) obj;
+
+ if (hasRussianAddress() != other.hasRussianAddress()) return false;
+ if (hasRussianAddress()) {
+ if (!getRussianAddress()
+ .equals(other.getRussianAddress())) return false;
+ }
+ if (hasForeignAddress() != other.hasForeignAddress()) return false;
+ if (hasForeignAddress()) {
+ if (!getForeignAddress()
+ .equals(other.getForeignAddress())) return false;
+ }
+ if (hasAddressCode() != other.hasAddressCode()) return false;
+ if (hasAddressCode()) {
+ if (!getAddressCode()
+ .equals(other.getAddressCode())) 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 (hasRussianAddress()) {
+ hash = (37 * hash) + RUSSIANADDRESS_FIELD_NUMBER;
+ hash = (53 * hash) + getRussianAddress().hashCode();
+ }
+ if (hasForeignAddress()) {
+ hash = (37 * hash) + FOREIGNADDRESS_FIELD_NUMBER;
+ hash = (53 * hash) + getForeignAddress().hashCode();
+ }
+ if (hasAddressCode()) {
+ hash = (37 * hash) + ADDRESSCODE_FIELD_NUMBER;
+ hash = (53 * hash) + getAddressCode().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
+ public static Diadoc.Api.Proto.AddressProtos.Address parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.AddressProtos.Address 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.AddressProtos.Address parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -355,42 +363,57 @@ public static Diadoc.Api.Proto.AddressProtos.Address parseFrom(
}
public static Diadoc.Api.Proto.AddressProtos.Address parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.AddressProtos.Address parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.AddressProtos.Address parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.AddressProtos.Address parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.AddressProtos.Address parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.AddressProtos.Address parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.AddressProtos.Address prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -410,6 +433,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_Address_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_Address_fieldAccessorTable
@@ -428,47 +452,42 @@ private Builder(
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessage
+ .alwaysUseFieldBuilders) {
getRussianAddressFieldBuilder();
getForeignAddressFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
- if (russianAddressBuilder_ == null) {
- russianAddress_ = Diadoc.Api.Proto.AddressProtos.RussianAddress.getDefaultInstance();
- } else {
- russianAddressBuilder_.clear();
+ bitField0_ = 0;
+ russianAddress_ = null;
+ if (russianAddressBuilder_ != null) {
+ russianAddressBuilder_.dispose();
+ russianAddressBuilder_ = null;
}
- bitField0_ = (bitField0_ & ~0x00000001);
- if (foreignAddressBuilder_ == null) {
- foreignAddress_ = Diadoc.Api.Proto.AddressProtos.ForeignAddress.getDefaultInstance();
- } else {
- foreignAddressBuilder_.clear();
+ foreignAddress_ = null;
+ if (foreignAddressBuilder_ != null) {
+ foreignAddressBuilder_.dispose();
+ foreignAddressBuilder_ = null;
}
- bitField0_ = (bitField0_ & ~0x00000002);
addressCode_ = "";
- bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_Address_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.AddressProtos.Address getDefaultInstanceForType() {
return Diadoc.Api.Proto.AddressProtos.Address.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.AddressProtos.Address build() {
Diadoc.Api.Proto.AddressProtos.Address result = buildPartial();
if (!result.isInitialized()) {
@@ -477,35 +496,37 @@ public Diadoc.Api.Proto.AddressProtos.Address build() {
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.AddressProtos.Address buildPartial() {
Diadoc.Api.Proto.AddressProtos.Address result = new Diadoc.Api.Proto.AddressProtos.Address(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(Diadoc.Api.Proto.AddressProtos.Address result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.russianAddress_ = russianAddressBuilder_ == null
+ ? russianAddress_
+ : russianAddressBuilder_.build();
to_bitField0_ |= 0x00000001;
}
- if (russianAddressBuilder_ == null) {
- result.russianAddress_ = russianAddress_;
- } else {
- result.russianAddress_ = russianAddressBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.foreignAddress_ = foreignAddressBuilder_ == null
+ ? foreignAddress_
+ : foreignAddressBuilder_.build();
to_bitField0_ |= 0x00000002;
}
- if (foreignAddressBuilder_ == null) {
- result.foreignAddress_ = foreignAddress_;
- } else {
- result.foreignAddress_ = foreignAddressBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.addressCode_ = addressCode_;
to_bitField0_ |= 0x00000004;
}
- result.addressCode_ = addressCode_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
+ result.bitField0_ |= to_bitField0_;
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.AddressProtos.Address) {
return mergeFrom((Diadoc.Api.Proto.AddressProtos.Address)other);
@@ -524,64 +545,99 @@ public Builder mergeFrom(Diadoc.Api.Proto.AddressProtos.Address other) {
mergeForeignAddress(other.getForeignAddress());
}
if (other.hasAddressCode()) {
- bitField0_ |= 0x00000004;
addressCode_ = other.addressCode_;
+ bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
if (hasRussianAddress()) {
if (!getRussianAddress().isInitialized()) {
-
return false;
}
}
if (hasForeignAddress()) {
if (!getForeignAddress().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 {
- Diadoc.Api.Proto.AddressProtos.Address parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ input.readMessage(
+ getRussianAddressFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ input.readMessage(
+ getForeignAddressFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ addressCode_ = input.readBytes();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (Diadoc.Api.Proto.AddressProtos.Address) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
- private Diadoc.Api.Proto.AddressProtos.RussianAddress russianAddress_ = Diadoc.Api.Proto.AddressProtos.RussianAddress.getDefaultInstance();
+ private Diadoc.Api.Proto.AddressProtos.RussianAddress russianAddress_;
private com.google.protobuf.SingleFieldBuilder<
Diadoc.Api.Proto.AddressProtos.RussianAddress, Diadoc.Api.Proto.AddressProtos.RussianAddress.Builder, Diadoc.Api.Proto.AddressProtos.RussianAddressOrBuilder> russianAddressBuilder_;
/**
* optional .Diadoc.Api.Proto.RussianAddress RussianAddress = 1;
+ * @return Whether the russianAddress field is set.
*/
public boolean hasRussianAddress() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .Diadoc.Api.Proto.RussianAddress RussianAddress = 1;
+ * @return The russianAddress.
*/
public Diadoc.Api.Proto.AddressProtos.RussianAddress getRussianAddress() {
if (russianAddressBuilder_ == null) {
- return russianAddress_;
+ return russianAddress_ == null ? Diadoc.Api.Proto.AddressProtos.RussianAddress.getDefaultInstance() : russianAddress_;
} else {
return russianAddressBuilder_.getMessage();
}
@@ -595,11 +651,11 @@ public Builder setRussianAddress(Diadoc.Api.Proto.AddressProtos.RussianAddress v
throw new NullPointerException();
}
russianAddress_ = value;
- onChanged();
} else {
russianAddressBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -609,11 +665,11 @@ public Builder setRussianAddress(
Diadoc.Api.Proto.AddressProtos.RussianAddress.Builder builderForValue) {
if (russianAddressBuilder_ == null) {
russianAddress_ = builderForValue.build();
- onChanged();
} else {
russianAddressBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -621,31 +677,33 @@ public Builder setRussianAddress(
*/
public Builder mergeRussianAddress(Diadoc.Api.Proto.AddressProtos.RussianAddress value) {
if (russianAddressBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001) &&
- russianAddress_ != Diadoc.Api.Proto.AddressProtos.RussianAddress.getDefaultInstance()) {
- russianAddress_ =
- Diadoc.Api.Proto.AddressProtos.RussianAddress.newBuilder(russianAddress_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000001) != 0) &&
+ russianAddress_ != null &&
+ russianAddress_ != Diadoc.Api.Proto.AddressProtos.RussianAddress.getDefaultInstance()) {
+ getRussianAddressBuilder().mergeFrom(value);
} else {
russianAddress_ = value;
}
- onChanged();
} else {
russianAddressBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000001;
+ if (russianAddress_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
return this;
}
/**
* optional .Diadoc.Api.Proto.RussianAddress RussianAddress = 1;
*/
public Builder clearRussianAddress() {
- if (russianAddressBuilder_ == null) {
- russianAddress_ = Diadoc.Api.Proto.AddressProtos.RussianAddress.getDefaultInstance();
- onChanged();
- } else {
- russianAddressBuilder_.clear();
- }
bitField0_ = (bitField0_ & ~0x00000001);
+ russianAddress_ = null;
+ if (russianAddressBuilder_ != null) {
+ russianAddressBuilder_.dispose();
+ russianAddressBuilder_ = null;
+ }
+ onChanged();
return this;
}
/**
@@ -663,7 +721,8 @@ public Diadoc.Api.Proto.AddressProtos.RussianAddressOrBuilder getRussianAddressO
if (russianAddressBuilder_ != null) {
return russianAddressBuilder_.getMessageOrBuilder();
} else {
- return russianAddress_;
+ return russianAddress_ == null ?
+ Diadoc.Api.Proto.AddressProtos.RussianAddress.getDefaultInstance() : russianAddress_;
}
}
/**
@@ -683,21 +742,23 @@ public Diadoc.Api.Proto.AddressProtos.RussianAddressOrBuilder getRussianAddressO
return russianAddressBuilder_;
}
- private Diadoc.Api.Proto.AddressProtos.ForeignAddress foreignAddress_ = Diadoc.Api.Proto.AddressProtos.ForeignAddress.getDefaultInstance();
+ private Diadoc.Api.Proto.AddressProtos.ForeignAddress foreignAddress_;
private com.google.protobuf.SingleFieldBuilder<
Diadoc.Api.Proto.AddressProtos.ForeignAddress, Diadoc.Api.Proto.AddressProtos.ForeignAddress.Builder, Diadoc.Api.Proto.AddressProtos.ForeignAddressOrBuilder> foreignAddressBuilder_;
/**
* optional .Diadoc.Api.Proto.ForeignAddress ForeignAddress = 2;
+ * @return Whether the foreignAddress field is set.
*/
public boolean hasForeignAddress() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .Diadoc.Api.Proto.ForeignAddress ForeignAddress = 2;
+ * @return The foreignAddress.
*/
public Diadoc.Api.Proto.AddressProtos.ForeignAddress getForeignAddress() {
if (foreignAddressBuilder_ == null) {
- return foreignAddress_;
+ return foreignAddress_ == null ? Diadoc.Api.Proto.AddressProtos.ForeignAddress.getDefaultInstance() : foreignAddress_;
} else {
return foreignAddressBuilder_.getMessage();
}
@@ -711,11 +772,11 @@ public Builder setForeignAddress(Diadoc.Api.Proto.AddressProtos.ForeignAddress v
throw new NullPointerException();
}
foreignAddress_ = value;
- onChanged();
} else {
foreignAddressBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -725,11 +786,11 @@ public Builder setForeignAddress(
Diadoc.Api.Proto.AddressProtos.ForeignAddress.Builder builderForValue) {
if (foreignAddressBuilder_ == null) {
foreignAddress_ = builderForValue.build();
- onChanged();
} else {
foreignAddressBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -737,31 +798,33 @@ public Builder setForeignAddress(
*/
public Builder mergeForeignAddress(Diadoc.Api.Proto.AddressProtos.ForeignAddress value) {
if (foreignAddressBuilder_ == null) {
- if (((bitField0_ & 0x00000002) == 0x00000002) &&
- foreignAddress_ != Diadoc.Api.Proto.AddressProtos.ForeignAddress.getDefaultInstance()) {
- foreignAddress_ =
- Diadoc.Api.Proto.AddressProtos.ForeignAddress.newBuilder(foreignAddress_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000002) != 0) &&
+ foreignAddress_ != null &&
+ foreignAddress_ != Diadoc.Api.Proto.AddressProtos.ForeignAddress.getDefaultInstance()) {
+ getForeignAddressBuilder().mergeFrom(value);
} else {
foreignAddress_ = value;
}
- onChanged();
} else {
foreignAddressBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000002;
+ if (foreignAddress_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
return this;
}
/**
* optional .Diadoc.Api.Proto.ForeignAddress ForeignAddress = 2;
*/
public Builder clearForeignAddress() {
- if (foreignAddressBuilder_ == null) {
- foreignAddress_ = Diadoc.Api.Proto.AddressProtos.ForeignAddress.getDefaultInstance();
- onChanged();
- } else {
- foreignAddressBuilder_.clear();
- }
bitField0_ = (bitField0_ & ~0x00000002);
+ foreignAddress_ = null;
+ if (foreignAddressBuilder_ != null) {
+ foreignAddressBuilder_.dispose();
+ foreignAddressBuilder_ = null;
+ }
+ onChanged();
return this;
}
/**
@@ -779,7 +842,8 @@ public Diadoc.Api.Proto.AddressProtos.ForeignAddressOrBuilder getForeignAddressO
if (foreignAddressBuilder_ != null) {
return foreignAddressBuilder_.getMessageOrBuilder();
} else {
- return foreignAddress_;
+ return foreignAddress_ == null ?
+ Diadoc.Api.Proto.AddressProtos.ForeignAddress.getDefaultInstance() : foreignAddress_;
}
}
/**
@@ -802,12 +866,14 @@ public Diadoc.Api.Proto.AddressProtos.ForeignAddressOrBuilder getForeignAddressO
private java.lang.Object addressCode_ = "";
/**
* optional string AddressCode = 3;
+ * @return Whether the addressCode field is set.
*/
public boolean hasAddressCode() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string AddressCode = 3;
+ * @return The addressCode.
*/
public java.lang.String getAddressCode() {
java.lang.Object ref = addressCode_;
@@ -825,6 +891,7 @@ public java.lang.String getAddressCode() {
}
/**
* optional string AddressCode = 3;
+ * @return The bytes for addressCode.
*/
public com.google.protobuf.ByteString
getAddressCodeBytes() {
@@ -841,36 +908,37 @@ public java.lang.String getAddressCode() {
}
/**
* optional string AddressCode = 3;
+ * @param value The addressCode to set.
+ * @return This builder for chaining.
*/
public Builder setAddressCode(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
+ if (value == null) { throw new NullPointerException(); }
addressCode_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional string AddressCode = 3;
+ * @return This builder for chaining.
*/
public Builder clearAddressCode() {
- bitField0_ = (bitField0_ & ~0x00000004);
addressCode_ = getDefaultInstance().getAddressCode();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* optional string AddressCode = 3;
+ * @param value The bytes for addressCode to set.
+ * @return This builder for chaining.
*/
public Builder setAddressCodeBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
+ if (value == null) { throw new NullPointerException(); }
addressCode_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -878,12 +946,52 @@ public Builder setAddressCodeBytes(
// @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Address)
}
+ // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Address)
+ private static final Diadoc.Api.Proto.AddressProtos.Address DEFAULT_INSTANCE;
static {
- defaultInstance = new Address(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new Diadoc.Api.Proto.AddressProtos.Address();
+ }
+
+ public static Diadoc.Api.Proto.AddressProtos.Address getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Address 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.AddressProtos.Address getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
}
- // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Address)
}
public interface RussianAddressOrBuilder extends
@@ -891,261 +999,291 @@ public interface RussianAddressOrBuilder extends
com.google.protobuf.MessageOrBuilder {
/**
- * optional string ZipCode = 1;
- *
* * индекс *+ * + *
optional string ZipCode = 1;
+ * @return Whether the zipCode field is set.
*/
boolean hasZipCode();
/**
- * optional string ZipCode = 1;
- *
* * индекс *+ * + *
optional string ZipCode = 1;
+ * @return The zipCode.
*/
java.lang.String getZipCode();
/**
- * optional string ZipCode = 1;
- *
* * индекс *+ * + *
optional string ZipCode = 1;
+ * @return The bytes for zipCode.
*/
com.google.protobuf.ByteString
getZipCodeBytes();
/**
- * required string Region = 2;
- *
* * регион (код) *+ * + *
required string Region = 2;
+ * @return Whether the region field is set.
*/
boolean hasRegion();
/**
- * required string Region = 2;
- *
* * регион (код) *+ * + *
required string Region = 2;
+ * @return The region.
*/
java.lang.String getRegion();
/**
- * required string Region = 2;
- *
* * регион (код) *+ * + *
required string Region = 2;
+ * @return The bytes for region.
*/
com.google.protobuf.ByteString
getRegionBytes();
/**
- * optional string Territory = 3;
- *
* * район *+ * + *
optional string Territory = 3;
+ * @return Whether the territory field is set.
*/
boolean hasTerritory();
/**
- * optional string Territory = 3;
- *
* * район *+ * + *
optional string Territory = 3;
+ * @return The territory.
*/
java.lang.String getTerritory();
/**
- * optional string Territory = 3;
- *
* * район *+ * + *
optional string Territory = 3;
+ * @return The bytes for territory.
*/
com.google.protobuf.ByteString
getTerritoryBytes();
/**
- * optional string City = 4;
- *
* * город *+ * + *
optional string City = 4;
+ * @return Whether the city field is set.
*/
boolean hasCity();
/**
- * optional string City = 4;
- *
* * город *+ * + *
optional string City = 4;
+ * @return The city.
*/
java.lang.String getCity();
/**
- * optional string City = 4;
- *
* * город *+ * + *
optional string City = 4;
+ * @return The bytes for city.
*/
com.google.protobuf.ByteString
getCityBytes();
/**
- * optional string Locality = 5;
- *
* * населенный пункт *+ * + *
optional string Locality = 5;
+ * @return Whether the locality field is set.
*/
boolean hasLocality();
/**
- * optional string Locality = 5;
- *
* * населенный пункт *+ * + *
optional string Locality = 5;
+ * @return The locality.
*/
java.lang.String getLocality();
/**
- * optional string Locality = 5;
- *
* * населенный пункт *+ * + *
optional string Locality = 5;
+ * @return The bytes for locality.
*/
com.google.protobuf.ByteString
getLocalityBytes();
/**
- * optional string Street = 6;
- *
* * улица *+ * + *
optional string Street = 6;
+ * @return Whether the street field is set.
*/
boolean hasStreet();
/**
- * optional string Street = 6;
- *
* * улица *+ * + *
optional string Street = 6;
+ * @return The street.
*/
java.lang.String getStreet();
/**
- * optional string Street = 6;
- *
* * улица *+ * + *
optional string Street = 6;
+ * @return The bytes for street.
*/
com.google.protobuf.ByteString
getStreetBytes();
/**
- * optional string Building = 7;
- *
* * дом *+ * + *
optional string Building = 7;
+ * @return Whether the building field is set.
*/
boolean hasBuilding();
/**
- * optional string Building = 7;
- *
* * дом *+ * + *
optional string Building = 7;
+ * @return The building.
*/
java.lang.String getBuilding();
/**
- * optional string Building = 7;
- *
* * дом *+ * + *
optional string Building = 7;
+ * @return The bytes for building.
*/
com.google.protobuf.ByteString
getBuildingBytes();
/**
- * optional string Block = 8;
- *
* * корпус *+ * + *
optional string Block = 8;
+ * @return Whether the block field is set.
*/
boolean hasBlock();
/**
- * optional string Block = 8;
- *
* * корпус *+ * + *
optional string Block = 8;
+ * @return The block.
*/
java.lang.String getBlock();
/**
- * optional string Block = 8;
- *
* * корпус *+ * + *
optional string Block = 8;
+ * @return The bytes for block.
*/
com.google.protobuf.ByteString
getBlockBytes();
/**
- * optional string Apartment = 9;
- *
* * квартира *+ * + *
optional string Apartment = 9;
+ * @return Whether the apartment field is set.
*/
boolean hasApartment();
/**
- * optional string Apartment = 9;
- *
* * квартира *+ * + *
optional string Apartment = 9;
+ * @return The apartment.
*/
java.lang.String getApartment();
/**
- * optional string Apartment = 9;
- *
* * квартира *+ * + *
optional string Apartment = 9;
+ * @return The bytes for apartment.
*/
com.google.protobuf.ByteString
getApartmentBytes();
/**
- * optional string OtherInformation = 10;
- *
* * иные сведения *+ * + *
optional string OtherInformation = 10;
+ * @return Whether the otherInformation field is set.
*/
boolean hasOtherInformation();
/**
- * optional string OtherInformation = 10;
- *
* * иные сведения *+ * + *
optional string OtherInformation = 10;
+ * @return The otherInformation.
*/
java.lang.String getOtherInformation();
/**
- * optional string OtherInformation = 10;
- *
* * иные сведения *+ * + *
optional string OtherInformation = 10;
+ * @return The bytes for otherInformation.
*/
com.google.protobuf.ByteString
getOtherInformationBytes();
@@ -1157,128 +1295,39 @@ public static final class RussianAddress extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.RussianAddress)
RussianAddressOrBuilder {
+ 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= */ "",
+ RussianAddress.class.getName());
+ }
// Use RussianAddress.newBuilder() to construct.
private RussianAddress(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private RussianAddress(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final RussianAddress defaultInstance;
- public static RussianAddress getDefaultInstance() {
- return defaultInstance;
}
-
- public RussianAddress getDefaultInstanceForType() {
- return defaultInstance;
+ private RussianAddress() {
+ zipCode_ = "";
+ region_ = "";
+ territory_ = "";
+ city_ = "";
+ locality_ = "";
+ street_ = "";
+ building_ = "";
+ block_ = "";
+ apartment_ = "";
+ otherInformation_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private RussianAddress(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000001;
- zipCode_ = bs;
- break;
- }
- case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- region_ = bs;
- break;
- }
- case 26: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000004;
- territory_ = bs;
- break;
- }
- case 34: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000008;
- city_ = bs;
- break;
- }
- case 42: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000010;
- locality_ = bs;
- break;
- }
- case 50: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000020;
- street_ = bs;
- break;
- }
- case 58: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000040;
- building_ = bs;
- break;
- }
- case 66: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000080;
- block_ = bs;
- break;
- }
- case 74: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000100;
- apartment_ = bs;
- break;
- }
- case 82: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000200;
- otherInformation_ = bs;
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_RussianAddress_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_RussianAddress_fieldAccessorTable
@@ -1286,41 +1335,31 @@ private RussianAddress(
Diadoc.Api.Proto.AddressProtos.RussianAddress.class, Diadoc.Api.Proto.AddressProtos.RussianAddress.Builder.class);
}
- public static com.google.protobuf.Parseroptional string ZipCode = 1;
- *
* * индекс *+ * + *
optional string ZipCode = 1;
+ * @return Whether the zipCode field is set.
*/
+ @java.lang.Override
public boolean hasZipCode() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
- * optional string ZipCode = 1;
- *
* * индекс *+ * + *
optional string ZipCode = 1;
+ * @return The zipCode.
*/
+ @java.lang.Override
public java.lang.String getZipCode() {
java.lang.Object ref = zipCode_;
if (ref instanceof java.lang.String) {
@@ -1336,12 +1375,14 @@ public java.lang.String getZipCode() {
}
}
/**
- * optional string ZipCode = 1;
- *
* * индекс *+ * + *
optional string ZipCode = 1;
+ * @return The bytes for zipCode.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getZipCodeBytes() {
java.lang.Object ref = zipCode_;
@@ -1357,24 +1398,29 @@ public java.lang.String getZipCode() {
}
public static final int REGION_FIELD_NUMBER = 2;
- private java.lang.Object region_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object region_ = "";
/**
- * required string Region = 2;
- *
* * регион (код) *+ * + *
required string Region = 2;
+ * @return Whether the region field is set.
*/
+ @java.lang.Override
public boolean hasRegion() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
- * required string Region = 2;
- *
* * регион (код) *+ * + *
required string Region = 2;
+ * @return The region.
*/
+ @java.lang.Override
public java.lang.String getRegion() {
java.lang.Object ref = region_;
if (ref instanceof java.lang.String) {
@@ -1390,12 +1436,14 @@ public java.lang.String getRegion() {
}
}
/**
- * required string Region = 2;
- *
* * регион (код) *+ * + *
required string Region = 2;
+ * @return The bytes for region.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getRegionBytes() {
java.lang.Object ref = region_;
@@ -1411,24 +1459,29 @@ public java.lang.String getRegion() {
}
public static final int TERRITORY_FIELD_NUMBER = 3;
- private java.lang.Object territory_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object territory_ = "";
/**
- * optional string Territory = 3;
- *
* * район *+ * + *
optional string Territory = 3;
+ * @return Whether the territory field is set.
*/
+ @java.lang.Override
public boolean hasTerritory() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
- * optional string Territory = 3;
- *
* * район *+ * + *
optional string Territory = 3;
+ * @return The territory.
*/
+ @java.lang.Override
public java.lang.String getTerritory() {
java.lang.Object ref = territory_;
if (ref instanceof java.lang.String) {
@@ -1444,12 +1497,14 @@ public java.lang.String getTerritory() {
}
}
/**
- * optional string Territory = 3;
- *
* * район *+ * + *
optional string Territory = 3;
+ * @return The bytes for territory.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getTerritoryBytes() {
java.lang.Object ref = territory_;
@@ -1465,24 +1520,29 @@ public java.lang.String getTerritory() {
}
public static final int CITY_FIELD_NUMBER = 4;
- private java.lang.Object city_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object city_ = "";
/**
- * optional string City = 4;
- *
* * город *+ * + *
optional string City = 4;
+ * @return Whether the city field is set.
*/
+ @java.lang.Override
public boolean hasCity() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
- * optional string City = 4;
- *
* * город *+ * + *
optional string City = 4;
+ * @return The city.
*/
+ @java.lang.Override
public java.lang.String getCity() {
java.lang.Object ref = city_;
if (ref instanceof java.lang.String) {
@@ -1498,12 +1558,14 @@ public java.lang.String getCity() {
}
}
/**
- * optional string City = 4;
- *
* * город *+ * + *
optional string City = 4;
+ * @return The bytes for city.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getCityBytes() {
java.lang.Object ref = city_;
@@ -1519,24 +1581,29 @@ public java.lang.String getCity() {
}
public static final int LOCALITY_FIELD_NUMBER = 5;
- private java.lang.Object locality_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object locality_ = "";
/**
- * optional string Locality = 5;
- *
* * населенный пункт *+ * + *
optional string Locality = 5;
+ * @return Whether the locality field is set.
*/
+ @java.lang.Override
public boolean hasLocality() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
- * optional string Locality = 5;
- *
* * населенный пункт *+ * + *
optional string Locality = 5;
+ * @return The locality.
*/
+ @java.lang.Override
public java.lang.String getLocality() {
java.lang.Object ref = locality_;
if (ref instanceof java.lang.String) {
@@ -1552,12 +1619,14 @@ public java.lang.String getLocality() {
}
}
/**
- * optional string Locality = 5;
- *
* * населенный пункт *+ * + *
optional string Locality = 5;
+ * @return The bytes for locality.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getLocalityBytes() {
java.lang.Object ref = locality_;
@@ -1573,24 +1642,29 @@ public java.lang.String getLocality() {
}
public static final int STREET_FIELD_NUMBER = 6;
- private java.lang.Object street_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object street_ = "";
/**
- * optional string Street = 6;
- *
* * улица *+ * + *
optional string Street = 6;
+ * @return Whether the street field is set.
*/
+ @java.lang.Override
public boolean hasStreet() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
+ return ((bitField0_ & 0x00000020) != 0);
}
/**
- * optional string Street = 6;
- *
* * улица *+ * + *
optional string Street = 6;
+ * @return The street.
*/
+ @java.lang.Override
public java.lang.String getStreet() {
java.lang.Object ref = street_;
if (ref instanceof java.lang.String) {
@@ -1606,12 +1680,14 @@ public java.lang.String getStreet() {
}
}
/**
- * optional string Street = 6;
- *
* * улица *+ * + *
optional string Street = 6;
+ * @return The bytes for street.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getStreetBytes() {
java.lang.Object ref = street_;
@@ -1627,24 +1703,29 @@ public java.lang.String getStreet() {
}
public static final int BUILDING_FIELD_NUMBER = 7;
- private java.lang.Object building_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object building_ = "";
/**
- * optional string Building = 7;
- *
* * дом *+ * + *
optional string Building = 7;
+ * @return Whether the building field is set.
*/
+ @java.lang.Override
public boolean hasBuilding() {
- return ((bitField0_ & 0x00000040) == 0x00000040);
+ return ((bitField0_ & 0x00000040) != 0);
}
/**
- * optional string Building = 7;
- *
* * дом *+ * + *
optional string Building = 7;
+ * @return The building.
*/
+ @java.lang.Override
public java.lang.String getBuilding() {
java.lang.Object ref = building_;
if (ref instanceof java.lang.String) {
@@ -1660,12 +1741,14 @@ public java.lang.String getBuilding() {
}
}
/**
- * optional string Building = 7;
- *
* * дом *+ * + *
optional string Building = 7;
+ * @return The bytes for building.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getBuildingBytes() {
java.lang.Object ref = building_;
@@ -1681,24 +1764,29 @@ public java.lang.String getBuilding() {
}
public static final int BLOCK_FIELD_NUMBER = 8;
- private java.lang.Object block_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object block_ = "";
/**
- * optional string Block = 8;
- *
* * корпус *+ * + *
optional string Block = 8;
+ * @return Whether the block field is set.
*/
+ @java.lang.Override
public boolean hasBlock() {
- return ((bitField0_ & 0x00000080) == 0x00000080);
+ return ((bitField0_ & 0x00000080) != 0);
}
/**
- * optional string Block = 8;
- *
* * корпус *+ * + *
optional string Block = 8;
+ * @return The block.
*/
+ @java.lang.Override
public java.lang.String getBlock() {
java.lang.Object ref = block_;
if (ref instanceof java.lang.String) {
@@ -1714,12 +1802,14 @@ public java.lang.String getBlock() {
}
}
/**
- * optional string Block = 8;
- *
* * корпус *+ * + *
optional string Block = 8;
+ * @return The bytes for block.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getBlockBytes() {
java.lang.Object ref = block_;
@@ -1735,24 +1825,29 @@ public java.lang.String getBlock() {
}
public static final int APARTMENT_FIELD_NUMBER = 9;
- private java.lang.Object apartment_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object apartment_ = "";
/**
- * optional string Apartment = 9;
- *
* * квартира *+ * + *
optional string Apartment = 9;
+ * @return Whether the apartment field is set.
*/
+ @java.lang.Override
public boolean hasApartment() {
- return ((bitField0_ & 0x00000100) == 0x00000100);
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
- * optional string Apartment = 9;
- *
* * квартира *+ * + *
optional string Apartment = 9;
+ * @return The apartment.
*/
+ @java.lang.Override
public java.lang.String getApartment() {
java.lang.Object ref = apartment_;
if (ref instanceof java.lang.String) {
@@ -1768,12 +1863,14 @@ public java.lang.String getApartment() {
}
}
/**
- * optional string Apartment = 9;
- *
* * квартира *+ * + *
optional string Apartment = 9;
+ * @return The bytes for apartment.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getApartmentBytes() {
java.lang.Object ref = apartment_;
@@ -1789,24 +1886,29 @@ public java.lang.String getApartment() {
}
public static final int OTHERINFORMATION_FIELD_NUMBER = 10;
- private java.lang.Object otherInformation_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object otherInformation_ = "";
/**
- * optional string OtherInformation = 10;
- *
* * иные сведения *+ * + *
optional string OtherInformation = 10;
+ * @return Whether the otherInformation field is set.
*/
+ @java.lang.Override
public boolean hasOtherInformation() {
- return ((bitField0_ & 0x00000200) == 0x00000200);
+ return ((bitField0_ & 0x00000200) != 0);
}
/**
- * optional string OtherInformation = 10;
- *
* * иные сведения *+ * + *
optional string OtherInformation = 10;
+ * @return The otherInformation.
*/
+ @java.lang.Override
public java.lang.String getOtherInformation() {
java.lang.Object ref = otherInformation_;
if (ref instanceof java.lang.String) {
@@ -1822,12 +1924,14 @@ public java.lang.String getOtherInformation() {
}
}
/**
- * optional string OtherInformation = 10;
- *
* * иные сведения *+ * + *
optional string OtherInformation = 10;
+ * @return The bytes for otherInformation.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getOtherInformationBytes() {
java.lang.Object ref = otherInformation_;
@@ -1842,19 +1946,8 @@ public java.lang.String getOtherInformation() {
}
}
- private void initFields() {
- zipCode_ = "";
- region_ = "";
- territory_ = "";
- city_ = "";
- locality_ = "";
- street_ = "";
- building_ = "";
- block_ = "";
- apartment_ = "";
- otherInformation_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -1868,100 +1961,210 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getZipCodeBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, zipCode_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getRegionBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, region_);
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(3, getTerritoryBytes());
+ if (((bitField0_ & 0x00000004) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, territory_);
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBytes(4, getCityBytes());
+ if (((bitField0_ & 0x00000008) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, city_);
}
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeBytes(5, getLocalityBytes());
+ if (((bitField0_ & 0x00000010) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 5, locality_);
}
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- output.writeBytes(6, getStreetBytes());
+ if (((bitField0_ & 0x00000020) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 6, street_);
}
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
- output.writeBytes(7, getBuildingBytes());
+ if (((bitField0_ & 0x00000040) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 7, building_);
}
- if (((bitField0_ & 0x00000080) == 0x00000080)) {
- output.writeBytes(8, getBlockBytes());
+ if (((bitField0_ & 0x00000080) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 8, block_);
}
- if (((bitField0_ & 0x00000100) == 0x00000100)) {
- output.writeBytes(9, getApartmentBytes());
+ if (((bitField0_ & 0x00000100) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 9, apartment_);
}
- if (((bitField0_ & 0x00000200) == 0x00000200)) {
- output.writeBytes(10, getOtherInformationBytes());
+ if (((bitField0_ & 0x00000200) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 10, otherInformation_);
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getZipCodeBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, zipCode_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getRegionBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, region_);
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, getTerritoryBytes());
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, territory_);
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getCityBytes());
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, city_);
}
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(5, getLocalityBytes());
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(5, locality_);
}
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(6, getStreetBytes());
+ if (((bitField0_ & 0x00000020) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(6, street_);
}
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(7, getBuildingBytes());
+ if (((bitField0_ & 0x00000040) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(7, building_);
}
- if (((bitField0_ & 0x00000080) == 0x00000080)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(8, getBlockBytes());
+ if (((bitField0_ & 0x00000080) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(8, block_);
}
- if (((bitField0_ & 0x00000100) == 0x00000100)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(9, getApartmentBytes());
+ if (((bitField0_ & 0x00000100) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(9, apartment_);
}
- if (((bitField0_ & 0x00000200) == 0x00000200)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(10, getOtherInformationBytes());
+ if (((bitField0_ & 0x00000200) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(10, otherInformation_);
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.AddressProtos.RussianAddress)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.AddressProtos.RussianAddress other = (Diadoc.Api.Proto.AddressProtos.RussianAddress) obj;
+
+ if (hasZipCode() != other.hasZipCode()) return false;
+ if (hasZipCode()) {
+ if (!getZipCode()
+ .equals(other.getZipCode())) return false;
+ }
+ if (hasRegion() != other.hasRegion()) return false;
+ if (hasRegion()) {
+ if (!getRegion()
+ .equals(other.getRegion())) return false;
+ }
+ if (hasTerritory() != other.hasTerritory()) return false;
+ if (hasTerritory()) {
+ if (!getTerritory()
+ .equals(other.getTerritory())) return false;
+ }
+ if (hasCity() != other.hasCity()) return false;
+ if (hasCity()) {
+ if (!getCity()
+ .equals(other.getCity())) return false;
+ }
+ if (hasLocality() != other.hasLocality()) return false;
+ if (hasLocality()) {
+ if (!getLocality()
+ .equals(other.getLocality())) return false;
+ }
+ if (hasStreet() != other.hasStreet()) return false;
+ if (hasStreet()) {
+ if (!getStreet()
+ .equals(other.getStreet())) return false;
+ }
+ if (hasBuilding() != other.hasBuilding()) return false;
+ if (hasBuilding()) {
+ if (!getBuilding()
+ .equals(other.getBuilding())) return false;
+ }
+ if (hasBlock() != other.hasBlock()) return false;
+ if (hasBlock()) {
+ if (!getBlock()
+ .equals(other.getBlock())) return false;
+ }
+ if (hasApartment() != other.hasApartment()) return false;
+ if (hasApartment()) {
+ if (!getApartment()
+ .equals(other.getApartment())) return false;
+ }
+ if (hasOtherInformation() != other.hasOtherInformation()) return false;
+ if (hasOtherInformation()) {
+ if (!getOtherInformation()
+ .equals(other.getOtherInformation())) 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 (hasZipCode()) {
+ hash = (37 * hash) + ZIPCODE_FIELD_NUMBER;
+ hash = (53 * hash) + getZipCode().hashCode();
+ }
+ if (hasRegion()) {
+ hash = (37 * hash) + REGION_FIELD_NUMBER;
+ hash = (53 * hash) + getRegion().hashCode();
+ }
+ if (hasTerritory()) {
+ hash = (37 * hash) + TERRITORY_FIELD_NUMBER;
+ hash = (53 * hash) + getTerritory().hashCode();
+ }
+ if (hasCity()) {
+ hash = (37 * hash) + CITY_FIELD_NUMBER;
+ hash = (53 * hash) + getCity().hashCode();
+ }
+ if (hasLocality()) {
+ hash = (37 * hash) + LOCALITY_FIELD_NUMBER;
+ hash = (53 * hash) + getLocality().hashCode();
+ }
+ if (hasStreet()) {
+ hash = (37 * hash) + STREET_FIELD_NUMBER;
+ hash = (53 * hash) + getStreet().hashCode();
+ }
+ if (hasBuilding()) {
+ hash = (37 * hash) + BUILDING_FIELD_NUMBER;
+ hash = (53 * hash) + getBuilding().hashCode();
+ }
+ if (hasBlock()) {
+ hash = (37 * hash) + BLOCK_FIELD_NUMBER;
+ hash = (53 * hash) + getBlock().hashCode();
+ }
+ if (hasApartment()) {
+ hash = (37 * hash) + APARTMENT_FIELD_NUMBER;
+ hash = (53 * hash) + getApartment().hashCode();
+ }
+ if (hasOtherInformation()) {
+ hash = (37 * hash) + OTHERINFORMATION_FIELD_NUMBER;
+ hash = (53 * hash) + getOtherInformation().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
+ public static Diadoc.Api.Proto.AddressProtos.RussianAddress parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.AddressProtos.RussianAddress 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.AddressProtos.RussianAddress parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1985,42 +2188,57 @@ public static Diadoc.Api.Proto.AddressProtos.RussianAddress parseFrom(
}
public static Diadoc.Api.Proto.AddressProtos.RussianAddress parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.AddressProtos.RussianAddress parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.AddressProtos.RussianAddress parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.AddressProtos.RussianAddress parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.AddressProtos.RussianAddress parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.AddressProtos.RussianAddress parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.AddressProtos.RussianAddress prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -2040,6 +2258,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_RussianAddress_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_RussianAddress_fieldAccessorTable
@@ -2049,60 +2268,43 @@ public static final class Builder extends
// Construct using Diadoc.Api.Proto.AddressProtos.RussianAddress.newBuilder()
private Builder() {
- maybeForceBuilderInitialization();
+
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- private static Builder create() {
- return new Builder();
- }
+ }
+ @java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
zipCode_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
region_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
territory_ = "";
- bitField0_ = (bitField0_ & ~0x00000004);
city_ = "";
- bitField0_ = (bitField0_ & ~0x00000008);
locality_ = "";
- bitField0_ = (bitField0_ & ~0x00000010);
street_ = "";
- bitField0_ = (bitField0_ & ~0x00000020);
building_ = "";
- bitField0_ = (bitField0_ & ~0x00000040);
block_ = "";
- bitField0_ = (bitField0_ & ~0x00000080);
apartment_ = "";
- bitField0_ = (bitField0_ & ~0x00000100);
otherInformation_ = "";
- bitField0_ = (bitField0_ & ~0x00000200);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_RussianAddress_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.AddressProtos.RussianAddress getDefaultInstanceForType() {
return Diadoc.Api.Proto.AddressProtos.RussianAddress.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.AddressProtos.RussianAddress build() {
Diadoc.Api.Proto.AddressProtos.RussianAddress result = buildPartial();
if (!result.isInitialized()) {
@@ -2111,55 +2313,61 @@ public Diadoc.Api.Proto.AddressProtos.RussianAddress build() {
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.AddressProtos.RussianAddress buildPartial() {
Diadoc.Api.Proto.AddressProtos.RussianAddress result = new Diadoc.Api.Proto.AddressProtos.RussianAddress(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(Diadoc.Api.Proto.AddressProtos.RussianAddress result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.zipCode_ = zipCode_;
to_bitField0_ |= 0x00000001;
}
- result.zipCode_ = zipCode_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.region_ = region_;
to_bitField0_ |= 0x00000002;
}
- result.region_ = region_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.territory_ = territory_;
to_bitField0_ |= 0x00000004;
}
- result.territory_ = territory_;
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.city_ = city_;
to_bitField0_ |= 0x00000008;
}
- result.city_ = city_;
- if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.locality_ = locality_;
to_bitField0_ |= 0x00000010;
}
- result.locality_ = locality_;
- if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.street_ = street_;
to_bitField0_ |= 0x00000020;
}
- result.street_ = street_;
- if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.building_ = building_;
to_bitField0_ |= 0x00000040;
}
- result.building_ = building_;
- if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.block_ = block_;
to_bitField0_ |= 0x00000080;
}
- result.block_ = block_;
- if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
+ if (((from_bitField0_ & 0x00000100) != 0)) {
+ result.apartment_ = apartment_;
to_bitField0_ |= 0x00000100;
}
- result.apartment_ = apartment_;
- if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.otherInformation_ = otherInformation_;
to_bitField0_ |= 0x00000200;
}
- result.otherInformation_ = otherInformation_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
+ result.bitField0_ |= to_bitField0_;
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.AddressProtos.RussianAddress) {
return mergeFrom((Diadoc.Api.Proto.AddressProtos.RussianAddress)other);
@@ -2172,103 +2380,170 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(Diadoc.Api.Proto.AddressProtos.RussianAddress other) {
if (other == Diadoc.Api.Proto.AddressProtos.RussianAddress.getDefaultInstance()) return this;
if (other.hasZipCode()) {
- bitField0_ |= 0x00000001;
zipCode_ = other.zipCode_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasRegion()) {
- bitField0_ |= 0x00000002;
region_ = other.region_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasTerritory()) {
- bitField0_ |= 0x00000004;
territory_ = other.territory_;
+ bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasCity()) {
- bitField0_ |= 0x00000008;
city_ = other.city_;
+ bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasLocality()) {
- bitField0_ |= 0x00000010;
locality_ = other.locality_;
+ bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasStreet()) {
- bitField0_ |= 0x00000020;
street_ = other.street_;
+ bitField0_ |= 0x00000020;
onChanged();
}
if (other.hasBuilding()) {
- bitField0_ |= 0x00000040;
building_ = other.building_;
+ bitField0_ |= 0x00000040;
onChanged();
}
if (other.hasBlock()) {
- bitField0_ |= 0x00000080;
block_ = other.block_;
+ bitField0_ |= 0x00000080;
onChanged();
}
if (other.hasApartment()) {
- bitField0_ |= 0x00000100;
apartment_ = other.apartment_;
+ bitField0_ |= 0x00000100;
onChanged();
}
if (other.hasOtherInformation()) {
- bitField0_ |= 0x00000200;
otherInformation_ = other.otherInformation_;
+ bitField0_ |= 0x00000200;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
if (!hasRegion()) {
-
return false;
}
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- Diadoc.Api.Proto.AddressProtos.RussianAddress parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ zipCode_ = input.readBytes();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ region_ = input.readBytes();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ territory_ = input.readBytes();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34: {
+ city_ = input.readBytes();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ case 42: {
+ locality_ = input.readBytes();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
+ case 50: {
+ street_ = input.readBytes();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 50
+ case 58: {
+ building_ = input.readBytes();
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 58
+ case 66: {
+ block_ = input.readBytes();
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 66
+ case 74: {
+ apartment_ = input.readBytes();
+ bitField0_ |= 0x00000100;
+ break;
+ } // case 74
+ case 82: {
+ otherInformation_ = input.readBytes();
+ bitField0_ |= 0x00000200;
+ break;
+ } // case 82
+ 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) {
- parsedMessage = (Diadoc.Api.Proto.AddressProtos.RussianAddress) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
private java.lang.Object zipCode_ = "";
/**
- * optional string ZipCode = 1;
- *
* * индекс *+ * + *
optional string ZipCode = 1;
+ * @return Whether the zipCode field is set.
*/
public boolean hasZipCode() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
- * optional string ZipCode = 1;
- *
* * индекс *+ * + *
optional string ZipCode = 1;
+ * @return The zipCode.
*/
public java.lang.String getZipCode() {
java.lang.Object ref = zipCode_;
@@ -2285,11 +2560,12 @@ public java.lang.String getZipCode() {
}
}
/**
- * optional string ZipCode = 1;
- *
* * индекс *+ * + *
optional string ZipCode = 1;
+ * @return The bytes for zipCode.
*/
public com.google.protobuf.ByteString
getZipCodeBytes() {
@@ -2305,70 +2581,73 @@ public java.lang.String getZipCode() {
}
}
/**
- * optional string ZipCode = 1;
- *
* * индекс *+ * + *
optional string ZipCode = 1;
+ * @param value The zipCode to set.
+ * @return This builder for chaining.
*/
public Builder setZipCode(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
zipCode_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
- * optional string ZipCode = 1;
- *
* * индекс *+ * + *
optional string ZipCode = 1;
+ * @return This builder for chaining.
*/
public Builder clearZipCode() {
- bitField0_ = (bitField0_ & ~0x00000001);
zipCode_ = getDefaultInstance().getZipCode();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
- * optional string ZipCode = 1;
- *
* * индекс *+ * + *
optional string ZipCode = 1;
+ * @param value The bytes for zipCode to set.
+ * @return This builder for chaining.
*/
public Builder setZipCodeBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
zipCode_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object region_ = "";
/**
- * required string Region = 2;
- *
* * регион (код) *+ * + *
required string Region = 2;
+ * @return Whether the region field is set.
*/
public boolean hasRegion() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
- * required string Region = 2;
- *
* * регион (код) *+ * + *
required string Region = 2;
+ * @return The region.
*/
public java.lang.String getRegion() {
java.lang.Object ref = region_;
@@ -2385,11 +2664,12 @@ public java.lang.String getRegion() {
}
}
/**
- * required string Region = 2;
- *
* * регион (код) *+ * + *
required string Region = 2;
+ * @return The bytes for region.
*/
public com.google.protobuf.ByteString
getRegionBytes() {
@@ -2405,70 +2685,73 @@ public java.lang.String getRegion() {
}
}
/**
- * required string Region = 2;
- *
* * регион (код) *+ * + *
required string Region = 2;
+ * @param value The region to set.
+ * @return This builder for chaining.
*/
public Builder setRegion(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
+ if (value == null) { throw new NullPointerException(); }
region_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
- * required string Region = 2;
- *
* * регион (код) *+ * + *
required string Region = 2;
+ * @return This builder for chaining.
*/
public Builder clearRegion() {
- bitField0_ = (bitField0_ & ~0x00000002);
region_ = getDefaultInstance().getRegion();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
- * required string Region = 2;
- *
* * регион (код) *+ * + *
required string Region = 2;
+ * @param value The bytes for region to set.
+ * @return This builder for chaining.
*/
public Builder setRegionBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
+ if (value == null) { throw new NullPointerException(); }
region_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object territory_ = "";
/**
- * optional string Territory = 3;
- *
* * район *+ * + *
optional string Territory = 3;
+ * @return Whether the territory field is set.
*/
public boolean hasTerritory() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
- * optional string Territory = 3;
- *
* * район *+ * + *
optional string Territory = 3;
+ * @return The territory.
*/
public java.lang.String getTerritory() {
java.lang.Object ref = territory_;
@@ -2485,11 +2768,12 @@ public java.lang.String getTerritory() {
}
}
/**
- * optional string Territory = 3;
- *
* * район *+ * + *
optional string Territory = 3;
+ * @return The bytes for territory.
*/
public com.google.protobuf.ByteString
getTerritoryBytes() {
@@ -2505,70 +2789,73 @@ public java.lang.String getTerritory() {
}
}
/**
- * optional string Territory = 3;
- *
* * район *+ * + *
optional string Territory = 3;
+ * @param value The territory to set.
+ * @return This builder for chaining.
*/
public Builder setTerritory(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
+ if (value == null) { throw new NullPointerException(); }
territory_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
- * optional string Territory = 3;
- *
* * район *+ * + *
optional string Territory = 3;
+ * @return This builder for chaining.
*/
public Builder clearTerritory() {
- bitField0_ = (bitField0_ & ~0x00000004);
territory_ = getDefaultInstance().getTerritory();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
- * optional string Territory = 3;
- *
* * район *+ * + *
optional string Territory = 3;
+ * @param value The bytes for territory to set.
+ * @return This builder for chaining.
*/
public Builder setTerritoryBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
+ if (value == null) { throw new NullPointerException(); }
territory_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object city_ = "";
/**
- * optional string City = 4;
- *
* * город *+ * + *
optional string City = 4;
+ * @return Whether the city field is set.
*/
public boolean hasCity() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
- * optional string City = 4;
- *
* * город *+ * + *
optional string City = 4;
+ * @return The city.
*/
public java.lang.String getCity() {
java.lang.Object ref = city_;
@@ -2585,11 +2872,12 @@ public java.lang.String getCity() {
}
}
/**
- * optional string City = 4;
- *
* * город *+ * + *
optional string City = 4;
+ * @return The bytes for city.
*/
public com.google.protobuf.ByteString
getCityBytes() {
@@ -2605,70 +2893,73 @@ public java.lang.String getCity() {
}
}
/**
- * optional string City = 4;
- *
* * город *+ * + *
optional string City = 4;
+ * @param value The city to set.
+ * @return This builder for chaining.
*/
public Builder setCity(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
+ if (value == null) { throw new NullPointerException(); }
city_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
- * optional string City = 4;
- *
* * город *+ * + *
optional string City = 4;
+ * @return This builder for chaining.
*/
public Builder clearCity() {
- bitField0_ = (bitField0_ & ~0x00000008);
city_ = getDefaultInstance().getCity();
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
- * optional string City = 4;
- *
* * город *+ * + *
optional string City = 4;
+ * @param value The bytes for city to set.
+ * @return This builder for chaining.
*/
public Builder setCityBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
+ if (value == null) { throw new NullPointerException(); }
city_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object locality_ = "";
/**
- * optional string Locality = 5;
- *
* * населенный пункт *+ * + *
optional string Locality = 5;
+ * @return Whether the locality field is set.
*/
public boolean hasLocality() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
- * optional string Locality = 5;
- *
* * населенный пункт *+ * + *
optional string Locality = 5;
+ * @return The locality.
*/
public java.lang.String getLocality() {
java.lang.Object ref = locality_;
@@ -2685,11 +2976,12 @@ public java.lang.String getLocality() {
}
}
/**
- * optional string Locality = 5;
- *
* * населенный пункт *+ * + *
optional string Locality = 5;
+ * @return The bytes for locality.
*/
public com.google.protobuf.ByteString
getLocalityBytes() {
@@ -2705,70 +2997,73 @@ public java.lang.String getLocality() {
}
}
/**
- * optional string Locality = 5;
- *
* * населенный пункт *+ * + *
optional string Locality = 5;
+ * @param value The locality to set.
+ * @return This builder for chaining.
*/
public Builder setLocality(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000010;
+ if (value == null) { throw new NullPointerException(); }
locality_ = value;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
- * optional string Locality = 5;
- *
* * населенный пункт *+ * + *
optional string Locality = 5;
+ * @return This builder for chaining.
*/
public Builder clearLocality() {
- bitField0_ = (bitField0_ & ~0x00000010);
locality_ = getDefaultInstance().getLocality();
+ bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
- * optional string Locality = 5;
- *
* * населенный пункт *+ * + *
optional string Locality = 5;
+ * @param value The bytes for locality to set.
+ * @return This builder for chaining.
*/
public Builder setLocalityBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000010;
+ if (value == null) { throw new NullPointerException(); }
locality_ = value;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object street_ = "";
/**
- * optional string Street = 6;
- *
* * улица *+ * + *
optional string Street = 6;
+ * @return Whether the street field is set.
*/
public boolean hasStreet() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
+ return ((bitField0_ & 0x00000020) != 0);
}
/**
- * optional string Street = 6;
- *
* * улица *+ * + *
optional string Street = 6;
+ * @return The street.
*/
public java.lang.String getStreet() {
java.lang.Object ref = street_;
@@ -2785,11 +3080,12 @@ public java.lang.String getStreet() {
}
}
/**
- * optional string Street = 6;
- *
* * улица *+ * + *
optional string Street = 6;
+ * @return The bytes for street.
*/
public com.google.protobuf.ByteString
getStreetBytes() {
@@ -2805,70 +3101,73 @@ public java.lang.String getStreet() {
}
}
/**
- * optional string Street = 6;
- *
* * улица *+ * + *
optional string Street = 6;
+ * @param value The street to set.
+ * @return This builder for chaining.
*/
public Builder setStreet(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000020;
+ if (value == null) { throw new NullPointerException(); }
street_ = value;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
- * optional string Street = 6;
- *
* * улица *+ * + *
optional string Street = 6;
+ * @return This builder for chaining.
*/
public Builder clearStreet() {
- bitField0_ = (bitField0_ & ~0x00000020);
street_ = getDefaultInstance().getStreet();
+ bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
- * optional string Street = 6;
- *
* * улица *+ * + *
optional string Street = 6;
+ * @param value The bytes for street to set.
+ * @return This builder for chaining.
*/
public Builder setStreetBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000020;
+ if (value == null) { throw new NullPointerException(); }
street_ = value;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
private java.lang.Object building_ = "";
/**
- * optional string Building = 7;
- *
* * дом *+ * + *
optional string Building = 7;
+ * @return Whether the building field is set.
*/
public boolean hasBuilding() {
- return ((bitField0_ & 0x00000040) == 0x00000040);
+ return ((bitField0_ & 0x00000040) != 0);
}
/**
- * optional string Building = 7;
- *
* * дом *+ * + *
optional string Building = 7;
+ * @return The building.
*/
public java.lang.String getBuilding() {
java.lang.Object ref = building_;
@@ -2885,11 +3184,12 @@ public java.lang.String getBuilding() {
}
}
/**
- * optional string Building = 7;
- *
* * дом *+ * + *
optional string Building = 7;
+ * @return The bytes for building.
*/
public com.google.protobuf.ByteString
getBuildingBytes() {
@@ -2905,70 +3205,73 @@ public java.lang.String getBuilding() {
}
}
/**
- * optional string Building = 7;
- *
* * дом *+ * + *
optional string Building = 7;
+ * @param value The building to set.
+ * @return This builder for chaining.
*/
public Builder setBuilding(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000040;
+ if (value == null) { throw new NullPointerException(); }
building_ = value;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
- * optional string Building = 7;
- *
* * дом *+ * + *
optional string Building = 7;
+ * @return This builder for chaining.
*/
public Builder clearBuilding() {
- bitField0_ = (bitField0_ & ~0x00000040);
building_ = getDefaultInstance().getBuilding();
+ bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
- * optional string Building = 7;
- *
* * дом *+ * + *
optional string Building = 7;
+ * @param value The bytes for building to set.
+ * @return This builder for chaining.
*/
public Builder setBuildingBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000040;
+ if (value == null) { throw new NullPointerException(); }
building_ = value;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
private java.lang.Object block_ = "";
/**
- * optional string Block = 8;
- *
* * корпус *+ * + *
optional string Block = 8;
+ * @return Whether the block field is set.
*/
public boolean hasBlock() {
- return ((bitField0_ & 0x00000080) == 0x00000080);
+ return ((bitField0_ & 0x00000080) != 0);
}
/**
- * optional string Block = 8;
- *
* * корпус *+ * + *
optional string Block = 8;
+ * @return The block.
*/
public java.lang.String getBlock() {
java.lang.Object ref = block_;
@@ -2985,11 +3288,12 @@ public java.lang.String getBlock() {
}
}
/**
- * optional string Block = 8;
- *
* * корпус *+ * + *
optional string Block = 8;
+ * @return The bytes for block.
*/
public com.google.protobuf.ByteString
getBlockBytes() {
@@ -3005,70 +3309,73 @@ public java.lang.String getBlock() {
}
}
/**
- * optional string Block = 8;
- *
* * корпус *+ * + *
optional string Block = 8;
+ * @param value The block to set.
+ * @return This builder for chaining.
*/
public Builder setBlock(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000080;
+ if (value == null) { throw new NullPointerException(); }
block_ = value;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
- * optional string Block = 8;
- *
* * корпус *+ * + *
optional string Block = 8;
+ * @return This builder for chaining.
*/
public Builder clearBlock() {
- bitField0_ = (bitField0_ & ~0x00000080);
block_ = getDefaultInstance().getBlock();
+ bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
- * optional string Block = 8;
- *
* * корпус *+ * + *
optional string Block = 8;
+ * @param value The bytes for block to set.
+ * @return This builder for chaining.
*/
public Builder setBlockBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000080;
+ if (value == null) { throw new NullPointerException(); }
block_ = value;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
private java.lang.Object apartment_ = "";
/**
- * optional string Apartment = 9;
- *
* * квартира *+ * + *
optional string Apartment = 9;
+ * @return Whether the apartment field is set.
*/
public boolean hasApartment() {
- return ((bitField0_ & 0x00000100) == 0x00000100);
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
- * optional string Apartment = 9;
- *
* * квартира *+ * + *
optional string Apartment = 9;
+ * @return The apartment.
*/
public java.lang.String getApartment() {
java.lang.Object ref = apartment_;
@@ -3085,11 +3392,12 @@ public java.lang.String getApartment() {
}
}
/**
- * optional string Apartment = 9;
- *
* * квартира *+ * + *
optional string Apartment = 9;
+ * @return The bytes for apartment.
*/
public com.google.protobuf.ByteString
getApartmentBytes() {
@@ -3105,70 +3413,73 @@ public java.lang.String getApartment() {
}
}
/**
- * optional string Apartment = 9;
- *
* * квартира *+ * + *
optional string Apartment = 9;
+ * @param value The apartment to set.
+ * @return This builder for chaining.
*/
public Builder setApartment(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000100;
+ if (value == null) { throw new NullPointerException(); }
apartment_ = value;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
- * optional string Apartment = 9;
- *
* * квартира *+ * + *
optional string Apartment = 9;
+ * @return This builder for chaining.
*/
public Builder clearApartment() {
- bitField0_ = (bitField0_ & ~0x00000100);
apartment_ = getDefaultInstance().getApartment();
+ bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
- * optional string Apartment = 9;
- *
* * квартира *+ * + *
optional string Apartment = 9;
+ * @param value The bytes for apartment to set.
+ * @return This builder for chaining.
*/
public Builder setApartmentBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000100;
+ if (value == null) { throw new NullPointerException(); }
apartment_ = value;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
private java.lang.Object otherInformation_ = "";
/**
- * optional string OtherInformation = 10;
- *
* * иные сведения *+ * + *
optional string OtherInformation = 10;
+ * @return Whether the otherInformation field is set.
*/
public boolean hasOtherInformation() {
- return ((bitField0_ & 0x00000200) == 0x00000200);
+ return ((bitField0_ & 0x00000200) != 0);
}
/**
- * optional string OtherInformation = 10;
- *
* * иные сведения *+ * + *
optional string OtherInformation = 10;
+ * @return The otherInformation.
*/
public java.lang.String getOtherInformation() {
java.lang.Object ref = otherInformation_;
@@ -3185,11 +3496,12 @@ public java.lang.String getOtherInformation() {
}
}
/**
- * optional string OtherInformation = 10;
- *
* * иные сведения *+ * + *
optional string OtherInformation = 10;
+ * @return The bytes for otherInformation.
*/
public com.google.protobuf.ByteString
getOtherInformationBytes() {
@@ -3205,49 +3517,50 @@ public java.lang.String getOtherInformation() {
}
}
/**
- * optional string OtherInformation = 10;
- *
* * иные сведения *+ * + *
optional string OtherInformation = 10;
+ * @param value The otherInformation to set.
+ * @return This builder for chaining.
*/
public Builder setOtherInformation(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000200;
+ if (value == null) { throw new NullPointerException(); }
otherInformation_ = value;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
- * optional string OtherInformation = 10;
- *
* * иные сведения *+ * + *
optional string OtherInformation = 10;
+ * @return This builder for chaining.
*/
public Builder clearOtherInformation() {
- bitField0_ = (bitField0_ & ~0x00000200);
otherInformation_ = getDefaultInstance().getOtherInformation();
+ bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
- * optional string OtherInformation = 10;
- *
* * иные сведения *+ * + *
optional string OtherInformation = 10;
+ * @param value The bytes for otherInformation to set.
+ * @return This builder for chaining.
*/
public Builder setOtherInformationBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000200;
+ if (value == null) { throw new NullPointerException(); }
otherInformation_ = value;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -3255,12 +3568,52 @@ public Builder setOtherInformationBytes(
// @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.RussianAddress)
}
+ // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.RussianAddress)
+ private static final Diadoc.Api.Proto.AddressProtos.RussianAddress DEFAULT_INSTANCE;
static {
- defaultInstance = new RussianAddress(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new Diadoc.Api.Proto.AddressProtos.RussianAddress();
+ }
+
+ public static Diadoc.Api.Proto.AddressProtos.RussianAddress getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserrequired string Country = 1;
- *
* * страна (код) *+ * + *
required string Country = 1;
+ * @return Whether the country field is set.
*/
boolean hasCountry();
/**
- * required string Country = 1;
- *
* * страна (код) *+ * + *
required string Country = 1;
+ * @return The country.
*/
java.lang.String getCountry();
/**
- * required string Country = 1;
- *
* * страна (код) *+ * + *
required string Country = 1;
+ * @return The bytes for country.
*/
com.google.protobuf.ByteString
getCountryBytes();
/**
- * required string Address = 2;
- *
* * текст адреса *+ * + *
required string Address = 2;
+ * @return Whether the address field is set.
*/
boolean hasAddress();
/**
- * required string Address = 2;
- *
* * текст адреса *+ * + *
required string Address = 2;
+ * @return The address.
*/
java.lang.String getAddress();
/**
- * required string Address = 2;
- *
* * текст адреса *+ * + *
required string Address = 2;
+ * @return The bytes for address.
*/
com.google.protobuf.ByteString
getAddressBytes();
@@ -3326,80 +3685,31 @@ public static final class ForeignAddress extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.ForeignAddress)
ForeignAddressOrBuilder {
+ 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= */ "",
+ ForeignAddress.class.getName());
+ }
// Use ForeignAddress.newBuilder() to construct.
private ForeignAddress(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private ForeignAddress(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final ForeignAddress defaultInstance;
- public static ForeignAddress getDefaultInstance() {
- return defaultInstance;
}
-
- public ForeignAddress getDefaultInstanceForType() {
- return defaultInstance;
+ private ForeignAddress() {
+ country_ = "";
+ address_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private ForeignAddress(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000001;
- country_ = bs;
- break;
- }
- case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- address_ = bs;
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_ForeignAddress_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_ForeignAddress_fieldAccessorTable
@@ -3407,41 +3717,31 @@ private ForeignAddress(
Diadoc.Api.Proto.AddressProtos.ForeignAddress.class, Diadoc.Api.Proto.AddressProtos.ForeignAddress.Builder.class);
}
- public static com.google.protobuf.Parserrequired string Country = 1;
- *
* * страна (код) *+ * + *
required string Country = 1;
+ * @return Whether the country field is set.
*/
+ @java.lang.Override
public boolean hasCountry() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
- * required string Country = 1;
- *
* * страна (код) *+ * + *
required string Country = 1;
+ * @return The country.
*/
+ @java.lang.Override
public java.lang.String getCountry() {
java.lang.Object ref = country_;
if (ref instanceof java.lang.String) {
@@ -3457,12 +3757,14 @@ public java.lang.String getCountry() {
}
}
/**
- * required string Country = 1;
- *
* * страна (код) *+ * + *
required string Country = 1;
+ * @return The bytes for country.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getCountryBytes() {
java.lang.Object ref = country_;
@@ -3478,24 +3780,29 @@ public java.lang.String getCountry() {
}
public static final int ADDRESS_FIELD_NUMBER = 2;
- private java.lang.Object address_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object address_ = "";
/**
- * required string Address = 2;
- *
* * текст адреса *+ * + *
required string Address = 2;
+ * @return Whether the address field is set.
*/
+ @java.lang.Override
public boolean hasAddress() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
- * required string Address = 2;
- *
* * текст адреса *+ * + *
required string Address = 2;
+ * @return The address.
*/
+ @java.lang.Override
public java.lang.String getAddress() {
java.lang.Object ref = address_;
if (ref instanceof java.lang.String) {
@@ -3511,12 +3818,14 @@ public java.lang.String getAddress() {
}
}
/**
- * required string Address = 2;
- *
* * текст адреса *+ * + *
required string Address = 2;
+ * @return The bytes for address.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getAddressBytes() {
java.lang.Object ref = address_;
@@ -3531,11 +3840,8 @@ public java.lang.String getAddress() {
}
}
- private void initFields() {
- country_ = "";
- address_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -3553,44 +3859,90 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getCountryBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, country_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getAddressBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, address_);
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getCountryBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, country_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getAddressBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, address_);
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.AddressProtos.ForeignAddress)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.AddressProtos.ForeignAddress other = (Diadoc.Api.Proto.AddressProtos.ForeignAddress) obj;
+
+ if (hasCountry() != other.hasCountry()) return false;
+ if (hasCountry()) {
+ if (!getCountry()
+ .equals(other.getCountry())) return false;
+ }
+ if (hasAddress() != other.hasAddress()) return false;
+ if (hasAddress()) {
+ if (!getAddress()
+ .equals(other.getAddress())) 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 (hasCountry()) {
+ hash = (37 * hash) + COUNTRY_FIELD_NUMBER;
+ hash = (53 * hash) + getCountry().hashCode();
+ }
+ if (hasAddress()) {
+ hash = (37 * hash) + ADDRESS_FIELD_NUMBER;
+ hash = (53 * hash) + getAddress().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
+ public static Diadoc.Api.Proto.AddressProtos.ForeignAddress parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.AddressProtos.ForeignAddress 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.AddressProtos.ForeignAddress parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -3614,42 +3966,57 @@ public static Diadoc.Api.Proto.AddressProtos.ForeignAddress parseFrom(
}
public static Diadoc.Api.Proto.AddressProtos.ForeignAddress parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.AddressProtos.ForeignAddress parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.AddressProtos.ForeignAddress parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.AddressProtos.ForeignAddress parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.AddressProtos.ForeignAddress parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.AddressProtos.ForeignAddress parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.AddressProtos.ForeignAddress prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -3669,6 +4036,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_ForeignAddress_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_ForeignAddress_fieldAccessorTable
@@ -3678,44 +4046,35 @@ public static final class Builder extends
// Construct using Diadoc.Api.Proto.AddressProtos.ForeignAddress.newBuilder()
private Builder() {
- maybeForceBuilderInitialization();
+
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- private static Builder create() {
- return new Builder();
- }
+ }
+ @java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
country_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
address_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.AddressProtos.internal_static_Diadoc_Api_Proto_ForeignAddress_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.AddressProtos.ForeignAddress getDefaultInstanceForType() {
return Diadoc.Api.Proto.AddressProtos.ForeignAddress.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.AddressProtos.ForeignAddress build() {
Diadoc.Api.Proto.AddressProtos.ForeignAddress result = buildPartial();
if (!result.isInitialized()) {
@@ -3724,23 +4083,29 @@ public Diadoc.Api.Proto.AddressProtos.ForeignAddress build() {
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.AddressProtos.ForeignAddress buildPartial() {
Diadoc.Api.Proto.AddressProtos.ForeignAddress result = new Diadoc.Api.Proto.AddressProtos.ForeignAddress(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(Diadoc.Api.Proto.AddressProtos.ForeignAddress result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.country_ = country_;
to_bitField0_ |= 0x00000001;
}
- result.country_ = country_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.address_ = address_;
to_bitField0_ |= 0x00000002;
}
- result.address_ = address_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
+ result.bitField0_ |= to_bitField0_;
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.AddressProtos.ForeignAddress) {
return mergeFrom((Diadoc.Api.Proto.AddressProtos.ForeignAddress)other);
@@ -3753,67 +4118,93 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(Diadoc.Api.Proto.AddressProtos.ForeignAddress other) {
if (other == Diadoc.Api.Proto.AddressProtos.ForeignAddress.getDefaultInstance()) return this;
if (other.hasCountry()) {
- bitField0_ |= 0x00000001;
country_ = other.country_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasAddress()) {
- bitField0_ |= 0x00000002;
address_ = other.address_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
if (!hasCountry()) {
-
return false;
}
if (!hasAddress()) {
-
return false;
}
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- Diadoc.Api.Proto.AddressProtos.ForeignAddress parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ country_ = input.readBytes();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ address_ = 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) {
- parsedMessage = (Diadoc.Api.Proto.AddressProtos.ForeignAddress) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
private java.lang.Object country_ = "";
/**
- * required string Country = 1;
- *
* * страна (код) *+ * + *
required string Country = 1;
+ * @return Whether the country field is set.
*/
public boolean hasCountry() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
- * required string Country = 1;
- *
* * страна (код) *+ * + *
required string Country = 1;
+ * @return The country.
*/
public java.lang.String getCountry() {
java.lang.Object ref = country_;
@@ -3830,11 +4221,12 @@ public java.lang.String getCountry() {
}
}
/**
- * required string Country = 1;
- *
* * страна (код) *+ * + *
required string Country = 1;
+ * @return The bytes for country.
*/
public com.google.protobuf.ByteString
getCountryBytes() {
@@ -3850,70 +4242,73 @@ public java.lang.String getCountry() {
}
}
/**
- * required string Country = 1;
- *
* * страна (код) *+ * + *
required string Country = 1;
+ * @param value The country to set.
+ * @return This builder for chaining.
*/
public Builder setCountry(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
country_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
- * required string Country = 1;
- *
* * страна (код) *+ * + *
required string Country = 1;
+ * @return This builder for chaining.
*/
public Builder clearCountry() {
- bitField0_ = (bitField0_ & ~0x00000001);
country_ = getDefaultInstance().getCountry();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
- * required string Country = 1;
- *
* * страна (код) *+ * + *
required string Country = 1;
+ * @param value The bytes for country to set.
+ * @return This builder for chaining.
*/
public Builder setCountryBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
country_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object address_ = "";
/**
- * required string Address = 2;
- *
* * текст адреса *+ * + *
required string Address = 2;
+ * @return Whether the address field is set.
*/
public boolean hasAddress() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
- * required string Address = 2;
- *
* * текст адреса *+ * + *
required string Address = 2;
+ * @return The address.
*/
public java.lang.String getAddress() {
java.lang.Object ref = address_;
@@ -3930,11 +4325,12 @@ public java.lang.String getAddress() {
}
}
/**
- * required string Address = 2;
- *
* * текст адреса *+ * + *
required string Address = 2;
+ * @return The bytes for address.
*/
public com.google.protobuf.ByteString
getAddressBytes() {
@@ -3950,49 +4346,50 @@ public java.lang.String getAddress() {
}
}
/**
- * required string Address = 2;
- *
* * текст адреса *+ * + *
required string Address = 2;
+ * @param value The address to set.
+ * @return This builder for chaining.
*/
public Builder setAddress(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
+ if (value == null) { throw new NullPointerException(); }
address_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
- * required string Address = 2;
- *
* * текст адреса *+ * + *
required string Address = 2;
+ * @return This builder for chaining.
*/
public Builder clearAddress() {
- bitField0_ = (bitField0_ & ~0x00000002);
address_ = getDefaultInstance().getAddress();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
- * required string Address = 2;
- *
* * текст адреса *+ * + *
required string Address = 2;
+ * @param value The bytes for address to set.
+ * @return This builder for chaining.
*/
public Builder setAddressBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
+ if (value == null) { throw new NullPointerException(); }
address_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -4000,27 +4397,67 @@ public Builder setAddressBytes(
// @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.ForeignAddress)
}
+ // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.ForeignAddress)
+ private static final Diadoc.Api.Proto.AddressProtos.ForeignAddress DEFAULT_INSTANCE;
static {
- defaultInstance = new ForeignAddress(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new Diadoc.Api.Proto.AddressProtos.ForeignAddress();
+ }
+
+ public static Diadoc.Api.Proto.AddressProtos.ForeignAddress getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parseroptional string TaskId = 1;
+ * @return Whether the taskId field is set.
*/
boolean hasTaskId();
/**
* optional string TaskId = 1;
+ * @return The taskId.
*/
java.lang.String getTaskId();
/**
* optional string TaskId = 1;
+ * @return The bytes for taskId.
*/
com.google.protobuf.ByteString
getTaskIdBytes();
@@ -33,74 +53,30 @@ public static final class AsyncMethodResult extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.AsyncMethodResult)
AsyncMethodResultOrBuilder {
+ 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= */ "",
+ AsyncMethodResult.class.getName());
+ }
// Use AsyncMethodResult.newBuilder() to construct.
private AsyncMethodResult(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private AsyncMethodResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final AsyncMethodResult defaultInstance;
- public static AsyncMethodResult getDefaultInstance() {
- return defaultInstance;
- }
-
- public AsyncMethodResult getDefaultInstanceForType() {
- return defaultInstance;
+ private AsyncMethodResult() {
+ taskId_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private AsyncMethodResult(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000001;
- taskId_ = bs;
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Diadoc.Api.Proto.AsyncMethodResultProtos.internal_static_Diadoc_Api_Proto_AsyncMethodResult_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.AsyncMethodResultProtos.internal_static_Diadoc_Api_Proto_AsyncMethodResult_fieldAccessorTable
@@ -108,33 +84,23 @@ private AsyncMethodResult(
Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult.class, Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult.Builder.class);
}
- public static com.google.protobuf.Parseroptional string TaskId = 1;
+ * @return Whether the taskId field is set.
*/
+ @java.lang.Override
public boolean hasTaskId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string TaskId = 1;
+ * @return The taskId.
*/
+ @java.lang.Override
public java.lang.String getTaskId() {
java.lang.Object ref = taskId_;
if (ref instanceof java.lang.String) {
@@ -151,7 +117,9 @@ public java.lang.String getTaskId() {
}
/**
* optional string TaskId = 1;
+ * @return The bytes for taskId.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getTaskIdBytes() {
java.lang.Object ref = taskId_;
@@ -166,10 +134,8 @@ public java.lang.String getTaskId() {
}
}
- private void initFields() {
- taskId_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -179,37 +145,75 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getTaskIdBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, taskId_);
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getTaskIdBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, taskId_);
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult other = (Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult) obj;
+
+ if (hasTaskId() != other.hasTaskId()) return false;
+ if (hasTaskId()) {
+ if (!getTaskId()
+ .equals(other.getTaskId())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasTaskId()) {
+ hash = (37 * hash) + TASKID_FIELD_NUMBER;
+ hash = (53 * hash) + getTaskId().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
+ public static Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult 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.AsyncMethodResultProtos.AsyncMethodResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -233,42 +237,57 @@ public static Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult parseFr
}
public static Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -288,6 +307,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.AsyncMethodResultProtos.internal_static_Diadoc_Api_Proto_AsyncMethodResult_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.AsyncMethodResultProtos.internal_static_Diadoc_Api_Proto_AsyncMethodResult_fieldAccessorTable
@@ -297,42 +317,34 @@ public static final class Builder extends
// Construct using Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult.newBuilder()
private Builder() {
- maybeForceBuilderInitialization();
+
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- private static Builder create() {
- return new Builder();
- }
+ }
+ @java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
taskId_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.AsyncMethodResultProtos.internal_static_Diadoc_Api_Proto_AsyncMethodResult_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult getDefaultInstanceForType() {
return Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult build() {
Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult result = buildPartial();
if (!result.isInitialized()) {
@@ -341,19 +353,25 @@ public Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult build() {
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult buildPartial() {
Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult result = new Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.taskId_ = taskId_;
to_bitField0_ |= 0x00000001;
}
- result.taskId_ = taskId_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
+ result.bitField0_ |= to_bitField0_;
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult) {
return mergeFrom((Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult)other);
@@ -366,33 +384,54 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult other) {
if (other == Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult.getDefaultInstance()) return this;
if (other.hasTaskId()) {
- bitField0_ |= 0x00000001;
taskId_ = other.taskId_;
+ bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ taskId_ = 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) {
- parsedMessage = (Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
@@ -400,12 +439,14 @@ public Builder mergeFrom(
private java.lang.Object taskId_ = "";
/**
* optional string TaskId = 1;
+ * @return Whether the taskId field is set.
*/
public boolean hasTaskId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string TaskId = 1;
+ * @return The taskId.
*/
public java.lang.String getTaskId() {
java.lang.Object ref = taskId_;
@@ -423,6 +464,7 @@ public java.lang.String getTaskId() {
}
/**
* optional string TaskId = 1;
+ * @return The bytes for taskId.
*/
public com.google.protobuf.ByteString
getTaskIdBytes() {
@@ -439,36 +481,37 @@ public java.lang.String getTaskId() {
}
/**
* optional string TaskId = 1;
+ * @param value The taskId to set.
+ * @return This builder for chaining.
*/
public Builder setTaskId(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
taskId_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional string TaskId = 1;
+ * @return This builder for chaining.
*/
public Builder clearTaskId() {
- bitField0_ = (bitField0_ & ~0x00000001);
taskId_ = getDefaultInstance().getTaskId();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* optional string TaskId = 1;
+ * @param value The bytes for taskId to set.
+ * @return This builder for chaining.
*/
public Builder setTaskIdBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
taskId_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -476,17 +519,57 @@ public Builder setTaskIdBytes(
// @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.AsyncMethodResult)
}
+ // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.AsyncMethodResult)
+ private static final Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult DEFAULT_INSTANCE;
static {
- defaultInstance = new AsyncMethodResult(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult();
+ }
+
+ public static Diadoc.Api.Proto.AsyncMethodResultProtos.AsyncMethodResult getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parseroptional string Thumbprint = 1;
+ * @return Whether the thumbprint field is set.
*/
boolean hasThumbprint();
/**
* optional string Thumbprint = 1;
+ * @return The thumbprint.
*/
java.lang.String getThumbprint();
/**
* optional string Thumbprint = 1;
+ * @return The bytes for thumbprint.
*/
com.google.protobuf.ByteString
getThumbprintBytes();
/**
* optional sfixed64 ValidFrom = 2;
+ * @return Whether the validFrom field is set.
*/
boolean hasValidFrom();
/**
* optional sfixed64 ValidFrom = 2;
+ * @return The validFrom.
*/
long getValidFrom();
/**
* optional sfixed64 ValidTo = 3;
+ * @return Whether the validTo field is set.
*/
boolean hasValidTo();
/**
* optional sfixed64 ValidTo = 3;
+ * @return The validTo.
*/
long getValidTo();
/**
* optional string OrganizationName = 4;
+ * @return Whether the organizationName field is set.
*/
boolean hasOrganizationName();
/**
* optional string OrganizationName = 4;
+ * @return The organizationName.
*/
java.lang.String getOrganizationName();
/**
* optional string OrganizationName = 4;
+ * @return The bytes for organizationName.
*/
com.google.protobuf.ByteString
getOrganizationNameBytes();
/**
* optional string Inn = 5;
+ * @return Whether the inn field is set.
*/
boolean hasInn();
/**
* optional string Inn = 5;
+ * @return The inn.
*/
java.lang.String getInn();
/**
* optional string Inn = 5;
+ * @return The bytes for inn.
*/
com.google.protobuf.ByteString
getInnBytes();
@@ -79,96 +109,32 @@ public static final class CertificateInfo extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CertificateInfo)
CertificateInfoOrBuilder {
+ 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= */ "",
+ CertificateInfo.class.getName());
+ }
// Use CertificateInfo.newBuilder() to construct.
private CertificateInfo(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private CertificateInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final CertificateInfo defaultInstance;
- public static CertificateInfo getDefaultInstance() {
- return defaultInstance;
}
-
- public CertificateInfo getDefaultInstanceForType() {
- return defaultInstance;
+ private CertificateInfo() {
+ thumbprint_ = "";
+ organizationName_ = "";
+ inn_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private CertificateInfo(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000001;
- thumbprint_ = bs;
- break;
- }
- case 17: {
- bitField0_ |= 0x00000002;
- validFrom_ = input.readSFixed64();
- break;
- }
- case 25: {
- bitField0_ |= 0x00000004;
- validTo_ = input.readSFixed64();
- break;
- }
- case 34: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000008;
- organizationName_ = bs;
- break;
- }
- case 42: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000010;
- inn_ = bs;
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Diadoc.Api.Proto.CertificateInfoProtos.internal_static_Diadoc_Api_Proto_CertificateInfo_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.CertificateInfoProtos.internal_static_Diadoc_Api_Proto_CertificateInfo_fieldAccessorTable
@@ -176,33 +142,23 @@ private CertificateInfo(
Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo.class, Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo.Builder.class);
}
- public static com.google.protobuf.Parseroptional string Thumbprint = 1;
+ * @return Whether the thumbprint field is set.
*/
+ @java.lang.Override
public boolean hasThumbprint() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string Thumbprint = 1;
+ * @return The thumbprint.
*/
+ @java.lang.Override
public java.lang.String getThumbprint() {
java.lang.Object ref = thumbprint_;
if (ref instanceof java.lang.String) {
@@ -219,7 +175,9 @@ public java.lang.String getThumbprint() {
}
/**
* optional string Thumbprint = 1;
+ * @return The bytes for thumbprint.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getThumbprintBytes() {
java.lang.Object ref = thumbprint_;
@@ -235,46 +193,59 @@ public java.lang.String getThumbprint() {
}
public static final int VALIDFROM_FIELD_NUMBER = 2;
- private long validFrom_;
+ private long validFrom_ = 0L;
/**
* optional sfixed64 ValidFrom = 2;
+ * @return Whether the validFrom field is set.
*/
+ @java.lang.Override
public boolean hasValidFrom() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional sfixed64 ValidFrom = 2;
+ * @return The validFrom.
*/
+ @java.lang.Override
public long getValidFrom() {
return validFrom_;
}
public static final int VALIDTO_FIELD_NUMBER = 3;
- private long validTo_;
+ private long validTo_ = 0L;
/**
* optional sfixed64 ValidTo = 3;
+ * @return Whether the validTo field is set.
*/
+ @java.lang.Override
public boolean hasValidTo() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional sfixed64 ValidTo = 3;
+ * @return The validTo.
*/
+ @java.lang.Override
public long getValidTo() {
return validTo_;
}
public static final int ORGANIZATIONNAME_FIELD_NUMBER = 4;
- private java.lang.Object organizationName_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object organizationName_ = "";
/**
* optional string OrganizationName = 4;
+ * @return Whether the organizationName field is set.
*/
+ @java.lang.Override
public boolean hasOrganizationName() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string OrganizationName = 4;
+ * @return The organizationName.
*/
+ @java.lang.Override
public java.lang.String getOrganizationName() {
java.lang.Object ref = organizationName_;
if (ref instanceof java.lang.String) {
@@ -291,7 +262,9 @@ public java.lang.String getOrganizationName() {
}
/**
* optional string OrganizationName = 4;
+ * @return The bytes for organizationName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getOrganizationNameBytes() {
java.lang.Object ref = organizationName_;
@@ -307,16 +280,21 @@ public java.lang.String getOrganizationName() {
}
public static final int INN_FIELD_NUMBER = 5;
- private java.lang.Object inn_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object inn_ = "";
/**
* optional string Inn = 5;
+ * @return Whether the inn field is set.
*/
+ @java.lang.Override
public boolean hasInn() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string Inn = 5;
+ * @return The inn.
*/
+ @java.lang.Override
public java.lang.String getInn() {
java.lang.Object ref = inn_;
if (ref instanceof java.lang.String) {
@@ -333,7 +311,9 @@ public java.lang.String getInn() {
}
/**
* optional string Inn = 5;
+ * @return The bytes for inn.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getInnBytes() {
java.lang.Object ref = inn_;
@@ -348,14 +328,8 @@ public java.lang.String getInn() {
}
}
- private void initFields() {
- thumbprint_ = "";
- validFrom_ = 0L;
- validTo_ = 0L;
- organizationName_ = "";
- inn_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -365,65 +339,139 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getThumbprintBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, thumbprint_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
output.writeSFixed64(2, validFrom_);
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
output.writeSFixed64(3, validTo_);
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBytes(4, getOrganizationNameBytes());
+ if (((bitField0_ & 0x00000008) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, organizationName_);
}
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- output.writeBytes(5, getInnBytes());
+ if (((bitField0_ & 0x00000010) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 5, inn_);
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getThumbprintBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, thumbprint_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(2, validFrom_);
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(3, validTo_);
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getOrganizationNameBytes());
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, organizationName_);
}
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(5, getInnBytes());
+ if (((bitField0_ & 0x00000010) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(5, inn_);
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo other = (Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo) obj;
+
+ if (hasThumbprint() != other.hasThumbprint()) return false;
+ if (hasThumbprint()) {
+ if (!getThumbprint()
+ .equals(other.getThumbprint())) return false;
+ }
+ if (hasValidFrom() != other.hasValidFrom()) return false;
+ if (hasValidFrom()) {
+ if (getValidFrom()
+ != other.getValidFrom()) return false;
+ }
+ if (hasValidTo() != other.hasValidTo()) return false;
+ if (hasValidTo()) {
+ if (getValidTo()
+ != other.getValidTo()) return false;
+ }
+ if (hasOrganizationName() != other.hasOrganizationName()) return false;
+ if (hasOrganizationName()) {
+ if (!getOrganizationName()
+ .equals(other.getOrganizationName())) return false;
+ }
+ if (hasInn() != other.hasInn()) return false;
+ if (hasInn()) {
+ if (!getInn()
+ .equals(other.getInn())) 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 (hasThumbprint()) {
+ hash = (37 * hash) + THUMBPRINT_FIELD_NUMBER;
+ hash = (53 * hash) + getThumbprint().hashCode();
+ }
+ if (hasValidFrom()) {
+ hash = (37 * hash) + VALIDFROM_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getValidFrom());
+ }
+ if (hasValidTo()) {
+ hash = (37 * hash) + VALIDTO_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getValidTo());
+ }
+ if (hasOrganizationName()) {
+ hash = (37 * hash) + ORGANIZATIONNAME_FIELD_NUMBER;
+ hash = (53 * hash) + getOrganizationName().hashCode();
+ }
+ if (hasInn()) {
+ hash = (37 * hash) + INN_FIELD_NUMBER;
+ hash = (53 * hash) + getInn().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
+ public static Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo 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.CertificateInfoProtos.CertificateInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -447,42 +495,57 @@ public static Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo parseFrom(
}
public static Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -502,6 +565,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.CertificateInfoProtos.internal_static_Diadoc_Api_Proto_CertificateInfo_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.CertificateInfoProtos.internal_static_Diadoc_Api_Proto_CertificateInfo_fieldAccessorTable
@@ -511,50 +575,38 @@ public static final class Builder extends
// Construct using Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo.newBuilder()
private Builder() {
- maybeForceBuilderInitialization();
+
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- private static Builder create() {
- return new Builder();
- }
+ }
+ @java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
thumbprint_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
validFrom_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000002);
validTo_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000004);
organizationName_ = "";
- bitField0_ = (bitField0_ & ~0x00000008);
inn_ = "";
- bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.CertificateInfoProtos.internal_static_Diadoc_Api_Proto_CertificateInfo_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo getDefaultInstanceForType() {
return Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo build() {
Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo result = buildPartial();
if (!result.isInitialized()) {
@@ -563,35 +615,41 @@ public Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo build() {
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo buildPartial() {
Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo result = new Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.thumbprint_ = thumbprint_;
to_bitField0_ |= 0x00000001;
}
- result.thumbprint_ = thumbprint_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.validFrom_ = validFrom_;
to_bitField0_ |= 0x00000002;
}
- result.validFrom_ = validFrom_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.validTo_ = validTo_;
to_bitField0_ |= 0x00000004;
}
- result.validTo_ = validTo_;
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.organizationName_ = organizationName_;
to_bitField0_ |= 0x00000008;
}
- result.organizationName_ = organizationName_;
- if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.inn_ = inn_;
to_bitField0_ |= 0x00000010;
}
- result.inn_ = inn_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
+ result.bitField0_ |= to_bitField0_;
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo) {
return mergeFrom((Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo)other);
@@ -604,8 +662,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo other) {
if (other == Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo.getDefaultInstance()) return this;
if (other.hasThumbprint()) {
- bitField0_ |= 0x00000001;
thumbprint_ = other.thumbprint_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasValidFrom()) {
@@ -615,38 +673,79 @@ public Builder mergeFrom(Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo
setValidTo(other.getValidTo());
}
if (other.hasOrganizationName()) {
- bitField0_ |= 0x00000008;
organizationName_ = other.organizationName_;
+ bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasInn()) {
- bitField0_ |= 0x00000010;
inn_ = other.inn_;
+ bitField0_ |= 0x00000010;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ thumbprint_ = input.readBytes();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 17: {
+ validFrom_ = input.readSFixed64();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 17
+ case 25: {
+ validTo_ = input.readSFixed64();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 25
+ case 34: {
+ organizationName_ = input.readBytes();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ case 42: {
+ inn_ = input.readBytes();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 42
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
@@ -654,12 +753,14 @@ public Builder mergeFrom(
private java.lang.Object thumbprint_ = "";
/**
* optional string Thumbprint = 1;
+ * @return Whether the thumbprint field is set.
*/
public boolean hasThumbprint() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string Thumbprint = 1;
+ * @return The thumbprint.
*/
public java.lang.String getThumbprint() {
java.lang.Object ref = thumbprint_;
@@ -677,6 +778,7 @@ public java.lang.String getThumbprint() {
}
/**
* optional string Thumbprint = 1;
+ * @return The bytes for thumbprint.
*/
public com.google.protobuf.ByteString
getThumbprintBytes() {
@@ -693,36 +795,37 @@ public java.lang.String getThumbprint() {
}
/**
* optional string Thumbprint = 1;
+ * @param value The thumbprint to set.
+ * @return This builder for chaining.
*/
public Builder setThumbprint(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
thumbprint_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional string Thumbprint = 1;
+ * @return This builder for chaining.
*/
public Builder clearThumbprint() {
- bitField0_ = (bitField0_ & ~0x00000001);
thumbprint_ = getDefaultInstance().getThumbprint();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* optional string Thumbprint = 1;
+ * @param value The bytes for thumbprint to set.
+ * @return This builder for chaining.
*/
public Builder setThumbprintBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
thumbprint_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -730,27 +833,35 @@ public Builder setThumbprintBytes(
private long validFrom_ ;
/**
* optional sfixed64 ValidFrom = 2;
+ * @return Whether the validFrom field is set.
*/
+ @java.lang.Override
public boolean hasValidFrom() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional sfixed64 ValidFrom = 2;
+ * @return The validFrom.
*/
+ @java.lang.Override
public long getValidFrom() {
return validFrom_;
}
/**
* optional sfixed64 ValidFrom = 2;
+ * @param value The validFrom to set.
+ * @return This builder for chaining.
*/
public Builder setValidFrom(long value) {
- bitField0_ |= 0x00000002;
+
validFrom_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional sfixed64 ValidFrom = 2;
+ * @return This builder for chaining.
*/
public Builder clearValidFrom() {
bitField0_ = (bitField0_ & ~0x00000002);
@@ -762,27 +873,35 @@ public Builder clearValidFrom() {
private long validTo_ ;
/**
* optional sfixed64 ValidTo = 3;
+ * @return Whether the validTo field is set.
*/
+ @java.lang.Override
public boolean hasValidTo() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional sfixed64 ValidTo = 3;
+ * @return The validTo.
*/
+ @java.lang.Override
public long getValidTo() {
return validTo_;
}
/**
* optional sfixed64 ValidTo = 3;
+ * @param value The validTo to set.
+ * @return This builder for chaining.
*/
public Builder setValidTo(long value) {
- bitField0_ |= 0x00000004;
+
validTo_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional sfixed64 ValidTo = 3;
+ * @return This builder for chaining.
*/
public Builder clearValidTo() {
bitField0_ = (bitField0_ & ~0x00000004);
@@ -794,12 +913,14 @@ public Builder clearValidTo() {
private java.lang.Object organizationName_ = "";
/**
* optional string OrganizationName = 4;
+ * @return Whether the organizationName field is set.
*/
public boolean hasOrganizationName() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string OrganizationName = 4;
+ * @return The organizationName.
*/
public java.lang.String getOrganizationName() {
java.lang.Object ref = organizationName_;
@@ -817,6 +938,7 @@ public java.lang.String getOrganizationName() {
}
/**
* optional string OrganizationName = 4;
+ * @return The bytes for organizationName.
*/
public com.google.protobuf.ByteString
getOrganizationNameBytes() {
@@ -833,36 +955,37 @@ public java.lang.String getOrganizationName() {
}
/**
* optional string OrganizationName = 4;
+ * @param value The organizationName to set.
+ * @return This builder for chaining.
*/
public Builder setOrganizationName(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
+ if (value == null) { throw new NullPointerException(); }
organizationName_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional string OrganizationName = 4;
+ * @return This builder for chaining.
*/
public Builder clearOrganizationName() {
- bitField0_ = (bitField0_ & ~0x00000008);
organizationName_ = getDefaultInstance().getOrganizationName();
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* optional string OrganizationName = 4;
+ * @param value The bytes for organizationName to set.
+ * @return This builder for chaining.
*/
public Builder setOrganizationNameBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
+ if (value == null) { throw new NullPointerException(); }
organizationName_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -870,12 +993,14 @@ public Builder setOrganizationNameBytes(
private java.lang.Object inn_ = "";
/**
* optional string Inn = 5;
+ * @return Whether the inn field is set.
*/
public boolean hasInn() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string Inn = 5;
+ * @return The inn.
*/
public java.lang.String getInn() {
java.lang.Object ref = inn_;
@@ -893,6 +1018,7 @@ public java.lang.String getInn() {
}
/**
* optional string Inn = 5;
+ * @return The bytes for inn.
*/
public com.google.protobuf.ByteString
getInnBytes() {
@@ -909,36 +1035,37 @@ public java.lang.String getInn() {
}
/**
* optional string Inn = 5;
+ * @param value The inn to set.
+ * @return This builder for chaining.
*/
public Builder setInn(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000010;
+ if (value == null) { throw new NullPointerException(); }
inn_ = value;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* optional string Inn = 5;
+ * @return This builder for chaining.
*/
public Builder clearInn() {
- bitField0_ = (bitField0_ & ~0x00000010);
inn_ = getDefaultInstance().getInn();
+ bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
* optional string Inn = 5;
+ * @param value The bytes for inn to set.
+ * @return This builder for chaining.
*/
public Builder setInnBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000010;
+ if (value == null) { throw new NullPointerException(); }
inn_ = value;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -946,17 +1073,57 @@ public Builder setInnBytes(
// @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CertificateInfo)
}
+ // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CertificateInfo)
+ private static final Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo DEFAULT_INSTANCE;
static {
- defaultInstance = new CertificateInfo(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo();
+ }
+
+ public static Diadoc.Api.Proto.CertificateInfoProtos.CertificateInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.ParserUnknownCertificateType = 0;
*/
- UnknownCertificateType(0, 0),
+ UnknownCertificateType(0),
/**
* TokenCertificateType = 1;
*/
- TokenCertificateType(1, 1),
+ TokenCertificateType(1),
/**
* DssCertificateType = 2;
*/
- DssCertificateType(2, 2),
+ DssCertificateType(2),
/**
* KonturCertificateType = 3;
*/
- KonturCertificateType(3, 3),
+ KonturCertificateType(3),
;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ CertificateType.class.getName());
+ }
/**
* UnknownCertificateType = 0;
*/
@@ -49,9 +75,25 @@ public enum CertificateType
public static final int KonturCertificateType_VALUE = 3;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static CertificateType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static CertificateType forNumber(int value) {
switch (value) {
case 0: return UnknownCertificateType;
case 1: return TokenCertificateType;
@@ -65,17 +107,17 @@ public static CertificateType valueOf(int value) {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMapUnknownCertificateSubjectType = 0;
*/
- UnknownCertificateSubjectType(0, 0),
+ UnknownCertificateSubjectType(0),
/**
* LegalEntity = 1;
*/
- LegalEntity(1, 1),
+ LegalEntity(1),
/**
* IndividualEntity = 2;
*/
- IndividualEntity(2, 2),
+ IndividualEntity(2),
/**
* PhysicalPerson = 3;
*/
- PhysicalPerson(3, 3),
+ PhysicalPerson(3),
;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ CertificateSubjectType.class.getName());
+ }
/**
* UnknownCertificateSubjectType = 0;
*/
@@ -149,9 +198,25 @@ public enum CertificateSubjectType
public static final int PhysicalPerson_VALUE = 3;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static CertificateSubjectType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static CertificateSubjectType forNumber(int value) {
switch (value) {
case 0: return UnknownCertificateSubjectType;
case 1: return LegalEntity;
@@ -165,17 +230,17 @@ public static CertificateSubjectType valueOf(int value) {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMapUnknownDssType = 0;
*/
- UnknownDssType(0, 0),
+ UnknownDssType(0),
/**
* MyDss = 1;
*/
- MyDss(1, 1),
+ MyDss(1),
/**
* KSignServer = 2;
*/
- KSignServer(2, 2),
+ KSignServer(2),
/**
* KSignRutoken = 3;
*/
- KSignRutoken(3, 3),
+ KSignRutoken(3),
/**
* KSignMobile = 4;
*/
- KSignMobile(4, 4),
+ KSignMobile(4),
;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ DssType.class.getName());
+ }
/**
* UnknownDssType = 0;
*/
@@ -257,9 +329,25 @@ public enum DssType
public static final int KSignMobile_VALUE = 4;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static DssType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static DssType forNumber(int value) {
switch (value) {
case 0: return UnknownDssType;
case 1: return MyDss;
@@ -274,17 +362,17 @@ public static DssType valueOf(int value) {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMapUnknownUsage = 0;
*/
- UnknownUsage(0, 0),
+ UnknownUsage(0),
/**
* KonturCertificateUsage = 1;
*/
- KonturCertificateUsage(1, 1),
+ KonturCertificateUsage(1),
/**
* TokenUsage = 2;
*/
- TokenUsage(2, 2),
+ TokenUsage(2),
/**
* DssUsage = 3;
*/
- DssUsage(3, 3),
+ DssUsage(3),
;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ CertificateUsage.class.getName());
+ }
/**
* UnknownUsage = 0;
*/
@@ -358,9 +453,25 @@ public enum CertificateUsage
public static final int DssUsage_VALUE = 3;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static CertificateUsage valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static CertificateUsage forNumber(int value) {
switch (value) {
case 0: return UnknownUsage;
case 1: return KonturCertificateUsage;
@@ -374,17 +485,17 @@ public static CertificateUsage valueOf(int value) {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMaprequired string Thumbprint = 1;
+ * @return Whether the thumbprint field is set.
*/
boolean hasThumbprint();
/**
* required string Thumbprint = 1;
+ * @return The thumbprint.
*/
java.lang.String getThumbprint();
/**
* required string Thumbprint = 1;
+ * @return The bytes for thumbprint.
*/
com.google.protobuf.ByteString
getThumbprintBytes();
/**
* required .Diadoc.Api.Proto.CertificateType Type = 2;
+ * @return Whether the type field is set.
*/
boolean hasType();
/**
* required .Diadoc.Api.Proto.CertificateType Type = 2;
+ * @return The type.
*/
Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType getType();
/**
* optional sfixed64 ValidFrom = 3;
+ * @return Whether the validFrom field is set.
*/
boolean hasValidFrom();
/**
* optional sfixed64 ValidFrom = 3;
+ * @return The validFrom.
*/
long getValidFrom();
/**
* optional sfixed64 ValidTo = 4;
+ * @return Whether the validTo field is set.
*/
boolean hasValidTo();
/**
* optional sfixed64 ValidTo = 4;
+ * @return The validTo.
*/
long getValidTo();
/**
* optional sfixed64 PrivateKeyValidFrom = 5;
+ * @return Whether the privateKeyValidFrom field is set.
*/
boolean hasPrivateKeyValidFrom();
/**
* optional sfixed64 PrivateKeyValidFrom = 5;
+ * @return The privateKeyValidFrom.
*/
long getPrivateKeyValidFrom();
/**
* optional sfixed64 PrivateKeyValidTo = 6;
+ * @return Whether the privateKeyValidTo field is set.
*/
boolean hasPrivateKeyValidTo();
/**
* optional sfixed64 PrivateKeyValidTo = 6;
+ * @return The privateKeyValidTo.
*/
long getPrivateKeyValidTo();
/**
* optional string OrganizationName = 7;
+ * @return Whether the organizationName field is set.
*/
boolean hasOrganizationName();
/**
* optional string OrganizationName = 7;
+ * @return The organizationName.
*/
java.lang.String getOrganizationName();
/**
* optional string OrganizationName = 7;
+ * @return The bytes for organizationName.
*/
com.google.protobuf.ByteString
getOrganizationNameBytes();
/**
* optional string Inn = 8;
+ * @return Whether the inn field is set.
*/
boolean hasInn();
/**
* optional string Inn = 8;
+ * @return The inn.
*/
java.lang.String getInn();
/**
* optional string Inn = 8;
+ * @return The bytes for inn.
*/
com.google.protobuf.ByteString
getInnBytes();
/**
* optional string UserFirstName = 9;
+ * @return Whether the userFirstName field is set.
*/
boolean hasUserFirstName();
/**
* optional string UserFirstName = 9;
+ * @return The userFirstName.
*/
java.lang.String getUserFirstName();
/**
* optional string UserFirstName = 9;
+ * @return The bytes for userFirstName.
*/
com.google.protobuf.ByteString
getUserFirstNameBytes();
/**
* optional string UserMiddleName = 10;
+ * @return Whether the userMiddleName field is set.
*/
boolean hasUserMiddleName();
/**
* optional string UserMiddleName = 10;
+ * @return The userMiddleName.
*/
java.lang.String getUserMiddleName();
/**
* optional string UserMiddleName = 10;
+ * @return The bytes for userMiddleName.
*/
com.google.protobuf.ByteString
getUserMiddleNameBytes();
/**
* optional string UserLastName = 11;
+ * @return Whether the userLastName field is set.
*/
boolean hasUserLastName();
/**
* optional string UserLastName = 11;
+ * @return The userLastName.
*/
java.lang.String getUserLastName();
/**
* optional string UserLastName = 11;
+ * @return The bytes for userLastName.
*/
com.google.protobuf.ByteString
getUserLastNameBytes();
/**
* optional string UserShortName = 12;
+ * @return Whether the userShortName field is set.
*/
boolean hasUserShortName();
/**
* optional string UserShortName = 12;
+ * @return The userShortName.
*/
java.lang.String getUserShortName();
/**
* optional string UserShortName = 12;
+ * @return The bytes for userShortName.
*/
com.google.protobuf.ByteString
getUserShortNameBytes();
/**
* optional bool IsDefault = 13;
+ * @return Whether the isDefault field is set.
*/
boolean hasIsDefault();
/**
* optional bool IsDefault = 13;
+ * @return The isDefault.
*/
boolean getIsDefault();
/**
* optional .Diadoc.Api.Proto.CertificateSubjectType SubjectType = 14;
+ * @return Whether the subjectType field is set.
*/
boolean hasSubjectType();
/**
* optional .Diadoc.Api.Proto.CertificateSubjectType SubjectType = 14;
+ * @return The subjectType.
*/
Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType getSubjectType();
/**
* repeated .Diadoc.Api.Proto.CertificateUsage Usages = 15;
+ * @return A list containing the usages.
*/
java.util.Listrepeated .Diadoc.Api.Proto.CertificateUsage Usages = 15;
+ * @return The count of usages.
*/
int getUsagesCount();
/**
* repeated .Diadoc.Api.Proto.CertificateUsage Usages = 15;
+ * @param index The index of the element to return.
+ * @return The usages at the given index.
*/
Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage getUsages(int index);
/**
* optional .Diadoc.Api.Proto.DssType DssType = 16;
+ * @return Whether the dssType field is set.
*/
boolean hasDssType();
/**
* optional .Diadoc.Api.Proto.DssType DssType = 16;
+ * @return The dssType.
*/
Diadoc.Api.Proto.CertificateInfoV2Protos.DssType getDssType();
}
@@ -611,204 +761,40 @@ public static final class CertificateInfoV2 extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CertificateInfoV2)
CertificateInfoV2OrBuilder {
+ 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= */ "",
+ CertificateInfoV2.class.getName());
+ }
// Use CertificateInfoV2.newBuilder() to construct.
private CertificateInfoV2(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private CertificateInfoV2(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final CertificateInfoV2 defaultInstance;
- public static CertificateInfoV2 getDefaultInstance() {
- return defaultInstance;
}
-
- public CertificateInfoV2 getDefaultInstanceForType() {
- return defaultInstance;
+ private CertificateInfoV2() {
+ thumbprint_ = "";
+ type_ = 0;
+ organizationName_ = "";
+ inn_ = "";
+ userFirstName_ = "";
+ userMiddleName_ = "";
+ userLastName_ = "";
+ userShortName_ = "";
+ subjectType_ = 0;
+ usages_ = emptyIntList();
+ dssType_ = 0;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private CertificateInfoV2(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000001;
- thumbprint_ = bs;
- break;
- }
- case 16: {
- int rawValue = input.readEnum();
- Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType value = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(2, rawValue);
- } else {
- bitField0_ |= 0x00000002;
- type_ = value;
- }
- break;
- }
- case 25: {
- bitField0_ |= 0x00000004;
- validFrom_ = input.readSFixed64();
- break;
- }
- case 33: {
- bitField0_ |= 0x00000008;
- validTo_ = input.readSFixed64();
- break;
- }
- case 41: {
- bitField0_ |= 0x00000010;
- privateKeyValidFrom_ = input.readSFixed64();
- break;
- }
- case 49: {
- bitField0_ |= 0x00000020;
- privateKeyValidTo_ = input.readSFixed64();
- break;
- }
- case 58: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000040;
- organizationName_ = bs;
- break;
- }
- case 66: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000080;
- inn_ = bs;
- break;
- }
- case 74: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000100;
- userFirstName_ = bs;
- break;
- }
- case 82: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000200;
- userMiddleName_ = bs;
- break;
- }
- case 90: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000400;
- userLastName_ = bs;
- break;
- }
- case 98: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000800;
- userShortName_ = bs;
- break;
- }
- case 104: {
- bitField0_ |= 0x00001000;
- isDefault_ = input.readBool();
- break;
- }
- case 112: {
- int rawValue = input.readEnum();
- Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType value = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(14, rawValue);
- } else {
- bitField0_ |= 0x00002000;
- subjectType_ = value;
- }
- break;
- }
- case 120: {
- int rawValue = input.readEnum();
- Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage value = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(15, rawValue);
- } else {
- if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) {
- usages_ = new java.util.ArrayListrequired string Thumbprint = 1;
+ * @return Whether the thumbprint field is set.
*/
+ @java.lang.Override
public boolean hasThumbprint() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string Thumbprint = 1;
+ * @return The thumbprint.
*/
+ @java.lang.Override
public java.lang.String getThumbprint() {
java.lang.Object ref = thumbprint_;
if (ref instanceof java.lang.String) {
@@ -859,7 +835,9 @@ public java.lang.String getThumbprint() {
}
/**
* required string Thumbprint = 1;
+ * @return The bytes for thumbprint.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getThumbprintBytes() {
java.lang.Object ref = thumbprint_;
@@ -875,91 +853,115 @@ public java.lang.String getThumbprint() {
}
public static final int TYPE_FIELD_NUMBER = 2;
- private Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType type_;
+ private int type_ = 0;
/**
* required .Diadoc.Api.Proto.CertificateType Type = 2;
+ * @return Whether the type field is set.
*/
- public boolean hasType() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ @java.lang.Override public boolean hasType() {
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required .Diadoc.Api.Proto.CertificateType Type = 2;
+ * @return The type.
*/
- public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType getType() {
- return type_;
+ @java.lang.Override public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType getType() {
+ Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType result = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType.forNumber(type_);
+ return result == null ? Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType.UnknownCertificateType : result;
}
public static final int VALIDFROM_FIELD_NUMBER = 3;
- private long validFrom_;
+ private long validFrom_ = 0L;
/**
* optional sfixed64 ValidFrom = 3;
+ * @return Whether the validFrom field is set.
*/
+ @java.lang.Override
public boolean hasValidFrom() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional sfixed64 ValidFrom = 3;
+ * @return The validFrom.
*/
+ @java.lang.Override
public long getValidFrom() {
return validFrom_;
}
public static final int VALIDTO_FIELD_NUMBER = 4;
- private long validTo_;
+ private long validTo_ = 0L;
/**
* optional sfixed64 ValidTo = 4;
+ * @return Whether the validTo field is set.
*/
+ @java.lang.Override
public boolean hasValidTo() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional sfixed64 ValidTo = 4;
+ * @return The validTo.
*/
+ @java.lang.Override
public long getValidTo() {
return validTo_;
}
public static final int PRIVATEKEYVALIDFROM_FIELD_NUMBER = 5;
- private long privateKeyValidFrom_;
+ private long privateKeyValidFrom_ = 0L;
/**
* optional sfixed64 PrivateKeyValidFrom = 5;
+ * @return Whether the privateKeyValidFrom field is set.
*/
+ @java.lang.Override
public boolean hasPrivateKeyValidFrom() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional sfixed64 PrivateKeyValidFrom = 5;
+ * @return The privateKeyValidFrom.
*/
+ @java.lang.Override
public long getPrivateKeyValidFrom() {
return privateKeyValidFrom_;
}
public static final int PRIVATEKEYVALIDTO_FIELD_NUMBER = 6;
- private long privateKeyValidTo_;
+ private long privateKeyValidTo_ = 0L;
/**
* optional sfixed64 PrivateKeyValidTo = 6;
+ * @return Whether the privateKeyValidTo field is set.
*/
+ @java.lang.Override
public boolean hasPrivateKeyValidTo() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
+ return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional sfixed64 PrivateKeyValidTo = 6;
+ * @return The privateKeyValidTo.
*/
+ @java.lang.Override
public long getPrivateKeyValidTo() {
return privateKeyValidTo_;
}
public static final int ORGANIZATIONNAME_FIELD_NUMBER = 7;
- private java.lang.Object organizationName_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object organizationName_ = "";
/**
* optional string OrganizationName = 7;
+ * @return Whether the organizationName field is set.
*/
+ @java.lang.Override
public boolean hasOrganizationName() {
- return ((bitField0_ & 0x00000040) == 0x00000040);
+ return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string OrganizationName = 7;
+ * @return The organizationName.
*/
+ @java.lang.Override
public java.lang.String getOrganizationName() {
java.lang.Object ref = organizationName_;
if (ref instanceof java.lang.String) {
@@ -976,7 +978,9 @@ public java.lang.String getOrganizationName() {
}
/**
* optional string OrganizationName = 7;
+ * @return The bytes for organizationName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getOrganizationNameBytes() {
java.lang.Object ref = organizationName_;
@@ -992,16 +996,21 @@ public java.lang.String getOrganizationName() {
}
public static final int INN_FIELD_NUMBER = 8;
- private java.lang.Object inn_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object inn_ = "";
/**
* optional string Inn = 8;
+ * @return Whether the inn field is set.
*/
+ @java.lang.Override
public boolean hasInn() {
- return ((bitField0_ & 0x00000080) == 0x00000080);
+ return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string Inn = 8;
+ * @return The inn.
*/
+ @java.lang.Override
public java.lang.String getInn() {
java.lang.Object ref = inn_;
if (ref instanceof java.lang.String) {
@@ -1018,7 +1027,9 @@ public java.lang.String getInn() {
}
/**
* optional string Inn = 8;
+ * @return The bytes for inn.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getInnBytes() {
java.lang.Object ref = inn_;
@@ -1034,16 +1045,21 @@ public java.lang.String getInn() {
}
public static final int USERFIRSTNAME_FIELD_NUMBER = 9;
- private java.lang.Object userFirstName_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object userFirstName_ = "";
/**
* optional string UserFirstName = 9;
+ * @return Whether the userFirstName field is set.
*/
+ @java.lang.Override
public boolean hasUserFirstName() {
- return ((bitField0_ & 0x00000100) == 0x00000100);
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional string UserFirstName = 9;
+ * @return The userFirstName.
*/
+ @java.lang.Override
public java.lang.String getUserFirstName() {
java.lang.Object ref = userFirstName_;
if (ref instanceof java.lang.String) {
@@ -1060,7 +1076,9 @@ public java.lang.String getUserFirstName() {
}
/**
* optional string UserFirstName = 9;
+ * @return The bytes for userFirstName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getUserFirstNameBytes() {
java.lang.Object ref = userFirstName_;
@@ -1076,16 +1094,21 @@ public java.lang.String getUserFirstName() {
}
public static final int USERMIDDLENAME_FIELD_NUMBER = 10;
- private java.lang.Object userMiddleName_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object userMiddleName_ = "";
/**
* optional string UserMiddleName = 10;
+ * @return Whether the userMiddleName field is set.
*/
+ @java.lang.Override
public boolean hasUserMiddleName() {
- return ((bitField0_ & 0x00000200) == 0x00000200);
+ return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional string UserMiddleName = 10;
+ * @return The userMiddleName.
*/
+ @java.lang.Override
public java.lang.String getUserMiddleName() {
java.lang.Object ref = userMiddleName_;
if (ref instanceof java.lang.String) {
@@ -1102,7 +1125,9 @@ public java.lang.String getUserMiddleName() {
}
/**
* optional string UserMiddleName = 10;
+ * @return The bytes for userMiddleName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getUserMiddleNameBytes() {
java.lang.Object ref = userMiddleName_;
@@ -1118,16 +1143,21 @@ public java.lang.String getUserMiddleName() {
}
public static final int USERLASTNAME_FIELD_NUMBER = 11;
- private java.lang.Object userLastName_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object userLastName_ = "";
/**
* optional string UserLastName = 11;
+ * @return Whether the userLastName field is set.
*/
+ @java.lang.Override
public boolean hasUserLastName() {
- return ((bitField0_ & 0x00000400) == 0x00000400);
+ return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional string UserLastName = 11;
+ * @return The userLastName.
*/
+ @java.lang.Override
public java.lang.String getUserLastName() {
java.lang.Object ref = userLastName_;
if (ref instanceof java.lang.String) {
@@ -1144,7 +1174,9 @@ public java.lang.String getUserLastName() {
}
/**
* optional string UserLastName = 11;
+ * @return The bytes for userLastName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getUserLastNameBytes() {
java.lang.Object ref = userLastName_;
@@ -1160,16 +1192,21 @@ public java.lang.String getUserLastName() {
}
public static final int USERSHORTNAME_FIELD_NUMBER = 12;
- private java.lang.Object userShortName_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object userShortName_ = "";
/**
* optional string UserShortName = 12;
+ * @return Whether the userShortName field is set.
*/
+ @java.lang.Override
public boolean hasUserShortName() {
- return ((bitField0_ & 0x00000800) == 0x00000800);
+ return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional string UserShortName = 12;
+ * @return The userShortName.
*/
+ @java.lang.Override
public java.lang.String getUserShortName() {
java.lang.Object ref = userShortName_;
if (ref instanceof java.lang.String) {
@@ -1186,7 +1223,9 @@ public java.lang.String getUserShortName() {
}
/**
* optional string UserShortName = 12;
+ * @return The bytes for userShortName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getUserShortNameBytes() {
java.lang.Object ref = userShortName_;
@@ -1202,90 +1241,101 @@ public java.lang.String getUserShortName() {
}
public static final int ISDEFAULT_FIELD_NUMBER = 13;
- private boolean isDefault_;
+ private boolean isDefault_ = false;
/**
* optional bool IsDefault = 13;
+ * @return Whether the isDefault field is set.
*/
+ @java.lang.Override
public boolean hasIsDefault() {
- return ((bitField0_ & 0x00001000) == 0x00001000);
+ return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional bool IsDefault = 13;
+ * @return The isDefault.
*/
+ @java.lang.Override
public boolean getIsDefault() {
return isDefault_;
}
public static final int SUBJECTTYPE_FIELD_NUMBER = 14;
- private Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType subjectType_;
+ private int subjectType_ = 0;
/**
* optional .Diadoc.Api.Proto.CertificateSubjectType SubjectType = 14;
+ * @return Whether the subjectType field is set.
*/
- public boolean hasSubjectType() {
- return ((bitField0_ & 0x00002000) == 0x00002000);
+ @java.lang.Override public boolean hasSubjectType() {
+ return ((bitField0_ & 0x00002000) != 0);
}
/**
* optional .Diadoc.Api.Proto.CertificateSubjectType SubjectType = 14;
+ * @return The subjectType.
*/
- public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType getSubjectType() {
- return subjectType_;
+ @java.lang.Override public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType getSubjectType() {
+ Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType result = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType.forNumber(subjectType_);
+ return result == null ? Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType : result;
}
public static final int USAGES_FIELD_NUMBER = 15;
- private java.util.Listrepeated .Diadoc.Api.Proto.CertificateUsage Usages = 15;
+ * @return A list containing the usages.
*/
+ @java.lang.Override
public java.util.Listrepeated .Diadoc.Api.Proto.CertificateUsage Usages = 15;
+ * @return The count of usages.
*/
+ @java.lang.Override
public int getUsagesCount() {
return usages_.size();
}
/**
* repeated .Diadoc.Api.Proto.CertificateUsage Usages = 15;
+ * @param index The index of the element to return.
+ * @return The usages at the given index.
*/
+ @java.lang.Override
public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage getUsages(int index) {
- return usages_.get(index);
+ return usages_converter_.convert(usages_.getInt(index));
}
public static final int DSSTYPE_FIELD_NUMBER = 16;
- private Diadoc.Api.Proto.CertificateInfoV2Protos.DssType dssType_;
+ private int dssType_ = 0;
/**
* optional .Diadoc.Api.Proto.DssType DssType = 16;
+ * @return Whether the dssType field is set.
*/
- public boolean hasDssType() {
- return ((bitField0_ & 0x00004000) == 0x00004000);
+ @java.lang.Override public boolean hasDssType() {
+ return ((bitField0_ & 0x00004000) != 0);
}
/**
* optional .Diadoc.Api.Proto.DssType DssType = 16;
+ * @return The dssType.
*/
- public Diadoc.Api.Proto.CertificateInfoV2Protos.DssType getDssType() {
- return dssType_;
+ @java.lang.Override public Diadoc.Api.Proto.CertificateInfoV2Protos.DssType getDssType() {
+ Diadoc.Api.Proto.CertificateInfoV2Protos.DssType result = Diadoc.Api.Proto.CertificateInfoV2Protos.DssType.forNumber(dssType_);
+ return result == null ? Diadoc.Api.Proto.CertificateInfoV2Protos.DssType.UnknownDssType : result;
}
- private void initFields() {
- thumbprint_ = "";
- type_ = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType.UnknownCertificateType;
- validFrom_ = 0L;
- validTo_ = 0L;
- privateKeyValidFrom_ = 0L;
- privateKeyValidTo_ = 0L;
- organizationName_ = "";
- inn_ = "";
- userFirstName_ = "";
- userMiddleName_ = "";
- userLastName_ = "";
- userShortName_ = "";
- isDefault_ = false;
- subjectType_ = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType;
- usages_ = java.util.Collections.emptyList();
- dssType_ = Diadoc.Api.Proto.CertificateInfoV2Protos.DssType.UnknownDssType;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -1303,147 +1353,312 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getThumbprintBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, thumbprint_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeEnum(2, type_.getNumber());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeEnum(2, type_);
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
output.writeSFixed64(3, validFrom_);
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ if (((bitField0_ & 0x00000008) != 0)) {
output.writeSFixed64(4, validTo_);
}
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ if (((bitField0_ & 0x00000010) != 0)) {
output.writeSFixed64(5, privateKeyValidFrom_);
}
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ if (((bitField0_ & 0x00000020) != 0)) {
output.writeSFixed64(6, privateKeyValidTo_);
}
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
- output.writeBytes(7, getOrganizationNameBytes());
+ if (((bitField0_ & 0x00000040) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 7, organizationName_);
}
- if (((bitField0_ & 0x00000080) == 0x00000080)) {
- output.writeBytes(8, getInnBytes());
+ if (((bitField0_ & 0x00000080) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 8, inn_);
}
- if (((bitField0_ & 0x00000100) == 0x00000100)) {
- output.writeBytes(9, getUserFirstNameBytes());
+ if (((bitField0_ & 0x00000100) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 9, userFirstName_);
}
- if (((bitField0_ & 0x00000200) == 0x00000200)) {
- output.writeBytes(10, getUserMiddleNameBytes());
+ if (((bitField0_ & 0x00000200) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 10, userMiddleName_);
}
- if (((bitField0_ & 0x00000400) == 0x00000400)) {
- output.writeBytes(11, getUserLastNameBytes());
+ if (((bitField0_ & 0x00000400) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 11, userLastName_);
}
- if (((bitField0_ & 0x00000800) == 0x00000800)) {
- output.writeBytes(12, getUserShortNameBytes());
+ if (((bitField0_ & 0x00000800) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 12, userShortName_);
}
- if (((bitField0_ & 0x00001000) == 0x00001000)) {
+ if (((bitField0_ & 0x00001000) != 0)) {
output.writeBool(13, isDefault_);
}
- if (((bitField0_ & 0x00002000) == 0x00002000)) {
- output.writeEnum(14, subjectType_.getNumber());
+ if (((bitField0_ & 0x00002000) != 0)) {
+ output.writeEnum(14, subjectType_);
}
for (int i = 0; i < usages_.size(); i++) {
- output.writeEnum(15, usages_.get(i).getNumber());
+ output.writeEnum(15, usages_.getInt(i));
}
- if (((bitField0_ & 0x00004000) == 0x00004000)) {
- output.writeEnum(16, dssType_.getNumber());
+ if (((bitField0_ & 0x00004000) != 0)) {
+ output.writeEnum(16, dssType_);
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getThumbprintBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, thumbprint_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(2, type_.getNumber());
+ .computeEnumSize(2, type_);
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(3, validFrom_);
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(4, validTo_);
}
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(5, privateKeyValidFrom_);
}
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(6, privateKeyValidTo_);
}
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(7, getOrganizationNameBytes());
+ if (((bitField0_ & 0x00000040) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(7, organizationName_);
}
- if (((bitField0_ & 0x00000080) == 0x00000080)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(8, getInnBytes());
+ if (((bitField0_ & 0x00000080) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(8, inn_);
}
- if (((bitField0_ & 0x00000100) == 0x00000100)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(9, getUserFirstNameBytes());
+ if (((bitField0_ & 0x00000100) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(9, userFirstName_);
}
- if (((bitField0_ & 0x00000200) == 0x00000200)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(10, getUserMiddleNameBytes());
+ if (((bitField0_ & 0x00000200) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(10, userMiddleName_);
}
- if (((bitField0_ & 0x00000400) == 0x00000400)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(11, getUserLastNameBytes());
+ if (((bitField0_ & 0x00000400) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(11, userLastName_);
}
- if (((bitField0_ & 0x00000800) == 0x00000800)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(12, getUserShortNameBytes());
+ if (((bitField0_ & 0x00000800) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(12, userShortName_);
}
- if (((bitField0_ & 0x00001000) == 0x00001000)) {
+ if (((bitField0_ & 0x00001000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(13, isDefault_);
}
- if (((bitField0_ & 0x00002000) == 0x00002000)) {
+ if (((bitField0_ & 0x00002000) != 0)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(14, subjectType_.getNumber());
+ .computeEnumSize(14, subjectType_);
}
{
int dataSize = 0;
for (int i = 0; i < usages_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
- .computeEnumSizeNoTag(usages_.get(i).getNumber());
+ .computeEnumSizeNoTag(usages_.getInt(i));
}
size += dataSize;
size += 1 * usages_.size();
}
- if (((bitField0_ & 0x00004000) == 0x00004000)) {
+ if (((bitField0_ & 0x00004000) != 0)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(16, dssType_.getNumber());
+ .computeEnumSize(16, dssType_);
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 other = (Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2) obj;
+
+ if (hasThumbprint() != other.hasThumbprint()) return false;
+ if (hasThumbprint()) {
+ if (!getThumbprint()
+ .equals(other.getThumbprint())) return false;
+ }
+ if (hasType() != other.hasType()) return false;
+ if (hasType()) {
+ if (type_ != other.type_) return false;
+ }
+ if (hasValidFrom() != other.hasValidFrom()) return false;
+ if (hasValidFrom()) {
+ if (getValidFrom()
+ != other.getValidFrom()) return false;
+ }
+ if (hasValidTo() != other.hasValidTo()) return false;
+ if (hasValidTo()) {
+ if (getValidTo()
+ != other.getValidTo()) return false;
+ }
+ if (hasPrivateKeyValidFrom() != other.hasPrivateKeyValidFrom()) return false;
+ if (hasPrivateKeyValidFrom()) {
+ if (getPrivateKeyValidFrom()
+ != other.getPrivateKeyValidFrom()) return false;
+ }
+ if (hasPrivateKeyValidTo() != other.hasPrivateKeyValidTo()) return false;
+ if (hasPrivateKeyValidTo()) {
+ if (getPrivateKeyValidTo()
+ != other.getPrivateKeyValidTo()) return false;
+ }
+ if (hasOrganizationName() != other.hasOrganizationName()) return false;
+ if (hasOrganizationName()) {
+ if (!getOrganizationName()
+ .equals(other.getOrganizationName())) return false;
+ }
+ if (hasInn() != other.hasInn()) return false;
+ if (hasInn()) {
+ if (!getInn()
+ .equals(other.getInn())) return false;
+ }
+ if (hasUserFirstName() != other.hasUserFirstName()) return false;
+ if (hasUserFirstName()) {
+ if (!getUserFirstName()
+ .equals(other.getUserFirstName())) return false;
+ }
+ if (hasUserMiddleName() != other.hasUserMiddleName()) return false;
+ if (hasUserMiddleName()) {
+ if (!getUserMiddleName()
+ .equals(other.getUserMiddleName())) return false;
+ }
+ if (hasUserLastName() != other.hasUserLastName()) return false;
+ if (hasUserLastName()) {
+ if (!getUserLastName()
+ .equals(other.getUserLastName())) return false;
+ }
+ if (hasUserShortName() != other.hasUserShortName()) return false;
+ if (hasUserShortName()) {
+ if (!getUserShortName()
+ .equals(other.getUserShortName())) return false;
+ }
+ if (hasIsDefault() != other.hasIsDefault()) return false;
+ if (hasIsDefault()) {
+ if (getIsDefault()
+ != other.getIsDefault()) return false;
+ }
+ if (hasSubjectType() != other.hasSubjectType()) return false;
+ if (hasSubjectType()) {
+ if (subjectType_ != other.subjectType_) return false;
+ }
+ if (!usages_.equals(other.usages_)) return false;
+ if (hasDssType() != other.hasDssType()) return false;
+ if (hasDssType()) {
+ if (dssType_ != other.dssType_) 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 (hasThumbprint()) {
+ hash = (37 * hash) + THUMBPRINT_FIELD_NUMBER;
+ hash = (53 * hash) + getThumbprint().hashCode();
+ }
+ if (hasType()) {
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + type_;
+ }
+ if (hasValidFrom()) {
+ hash = (37 * hash) + VALIDFROM_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getValidFrom());
+ }
+ if (hasValidTo()) {
+ hash = (37 * hash) + VALIDTO_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getValidTo());
+ }
+ if (hasPrivateKeyValidFrom()) {
+ hash = (37 * hash) + PRIVATEKEYVALIDFROM_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getPrivateKeyValidFrom());
+ }
+ if (hasPrivateKeyValidTo()) {
+ hash = (37 * hash) + PRIVATEKEYVALIDTO_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getPrivateKeyValidTo());
+ }
+ if (hasOrganizationName()) {
+ hash = (37 * hash) + ORGANIZATIONNAME_FIELD_NUMBER;
+ hash = (53 * hash) + getOrganizationName().hashCode();
+ }
+ if (hasInn()) {
+ hash = (37 * hash) + INN_FIELD_NUMBER;
+ hash = (53 * hash) + getInn().hashCode();
+ }
+ if (hasUserFirstName()) {
+ hash = (37 * hash) + USERFIRSTNAME_FIELD_NUMBER;
+ hash = (53 * hash) + getUserFirstName().hashCode();
+ }
+ if (hasUserMiddleName()) {
+ hash = (37 * hash) + USERMIDDLENAME_FIELD_NUMBER;
+ hash = (53 * hash) + getUserMiddleName().hashCode();
+ }
+ if (hasUserLastName()) {
+ hash = (37 * hash) + USERLASTNAME_FIELD_NUMBER;
+ hash = (53 * hash) + getUserLastName().hashCode();
+ }
+ if (hasUserShortName()) {
+ hash = (37 * hash) + USERSHORTNAME_FIELD_NUMBER;
+ hash = (53 * hash) + getUserShortName().hashCode();
+ }
+ if (hasIsDefault()) {
+ hash = (37 * hash) + ISDEFAULT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIsDefault());
+ }
+ if (hasSubjectType()) {
+ hash = (37 * hash) + SUBJECTTYPE_FIELD_NUMBER;
+ hash = (53 * hash) + subjectType_;
+ }
+ if (getUsagesCount() > 0) {
+ hash = (37 * hash) + USAGES_FIELD_NUMBER;
+ hash = (53 * hash) + usages_.hashCode();
+ }
+ if (hasDssType()) {
+ hash = (37 * hash) + DSSTYPE_FIELD_NUMBER;
+ hash = (53 * hash) + dssType_;
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
+ public static Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 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.CertificateInfoV2Protos.CertificateInfoV2 parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1467,42 +1682,57 @@ public static Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 parseFr
}
public static Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -1522,6 +1752,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.CertificateInfoV2Protos.internal_static_Diadoc_Api_Proto_CertificateInfoV2_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.CertificateInfoV2Protos.internal_static_Diadoc_Api_Proto_CertificateInfoV2_fieldAccessorTable
@@ -1531,72 +1762,50 @@ public static final class Builder extends
// Construct using Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2.newBuilder()
private Builder() {
- maybeForceBuilderInitialization();
+
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- private static Builder create() {
- return new Builder();
- }
+ }
+ @java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
thumbprint_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
- type_ = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType.UnknownCertificateType;
- bitField0_ = (bitField0_ & ~0x00000002);
+ type_ = 0;
validFrom_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000004);
validTo_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000008);
privateKeyValidFrom_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000010);
privateKeyValidTo_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000020);
organizationName_ = "";
- bitField0_ = (bitField0_ & ~0x00000040);
inn_ = "";
- bitField0_ = (bitField0_ & ~0x00000080);
userFirstName_ = "";
- bitField0_ = (bitField0_ & ~0x00000100);
userMiddleName_ = "";
- bitField0_ = (bitField0_ & ~0x00000200);
userLastName_ = "";
- bitField0_ = (bitField0_ & ~0x00000400);
userShortName_ = "";
- bitField0_ = (bitField0_ & ~0x00000800);
isDefault_ = false;
- bitField0_ = (bitField0_ & ~0x00001000);
- subjectType_ = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType;
- bitField0_ = (bitField0_ & ~0x00002000);
- usages_ = java.util.Collections.emptyList();
+ subjectType_ = 0;
+ usages_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00004000);
- dssType_ = Diadoc.Api.Proto.CertificateInfoV2Protos.DssType.UnknownDssType;
- bitField0_ = (bitField0_ & ~0x00008000);
+ dssType_ = 0;
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.CertificateInfoV2Protos.internal_static_Diadoc_Api_Proto_CertificateInfoV2_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 getDefaultInstanceForType() {
return Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 build() {
Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 result = buildPartial();
if (!result.isInitialized()) {
@@ -1605,80 +1814,90 @@ public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 build() {
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 buildPartial() {
Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 result = new Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 result) {
+ if (((bitField0_ & 0x00004000) != 0)) {
+ usages_.makeImmutable();
+ bitField0_ = (bitField0_ & ~0x00004000);
+ }
+ result.usages_ = usages_;
+ }
+
+ private void buildPartial0(Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.thumbprint_ = thumbprint_;
to_bitField0_ |= 0x00000001;
}
- result.thumbprint_ = thumbprint_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.type_ = type_;
to_bitField0_ |= 0x00000002;
}
- result.type_ = type_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.validFrom_ = validFrom_;
to_bitField0_ |= 0x00000004;
}
- result.validFrom_ = validFrom_;
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.validTo_ = validTo_;
to_bitField0_ |= 0x00000008;
}
- result.validTo_ = validTo_;
- if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.privateKeyValidFrom_ = privateKeyValidFrom_;
to_bitField0_ |= 0x00000010;
}
- result.privateKeyValidFrom_ = privateKeyValidFrom_;
- if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.privateKeyValidTo_ = privateKeyValidTo_;
to_bitField0_ |= 0x00000020;
}
- result.privateKeyValidTo_ = privateKeyValidTo_;
- if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.organizationName_ = organizationName_;
to_bitField0_ |= 0x00000040;
}
- result.organizationName_ = organizationName_;
- if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.inn_ = inn_;
to_bitField0_ |= 0x00000080;
}
- result.inn_ = inn_;
- if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
+ if (((from_bitField0_ & 0x00000100) != 0)) {
+ result.userFirstName_ = userFirstName_;
to_bitField0_ |= 0x00000100;
}
- result.userFirstName_ = userFirstName_;
- if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.userMiddleName_ = userMiddleName_;
to_bitField0_ |= 0x00000200;
}
- result.userMiddleName_ = userMiddleName_;
- if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
+ if (((from_bitField0_ & 0x00000400) != 0)) {
+ result.userLastName_ = userLastName_;
to_bitField0_ |= 0x00000400;
}
- result.userLastName_ = userLastName_;
- if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
+ if (((from_bitField0_ & 0x00000800) != 0)) {
+ result.userShortName_ = userShortName_;
to_bitField0_ |= 0x00000800;
}
- result.userShortName_ = userShortName_;
- if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
+ if (((from_bitField0_ & 0x00001000) != 0)) {
+ result.isDefault_ = isDefault_;
to_bitField0_ |= 0x00001000;
}
- result.isDefault_ = isDefault_;
- if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
+ if (((from_bitField0_ & 0x00002000) != 0)) {
+ result.subjectType_ = subjectType_;
to_bitField0_ |= 0x00002000;
}
- result.subjectType_ = subjectType_;
- if (((bitField0_ & 0x00004000) == 0x00004000)) {
- usages_ = java.util.Collections.unmodifiableList(usages_);
- bitField0_ = (bitField0_ & ~0x00004000);
- }
- result.usages_ = usages_;
- if (((from_bitField0_ & 0x00008000) == 0x00008000)) {
+ if (((from_bitField0_ & 0x00008000) != 0)) {
+ result.dssType_ = dssType_;
to_bitField0_ |= 0x00004000;
}
- result.dssType_ = dssType_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
+ result.bitField0_ |= to_bitField0_;
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2) {
return mergeFrom((Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2)other);
@@ -1691,8 +1910,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 other) {
if (other == Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2.getDefaultInstance()) return this;
if (other.hasThumbprint()) {
- bitField0_ |= 0x00000001;
thumbprint_ = other.thumbprint_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasType()) {
@@ -1711,33 +1930,33 @@ public Builder mergeFrom(Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInf
setPrivateKeyValidTo(other.getPrivateKeyValidTo());
}
if (other.hasOrganizationName()) {
- bitField0_ |= 0x00000040;
organizationName_ = other.organizationName_;
+ bitField0_ |= 0x00000040;
onChanged();
}
if (other.hasInn()) {
- bitField0_ |= 0x00000080;
inn_ = other.inn_;
+ bitField0_ |= 0x00000080;
onChanged();
}
if (other.hasUserFirstName()) {
- bitField0_ |= 0x00000100;
userFirstName_ = other.userFirstName_;
+ bitField0_ |= 0x00000100;
onChanged();
}
if (other.hasUserMiddleName()) {
- bitField0_ |= 0x00000200;
userMiddleName_ = other.userMiddleName_;
+ bitField0_ |= 0x00000200;
onChanged();
}
if (other.hasUserLastName()) {
- bitField0_ |= 0x00000400;
userLastName_ = other.userLastName_;
+ bitField0_ |= 0x00000400;
onChanged();
}
if (other.hasUserShortName()) {
- bitField0_ |= 0x00000800;
userShortName_ = other.userShortName_;
+ bitField0_ |= 0x00000800;
onChanged();
}
if (other.hasIsDefault()) {
@@ -1760,36 +1979,175 @@ public Builder mergeFrom(Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInf
setDssType(other.getDssType());
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
if (!hasThumbprint()) {
-
return false;
}
if (!hasType()) {
-
return false;
}
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ thumbprint_ = input.readBytes();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 16: {
+ int tmpRaw = input.readEnum();
+ Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType tmpValue =
+ Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType.forNumber(tmpRaw);
+ if (tmpValue == null) {
+ mergeUnknownVarintField(2, tmpRaw);
+ } else {
+ type_ = tmpRaw;
+ bitField0_ |= 0x00000002;
+ }
+ break;
+ } // case 16
+ case 25: {
+ validFrom_ = input.readSFixed64();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 25
+ case 33: {
+ validTo_ = input.readSFixed64();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 33
+ case 41: {
+ privateKeyValidFrom_ = input.readSFixed64();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 41
+ case 49: {
+ privateKeyValidTo_ = input.readSFixed64();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 49
+ case 58: {
+ organizationName_ = input.readBytes();
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 58
+ case 66: {
+ inn_ = input.readBytes();
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 66
+ case 74: {
+ userFirstName_ = input.readBytes();
+ bitField0_ |= 0x00000100;
+ break;
+ } // case 74
+ case 82: {
+ userMiddleName_ = input.readBytes();
+ bitField0_ |= 0x00000200;
+ break;
+ } // case 82
+ case 90: {
+ userLastName_ = input.readBytes();
+ bitField0_ |= 0x00000400;
+ break;
+ } // case 90
+ case 98: {
+ userShortName_ = input.readBytes();
+ bitField0_ |= 0x00000800;
+ break;
+ } // case 98
+ case 104: {
+ isDefault_ = input.readBool();
+ bitField0_ |= 0x00001000;
+ break;
+ } // case 104
+ case 112: {
+ int tmpRaw = input.readEnum();
+ Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType tmpValue =
+ Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType.forNumber(tmpRaw);
+ if (tmpValue == null) {
+ mergeUnknownVarintField(14, tmpRaw);
+ } else {
+ subjectType_ = tmpRaw;
+ bitField0_ |= 0x00002000;
+ }
+ break;
+ } // case 112
+ case 120: {
+ int tmpRaw = input.readEnum();
+ Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage tmpValue =
+ Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage.forNumber(tmpRaw);
+ if (tmpValue == null) {
+ mergeUnknownVarintField(15, tmpRaw);
+ } else {
+ ensureUsagesIsMutable();
+ usages_.addInt(tmpRaw);
+ }
+ break;
+ } // case 120
+ case 122: {
+ int length = input.readRawVarint32();
+ int oldLimit = input.pushLimit(length);
+ while(input.getBytesUntilLimit() > 0) {
+ int tmpRaw = input.readEnum();
+ Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage tmpValue =
+ Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage.forNumber(tmpRaw);
+ if (tmpValue == null) {
+ mergeUnknownVarintField(15, tmpRaw);
+ } else {
+ ensureUsagesIsMutable();
+ usages_.addInt(tmpRaw);
+ }
+ }
+ input.popLimit(oldLimit);
+ break;
+ } // case 122
+ case 128: {
+ int tmpRaw = input.readEnum();
+ Diadoc.Api.Proto.CertificateInfoV2Protos.DssType tmpValue =
+ Diadoc.Api.Proto.CertificateInfoV2Protos.DssType.forNumber(tmpRaw);
+ if (tmpValue == null) {
+ mergeUnknownVarintField(16, tmpRaw);
+ } else {
+ dssType_ = tmpRaw;
+ bitField0_ |= 0x00008000;
+ }
+ break;
+ } // case 128
+ 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) {
- parsedMessage = (Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
@@ -1797,12 +2155,14 @@ public Builder mergeFrom(
private java.lang.Object thumbprint_ = "";
/**
* required string Thumbprint = 1;
+ * @return Whether the thumbprint field is set.
*/
public boolean hasThumbprint() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string Thumbprint = 1;
+ * @return The thumbprint.
*/
public java.lang.String getThumbprint() {
java.lang.Object ref = thumbprint_;
@@ -1820,6 +2180,7 @@ public java.lang.String getThumbprint() {
}
/**
* required string Thumbprint = 1;
+ * @return The bytes for thumbprint.
*/
public com.google.protobuf.ByteString
getThumbprintBytes() {
@@ -1836,71 +2197,79 @@ public java.lang.String getThumbprint() {
}
/**
* required string Thumbprint = 1;
+ * @param value The thumbprint to set.
+ * @return This builder for chaining.
*/
public Builder setThumbprint(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
thumbprint_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required string Thumbprint = 1;
+ * @return This builder for chaining.
*/
public Builder clearThumbprint() {
- bitField0_ = (bitField0_ & ~0x00000001);
thumbprint_ = getDefaultInstance().getThumbprint();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* required string Thumbprint = 1;
+ * @param value The bytes for thumbprint to set.
+ * @return This builder for chaining.
*/
public Builder setThumbprintBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
thumbprint_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
- private Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType type_ = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType.UnknownCertificateType;
+ private int type_ = 0;
/**
* required .Diadoc.Api.Proto.CertificateType Type = 2;
+ * @return Whether the type field is set.
*/
- public boolean hasType() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ @java.lang.Override public boolean hasType() {
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required .Diadoc.Api.Proto.CertificateType Type = 2;
+ * @return The type.
*/
+ @java.lang.Override
public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType getType() {
- return type_;
+ Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType result = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType.forNumber(type_);
+ return result == null ? Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType.UnknownCertificateType : result;
}
/**
* required .Diadoc.Api.Proto.CertificateType Type = 2;
+ * @param value The type to set.
+ * @return This builder for chaining.
*/
public Builder setType(Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
- type_ = value;
+ type_ = value.getNumber();
onChanged();
return this;
}
/**
* required .Diadoc.Api.Proto.CertificateType Type = 2;
+ * @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000002);
- type_ = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateType.UnknownCertificateType;
+ type_ = 0;
onChanged();
return this;
}
@@ -1908,27 +2277,35 @@ public Builder clearType() {
private long validFrom_ ;
/**
* optional sfixed64 ValidFrom = 3;
+ * @return Whether the validFrom field is set.
*/
+ @java.lang.Override
public boolean hasValidFrom() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional sfixed64 ValidFrom = 3;
+ * @return The validFrom.
*/
+ @java.lang.Override
public long getValidFrom() {
return validFrom_;
}
/**
* optional sfixed64 ValidFrom = 3;
+ * @param value The validFrom to set.
+ * @return This builder for chaining.
*/
public Builder setValidFrom(long value) {
- bitField0_ |= 0x00000004;
+
validFrom_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional sfixed64 ValidFrom = 3;
+ * @return This builder for chaining.
*/
public Builder clearValidFrom() {
bitField0_ = (bitField0_ & ~0x00000004);
@@ -1940,27 +2317,35 @@ public Builder clearValidFrom() {
private long validTo_ ;
/**
* optional sfixed64 ValidTo = 4;
+ * @return Whether the validTo field is set.
*/
+ @java.lang.Override
public boolean hasValidTo() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional sfixed64 ValidTo = 4;
+ * @return The validTo.
*/
+ @java.lang.Override
public long getValidTo() {
return validTo_;
}
/**
* optional sfixed64 ValidTo = 4;
+ * @param value The validTo to set.
+ * @return This builder for chaining.
*/
public Builder setValidTo(long value) {
- bitField0_ |= 0x00000008;
+
validTo_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional sfixed64 ValidTo = 4;
+ * @return This builder for chaining.
*/
public Builder clearValidTo() {
bitField0_ = (bitField0_ & ~0x00000008);
@@ -1972,27 +2357,35 @@ public Builder clearValidTo() {
private long privateKeyValidFrom_ ;
/**
* optional sfixed64 PrivateKeyValidFrom = 5;
+ * @return Whether the privateKeyValidFrom field is set.
*/
+ @java.lang.Override
public boolean hasPrivateKeyValidFrom() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional sfixed64 PrivateKeyValidFrom = 5;
+ * @return The privateKeyValidFrom.
*/
+ @java.lang.Override
public long getPrivateKeyValidFrom() {
return privateKeyValidFrom_;
}
/**
* optional sfixed64 PrivateKeyValidFrom = 5;
+ * @param value The privateKeyValidFrom to set.
+ * @return This builder for chaining.
*/
public Builder setPrivateKeyValidFrom(long value) {
- bitField0_ |= 0x00000010;
+
privateKeyValidFrom_ = value;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* optional sfixed64 PrivateKeyValidFrom = 5;
+ * @return This builder for chaining.
*/
public Builder clearPrivateKeyValidFrom() {
bitField0_ = (bitField0_ & ~0x00000010);
@@ -2004,27 +2397,35 @@ public Builder clearPrivateKeyValidFrom() {
private long privateKeyValidTo_ ;
/**
* optional sfixed64 PrivateKeyValidTo = 6;
+ * @return Whether the privateKeyValidTo field is set.
*/
+ @java.lang.Override
public boolean hasPrivateKeyValidTo() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
+ return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional sfixed64 PrivateKeyValidTo = 6;
+ * @return The privateKeyValidTo.
*/
+ @java.lang.Override
public long getPrivateKeyValidTo() {
return privateKeyValidTo_;
}
/**
* optional sfixed64 PrivateKeyValidTo = 6;
+ * @param value The privateKeyValidTo to set.
+ * @return This builder for chaining.
*/
public Builder setPrivateKeyValidTo(long value) {
- bitField0_ |= 0x00000020;
+
privateKeyValidTo_ = value;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* optional sfixed64 PrivateKeyValidTo = 6;
+ * @return This builder for chaining.
*/
public Builder clearPrivateKeyValidTo() {
bitField0_ = (bitField0_ & ~0x00000020);
@@ -2036,12 +2437,14 @@ public Builder clearPrivateKeyValidTo() {
private java.lang.Object organizationName_ = "";
/**
* optional string OrganizationName = 7;
+ * @return Whether the organizationName field is set.
*/
public boolean hasOrganizationName() {
- return ((bitField0_ & 0x00000040) == 0x00000040);
+ return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string OrganizationName = 7;
+ * @return The organizationName.
*/
public java.lang.String getOrganizationName() {
java.lang.Object ref = organizationName_;
@@ -2059,6 +2462,7 @@ public java.lang.String getOrganizationName() {
}
/**
* optional string OrganizationName = 7;
+ * @return The bytes for organizationName.
*/
public com.google.protobuf.ByteString
getOrganizationNameBytes() {
@@ -2075,36 +2479,37 @@ public java.lang.String getOrganizationName() {
}
/**
* optional string OrganizationName = 7;
+ * @param value The organizationName to set.
+ * @return This builder for chaining.
*/
public Builder setOrganizationName(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000040;
+ if (value == null) { throw new NullPointerException(); }
organizationName_ = value;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* optional string OrganizationName = 7;
+ * @return This builder for chaining.
*/
public Builder clearOrganizationName() {
- bitField0_ = (bitField0_ & ~0x00000040);
organizationName_ = getDefaultInstance().getOrganizationName();
+ bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
* optional string OrganizationName = 7;
+ * @param value The bytes for organizationName to set.
+ * @return This builder for chaining.
*/
public Builder setOrganizationNameBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000040;
+ if (value == null) { throw new NullPointerException(); }
organizationName_ = value;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -2112,12 +2517,14 @@ public Builder setOrganizationNameBytes(
private java.lang.Object inn_ = "";
/**
* optional string Inn = 8;
+ * @return Whether the inn field is set.
*/
public boolean hasInn() {
- return ((bitField0_ & 0x00000080) == 0x00000080);
+ return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string Inn = 8;
+ * @return The inn.
*/
public java.lang.String getInn() {
java.lang.Object ref = inn_;
@@ -2135,6 +2542,7 @@ public java.lang.String getInn() {
}
/**
* optional string Inn = 8;
+ * @return The bytes for inn.
*/
public com.google.protobuf.ByteString
getInnBytes() {
@@ -2151,36 +2559,37 @@ public java.lang.String getInn() {
}
/**
* optional string Inn = 8;
+ * @param value The inn to set.
+ * @return This builder for chaining.
*/
public Builder setInn(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000080;
+ if (value == null) { throw new NullPointerException(); }
inn_ = value;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* optional string Inn = 8;
+ * @return This builder for chaining.
*/
public Builder clearInn() {
- bitField0_ = (bitField0_ & ~0x00000080);
inn_ = getDefaultInstance().getInn();
+ bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
* optional string Inn = 8;
+ * @param value The bytes for inn to set.
+ * @return This builder for chaining.
*/
public Builder setInnBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000080;
+ if (value == null) { throw new NullPointerException(); }
inn_ = value;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -2188,12 +2597,14 @@ public Builder setInnBytes(
private java.lang.Object userFirstName_ = "";
/**
* optional string UserFirstName = 9;
+ * @return Whether the userFirstName field is set.
*/
public boolean hasUserFirstName() {
- return ((bitField0_ & 0x00000100) == 0x00000100);
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional string UserFirstName = 9;
+ * @return The userFirstName.
*/
public java.lang.String getUserFirstName() {
java.lang.Object ref = userFirstName_;
@@ -2211,6 +2622,7 @@ public java.lang.String getUserFirstName() {
}
/**
* optional string UserFirstName = 9;
+ * @return The bytes for userFirstName.
*/
public com.google.protobuf.ByteString
getUserFirstNameBytes() {
@@ -2227,36 +2639,37 @@ public java.lang.String getUserFirstName() {
}
/**
* optional string UserFirstName = 9;
+ * @param value The userFirstName to set.
+ * @return This builder for chaining.
*/
public Builder setUserFirstName(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000100;
+ if (value == null) { throw new NullPointerException(); }
userFirstName_ = value;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* optional string UserFirstName = 9;
+ * @return This builder for chaining.
*/
public Builder clearUserFirstName() {
- bitField0_ = (bitField0_ & ~0x00000100);
userFirstName_ = getDefaultInstance().getUserFirstName();
+ bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
* optional string UserFirstName = 9;
+ * @param value The bytes for userFirstName to set.
+ * @return This builder for chaining.
*/
public Builder setUserFirstNameBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000100;
+ if (value == null) { throw new NullPointerException(); }
userFirstName_ = value;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -2264,12 +2677,14 @@ public Builder setUserFirstNameBytes(
private java.lang.Object userMiddleName_ = "";
/**
* optional string UserMiddleName = 10;
+ * @return Whether the userMiddleName field is set.
*/
public boolean hasUserMiddleName() {
- return ((bitField0_ & 0x00000200) == 0x00000200);
+ return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional string UserMiddleName = 10;
+ * @return The userMiddleName.
*/
public java.lang.String getUserMiddleName() {
java.lang.Object ref = userMiddleName_;
@@ -2287,6 +2702,7 @@ public java.lang.String getUserMiddleName() {
}
/**
* optional string UserMiddleName = 10;
+ * @return The bytes for userMiddleName.
*/
public com.google.protobuf.ByteString
getUserMiddleNameBytes() {
@@ -2303,36 +2719,37 @@ public java.lang.String getUserMiddleName() {
}
/**
* optional string UserMiddleName = 10;
+ * @param value The userMiddleName to set.
+ * @return This builder for chaining.
*/
public Builder setUserMiddleName(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000200;
+ if (value == null) { throw new NullPointerException(); }
userMiddleName_ = value;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* optional string UserMiddleName = 10;
+ * @return This builder for chaining.
*/
public Builder clearUserMiddleName() {
- bitField0_ = (bitField0_ & ~0x00000200);
userMiddleName_ = getDefaultInstance().getUserMiddleName();
+ bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
* optional string UserMiddleName = 10;
+ * @param value The bytes for userMiddleName to set.
+ * @return This builder for chaining.
*/
public Builder setUserMiddleNameBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000200;
+ if (value == null) { throw new NullPointerException(); }
userMiddleName_ = value;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -2340,12 +2757,14 @@ public Builder setUserMiddleNameBytes(
private java.lang.Object userLastName_ = "";
/**
* optional string UserLastName = 11;
+ * @return Whether the userLastName field is set.
*/
public boolean hasUserLastName() {
- return ((bitField0_ & 0x00000400) == 0x00000400);
+ return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional string UserLastName = 11;
+ * @return The userLastName.
*/
public java.lang.String getUserLastName() {
java.lang.Object ref = userLastName_;
@@ -2363,6 +2782,7 @@ public java.lang.String getUserLastName() {
}
/**
* optional string UserLastName = 11;
+ * @return The bytes for userLastName.
*/
public com.google.protobuf.ByteString
getUserLastNameBytes() {
@@ -2379,36 +2799,37 @@ public java.lang.String getUserLastName() {
}
/**
* optional string UserLastName = 11;
+ * @param value The userLastName to set.
+ * @return This builder for chaining.
*/
public Builder setUserLastName(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000400;
+ if (value == null) { throw new NullPointerException(); }
userLastName_ = value;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* optional string UserLastName = 11;
+ * @return This builder for chaining.
*/
public Builder clearUserLastName() {
- bitField0_ = (bitField0_ & ~0x00000400);
userLastName_ = getDefaultInstance().getUserLastName();
+ bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
/**
* optional string UserLastName = 11;
+ * @param value The bytes for userLastName to set.
+ * @return This builder for chaining.
*/
public Builder setUserLastNameBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000400;
+ if (value == null) { throw new NullPointerException(); }
userLastName_ = value;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -2416,12 +2837,14 @@ public Builder setUserLastNameBytes(
private java.lang.Object userShortName_ = "";
/**
* optional string UserShortName = 12;
+ * @return Whether the userShortName field is set.
*/
public boolean hasUserShortName() {
- return ((bitField0_ & 0x00000800) == 0x00000800);
+ return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional string UserShortName = 12;
+ * @return The userShortName.
*/
public java.lang.String getUserShortName() {
java.lang.Object ref = userShortName_;
@@ -2439,6 +2862,7 @@ public java.lang.String getUserShortName() {
}
/**
* optional string UserShortName = 12;
+ * @return The bytes for userShortName.
*/
public com.google.protobuf.ByteString
getUserShortNameBytes() {
@@ -2455,36 +2879,37 @@ public java.lang.String getUserShortName() {
}
/**
* optional string UserShortName = 12;
+ * @param value The userShortName to set.
+ * @return This builder for chaining.
*/
public Builder setUserShortName(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000800;
+ if (value == null) { throw new NullPointerException(); }
userShortName_ = value;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* optional string UserShortName = 12;
+ * @return This builder for chaining.
*/
public Builder clearUserShortName() {
- bitField0_ = (bitField0_ & ~0x00000800);
userShortName_ = getDefaultInstance().getUserShortName();
+ bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
/**
* optional string UserShortName = 12;
+ * @param value The bytes for userShortName to set.
+ * @return This builder for chaining.
*/
public Builder setUserShortNameBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000800;
+ if (value == null) { throw new NullPointerException(); }
userShortName_ = value;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -2492,27 +2917,35 @@ public Builder setUserShortNameBytes(
private boolean isDefault_ ;
/**
* optional bool IsDefault = 13;
+ * @return Whether the isDefault field is set.
*/
+ @java.lang.Override
public boolean hasIsDefault() {
- return ((bitField0_ & 0x00001000) == 0x00001000);
+ return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional bool IsDefault = 13;
+ * @return The isDefault.
*/
+ @java.lang.Override
public boolean getIsDefault() {
return isDefault_;
}
/**
* optional bool IsDefault = 13;
+ * @param value The isDefault to set.
+ * @return This builder for chaining.
*/
public Builder setIsDefault(boolean value) {
- bitField0_ |= 0x00001000;
+
isDefault_ = value;
+ bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* optional bool IsDefault = 13;
+ * @return This builder for chaining.
*/
public Builder clearIsDefault() {
bitField0_ = (bitField0_ & ~0x00001000);
@@ -2521,69 +2954,84 @@ public Builder clearIsDefault() {
return this;
}
- private Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType subjectType_ = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType;
+ private int subjectType_ = 0;
/**
* optional .Diadoc.Api.Proto.CertificateSubjectType SubjectType = 14;
+ * @return Whether the subjectType field is set.
*/
- public boolean hasSubjectType() {
- return ((bitField0_ & 0x00002000) == 0x00002000);
+ @java.lang.Override public boolean hasSubjectType() {
+ return ((bitField0_ & 0x00002000) != 0);
}
/**
* optional .Diadoc.Api.Proto.CertificateSubjectType SubjectType = 14;
+ * @return The subjectType.
*/
+ @java.lang.Override
public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType getSubjectType() {
- return subjectType_;
+ Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType result = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType.forNumber(subjectType_);
+ return result == null ? Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType : result;
}
/**
* optional .Diadoc.Api.Proto.CertificateSubjectType SubjectType = 14;
+ * @param value The subjectType to set.
+ * @return This builder for chaining.
*/
public Builder setSubjectType(Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
- subjectType_ = value;
+ subjectType_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .Diadoc.Api.Proto.CertificateSubjectType SubjectType = 14;
+ * @return This builder for chaining.
*/
public Builder clearSubjectType() {
bitField0_ = (bitField0_ & ~0x00002000);
- subjectType_ = Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType;
+ subjectType_ = 0;
onChanged();
return this;
}
- private java.util.Listrepeated .Diadoc.Api.Proto.CertificateUsage Usages = 15;
+ * @return A list containing the usages.
*/
public java.util.Listrepeated .Diadoc.Api.Proto.CertificateUsage Usages = 15;
+ * @return The count of usages.
*/
public int getUsagesCount() {
return usages_.size();
}
/**
* repeated .Diadoc.Api.Proto.CertificateUsage Usages = 15;
+ * @param index The index of the element to return.
+ * @return The usages at the given index.
*/
public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage getUsages(int index) {
- return usages_.get(index);
+ return usages_converter_.convert(usages_.getInt(index));
}
/**
* repeated .Diadoc.Api.Proto.CertificateUsage Usages = 15;
+ * @param index The index to set the value at.
+ * @param value The usages to set.
+ * @return This builder for chaining.
*/
public Builder setUsages(
int index, Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage value) {
@@ -2591,74 +3039,87 @@ public Builder setUsages(
throw new NullPointerException();
}
ensureUsagesIsMutable();
- usages_.set(index, value);
+ usages_.setInt(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .Diadoc.Api.Proto.CertificateUsage Usages = 15;
+ * @param value The usages to add.
+ * @return This builder for chaining.
*/
public Builder addUsages(Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage value) {
if (value == null) {
throw new NullPointerException();
}
ensureUsagesIsMutable();
- usages_.add(value);
+ usages_.addInt(value.getNumber());
onChanged();
return this;
}
/**
* repeated .Diadoc.Api.Proto.CertificateUsage Usages = 15;
+ * @param values The usages to add.
+ * @return This builder for chaining.
*/
public Builder addAllUsages(
java.lang.Iterable extends Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage> values) {
ensureUsagesIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, usages_);
+ for (Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateUsage value : values) {
+ usages_.addInt(value.getNumber());
+ }
onChanged();
return this;
}
/**
* repeated .Diadoc.Api.Proto.CertificateUsage Usages = 15;
+ * @return This builder for chaining.
*/
public Builder clearUsages() {
- usages_ = java.util.Collections.emptyList();
+ usages_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
return this;
}
- private Diadoc.Api.Proto.CertificateInfoV2Protos.DssType dssType_ = Diadoc.Api.Proto.CertificateInfoV2Protos.DssType.UnknownDssType;
+ private int dssType_ = 0;
/**
* optional .Diadoc.Api.Proto.DssType DssType = 16;
+ * @return Whether the dssType field is set.
*/
- public boolean hasDssType() {
- return ((bitField0_ & 0x00008000) == 0x00008000);
+ @java.lang.Override public boolean hasDssType() {
+ return ((bitField0_ & 0x00008000) != 0);
}
/**
* optional .Diadoc.Api.Proto.DssType DssType = 16;
+ * @return The dssType.
*/
+ @java.lang.Override
public Diadoc.Api.Proto.CertificateInfoV2Protos.DssType getDssType() {
- return dssType_;
+ Diadoc.Api.Proto.CertificateInfoV2Protos.DssType result = Diadoc.Api.Proto.CertificateInfoV2Protos.DssType.forNumber(dssType_);
+ return result == null ? Diadoc.Api.Proto.CertificateInfoV2Protos.DssType.UnknownDssType : result;
}
/**
* optional .Diadoc.Api.Proto.DssType DssType = 16;
+ * @param value The dssType to set.
+ * @return This builder for chaining.
*/
public Builder setDssType(Diadoc.Api.Proto.CertificateInfoV2Protos.DssType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00008000;
- dssType_ = value;
+ dssType_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .Diadoc.Api.Proto.DssType DssType = 16;
+ * @return This builder for chaining.
*/
public Builder clearDssType() {
bitField0_ = (bitField0_ & ~0x00008000);
- dssType_ = Diadoc.Api.Proto.CertificateInfoV2Protos.DssType.UnknownDssType;
+ dssType_ = 0;
onChanged();
return this;
}
@@ -2666,17 +3127,57 @@ public Builder clearDssType() {
// @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CertificateInfoV2)
}
+ // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CertificateInfoV2)
+ private static final Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 DEFAULT_INSTANCE;
static {
- defaultInstance = new CertificateInfoV2(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2();
+ }
+
+ public static Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserrepeated .Diadoc.Api.Proto.CertificateInfoV2 Certificates = 1;
*/
+ @java.lang.Override
public java.util.Listrepeated .Diadoc.Api.Proto.CertificateInfoV2 Certificates = 1;
*/
+ @java.lang.Override
public java.util.List extends Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2OrBuilder>
getCertificatesOrBuilderList() {
return certificates_;
@@ -156,27 +112,28 @@ public java.util.Listrepeated .Diadoc.Api.Proto.CertificateInfoV2 Certificates = 1;
*/
+ @java.lang.Override
public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 getCertificates(int index) {
return certificates_.get(index);
}
/**
* repeated .Diadoc.Api.Proto.CertificateInfoV2 Certificates = 1;
*/
+ @java.lang.Override
public Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2OrBuilder getCertificatesOrBuilder(
int index) {
return certificates_.get(index);
}
- private void initFields() {
- certificates_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -192,18 +149,18 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
for (int i = 0; i < certificates_.size(); i++) {
output.writeMessage(1, certificates_.get(i));
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -212,17 +169,53 @@ public int getSerializedSize() {
.computeMessageSize(1, certificates_.get(i));
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.CertificateListProtos.CertificateList)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.CertificateListProtos.CertificateList other = (Diadoc.Api.Proto.CertificateListProtos.CertificateList) obj;
+
+ if (!getCertificatesList()
+ .equals(other.getCertificatesList())) 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 (getCertificatesCount() > 0) {
+ hash = (37 * hash) + CERTIFICATES_FIELD_NUMBER;
+ hash = (53 * hash) + getCertificatesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static Diadoc.Api.Proto.CertificateListProtos.CertificateList parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.CertificateListProtos.CertificateList 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.CertificateListProtos.CertificateList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -246,42 +239,57 @@ public static Diadoc.Api.Proto.CertificateListProtos.CertificateList parseFrom(
}
public static Diadoc.Api.Proto.CertificateListProtos.CertificateList parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CertificateListProtos.CertificateList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.CertificateListProtos.CertificateList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.CertificateListProtos.CertificateList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.CertificateListProtos.CertificateList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CertificateListProtos.CertificateList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.CertificateListProtos.CertificateList prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -301,6 +309,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.CertificateListProtos.internal_static_Diadoc_Api_Proto_CertificateList_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.CertificateListProtos.internal_static_Diadoc_Api_Proto_CertificateList_fieldAccessorTable
@@ -310,47 +319,40 @@ public static final class Builder extends
// Construct using Diadoc.Api.Proto.CertificateListProtos.CertificateList.newBuilder()
private Builder() {
- maybeForceBuilderInitialization();
+
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getCertificatesFieldBuilder();
- }
- }
- private static Builder create() {
- return new Builder();
- }
+ }
+ @java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (certificatesBuilder_ == null) {
certificates_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
} else {
+ certificates_ = null;
certificatesBuilder_.clear();
}
+ bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.CertificateListProtos.internal_static_Diadoc_Api_Proto_CertificateList_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CertificateListProtos.CertificateList getDefaultInstanceForType() {
return Diadoc.Api.Proto.CertificateListProtos.CertificateList.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.CertificateListProtos.CertificateList build() {
Diadoc.Api.Proto.CertificateListProtos.CertificateList result = buildPartial();
if (!result.isInitialized()) {
@@ -359,11 +361,18 @@ public Diadoc.Api.Proto.CertificateListProtos.CertificateList build() {
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CertificateListProtos.CertificateList buildPartial() {
Diadoc.Api.Proto.CertificateListProtos.CertificateList result = new Diadoc.Api.Proto.CertificateListProtos.CertificateList(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(Diadoc.Api.Proto.CertificateListProtos.CertificateList result) {
if (certificatesBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
certificates_ = java.util.Collections.unmodifiableList(certificates_);
bitField0_ = (bitField0_ & ~0x00000001);
}
@@ -371,10 +380,13 @@ public Diadoc.Api.Proto.CertificateListProtos.CertificateList buildPartial() {
} else {
result.certificates_ = certificatesBuilder_.build();
}
- onBuilt();
- return result;
}
+ private void buildPartial0(Diadoc.Api.Proto.CertificateListProtos.CertificateList result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.CertificateListProtos.CertificateList) {
return mergeFrom((Diadoc.Api.Proto.CertificateListProtos.CertificateList)other);
@@ -413,34 +425,62 @@ public Builder mergeFrom(Diadoc.Api.Proto.CertificateListProtos.CertificateList
}
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getCertificatesCount(); i++) {
if (!getCertificates(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 {
- Diadoc.Api.Proto.CertificateListProtos.CertificateList parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2 m =
+ input.readMessage(
+ Diadoc.Api.Proto.CertificateInfoV2Protos.CertificateInfoV2.parser(),
+ extensionRegistry);
+ if (certificatesBuilder_ == null) {
+ ensureCertificatesIsMutable();
+ certificates_.add(m);
+ } else {
+ certificatesBuilder_.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) {
- parsedMessage = (Diadoc.Api.Proto.CertificateListProtos.CertificateList) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
@@ -448,7 +488,7 @@ public Builder mergeFrom(
private java.util.ListUnknown = 0;
*/
- Unknown(0, 0),
+ Unknown(0),
/**
* Token = 1;
*/
- Token(1, 1),
+ Token(1),
/**
* Dss = 2;
*/
- Dss(2, 2),
+ Dss(2),
/**
* KonturCertificate = 3;
*/
- KonturCertificate(3, 3),
+ KonturCertificate(3),
;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ CertificateType.class.getName());
+ }
/**
* Unknown = 0;
*/
@@ -49,9 +75,25 @@ public enum CertificateType
public static final int KonturCertificate_VALUE = 3;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static CertificateType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static CertificateType forNumber(int value) {
switch (value) {
case 0: return Unknown;
case 1: return Token;
@@ -65,17 +107,17 @@ public static CertificateType valueOf(int value) {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMapUnknownCertificateSubjectType = 0;
*/
- UnknownCertificateSubjectType(0, 0),
+ UnknownCertificateSubjectType(0),
/**
* LegalEntity = 1;
*/
- LegalEntity(1, 1),
+ LegalEntity(1),
/**
* IndividualEntity = 2;
*/
- IndividualEntity(2, 2),
+ IndividualEntity(2),
/**
* PhysicalPerson = 3;
*/
- PhysicalPerson(3, 3),
+ PhysicalPerson(3),
;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ CertificateSubjectType.class.getName());
+ }
/**
* UnknownCertificateSubjectType = 0;
*/
@@ -149,9 +198,25 @@ public enum CertificateSubjectType
public static final int PhysicalPerson_VALUE = 3;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static CertificateSubjectType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static CertificateSubjectType forNumber(int value) {
switch (value) {
case 0: return UnknownCertificateSubjectType;
case 1: return LegalEntity;
@@ -165,17 +230,17 @@ public static CertificateSubjectType valueOf(int value) {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMapUnknownDssType = 0;
*/
- UnknownDssType(0, 0),
+ UnknownDssType(0),
/**
* MyDss = 1;
*/
- MyDss(1, 1),
+ MyDss(1),
/**
* KSignServer = 2;
*/
- KSignServer(2, 2),
+ KSignServer(2),
/**
* KSignRutoken = 3;
*/
- KSignRutoken(3, 3),
+ KSignRutoken(3),
/**
* KSignMobile = 4;
*/
- KSignMobile(4, 4),
+ KSignMobile(4),
;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ DssCertificateType.class.getName());
+ }
/**
* UnknownDssType = 0;
*/
@@ -257,9 +329,25 @@ public enum DssCertificateType
public static final int KSignMobile_VALUE = 4;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static DssCertificateType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static DssCertificateType forNumber(int value) {
switch (value) {
case 0: return UnknownDssType;
case 1: return MyDss;
@@ -274,17 +362,17 @@ public static DssCertificateType valueOf(int value) {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMapUnknownUsage = 0;
*/
- UnknownUsage(0, 0),
+ UnknownUsage(0),
/**
* KonturCertificateUsage = 1;
*/
- KonturCertificateUsage(1, 1),
+ KonturCertificateUsage(1),
/**
* TokenUsage = 2;
*/
- TokenUsage(2, 2),
+ TokenUsage(2),
/**
* DssUsage = 3;
*/
- DssUsage(3, 3),
+ DssUsage(3),
;
+ static {
+ com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
+ com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
+ /* major= */ 4,
+ /* minor= */ 28,
+ /* patch= */ 1,
+ /* suffix= */ "",
+ CertificateUsage.class.getName());
+ }
/**
* UnknownUsage = 0;
*/
@@ -358,9 +453,25 @@ public enum CertificateUsage
public static final int DssUsage_VALUE = 3;
- public final int getNumber() { return value; }
+ public final int getNumber() {
+ return value;
+ }
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
public static CertificateUsage valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static CertificateUsage forNumber(int value) {
switch (value) {
case 0: return UnknownUsage;
case 1: return KonturCertificateUsage;
@@ -374,17 +485,17 @@ public static CertificateUsage valueOf(int value) {
internalGetValueMap() {
return internalValueMap;
}
- private static com.google.protobuf.Internal.EnumLiteMaprequired string Thumbprint = 1;
+ * @return Whether the thumbprint field is set.
*/
boolean hasThumbprint();
/**
* required string Thumbprint = 1;
+ * @return The thumbprint.
*/
java.lang.String getThumbprint();
/**
* required string Thumbprint = 1;
+ * @return The bytes for thumbprint.
*/
com.google.protobuf.ByteString
getThumbprintBytes();
/**
* required .Diadoc.Api.Proto.Certificates.CertificateType Type = 2;
+ * @return Whether the type field is set.
*/
boolean hasType();
/**
* required .Diadoc.Api.Proto.Certificates.CertificateType Type = 2;
+ * @return The type.
*/
Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType getType();
/**
* optional sfixed64 ValidFrom = 3;
+ * @return Whether the validFrom field is set.
*/
boolean hasValidFrom();
/**
* optional sfixed64 ValidFrom = 3;
+ * @return The validFrom.
*/
long getValidFrom();
/**
* optional sfixed64 ValidTo = 4;
+ * @return Whether the validTo field is set.
*/
boolean hasValidTo();
/**
* optional sfixed64 ValidTo = 4;
+ * @return The validTo.
*/
long getValidTo();
/**
* optional sfixed64 PrivateKeyValidFrom = 5;
+ * @return Whether the privateKeyValidFrom field is set.
*/
boolean hasPrivateKeyValidFrom();
/**
* optional sfixed64 PrivateKeyValidFrom = 5;
+ * @return The privateKeyValidFrom.
*/
long getPrivateKeyValidFrom();
/**
* optional sfixed64 PrivateKeyValidTo = 6;
+ * @return Whether the privateKeyValidTo field is set.
*/
boolean hasPrivateKeyValidTo();
/**
* optional sfixed64 PrivateKeyValidTo = 6;
+ * @return The privateKeyValidTo.
*/
long getPrivateKeyValidTo();
/**
* optional string OrganizationName = 7;
+ * @return Whether the organizationName field is set.
*/
boolean hasOrganizationName();
/**
* optional string OrganizationName = 7;
+ * @return The organizationName.
*/
java.lang.String getOrganizationName();
/**
* optional string OrganizationName = 7;
+ * @return The bytes for organizationName.
*/
com.google.protobuf.ByteString
getOrganizationNameBytes();
/**
* optional string Inn = 8;
+ * @return Whether the inn field is set.
*/
boolean hasInn();
/**
* optional string Inn = 8;
+ * @return The inn.
*/
java.lang.String getInn();
/**
* optional string Inn = 8;
+ * @return The bytes for inn.
*/
com.google.protobuf.ByteString
getInnBytes();
/**
* optional string UserFirstName = 9;
+ * @return Whether the userFirstName field is set.
*/
boolean hasUserFirstName();
/**
* optional string UserFirstName = 9;
+ * @return The userFirstName.
*/
java.lang.String getUserFirstName();
/**
* optional string UserFirstName = 9;
+ * @return The bytes for userFirstName.
*/
com.google.protobuf.ByteString
getUserFirstNameBytes();
/**
* optional string UserMiddleName = 10;
+ * @return Whether the userMiddleName field is set.
*/
boolean hasUserMiddleName();
/**
* optional string UserMiddleName = 10;
+ * @return The userMiddleName.
*/
java.lang.String getUserMiddleName();
/**
* optional string UserMiddleName = 10;
+ * @return The bytes for userMiddleName.
*/
com.google.protobuf.ByteString
getUserMiddleNameBytes();
/**
* optional string UserLastName = 11;
+ * @return Whether the userLastName field is set.
*/
boolean hasUserLastName();
/**
* optional string UserLastName = 11;
+ * @return The userLastName.
*/
java.lang.String getUserLastName();
/**
* optional string UserLastName = 11;
+ * @return The bytes for userLastName.
*/
com.google.protobuf.ByteString
getUserLastNameBytes();
/**
* optional string UserShortName = 12;
+ * @return Whether the userShortName field is set.
*/
boolean hasUserShortName();
/**
* optional string UserShortName = 12;
+ * @return The userShortName.
*/
java.lang.String getUserShortName();
/**
* optional string UserShortName = 12;
+ * @return The bytes for userShortName.
*/
com.google.protobuf.ByteString
getUserShortNameBytes();
/**
* optional bool IsDefault = 13;
+ * @return Whether the isDefault field is set.
*/
boolean hasIsDefault();
/**
* optional bool IsDefault = 13;
+ * @return The isDefault.
*/
boolean getIsDefault();
/**
* optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType SubjectType = 14;
+ * @return Whether the subjectType field is set.
*/
boolean hasSubjectType();
/**
* optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType SubjectType = 14;
+ * @return The subjectType.
*/
Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType getSubjectType();
/**
* repeated .Diadoc.Api.Proto.Certificates.CertificateUsage Usages = 15;
+ * @return A list containing the usages.
*/
java.util.Listrepeated .Diadoc.Api.Proto.Certificates.CertificateUsage Usages = 15;
+ * @return The count of usages.
*/
int getUsagesCount();
/**
* repeated .Diadoc.Api.Proto.Certificates.CertificateUsage Usages = 15;
+ * @param index The index of the element to return.
+ * @return The usages at the given index.
*/
Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage getUsages(int index);
/**
* optional .Diadoc.Api.Proto.Certificates.DssCertificateType DssType = 16;
+ * @return Whether the dssType field is set.
*/
boolean hasDssType();
/**
* optional .Diadoc.Api.Proto.Certificates.DssCertificateType DssType = 16;
+ * @return The dssType.
*/
Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType getDssType();
}
@@ -611,204 +761,40 @@ public static final class CertificateInfoV2 extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Certificates.CertificateInfoV2)
CertificateInfoV2OrBuilder {
+ 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= */ "",
+ CertificateInfoV2.class.getName());
+ }
// Use CertificateInfoV2.newBuilder() to construct.
private CertificateInfoV2(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private CertificateInfoV2(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final CertificateInfoV2 defaultInstance;
- public static CertificateInfoV2 getDefaultInstance() {
- return defaultInstance;
}
-
- public CertificateInfoV2 getDefaultInstanceForType() {
- return defaultInstance;
+ private CertificateInfoV2() {
+ thumbprint_ = "";
+ type_ = 0;
+ organizationName_ = "";
+ inn_ = "";
+ userFirstName_ = "";
+ userMiddleName_ = "";
+ userLastName_ = "";
+ userShortName_ = "";
+ subjectType_ = 0;
+ usages_ = emptyIntList();
+ dssType_ = 0;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private CertificateInfoV2(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000001;
- thumbprint_ = bs;
- break;
- }
- case 16: {
- int rawValue = input.readEnum();
- Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType value = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(2, rawValue);
- } else {
- bitField0_ |= 0x00000002;
- type_ = value;
- }
- break;
- }
- case 25: {
- bitField0_ |= 0x00000004;
- validFrom_ = input.readSFixed64();
- break;
- }
- case 33: {
- bitField0_ |= 0x00000008;
- validTo_ = input.readSFixed64();
- break;
- }
- case 41: {
- bitField0_ |= 0x00000010;
- privateKeyValidFrom_ = input.readSFixed64();
- break;
- }
- case 49: {
- bitField0_ |= 0x00000020;
- privateKeyValidTo_ = input.readSFixed64();
- break;
- }
- case 58: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000040;
- organizationName_ = bs;
- break;
- }
- case 66: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000080;
- inn_ = bs;
- break;
- }
- case 74: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000100;
- userFirstName_ = bs;
- break;
- }
- case 82: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000200;
- userMiddleName_ = bs;
- break;
- }
- case 90: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000400;
- userLastName_ = bs;
- break;
- }
- case 98: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000800;
- userShortName_ = bs;
- break;
- }
- case 104: {
- bitField0_ |= 0x00001000;
- isDefault_ = input.readBool();
- break;
- }
- case 112: {
- int rawValue = input.readEnum();
- Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType value = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(14, rawValue);
- } else {
- bitField0_ |= 0x00002000;
- subjectType_ = value;
- }
- break;
- }
- case 120: {
- int rawValue = input.readEnum();
- Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage value = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage.valueOf(rawValue);
- if (value == null) {
- unknownFields.mergeVarintField(15, rawValue);
- } else {
- if (!((mutable_bitField0_ & 0x00004000) == 0x00004000)) {
- usages_ = new java.util.ArrayListrequired string Thumbprint = 1;
+ * @return Whether the thumbprint field is set.
*/
+ @java.lang.Override
public boolean hasThumbprint() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string Thumbprint = 1;
+ * @return The thumbprint.
*/
+ @java.lang.Override
public java.lang.String getThumbprint() {
java.lang.Object ref = thumbprint_;
if (ref instanceof java.lang.String) {
@@ -859,7 +835,9 @@ public java.lang.String getThumbprint() {
}
/**
* required string Thumbprint = 1;
+ * @return The bytes for thumbprint.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getThumbprintBytes() {
java.lang.Object ref = thumbprint_;
@@ -875,91 +853,115 @@ public java.lang.String getThumbprint() {
}
public static final int TYPE_FIELD_NUMBER = 2;
- private Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType type_;
+ private int type_ = 0;
/**
* required .Diadoc.Api.Proto.Certificates.CertificateType Type = 2;
+ * @return Whether the type field is set.
*/
- public boolean hasType() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ @java.lang.Override public boolean hasType() {
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required .Diadoc.Api.Proto.Certificates.CertificateType Type = 2;
+ * @return The type.
*/
- public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType getType() {
- return type_;
+ @java.lang.Override public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType getType() {
+ Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType result = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType.forNumber(type_);
+ return result == null ? Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType.Unknown : result;
}
public static final int VALIDFROM_FIELD_NUMBER = 3;
- private long validFrom_;
+ private long validFrom_ = 0L;
/**
* optional sfixed64 ValidFrom = 3;
+ * @return Whether the validFrom field is set.
*/
+ @java.lang.Override
public boolean hasValidFrom() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional sfixed64 ValidFrom = 3;
+ * @return The validFrom.
*/
+ @java.lang.Override
public long getValidFrom() {
return validFrom_;
}
public static final int VALIDTO_FIELD_NUMBER = 4;
- private long validTo_;
+ private long validTo_ = 0L;
/**
* optional sfixed64 ValidTo = 4;
+ * @return Whether the validTo field is set.
*/
+ @java.lang.Override
public boolean hasValidTo() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional sfixed64 ValidTo = 4;
+ * @return The validTo.
*/
+ @java.lang.Override
public long getValidTo() {
return validTo_;
}
public static final int PRIVATEKEYVALIDFROM_FIELD_NUMBER = 5;
- private long privateKeyValidFrom_;
+ private long privateKeyValidFrom_ = 0L;
/**
* optional sfixed64 PrivateKeyValidFrom = 5;
+ * @return Whether the privateKeyValidFrom field is set.
*/
+ @java.lang.Override
public boolean hasPrivateKeyValidFrom() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional sfixed64 PrivateKeyValidFrom = 5;
+ * @return The privateKeyValidFrom.
*/
+ @java.lang.Override
public long getPrivateKeyValidFrom() {
return privateKeyValidFrom_;
}
public static final int PRIVATEKEYVALIDTO_FIELD_NUMBER = 6;
- private long privateKeyValidTo_;
+ private long privateKeyValidTo_ = 0L;
/**
* optional sfixed64 PrivateKeyValidTo = 6;
+ * @return Whether the privateKeyValidTo field is set.
*/
+ @java.lang.Override
public boolean hasPrivateKeyValidTo() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
+ return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional sfixed64 PrivateKeyValidTo = 6;
+ * @return The privateKeyValidTo.
*/
+ @java.lang.Override
public long getPrivateKeyValidTo() {
return privateKeyValidTo_;
}
public static final int ORGANIZATIONNAME_FIELD_NUMBER = 7;
- private java.lang.Object organizationName_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object organizationName_ = "";
/**
* optional string OrganizationName = 7;
+ * @return Whether the organizationName field is set.
*/
+ @java.lang.Override
public boolean hasOrganizationName() {
- return ((bitField0_ & 0x00000040) == 0x00000040);
+ return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string OrganizationName = 7;
+ * @return The organizationName.
*/
+ @java.lang.Override
public java.lang.String getOrganizationName() {
java.lang.Object ref = organizationName_;
if (ref instanceof java.lang.String) {
@@ -976,7 +978,9 @@ public java.lang.String getOrganizationName() {
}
/**
* optional string OrganizationName = 7;
+ * @return The bytes for organizationName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getOrganizationNameBytes() {
java.lang.Object ref = organizationName_;
@@ -992,16 +996,21 @@ public java.lang.String getOrganizationName() {
}
public static final int INN_FIELD_NUMBER = 8;
- private java.lang.Object inn_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object inn_ = "";
/**
* optional string Inn = 8;
+ * @return Whether the inn field is set.
*/
+ @java.lang.Override
public boolean hasInn() {
- return ((bitField0_ & 0x00000080) == 0x00000080);
+ return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string Inn = 8;
+ * @return The inn.
*/
+ @java.lang.Override
public java.lang.String getInn() {
java.lang.Object ref = inn_;
if (ref instanceof java.lang.String) {
@@ -1018,7 +1027,9 @@ public java.lang.String getInn() {
}
/**
* optional string Inn = 8;
+ * @return The bytes for inn.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getInnBytes() {
java.lang.Object ref = inn_;
@@ -1034,16 +1045,21 @@ public java.lang.String getInn() {
}
public static final int USERFIRSTNAME_FIELD_NUMBER = 9;
- private java.lang.Object userFirstName_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object userFirstName_ = "";
/**
* optional string UserFirstName = 9;
+ * @return Whether the userFirstName field is set.
*/
+ @java.lang.Override
public boolean hasUserFirstName() {
- return ((bitField0_ & 0x00000100) == 0x00000100);
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional string UserFirstName = 9;
+ * @return The userFirstName.
*/
+ @java.lang.Override
public java.lang.String getUserFirstName() {
java.lang.Object ref = userFirstName_;
if (ref instanceof java.lang.String) {
@@ -1060,7 +1076,9 @@ public java.lang.String getUserFirstName() {
}
/**
* optional string UserFirstName = 9;
+ * @return The bytes for userFirstName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getUserFirstNameBytes() {
java.lang.Object ref = userFirstName_;
@@ -1076,16 +1094,21 @@ public java.lang.String getUserFirstName() {
}
public static final int USERMIDDLENAME_FIELD_NUMBER = 10;
- private java.lang.Object userMiddleName_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object userMiddleName_ = "";
/**
* optional string UserMiddleName = 10;
+ * @return Whether the userMiddleName field is set.
*/
+ @java.lang.Override
public boolean hasUserMiddleName() {
- return ((bitField0_ & 0x00000200) == 0x00000200);
+ return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional string UserMiddleName = 10;
+ * @return The userMiddleName.
*/
+ @java.lang.Override
public java.lang.String getUserMiddleName() {
java.lang.Object ref = userMiddleName_;
if (ref instanceof java.lang.String) {
@@ -1102,7 +1125,9 @@ public java.lang.String getUserMiddleName() {
}
/**
* optional string UserMiddleName = 10;
+ * @return The bytes for userMiddleName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getUserMiddleNameBytes() {
java.lang.Object ref = userMiddleName_;
@@ -1118,16 +1143,21 @@ public java.lang.String getUserMiddleName() {
}
public static final int USERLASTNAME_FIELD_NUMBER = 11;
- private java.lang.Object userLastName_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object userLastName_ = "";
/**
* optional string UserLastName = 11;
+ * @return Whether the userLastName field is set.
*/
+ @java.lang.Override
public boolean hasUserLastName() {
- return ((bitField0_ & 0x00000400) == 0x00000400);
+ return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional string UserLastName = 11;
+ * @return The userLastName.
*/
+ @java.lang.Override
public java.lang.String getUserLastName() {
java.lang.Object ref = userLastName_;
if (ref instanceof java.lang.String) {
@@ -1144,7 +1174,9 @@ public java.lang.String getUserLastName() {
}
/**
* optional string UserLastName = 11;
+ * @return The bytes for userLastName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getUserLastNameBytes() {
java.lang.Object ref = userLastName_;
@@ -1160,16 +1192,21 @@ public java.lang.String getUserLastName() {
}
public static final int USERSHORTNAME_FIELD_NUMBER = 12;
- private java.lang.Object userShortName_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object userShortName_ = "";
/**
* optional string UserShortName = 12;
+ * @return Whether the userShortName field is set.
*/
+ @java.lang.Override
public boolean hasUserShortName() {
- return ((bitField0_ & 0x00000800) == 0x00000800);
+ return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional string UserShortName = 12;
+ * @return The userShortName.
*/
+ @java.lang.Override
public java.lang.String getUserShortName() {
java.lang.Object ref = userShortName_;
if (ref instanceof java.lang.String) {
@@ -1186,7 +1223,9 @@ public java.lang.String getUserShortName() {
}
/**
* optional string UserShortName = 12;
+ * @return The bytes for userShortName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getUserShortNameBytes() {
java.lang.Object ref = userShortName_;
@@ -1202,90 +1241,101 @@ public java.lang.String getUserShortName() {
}
public static final int ISDEFAULT_FIELD_NUMBER = 13;
- private boolean isDefault_;
+ private boolean isDefault_ = false;
/**
* optional bool IsDefault = 13;
+ * @return Whether the isDefault field is set.
*/
+ @java.lang.Override
public boolean hasIsDefault() {
- return ((bitField0_ & 0x00001000) == 0x00001000);
+ return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional bool IsDefault = 13;
+ * @return The isDefault.
*/
+ @java.lang.Override
public boolean getIsDefault() {
return isDefault_;
}
public static final int SUBJECTTYPE_FIELD_NUMBER = 14;
- private Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType subjectType_;
+ private int subjectType_ = 0;
/**
* optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType SubjectType = 14;
+ * @return Whether the subjectType field is set.
*/
- public boolean hasSubjectType() {
- return ((bitField0_ & 0x00002000) == 0x00002000);
+ @java.lang.Override public boolean hasSubjectType() {
+ return ((bitField0_ & 0x00002000) != 0);
}
/**
* optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType SubjectType = 14;
+ * @return The subjectType.
*/
- public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType getSubjectType() {
- return 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;
}
public static final int USAGES_FIELD_NUMBER = 15;
- private java.util.Listrepeated .Diadoc.Api.Proto.Certificates.CertificateUsage Usages = 15;
+ * @return A list containing the usages.
*/
+ @java.lang.Override
public java.util.Listrepeated .Diadoc.Api.Proto.Certificates.CertificateUsage Usages = 15;
+ * @return The count of usages.
*/
+ @java.lang.Override
public int getUsagesCount() {
return usages_.size();
}
/**
* repeated .Diadoc.Api.Proto.Certificates.CertificateUsage Usages = 15;
+ * @param index The index of the element to return.
+ * @return The usages at the given index.
*/
+ @java.lang.Override
public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage getUsages(int index) {
- return usages_.get(index);
+ return usages_converter_.convert(usages_.getInt(index));
}
public static final int DSSTYPE_FIELD_NUMBER = 16;
- private Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType dssType_;
+ private int dssType_ = 0;
/**
* optional .Diadoc.Api.Proto.Certificates.DssCertificateType DssType = 16;
+ * @return Whether the dssType field is set.
*/
- public boolean hasDssType() {
- return ((bitField0_ & 0x00004000) == 0x00004000);
+ @java.lang.Override public boolean hasDssType() {
+ return ((bitField0_ & 0x00004000) != 0);
}
/**
* optional .Diadoc.Api.Proto.Certificates.DssCertificateType DssType = 16;
+ * @return The dssType.
*/
- public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType getDssType() {
- return dssType_;
+ @java.lang.Override public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType getDssType() {
+ Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType result = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType.forNumber(dssType_);
+ return result == null ? Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType.UnknownDssType : result;
}
- private void initFields() {
- thumbprint_ = "";
- type_ = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType.Unknown;
- validFrom_ = 0L;
- validTo_ = 0L;
- privateKeyValidFrom_ = 0L;
- privateKeyValidTo_ = 0L;
- organizationName_ = "";
- inn_ = "";
- userFirstName_ = "";
- userMiddleName_ = "";
- userLastName_ = "";
- userShortName_ = "";
- isDefault_ = false;
- subjectType_ = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType;
- usages_ = java.util.Collections.emptyList();
- dssType_ = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType.UnknownDssType;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -1303,147 +1353,312 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getThumbprintBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, thumbprint_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeEnum(2, type_.getNumber());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeEnum(2, type_);
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
output.writeSFixed64(3, validFrom_);
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ if (((bitField0_ & 0x00000008) != 0)) {
output.writeSFixed64(4, validTo_);
}
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ if (((bitField0_ & 0x00000010) != 0)) {
output.writeSFixed64(5, privateKeyValidFrom_);
}
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ if (((bitField0_ & 0x00000020) != 0)) {
output.writeSFixed64(6, privateKeyValidTo_);
}
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
- output.writeBytes(7, getOrganizationNameBytes());
+ if (((bitField0_ & 0x00000040) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 7, organizationName_);
}
- if (((bitField0_ & 0x00000080) == 0x00000080)) {
- output.writeBytes(8, getInnBytes());
+ if (((bitField0_ & 0x00000080) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 8, inn_);
}
- if (((bitField0_ & 0x00000100) == 0x00000100)) {
- output.writeBytes(9, getUserFirstNameBytes());
+ if (((bitField0_ & 0x00000100) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 9, userFirstName_);
}
- if (((bitField0_ & 0x00000200) == 0x00000200)) {
- output.writeBytes(10, getUserMiddleNameBytes());
+ if (((bitField0_ & 0x00000200) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 10, userMiddleName_);
}
- if (((bitField0_ & 0x00000400) == 0x00000400)) {
- output.writeBytes(11, getUserLastNameBytes());
+ if (((bitField0_ & 0x00000400) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 11, userLastName_);
}
- if (((bitField0_ & 0x00000800) == 0x00000800)) {
- output.writeBytes(12, getUserShortNameBytes());
+ if (((bitField0_ & 0x00000800) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 12, userShortName_);
}
- if (((bitField0_ & 0x00001000) == 0x00001000)) {
+ if (((bitField0_ & 0x00001000) != 0)) {
output.writeBool(13, isDefault_);
}
- if (((bitField0_ & 0x00002000) == 0x00002000)) {
- output.writeEnum(14, subjectType_.getNumber());
+ if (((bitField0_ & 0x00002000) != 0)) {
+ output.writeEnum(14, subjectType_);
}
for (int i = 0; i < usages_.size(); i++) {
- output.writeEnum(15, usages_.get(i).getNumber());
+ output.writeEnum(15, usages_.getInt(i));
}
- if (((bitField0_ & 0x00004000) == 0x00004000)) {
- output.writeEnum(16, dssType_.getNumber());
+ if (((bitField0_ & 0x00004000) != 0)) {
+ output.writeEnum(16, dssType_);
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getThumbprintBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, thumbprint_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(2, type_.getNumber());
+ .computeEnumSize(2, type_);
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(3, validFrom_);
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(4, validTo_);
}
- if (((bitField0_ & 0x00000010) == 0x00000010)) {
+ if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(5, privateKeyValidFrom_);
}
- if (((bitField0_ & 0x00000020) == 0x00000020)) {
+ if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(6, privateKeyValidTo_);
}
- if (((bitField0_ & 0x00000040) == 0x00000040)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(7, getOrganizationNameBytes());
+ if (((bitField0_ & 0x00000040) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(7, organizationName_);
}
- if (((bitField0_ & 0x00000080) == 0x00000080)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(8, getInnBytes());
+ if (((bitField0_ & 0x00000080) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(8, inn_);
}
- if (((bitField0_ & 0x00000100) == 0x00000100)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(9, getUserFirstNameBytes());
+ if (((bitField0_ & 0x00000100) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(9, userFirstName_);
}
- if (((bitField0_ & 0x00000200) == 0x00000200)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(10, getUserMiddleNameBytes());
+ if (((bitField0_ & 0x00000200) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(10, userMiddleName_);
}
- if (((bitField0_ & 0x00000400) == 0x00000400)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(11, getUserLastNameBytes());
+ if (((bitField0_ & 0x00000400) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(11, userLastName_);
}
- if (((bitField0_ & 0x00000800) == 0x00000800)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(12, getUserShortNameBytes());
+ if (((bitField0_ & 0x00000800) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(12, userShortName_);
}
- if (((bitField0_ & 0x00001000) == 0x00001000)) {
+ if (((bitField0_ & 0x00001000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(13, isDefault_);
}
- if (((bitField0_ & 0x00002000) == 0x00002000)) {
+ if (((bitField0_ & 0x00002000) != 0)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(14, subjectType_.getNumber());
+ .computeEnumSize(14, subjectType_);
}
{
int dataSize = 0;
for (int i = 0; i < usages_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
- .computeEnumSizeNoTag(usages_.get(i).getNumber());
+ .computeEnumSizeNoTag(usages_.getInt(i));
}
size += dataSize;
size += 1 * usages_.size();
}
- if (((bitField0_ & 0x00004000) == 0x00004000)) {
+ if (((bitField0_ & 0x00004000) != 0)) {
size += com.google.protobuf.CodedOutputStream
- .computeEnumSize(16, dssType_.getNumber());
+ .computeEnumSize(16, dssType_);
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 other = (Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2) obj;
+
+ if (hasThumbprint() != other.hasThumbprint()) return false;
+ if (hasThumbprint()) {
+ if (!getThumbprint()
+ .equals(other.getThumbprint())) return false;
+ }
+ if (hasType() != other.hasType()) return false;
+ if (hasType()) {
+ if (type_ != other.type_) return false;
+ }
+ if (hasValidFrom() != other.hasValidFrom()) return false;
+ if (hasValidFrom()) {
+ if (getValidFrom()
+ != other.getValidFrom()) return false;
+ }
+ if (hasValidTo() != other.hasValidTo()) return false;
+ if (hasValidTo()) {
+ if (getValidTo()
+ != other.getValidTo()) return false;
+ }
+ if (hasPrivateKeyValidFrom() != other.hasPrivateKeyValidFrom()) return false;
+ if (hasPrivateKeyValidFrom()) {
+ if (getPrivateKeyValidFrom()
+ != other.getPrivateKeyValidFrom()) return false;
+ }
+ if (hasPrivateKeyValidTo() != other.hasPrivateKeyValidTo()) return false;
+ if (hasPrivateKeyValidTo()) {
+ if (getPrivateKeyValidTo()
+ != other.getPrivateKeyValidTo()) return false;
+ }
+ if (hasOrganizationName() != other.hasOrganizationName()) return false;
+ if (hasOrganizationName()) {
+ if (!getOrganizationName()
+ .equals(other.getOrganizationName())) return false;
+ }
+ if (hasInn() != other.hasInn()) return false;
+ if (hasInn()) {
+ if (!getInn()
+ .equals(other.getInn())) return false;
+ }
+ if (hasUserFirstName() != other.hasUserFirstName()) return false;
+ if (hasUserFirstName()) {
+ if (!getUserFirstName()
+ .equals(other.getUserFirstName())) return false;
+ }
+ if (hasUserMiddleName() != other.hasUserMiddleName()) return false;
+ if (hasUserMiddleName()) {
+ if (!getUserMiddleName()
+ .equals(other.getUserMiddleName())) return false;
+ }
+ if (hasUserLastName() != other.hasUserLastName()) return false;
+ if (hasUserLastName()) {
+ if (!getUserLastName()
+ .equals(other.getUserLastName())) return false;
+ }
+ if (hasUserShortName() != other.hasUserShortName()) return false;
+ if (hasUserShortName()) {
+ if (!getUserShortName()
+ .equals(other.getUserShortName())) return false;
+ }
+ if (hasIsDefault() != other.hasIsDefault()) return false;
+ if (hasIsDefault()) {
+ if (getIsDefault()
+ != other.getIsDefault()) return false;
+ }
+ if (hasSubjectType() != other.hasSubjectType()) return false;
+ if (hasSubjectType()) {
+ if (subjectType_ != other.subjectType_) return false;
+ }
+ if (!usages_.equals(other.usages_)) return false;
+ if (hasDssType() != other.hasDssType()) return false;
+ if (hasDssType()) {
+ if (dssType_ != other.dssType_) 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 (hasThumbprint()) {
+ hash = (37 * hash) + THUMBPRINT_FIELD_NUMBER;
+ hash = (53 * hash) + getThumbprint().hashCode();
+ }
+ if (hasType()) {
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + type_;
+ }
+ if (hasValidFrom()) {
+ hash = (37 * hash) + VALIDFROM_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getValidFrom());
+ }
+ if (hasValidTo()) {
+ hash = (37 * hash) + VALIDTO_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getValidTo());
+ }
+ if (hasPrivateKeyValidFrom()) {
+ hash = (37 * hash) + PRIVATEKEYVALIDFROM_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getPrivateKeyValidFrom());
+ }
+ if (hasPrivateKeyValidTo()) {
+ hash = (37 * hash) + PRIVATEKEYVALIDTO_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getPrivateKeyValidTo());
+ }
+ if (hasOrganizationName()) {
+ hash = (37 * hash) + ORGANIZATIONNAME_FIELD_NUMBER;
+ hash = (53 * hash) + getOrganizationName().hashCode();
+ }
+ if (hasInn()) {
+ hash = (37 * hash) + INN_FIELD_NUMBER;
+ hash = (53 * hash) + getInn().hashCode();
+ }
+ if (hasUserFirstName()) {
+ hash = (37 * hash) + USERFIRSTNAME_FIELD_NUMBER;
+ hash = (53 * hash) + getUserFirstName().hashCode();
+ }
+ if (hasUserMiddleName()) {
+ hash = (37 * hash) + USERMIDDLENAME_FIELD_NUMBER;
+ hash = (53 * hash) + getUserMiddleName().hashCode();
+ }
+ if (hasUserLastName()) {
+ hash = (37 * hash) + USERLASTNAME_FIELD_NUMBER;
+ hash = (53 * hash) + getUserLastName().hashCode();
+ }
+ if (hasUserShortName()) {
+ hash = (37 * hash) + USERSHORTNAME_FIELD_NUMBER;
+ hash = (53 * hash) + getUserShortName().hashCode();
+ }
+ if (hasIsDefault()) {
+ hash = (37 * hash) + ISDEFAULT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIsDefault());
+ }
+ if (hasSubjectType()) {
+ hash = (37 * hash) + SUBJECTTYPE_FIELD_NUMBER;
+ hash = (53 * hash) + subjectType_;
+ }
+ if (getUsagesCount() > 0) {
+ hash = (37 * hash) + USAGES_FIELD_NUMBER;
+ hash = (53 * hash) + usages_.hashCode();
+ }
+ if (hasDssType()) {
+ hash = (37 * hash) + DSSTYPE_FIELD_NUMBER;
+ hash = (53 * hash) + dssType_;
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
+ public static Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 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.CertificateInfoV2Protos.CertificateInfoV2 parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1467,42 +1682,57 @@ public static Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateI
}
public static Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -1522,6 +1752,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.internal_static_Diadoc_Api_Proto_Certificates_CertificateInfoV2_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.internal_static_Diadoc_Api_Proto_Certificates_CertificateInfoV2_fieldAccessorTable
@@ -1531,72 +1762,50 @@ public static final class Builder extends
// Construct using Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2.newBuilder()
private Builder() {
- maybeForceBuilderInitialization();
+
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- private static Builder create() {
- return new Builder();
- }
+ }
+ @java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
thumbprint_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
- type_ = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType.Unknown;
- bitField0_ = (bitField0_ & ~0x00000002);
+ type_ = 0;
validFrom_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000004);
validTo_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000008);
privateKeyValidFrom_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000010);
privateKeyValidTo_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000020);
organizationName_ = "";
- bitField0_ = (bitField0_ & ~0x00000040);
inn_ = "";
- bitField0_ = (bitField0_ & ~0x00000080);
userFirstName_ = "";
- bitField0_ = (bitField0_ & ~0x00000100);
userMiddleName_ = "";
- bitField0_ = (bitField0_ & ~0x00000200);
userLastName_ = "";
- bitField0_ = (bitField0_ & ~0x00000400);
userShortName_ = "";
- bitField0_ = (bitField0_ & ~0x00000800);
isDefault_ = false;
- bitField0_ = (bitField0_ & ~0x00001000);
- subjectType_ = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType;
- bitField0_ = (bitField0_ & ~0x00002000);
- usages_ = java.util.Collections.emptyList();
+ subjectType_ = 0;
+ usages_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00004000);
- dssType_ = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType.UnknownDssType;
- bitField0_ = (bitField0_ & ~0x00008000);
+ dssType_ = 0;
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.internal_static_Diadoc_Api_Proto_Certificates_CertificateInfoV2_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 getDefaultInstanceForType() {
return Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 build() {
Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 result = buildPartial();
if (!result.isInitialized()) {
@@ -1605,80 +1814,90 @@ public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 b
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 buildPartial() {
Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 result = new Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2(this);
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 result) {
+ if (((bitField0_ & 0x00004000) != 0)) {
+ usages_.makeImmutable();
+ bitField0_ = (bitField0_ & ~0x00004000);
+ }
+ result.usages_ = usages_;
+ }
+
+ private void buildPartial0(Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.thumbprint_ = thumbprint_;
to_bitField0_ |= 0x00000001;
}
- result.thumbprint_ = thumbprint_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.type_ = type_;
to_bitField0_ |= 0x00000002;
}
- result.type_ = type_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.validFrom_ = validFrom_;
to_bitField0_ |= 0x00000004;
}
- result.validFrom_ = validFrom_;
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.validTo_ = validTo_;
to_bitField0_ |= 0x00000008;
}
- result.validTo_ = validTo_;
- if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
+ if (((from_bitField0_ & 0x00000010) != 0)) {
+ result.privateKeyValidFrom_ = privateKeyValidFrom_;
to_bitField0_ |= 0x00000010;
}
- result.privateKeyValidFrom_ = privateKeyValidFrom_;
- if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
+ if (((from_bitField0_ & 0x00000020) != 0)) {
+ result.privateKeyValidTo_ = privateKeyValidTo_;
to_bitField0_ |= 0x00000020;
}
- result.privateKeyValidTo_ = privateKeyValidTo_;
- if (((from_bitField0_ & 0x00000040) == 0x00000040)) {
+ if (((from_bitField0_ & 0x00000040) != 0)) {
+ result.organizationName_ = organizationName_;
to_bitField0_ |= 0x00000040;
}
- result.organizationName_ = organizationName_;
- if (((from_bitField0_ & 0x00000080) == 0x00000080)) {
+ if (((from_bitField0_ & 0x00000080) != 0)) {
+ result.inn_ = inn_;
to_bitField0_ |= 0x00000080;
}
- result.inn_ = inn_;
- if (((from_bitField0_ & 0x00000100) == 0x00000100)) {
+ if (((from_bitField0_ & 0x00000100) != 0)) {
+ result.userFirstName_ = userFirstName_;
to_bitField0_ |= 0x00000100;
}
- result.userFirstName_ = userFirstName_;
- if (((from_bitField0_ & 0x00000200) == 0x00000200)) {
+ if (((from_bitField0_ & 0x00000200) != 0)) {
+ result.userMiddleName_ = userMiddleName_;
to_bitField0_ |= 0x00000200;
}
- result.userMiddleName_ = userMiddleName_;
- if (((from_bitField0_ & 0x00000400) == 0x00000400)) {
+ if (((from_bitField0_ & 0x00000400) != 0)) {
+ result.userLastName_ = userLastName_;
to_bitField0_ |= 0x00000400;
}
- result.userLastName_ = userLastName_;
- if (((from_bitField0_ & 0x00000800) == 0x00000800)) {
+ if (((from_bitField0_ & 0x00000800) != 0)) {
+ result.userShortName_ = userShortName_;
to_bitField0_ |= 0x00000800;
}
- result.userShortName_ = userShortName_;
- if (((from_bitField0_ & 0x00001000) == 0x00001000)) {
+ if (((from_bitField0_ & 0x00001000) != 0)) {
+ result.isDefault_ = isDefault_;
to_bitField0_ |= 0x00001000;
}
- result.isDefault_ = isDefault_;
- if (((from_bitField0_ & 0x00002000) == 0x00002000)) {
+ if (((from_bitField0_ & 0x00002000) != 0)) {
+ result.subjectType_ = subjectType_;
to_bitField0_ |= 0x00002000;
}
- result.subjectType_ = subjectType_;
- if (((bitField0_ & 0x00004000) == 0x00004000)) {
- usages_ = java.util.Collections.unmodifiableList(usages_);
- bitField0_ = (bitField0_ & ~0x00004000);
- }
- result.usages_ = usages_;
- if (((from_bitField0_ & 0x00008000) == 0x00008000)) {
+ if (((from_bitField0_ & 0x00008000) != 0)) {
+ result.dssType_ = dssType_;
to_bitField0_ |= 0x00004000;
}
- result.dssType_ = dssType_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
+ result.bitField0_ |= to_bitField0_;
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2) {
return mergeFrom((Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2)other);
@@ -1691,8 +1910,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 other) {
if (other == Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2.getDefaultInstance()) return this;
if (other.hasThumbprint()) {
- bitField0_ |= 0x00000001;
thumbprint_ = other.thumbprint_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasType()) {
@@ -1711,33 +1930,33 @@ public Builder mergeFrom(Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.C
setPrivateKeyValidTo(other.getPrivateKeyValidTo());
}
if (other.hasOrganizationName()) {
- bitField0_ |= 0x00000040;
organizationName_ = other.organizationName_;
+ bitField0_ |= 0x00000040;
onChanged();
}
if (other.hasInn()) {
- bitField0_ |= 0x00000080;
inn_ = other.inn_;
+ bitField0_ |= 0x00000080;
onChanged();
}
if (other.hasUserFirstName()) {
- bitField0_ |= 0x00000100;
userFirstName_ = other.userFirstName_;
+ bitField0_ |= 0x00000100;
onChanged();
}
if (other.hasUserMiddleName()) {
- bitField0_ |= 0x00000200;
userMiddleName_ = other.userMiddleName_;
+ bitField0_ |= 0x00000200;
onChanged();
}
if (other.hasUserLastName()) {
- bitField0_ |= 0x00000400;
userLastName_ = other.userLastName_;
+ bitField0_ |= 0x00000400;
onChanged();
}
if (other.hasUserShortName()) {
- bitField0_ |= 0x00000800;
userShortName_ = other.userShortName_;
+ bitField0_ |= 0x00000800;
onChanged();
}
if (other.hasIsDefault()) {
@@ -1760,36 +1979,175 @@ public Builder mergeFrom(Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.C
setDssType(other.getDssType());
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
if (!hasThumbprint()) {
-
return false;
}
if (!hasType()) {
-
return false;
}
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ thumbprint_ = input.readBytes();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 16: {
+ int tmpRaw = input.readEnum();
+ Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType tmpValue =
+ Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType.forNumber(tmpRaw);
+ if (tmpValue == null) {
+ mergeUnknownVarintField(2, tmpRaw);
+ } else {
+ type_ = tmpRaw;
+ bitField0_ |= 0x00000002;
+ }
+ break;
+ } // case 16
+ case 25: {
+ validFrom_ = input.readSFixed64();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 25
+ case 33: {
+ validTo_ = input.readSFixed64();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 33
+ case 41: {
+ privateKeyValidFrom_ = input.readSFixed64();
+ bitField0_ |= 0x00000010;
+ break;
+ } // case 41
+ case 49: {
+ privateKeyValidTo_ = input.readSFixed64();
+ bitField0_ |= 0x00000020;
+ break;
+ } // case 49
+ case 58: {
+ organizationName_ = input.readBytes();
+ bitField0_ |= 0x00000040;
+ break;
+ } // case 58
+ case 66: {
+ inn_ = input.readBytes();
+ bitField0_ |= 0x00000080;
+ break;
+ } // case 66
+ case 74: {
+ userFirstName_ = input.readBytes();
+ bitField0_ |= 0x00000100;
+ break;
+ } // case 74
+ case 82: {
+ userMiddleName_ = input.readBytes();
+ bitField0_ |= 0x00000200;
+ break;
+ } // case 82
+ case 90: {
+ userLastName_ = input.readBytes();
+ bitField0_ |= 0x00000400;
+ break;
+ } // case 90
+ case 98: {
+ userShortName_ = input.readBytes();
+ bitField0_ |= 0x00000800;
+ break;
+ } // case 98
+ case 104: {
+ isDefault_ = input.readBool();
+ bitField0_ |= 0x00001000;
+ break;
+ } // case 104
+ case 112: {
+ int tmpRaw = input.readEnum();
+ Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType tmpValue =
+ Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType.forNumber(tmpRaw);
+ if (tmpValue == null) {
+ mergeUnknownVarintField(14, tmpRaw);
+ } else {
+ subjectType_ = tmpRaw;
+ bitField0_ |= 0x00002000;
+ }
+ break;
+ } // case 112
+ case 120: {
+ int tmpRaw = input.readEnum();
+ Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage tmpValue =
+ Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage.forNumber(tmpRaw);
+ if (tmpValue == null) {
+ mergeUnknownVarintField(15, tmpRaw);
+ } else {
+ ensureUsagesIsMutable();
+ usages_.addInt(tmpRaw);
+ }
+ break;
+ } // case 120
+ case 122: {
+ int length = input.readRawVarint32();
+ int oldLimit = input.pushLimit(length);
+ while(input.getBytesUntilLimit() > 0) {
+ int tmpRaw = input.readEnum();
+ Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage tmpValue =
+ Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage.forNumber(tmpRaw);
+ if (tmpValue == null) {
+ mergeUnknownVarintField(15, tmpRaw);
+ } else {
+ ensureUsagesIsMutable();
+ usages_.addInt(tmpRaw);
+ }
+ }
+ input.popLimit(oldLimit);
+ break;
+ } // case 122
+ case 128: {
+ int tmpRaw = input.readEnum();
+ Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType tmpValue =
+ Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType.forNumber(tmpRaw);
+ if (tmpValue == null) {
+ mergeUnknownVarintField(16, tmpRaw);
+ } else {
+ dssType_ = tmpRaw;
+ bitField0_ |= 0x00008000;
+ }
+ break;
+ } // case 128
+ 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) {
- parsedMessage = (Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
@@ -1797,12 +2155,14 @@ public Builder mergeFrom(
private java.lang.Object thumbprint_ = "";
/**
* required string Thumbprint = 1;
+ * @return Whether the thumbprint field is set.
*/
public boolean hasThumbprint() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string Thumbprint = 1;
+ * @return The thumbprint.
*/
public java.lang.String getThumbprint() {
java.lang.Object ref = thumbprint_;
@@ -1820,6 +2180,7 @@ public java.lang.String getThumbprint() {
}
/**
* required string Thumbprint = 1;
+ * @return The bytes for thumbprint.
*/
public com.google.protobuf.ByteString
getThumbprintBytes() {
@@ -1836,71 +2197,79 @@ public java.lang.String getThumbprint() {
}
/**
* required string Thumbprint = 1;
+ * @param value The thumbprint to set.
+ * @return This builder for chaining.
*/
public Builder setThumbprint(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
thumbprint_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required string Thumbprint = 1;
+ * @return This builder for chaining.
*/
public Builder clearThumbprint() {
- bitField0_ = (bitField0_ & ~0x00000001);
thumbprint_ = getDefaultInstance().getThumbprint();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* required string Thumbprint = 1;
+ * @param value The bytes for thumbprint to set.
+ * @return This builder for chaining.
*/
public Builder setThumbprintBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
thumbprint_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
- private Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType type_ = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType.Unknown;
+ private int type_ = 0;
/**
* required .Diadoc.Api.Proto.Certificates.CertificateType Type = 2;
+ * @return Whether the type field is set.
*/
- public boolean hasType() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ @java.lang.Override public boolean hasType() {
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required .Diadoc.Api.Proto.Certificates.CertificateType Type = 2;
+ * @return The type.
*/
+ @java.lang.Override
public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType getType() {
- return type_;
+ Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType result = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType.forNumber(type_);
+ return result == null ? Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType.Unknown : result;
}
/**
* required .Diadoc.Api.Proto.Certificates.CertificateType Type = 2;
+ * @param value The type to set.
+ * @return This builder for chaining.
*/
public Builder setType(Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
- type_ = value;
+ type_ = value.getNumber();
onChanged();
return this;
}
/**
* required .Diadoc.Api.Proto.Certificates.CertificateType Type = 2;
+ * @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000002);
- type_ = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateType.Unknown;
+ type_ = 0;
onChanged();
return this;
}
@@ -1908,27 +2277,35 @@ public Builder clearType() {
private long validFrom_ ;
/**
* optional sfixed64 ValidFrom = 3;
+ * @return Whether the validFrom field is set.
*/
+ @java.lang.Override
public boolean hasValidFrom() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional sfixed64 ValidFrom = 3;
+ * @return The validFrom.
*/
+ @java.lang.Override
public long getValidFrom() {
return validFrom_;
}
/**
* optional sfixed64 ValidFrom = 3;
+ * @param value The validFrom to set.
+ * @return This builder for chaining.
*/
public Builder setValidFrom(long value) {
- bitField0_ |= 0x00000004;
+
validFrom_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional sfixed64 ValidFrom = 3;
+ * @return This builder for chaining.
*/
public Builder clearValidFrom() {
bitField0_ = (bitField0_ & ~0x00000004);
@@ -1940,27 +2317,35 @@ public Builder clearValidFrom() {
private long validTo_ ;
/**
* optional sfixed64 ValidTo = 4;
+ * @return Whether the validTo field is set.
*/
+ @java.lang.Override
public boolean hasValidTo() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional sfixed64 ValidTo = 4;
+ * @return The validTo.
*/
+ @java.lang.Override
public long getValidTo() {
return validTo_;
}
/**
* optional sfixed64 ValidTo = 4;
+ * @param value The validTo to set.
+ * @return This builder for chaining.
*/
public Builder setValidTo(long value) {
- bitField0_ |= 0x00000008;
+
validTo_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional sfixed64 ValidTo = 4;
+ * @return This builder for chaining.
*/
public Builder clearValidTo() {
bitField0_ = (bitField0_ & ~0x00000008);
@@ -1972,27 +2357,35 @@ public Builder clearValidTo() {
private long privateKeyValidFrom_ ;
/**
* optional sfixed64 PrivateKeyValidFrom = 5;
+ * @return Whether the privateKeyValidFrom field is set.
*/
+ @java.lang.Override
public boolean hasPrivateKeyValidFrom() {
- return ((bitField0_ & 0x00000010) == 0x00000010);
+ return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional sfixed64 PrivateKeyValidFrom = 5;
+ * @return The privateKeyValidFrom.
*/
+ @java.lang.Override
public long getPrivateKeyValidFrom() {
return privateKeyValidFrom_;
}
/**
* optional sfixed64 PrivateKeyValidFrom = 5;
+ * @param value The privateKeyValidFrom to set.
+ * @return This builder for chaining.
*/
public Builder setPrivateKeyValidFrom(long value) {
- bitField0_ |= 0x00000010;
+
privateKeyValidFrom_ = value;
+ bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
* optional sfixed64 PrivateKeyValidFrom = 5;
+ * @return This builder for chaining.
*/
public Builder clearPrivateKeyValidFrom() {
bitField0_ = (bitField0_ & ~0x00000010);
@@ -2004,27 +2397,35 @@ public Builder clearPrivateKeyValidFrom() {
private long privateKeyValidTo_ ;
/**
* optional sfixed64 PrivateKeyValidTo = 6;
+ * @return Whether the privateKeyValidTo field is set.
*/
+ @java.lang.Override
public boolean hasPrivateKeyValidTo() {
- return ((bitField0_ & 0x00000020) == 0x00000020);
+ return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional sfixed64 PrivateKeyValidTo = 6;
+ * @return The privateKeyValidTo.
*/
+ @java.lang.Override
public long getPrivateKeyValidTo() {
return privateKeyValidTo_;
}
/**
* optional sfixed64 PrivateKeyValidTo = 6;
+ * @param value The privateKeyValidTo to set.
+ * @return This builder for chaining.
*/
public Builder setPrivateKeyValidTo(long value) {
- bitField0_ |= 0x00000020;
+
privateKeyValidTo_ = value;
+ bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
* optional sfixed64 PrivateKeyValidTo = 6;
+ * @return This builder for chaining.
*/
public Builder clearPrivateKeyValidTo() {
bitField0_ = (bitField0_ & ~0x00000020);
@@ -2036,12 +2437,14 @@ public Builder clearPrivateKeyValidTo() {
private java.lang.Object organizationName_ = "";
/**
* optional string OrganizationName = 7;
+ * @return Whether the organizationName field is set.
*/
public boolean hasOrganizationName() {
- return ((bitField0_ & 0x00000040) == 0x00000040);
+ return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string OrganizationName = 7;
+ * @return The organizationName.
*/
public java.lang.String getOrganizationName() {
java.lang.Object ref = organizationName_;
@@ -2059,6 +2462,7 @@ public java.lang.String getOrganizationName() {
}
/**
* optional string OrganizationName = 7;
+ * @return The bytes for organizationName.
*/
public com.google.protobuf.ByteString
getOrganizationNameBytes() {
@@ -2075,36 +2479,37 @@ public java.lang.String getOrganizationName() {
}
/**
* optional string OrganizationName = 7;
+ * @param value The organizationName to set.
+ * @return This builder for chaining.
*/
public Builder setOrganizationName(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000040;
+ if (value == null) { throw new NullPointerException(); }
organizationName_ = value;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
* optional string OrganizationName = 7;
+ * @return This builder for chaining.
*/
public Builder clearOrganizationName() {
- bitField0_ = (bitField0_ & ~0x00000040);
organizationName_ = getDefaultInstance().getOrganizationName();
+ bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
* optional string OrganizationName = 7;
+ * @param value The bytes for organizationName to set.
+ * @return This builder for chaining.
*/
public Builder setOrganizationNameBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000040;
+ if (value == null) { throw new NullPointerException(); }
organizationName_ = value;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -2112,12 +2517,14 @@ public Builder setOrganizationNameBytes(
private java.lang.Object inn_ = "";
/**
* optional string Inn = 8;
+ * @return Whether the inn field is set.
*/
public boolean hasInn() {
- return ((bitField0_ & 0x00000080) == 0x00000080);
+ return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string Inn = 8;
+ * @return The inn.
*/
public java.lang.String getInn() {
java.lang.Object ref = inn_;
@@ -2135,6 +2542,7 @@ public java.lang.String getInn() {
}
/**
* optional string Inn = 8;
+ * @return The bytes for inn.
*/
public com.google.protobuf.ByteString
getInnBytes() {
@@ -2151,36 +2559,37 @@ public java.lang.String getInn() {
}
/**
* optional string Inn = 8;
+ * @param value The inn to set.
+ * @return This builder for chaining.
*/
public Builder setInn(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000080;
+ if (value == null) { throw new NullPointerException(); }
inn_ = value;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
* optional string Inn = 8;
+ * @return This builder for chaining.
*/
public Builder clearInn() {
- bitField0_ = (bitField0_ & ~0x00000080);
inn_ = getDefaultInstance().getInn();
+ bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
/**
* optional string Inn = 8;
+ * @param value The bytes for inn to set.
+ * @return This builder for chaining.
*/
public Builder setInnBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000080;
+ if (value == null) { throw new NullPointerException(); }
inn_ = value;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -2188,12 +2597,14 @@ public Builder setInnBytes(
private java.lang.Object userFirstName_ = "";
/**
* optional string UserFirstName = 9;
+ * @return Whether the userFirstName field is set.
*/
public boolean hasUserFirstName() {
- return ((bitField0_ & 0x00000100) == 0x00000100);
+ return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional string UserFirstName = 9;
+ * @return The userFirstName.
*/
public java.lang.String getUserFirstName() {
java.lang.Object ref = userFirstName_;
@@ -2211,6 +2622,7 @@ public java.lang.String getUserFirstName() {
}
/**
* optional string UserFirstName = 9;
+ * @return The bytes for userFirstName.
*/
public com.google.protobuf.ByteString
getUserFirstNameBytes() {
@@ -2227,36 +2639,37 @@ public java.lang.String getUserFirstName() {
}
/**
* optional string UserFirstName = 9;
+ * @param value The userFirstName to set.
+ * @return This builder for chaining.
*/
public Builder setUserFirstName(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000100;
+ if (value == null) { throw new NullPointerException(); }
userFirstName_ = value;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
* optional string UserFirstName = 9;
+ * @return This builder for chaining.
*/
public Builder clearUserFirstName() {
- bitField0_ = (bitField0_ & ~0x00000100);
userFirstName_ = getDefaultInstance().getUserFirstName();
+ bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
return this;
}
/**
* optional string UserFirstName = 9;
+ * @param value The bytes for userFirstName to set.
+ * @return This builder for chaining.
*/
public Builder setUserFirstNameBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000100;
+ if (value == null) { throw new NullPointerException(); }
userFirstName_ = value;
+ bitField0_ |= 0x00000100;
onChanged();
return this;
}
@@ -2264,12 +2677,14 @@ public Builder setUserFirstNameBytes(
private java.lang.Object userMiddleName_ = "";
/**
* optional string UserMiddleName = 10;
+ * @return Whether the userMiddleName field is set.
*/
public boolean hasUserMiddleName() {
- return ((bitField0_ & 0x00000200) == 0x00000200);
+ return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional string UserMiddleName = 10;
+ * @return The userMiddleName.
*/
public java.lang.String getUserMiddleName() {
java.lang.Object ref = userMiddleName_;
@@ -2287,6 +2702,7 @@ public java.lang.String getUserMiddleName() {
}
/**
* optional string UserMiddleName = 10;
+ * @return The bytes for userMiddleName.
*/
public com.google.protobuf.ByteString
getUserMiddleNameBytes() {
@@ -2303,36 +2719,37 @@ public java.lang.String getUserMiddleName() {
}
/**
* optional string UserMiddleName = 10;
+ * @param value The userMiddleName to set.
+ * @return This builder for chaining.
*/
public Builder setUserMiddleName(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000200;
+ if (value == null) { throw new NullPointerException(); }
userMiddleName_ = value;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
* optional string UserMiddleName = 10;
+ * @return This builder for chaining.
*/
public Builder clearUserMiddleName() {
- bitField0_ = (bitField0_ & ~0x00000200);
userMiddleName_ = getDefaultInstance().getUserMiddleName();
+ bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
* optional string UserMiddleName = 10;
+ * @param value The bytes for userMiddleName to set.
+ * @return This builder for chaining.
*/
public Builder setUserMiddleNameBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000200;
+ if (value == null) { throw new NullPointerException(); }
userMiddleName_ = value;
+ bitField0_ |= 0x00000200;
onChanged();
return this;
}
@@ -2340,12 +2757,14 @@ public Builder setUserMiddleNameBytes(
private java.lang.Object userLastName_ = "";
/**
* optional string UserLastName = 11;
+ * @return Whether the userLastName field is set.
*/
public boolean hasUserLastName() {
- return ((bitField0_ & 0x00000400) == 0x00000400);
+ return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional string UserLastName = 11;
+ * @return The userLastName.
*/
public java.lang.String getUserLastName() {
java.lang.Object ref = userLastName_;
@@ -2363,6 +2782,7 @@ public java.lang.String getUserLastName() {
}
/**
* optional string UserLastName = 11;
+ * @return The bytes for userLastName.
*/
public com.google.protobuf.ByteString
getUserLastNameBytes() {
@@ -2379,36 +2799,37 @@ public java.lang.String getUserLastName() {
}
/**
* optional string UserLastName = 11;
+ * @param value The userLastName to set.
+ * @return This builder for chaining.
*/
public Builder setUserLastName(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000400;
+ if (value == null) { throw new NullPointerException(); }
userLastName_ = value;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
* optional string UserLastName = 11;
+ * @return This builder for chaining.
*/
public Builder clearUserLastName() {
- bitField0_ = (bitField0_ & ~0x00000400);
userLastName_ = getDefaultInstance().getUserLastName();
+ bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
/**
* optional string UserLastName = 11;
+ * @param value The bytes for userLastName to set.
+ * @return This builder for chaining.
*/
public Builder setUserLastNameBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000400;
+ if (value == null) { throw new NullPointerException(); }
userLastName_ = value;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -2416,12 +2837,14 @@ public Builder setUserLastNameBytes(
private java.lang.Object userShortName_ = "";
/**
* optional string UserShortName = 12;
+ * @return Whether the userShortName field is set.
*/
public boolean hasUserShortName() {
- return ((bitField0_ & 0x00000800) == 0x00000800);
+ return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional string UserShortName = 12;
+ * @return The userShortName.
*/
public java.lang.String getUserShortName() {
java.lang.Object ref = userShortName_;
@@ -2439,6 +2862,7 @@ public java.lang.String getUserShortName() {
}
/**
* optional string UserShortName = 12;
+ * @return The bytes for userShortName.
*/
public com.google.protobuf.ByteString
getUserShortNameBytes() {
@@ -2455,36 +2879,37 @@ public java.lang.String getUserShortName() {
}
/**
* optional string UserShortName = 12;
+ * @param value The userShortName to set.
+ * @return This builder for chaining.
*/
public Builder setUserShortName(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000800;
+ if (value == null) { throw new NullPointerException(); }
userShortName_ = value;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
* optional string UserShortName = 12;
+ * @return This builder for chaining.
*/
public Builder clearUserShortName() {
- bitField0_ = (bitField0_ & ~0x00000800);
userShortName_ = getDefaultInstance().getUserShortName();
+ bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
return this;
}
/**
* optional string UserShortName = 12;
+ * @param value The bytes for userShortName to set.
+ * @return This builder for chaining.
*/
public Builder setUserShortNameBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000800;
+ if (value == null) { throw new NullPointerException(); }
userShortName_ = value;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
@@ -2492,27 +2917,35 @@ public Builder setUserShortNameBytes(
private boolean isDefault_ ;
/**
* optional bool IsDefault = 13;
+ * @return Whether the isDefault field is set.
*/
+ @java.lang.Override
public boolean hasIsDefault() {
- return ((bitField0_ & 0x00001000) == 0x00001000);
+ return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional bool IsDefault = 13;
+ * @return The isDefault.
*/
+ @java.lang.Override
public boolean getIsDefault() {
return isDefault_;
}
/**
* optional bool IsDefault = 13;
+ * @param value The isDefault to set.
+ * @return This builder for chaining.
*/
public Builder setIsDefault(boolean value) {
- bitField0_ |= 0x00001000;
+
isDefault_ = value;
+ bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
* optional bool IsDefault = 13;
+ * @return This builder for chaining.
*/
public Builder clearIsDefault() {
bitField0_ = (bitField0_ & ~0x00001000);
@@ -2521,69 +2954,84 @@ public Builder clearIsDefault() {
return this;
}
- private Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType subjectType_ = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType;
+ private int subjectType_ = 0;
/**
* optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType SubjectType = 14;
+ * @return Whether the subjectType field is set.
*/
- public boolean hasSubjectType() {
- return ((bitField0_ & 0x00002000) == 0x00002000);
+ @java.lang.Override public boolean hasSubjectType() {
+ return ((bitField0_ & 0x00002000) != 0);
}
/**
* optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType SubjectType = 14;
+ * @return The subjectType.
*/
+ @java.lang.Override
public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType getSubjectType() {
- return subjectType_;
+ 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 = 14;
+ * @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_ |= 0x00002000;
- subjectType_ = value;
+ subjectType_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .Diadoc.Api.Proto.Certificates.CertificateSubjectType SubjectType = 14;
+ * @return This builder for chaining.
*/
public Builder clearSubjectType() {
bitField0_ = (bitField0_ & ~0x00002000);
- subjectType_ = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateSubjectType.UnknownCertificateSubjectType;
+ subjectType_ = 0;
onChanged();
return this;
}
- private java.util.Listrepeated .Diadoc.Api.Proto.Certificates.CertificateUsage Usages = 15;
+ * @return A list containing the usages.
*/
public java.util.Listrepeated .Diadoc.Api.Proto.Certificates.CertificateUsage Usages = 15;
+ * @return The count of usages.
*/
public int getUsagesCount() {
return usages_.size();
}
/**
* repeated .Diadoc.Api.Proto.Certificates.CertificateUsage Usages = 15;
+ * @param index The index of the element to return.
+ * @return The usages at the given index.
*/
public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage getUsages(int index) {
- return usages_.get(index);
+ return usages_converter_.convert(usages_.getInt(index));
}
/**
* repeated .Diadoc.Api.Proto.Certificates.CertificateUsage Usages = 15;
+ * @param index The index to set the value at.
+ * @param value The usages to set.
+ * @return This builder for chaining.
*/
public Builder setUsages(
int index, Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage value) {
@@ -2591,74 +3039,87 @@ public Builder setUsages(
throw new NullPointerException();
}
ensureUsagesIsMutable();
- usages_.set(index, value);
+ usages_.setInt(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .Diadoc.Api.Proto.Certificates.CertificateUsage Usages = 15;
+ * @param value The usages to add.
+ * @return This builder for chaining.
*/
public Builder addUsages(Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage value) {
if (value == null) {
throw new NullPointerException();
}
ensureUsagesIsMutable();
- usages_.add(value);
+ usages_.addInt(value.getNumber());
onChanged();
return this;
}
/**
* repeated .Diadoc.Api.Proto.Certificates.CertificateUsage Usages = 15;
+ * @param values The usages to add.
+ * @return This builder for chaining.
*/
public Builder addAllUsages(
java.lang.Iterable extends Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage> values) {
ensureUsagesIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, usages_);
+ for (Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateUsage value : values) {
+ usages_.addInt(value.getNumber());
+ }
onChanged();
return this;
}
/**
* repeated .Diadoc.Api.Proto.Certificates.CertificateUsage Usages = 15;
+ * @return This builder for chaining.
*/
public Builder clearUsages() {
- usages_ = java.util.Collections.emptyList();
+ usages_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
return this;
}
- private Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType dssType_ = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType.UnknownDssType;
+ private int dssType_ = 0;
/**
* optional .Diadoc.Api.Proto.Certificates.DssCertificateType DssType = 16;
+ * @return Whether the dssType field is set.
*/
- public boolean hasDssType() {
- return ((bitField0_ & 0x00008000) == 0x00008000);
+ @java.lang.Override public boolean hasDssType() {
+ return ((bitField0_ & 0x00008000) != 0);
}
/**
* optional .Diadoc.Api.Proto.Certificates.DssCertificateType DssType = 16;
+ * @return The dssType.
*/
+ @java.lang.Override
public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType getDssType() {
- return dssType_;
+ Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType result = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType.forNumber(dssType_);
+ return result == null ? Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType.UnknownDssType : result;
}
/**
* optional .Diadoc.Api.Proto.Certificates.DssCertificateType DssType = 16;
+ * @param value The dssType to set.
+ * @return This builder for chaining.
*/
public Builder setDssType(Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00008000;
- dssType_ = value;
+ dssType_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .Diadoc.Api.Proto.Certificates.DssCertificateType DssType = 16;
+ * @return This builder for chaining.
*/
public Builder clearDssType() {
bitField0_ = (bitField0_ & ~0x00008000);
- dssType_ = Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.DssCertificateType.UnknownDssType;
+ dssType_ = 0;
onChanged();
return this;
}
@@ -2666,17 +3127,57 @@ public Builder clearDssType() {
// @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Certificates.CertificateInfoV2)
}
+ // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Certificates.CertificateInfoV2)
+ private static final Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 DEFAULT_INSTANCE;
static {
- defaultInstance = new CertificateInfoV2(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2();
+ }
+
+ public static Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserrepeated .Diadoc.Api.Proto.Certificates.CertificateInfoV2 Certificates = 1;
*/
+ @java.lang.Override
public java.util.Listrepeated .Diadoc.Api.Proto.Certificates.CertificateInfoV2 Certificates = 1;
*/
+ @java.lang.Override
public java.util.List extends Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2OrBuilder>
getCertificatesOrBuilderList() {
return certificates_;
@@ -156,27 +112,28 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Certificates.CertificateInfoV2 Certificates = 1;
*/
+ @java.lang.Override
public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 getCertificates(int index) {
return certificates_.get(index);
}
/**
* repeated .Diadoc.Api.Proto.Certificates.CertificateInfoV2 Certificates = 1;
*/
+ @java.lang.Override
public Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2OrBuilder getCertificatesOrBuilder(
int index) {
return certificates_.get(index);
}
- private void initFields() {
- certificates_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -192,18 +149,18 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
for (int i = 0; i < certificates_.size(); i++) {
output.writeMessage(1, certificates_.get(i));
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -212,17 +169,53 @@ public int getSerializedSize() {
.computeMessageSize(1, certificates_.get(i));
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList other = (Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList) obj;
+
+ if (!getCertificatesList()
+ .equals(other.getCertificatesList())) 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 (getCertificatesCount() > 0) {
+ hash = (37 * hash) + CERTIFICATES_FIELD_NUMBER;
+ hash = (53 * hash) + getCertificatesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList 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.CertificateListProtos.CertificateList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -246,42 +239,57 @@ public static Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateLis
}
public static Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -301,6 +309,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.Certificates.CertificateListProtos.internal_static_Diadoc_Api_Proto_Certificates_CertificateList_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.Certificates.CertificateListProtos.internal_static_Diadoc_Api_Proto_Certificates_CertificateList_fieldAccessorTable
@@ -310,47 +319,40 @@ public static final class Builder extends
// Construct using Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList.newBuilder()
private Builder() {
- maybeForceBuilderInitialization();
+
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getCertificatesFieldBuilder();
- }
- }
- private static Builder create() {
- return new Builder();
- }
+ }
+ @java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (certificatesBuilder_ == null) {
certificates_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
} else {
+ certificates_ = null;
certificatesBuilder_.clear();
}
+ bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.Certificates.CertificateListProtos.internal_static_Diadoc_Api_Proto_Certificates_CertificateList_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList getDefaultInstanceForType() {
return Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList build() {
Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList result = buildPartial();
if (!result.isInitialized()) {
@@ -359,11 +361,18 @@ public Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList build
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList buildPartial() {
Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList result = new Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList result) {
if (certificatesBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
certificates_ = java.util.Collections.unmodifiableList(certificates_);
bitField0_ = (bitField0_ & ~0x00000001);
}
@@ -371,10 +380,13 @@ public Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList build
} else {
result.certificates_ = certificatesBuilder_.build();
}
- onBuilt();
- return result;
}
+ private void buildPartial0(Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList) {
return mergeFrom((Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList)other);
@@ -413,34 +425,62 @@ public Builder mergeFrom(Diadoc.Api.Proto.Certificates.CertificateListProtos.Cer
}
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getCertificatesCount(); i++) {
if (!getCertificates(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 {
- Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2 m =
+ input.readMessage(
+ Diadoc.Api.Proto.Certificates.CertificateInfoV2Protos.CertificateInfoV2.parser(),
+ extensionRegistry);
+ if (certificatesBuilder_ == null) {
+ ensureCertificatesIsMutable();
+ certificates_.add(m);
+ } else {
+ certificatesBuilder_.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) {
- parsedMessage = (Diadoc.Api.Proto.Certificates.CertificateListProtos.CertificateList) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
@@ -448,7 +488,7 @@ public Builder mergeFrom(
private java.util.Listrepeated .Diadoc.Api.Proto.CloudSignFile Files = 1;
*/
+ @java.lang.Override
public java.util.Listrepeated .Diadoc.Api.Proto.CloudSignFile Files = 1;
*/
+ @java.lang.Override
public java.util.List extends Diadoc.Api.Proto.CloudSignProtos.CloudSignFileOrBuilder>
getFilesOrBuilderList() {
return files_;
@@ -156,27 +112,28 @@ public java.util.Listrepeated .Diadoc.Api.Proto.CloudSignFile Files = 1;
*/
+ @java.lang.Override
public int getFilesCount() {
return files_.size();
}
/**
* repeated .Diadoc.Api.Proto.CloudSignFile Files = 1;
*/
+ @java.lang.Override
public Diadoc.Api.Proto.CloudSignProtos.CloudSignFile getFiles(int index) {
return files_.get(index);
}
/**
* repeated .Diadoc.Api.Proto.CloudSignFile Files = 1;
*/
+ @java.lang.Override
public Diadoc.Api.Proto.CloudSignProtos.CloudSignFileOrBuilder getFilesOrBuilder(
int index) {
return files_.get(index);
}
- private void initFields() {
- files_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -192,18 +149,18 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
for (int i = 0; i < files_.size(); i++) {
output.writeMessage(1, files_.get(i));
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -212,17 +169,53 @@ public int getSerializedSize() {
.computeMessageSize(1, files_.get(i));
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest other = (Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest) obj;
+
+ if (!getFilesList()
+ .equals(other.getFilesList())) 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 (getFilesCount() > 0) {
+ hash = (37 * hash) + FILES_FIELD_NUMBER;
+ hash = (53 * hash) + getFilesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
+ public static Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest 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.CloudSignProtos.CloudSignRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -246,42 +239,57 @@ public static Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest parseFrom(
}
public static Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -301,6 +309,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignRequest_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignRequest_fieldAccessorTable
@@ -310,47 +319,40 @@ public static final class Builder extends
// Construct using Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest.newBuilder()
private Builder() {
- maybeForceBuilderInitialization();
+
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getFilesFieldBuilder();
- }
- }
- private static Builder create() {
- return new Builder();
- }
+ }
+ @java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (filesBuilder_ == null) {
files_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
} else {
+ files_ = null;
filesBuilder_.clear();
}
+ bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignRequest_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest getDefaultInstanceForType() {
return Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest build() {
Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest result = buildPartial();
if (!result.isInitialized()) {
@@ -359,11 +361,18 @@ public Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest build() {
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest buildPartial() {
Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest result = new Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest result) {
if (filesBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
files_ = java.util.Collections.unmodifiableList(files_);
bitField0_ = (bitField0_ & ~0x00000001);
}
@@ -371,10 +380,13 @@ public Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest buildPartial() {
} else {
result.files_ = filesBuilder_.build();
}
- onBuilt();
- return result;
}
+ private void buildPartial0(Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest) {
return mergeFrom((Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest)other);
@@ -413,34 +425,62 @@ public Builder mergeFrom(Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest other
}
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getFilesCount(); i++) {
if (!getFiles(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 {
- Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ Diadoc.Api.Proto.CloudSignProtos.CloudSignFile m =
+ input.readMessage(
+ Diadoc.Api.Proto.CloudSignProtos.CloudSignFile.parser(),
+ extensionRegistry);
+ if (filesBuilder_ == null) {
+ ensureFilesIsMutable();
+ files_.add(m);
+ } else {
+ filesBuilder_.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) {
- parsedMessage = (Diadoc.Api.Proto.CloudSignProtos.CloudSignRequest) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
@@ -448,7 +488,7 @@ public Builder mergeFrom(
private java.util.Listoptional .Diadoc.Api.Proto.Content_v2 Content = 1;
+ * @return Whether the content field is set.
*/
boolean hasContent();
/**
* optional .Diadoc.Api.Proto.Content_v2 Content = 1;
+ * @return The content.
*/
Diadoc.Api.Proto.Content_v2Protos.Content_v2 getContent();
/**
@@ -715,14 +797,17 @@ public interface CloudSignFileOrBuilder extends
/**
* optional string FileName = 2;
+ * @return Whether the fileName field is set.
*/
boolean hasFileName();
/**
* optional string FileName = 2;
+ * @return The fileName.
*/
java.lang.String getFileName();
/**
* optional string FileName = 2;
+ * @return The bytes for fileName.
*/
com.google.protobuf.ByteString
getFileNameBytes();
@@ -734,87 +819,30 @@ public static final class CloudSignFile extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CloudSignFile)
CloudSignFileOrBuilder {
+ 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= */ "",
+ CloudSignFile.class.getName());
+ }
// Use CloudSignFile.newBuilder() to construct.
private CloudSignFile(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private CloudSignFile(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final CloudSignFile defaultInstance;
- public static CloudSignFile getDefaultInstance() {
- return defaultInstance;
- }
-
- public CloudSignFile getDefaultInstanceForType() {
- return defaultInstance;
+ private CloudSignFile() {
+ fileName_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private CloudSignFile(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- Diadoc.Api.Proto.Content_v2Protos.Content_v2.Builder subBuilder = null;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- subBuilder = content_.toBuilder();
- }
- content_ = input.readMessage(Diadoc.Api.Proto.Content_v2Protos.Content_v2.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(content_);
- content_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000001;
- break;
- }
- case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- fileName_ = bs;
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignFile_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignFile_fieldAccessorTable
@@ -822,54 +850,49 @@ private CloudSignFile(
Diadoc.Api.Proto.CloudSignProtos.CloudSignFile.class, Diadoc.Api.Proto.CloudSignProtos.CloudSignFile.Builder.class);
}
- public static com.google.protobuf.Parseroptional .Diadoc.Api.Proto.Content_v2 Content = 1;
+ * @return Whether the content field is set.
*/
+ @java.lang.Override
public boolean hasContent() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .Diadoc.Api.Proto.Content_v2 Content = 1;
+ * @return The content.
*/
+ @java.lang.Override
public Diadoc.Api.Proto.Content_v2Protos.Content_v2 getContent() {
- return content_;
+ return content_ == null ? Diadoc.Api.Proto.Content_v2Protos.Content_v2.getDefaultInstance() : content_;
}
/**
* optional .Diadoc.Api.Proto.Content_v2 Content = 1;
*/
+ @java.lang.Override
public Diadoc.Api.Proto.Content_v2Protos.Content_v2OrBuilder getContentOrBuilder() {
- return content_;
+ return content_ == null ? Diadoc.Api.Proto.Content_v2Protos.Content_v2.getDefaultInstance() : content_;
}
public static final int FILENAME_FIELD_NUMBER = 2;
- private java.lang.Object fileName_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object fileName_ = "";
/**
* optional string FileName = 2;
+ * @return Whether the fileName field is set.
*/
+ @java.lang.Override
public boolean hasFileName() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string FileName = 2;
+ * @return The fileName.
*/
+ @java.lang.Override
public java.lang.String getFileName() {
java.lang.Object ref = fileName_;
if (ref instanceof java.lang.String) {
@@ -886,7 +909,9 @@ public java.lang.String getFileName() {
}
/**
* optional string FileName = 2;
+ * @return The bytes for fileName.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getFileNameBytes() {
java.lang.Object ref = fileName_;
@@ -901,11 +926,8 @@ public java.lang.String getFileName() {
}
}
- private void initFields() {
- content_ = Diadoc.Api.Proto.Content_v2Protos.Content_v2.getDefaultInstance();
- fileName_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -921,44 +943,91 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeMessage(1, content_);
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(1, getContent());
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getFileNameBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, fileName_);
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, content_);
+ .computeMessageSize(1, getContent());
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getFileNameBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, fileName_);
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.CloudSignProtos.CloudSignFile)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.CloudSignProtos.CloudSignFile other = (Diadoc.Api.Proto.CloudSignProtos.CloudSignFile) obj;
+
+ if (hasContent() != other.hasContent()) return false;
+ if (hasContent()) {
+ if (!getContent()
+ .equals(other.getContent())) return false;
+ }
+ if (hasFileName() != other.hasFileName()) return false;
+ if (hasFileName()) {
+ if (!getFileName()
+ .equals(other.getFileName())) 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 (hasContent()) {
+ hash = (37 * hash) + CONTENT_FIELD_NUMBER;
+ hash = (53 * hash) + getContent().hashCode();
+ }
+ if (hasFileName()) {
+ hash = (37 * hash) + FILENAME_FIELD_NUMBER;
+ hash = (53 * hash) + getFileName().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
+ public static Diadoc.Api.Proto.CloudSignProtos.CloudSignFile parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.CloudSignProtos.CloudSignFile 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.CloudSignProtos.CloudSignFile parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -982,42 +1051,57 @@ public static Diadoc.Api.Proto.CloudSignProtos.CloudSignFile parseFrom(
}
public static Diadoc.Api.Proto.CloudSignProtos.CloudSignFile parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CloudSignProtos.CloudSignFile parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.CloudSignProtos.CloudSignFile parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.CloudSignProtos.CloudSignFile parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.CloudSignProtos.CloudSignFile parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CloudSignProtos.CloudSignFile parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.CloudSignProtos.CloudSignFile prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -1037,6 +1121,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignFile_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignFile_fieldAccessorTable
@@ -1055,40 +1140,36 @@ private Builder(
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessage
+ .alwaysUseFieldBuilders) {
getContentFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
- if (contentBuilder_ == null) {
- content_ = Diadoc.Api.Proto.Content_v2Protos.Content_v2.getDefaultInstance();
- } else {
- contentBuilder_.clear();
+ bitField0_ = 0;
+ content_ = null;
+ if (contentBuilder_ != null) {
+ contentBuilder_.dispose();
+ contentBuilder_ = null;
}
- bitField0_ = (bitField0_ & ~0x00000001);
fileName_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignFile_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CloudSignProtos.CloudSignFile getDefaultInstanceForType() {
return Diadoc.Api.Proto.CloudSignProtos.CloudSignFile.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.CloudSignProtos.CloudSignFile build() {
Diadoc.Api.Proto.CloudSignProtos.CloudSignFile result = buildPartial();
if (!result.isInitialized()) {
@@ -1097,27 +1178,31 @@ public Diadoc.Api.Proto.CloudSignProtos.CloudSignFile build() {
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CloudSignProtos.CloudSignFile buildPartial() {
Diadoc.Api.Proto.CloudSignProtos.CloudSignFile result = new Diadoc.Api.Proto.CloudSignProtos.CloudSignFile(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(Diadoc.Api.Proto.CloudSignProtos.CloudSignFile result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.content_ = contentBuilder_ == null
+ ? content_
+ : contentBuilder_.build();
to_bitField0_ |= 0x00000001;
}
- if (contentBuilder_ == null) {
- result.content_ = content_;
- } else {
- result.content_ = contentBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.fileName_ = fileName_;
to_bitField0_ |= 0x00000002;
}
- result.fileName_ = fileName_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
+ result.bitField0_ |= to_bitField0_;
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.CloudSignProtos.CloudSignFile) {
return mergeFrom((Diadoc.Api.Proto.CloudSignProtos.CloudSignFile)other);
@@ -1133,58 +1218,87 @@ public Builder mergeFrom(Diadoc.Api.Proto.CloudSignProtos.CloudSignFile other) {
mergeContent(other.getContent());
}
if (other.hasFileName()) {
- bitField0_ |= 0x00000002;
fileName_ = other.fileName_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
if (hasContent()) {
if (!getContent().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 {
- Diadoc.Api.Proto.CloudSignProtos.CloudSignFile parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ input.readMessage(
+ getContentFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ fileName_ = 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) {
- parsedMessage = (Diadoc.Api.Proto.CloudSignProtos.CloudSignFile) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
- private Diadoc.Api.Proto.Content_v2Protos.Content_v2 content_ = Diadoc.Api.Proto.Content_v2Protos.Content_v2.getDefaultInstance();
+ private Diadoc.Api.Proto.Content_v2Protos.Content_v2 content_;
private com.google.protobuf.SingleFieldBuilder<
Diadoc.Api.Proto.Content_v2Protos.Content_v2, Diadoc.Api.Proto.Content_v2Protos.Content_v2.Builder, Diadoc.Api.Proto.Content_v2Protos.Content_v2OrBuilder> contentBuilder_;
/**
* optional .Diadoc.Api.Proto.Content_v2 Content = 1;
+ * @return Whether the content field is set.
*/
public boolean hasContent() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .Diadoc.Api.Proto.Content_v2 Content = 1;
+ * @return The content.
*/
public Diadoc.Api.Proto.Content_v2Protos.Content_v2 getContent() {
if (contentBuilder_ == null) {
- return content_;
+ return content_ == null ? Diadoc.Api.Proto.Content_v2Protos.Content_v2.getDefaultInstance() : content_;
} else {
return contentBuilder_.getMessage();
}
@@ -1198,11 +1312,11 @@ public Builder setContent(Diadoc.Api.Proto.Content_v2Protos.Content_v2 value) {
throw new NullPointerException();
}
content_ = value;
- onChanged();
} else {
contentBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -1212,11 +1326,11 @@ public Builder setContent(
Diadoc.Api.Proto.Content_v2Protos.Content_v2.Builder builderForValue) {
if (contentBuilder_ == null) {
content_ = builderForValue.build();
- onChanged();
} else {
contentBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
+ onChanged();
return this;
}
/**
@@ -1224,31 +1338,33 @@ public Builder setContent(
*/
public Builder mergeContent(Diadoc.Api.Proto.Content_v2Protos.Content_v2 value) {
if (contentBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001) &&
- content_ != Diadoc.Api.Proto.Content_v2Protos.Content_v2.getDefaultInstance()) {
- content_ =
- Diadoc.Api.Proto.Content_v2Protos.Content_v2.newBuilder(content_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000001) != 0) &&
+ content_ != null &&
+ content_ != Diadoc.Api.Proto.Content_v2Protos.Content_v2.getDefaultInstance()) {
+ getContentBuilder().mergeFrom(value);
} else {
content_ = value;
}
- onChanged();
} else {
contentBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000001;
+ if (content_ != null) {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ }
return this;
}
/**
* optional .Diadoc.Api.Proto.Content_v2 Content = 1;
*/
public Builder clearContent() {
- if (contentBuilder_ == null) {
- content_ = Diadoc.Api.Proto.Content_v2Protos.Content_v2.getDefaultInstance();
- onChanged();
- } else {
- contentBuilder_.clear();
- }
bitField0_ = (bitField0_ & ~0x00000001);
+ content_ = null;
+ if (contentBuilder_ != null) {
+ contentBuilder_.dispose();
+ contentBuilder_ = null;
+ }
+ onChanged();
return this;
}
/**
@@ -1266,7 +1382,8 @@ public Diadoc.Api.Proto.Content_v2Protos.Content_v2OrBuilder getContentOrBuilder
if (contentBuilder_ != null) {
return contentBuilder_.getMessageOrBuilder();
} else {
- return content_;
+ return content_ == null ?
+ Diadoc.Api.Proto.Content_v2Protos.Content_v2.getDefaultInstance() : content_;
}
}
/**
@@ -1289,12 +1406,14 @@ public Diadoc.Api.Proto.Content_v2Protos.Content_v2OrBuilder getContentOrBuilder
private java.lang.Object fileName_ = "";
/**
* optional string FileName = 2;
+ * @return Whether the fileName field is set.
*/
public boolean hasFileName() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string FileName = 2;
+ * @return The fileName.
*/
public java.lang.String getFileName() {
java.lang.Object ref = fileName_;
@@ -1312,6 +1431,7 @@ public java.lang.String getFileName() {
}
/**
* optional string FileName = 2;
+ * @return The bytes for fileName.
*/
public com.google.protobuf.ByteString
getFileNameBytes() {
@@ -1328,36 +1448,37 @@ public java.lang.String getFileName() {
}
/**
* optional string FileName = 2;
+ * @param value The fileName to set.
+ * @return This builder for chaining.
*/
public Builder setFileName(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
+ if (value == null) { throw new NullPointerException(); }
fileName_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional string FileName = 2;
+ * @return This builder for chaining.
*/
public Builder clearFileName() {
- bitField0_ = (bitField0_ & ~0x00000002);
fileName_ = getDefaultInstance().getFileName();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* optional string FileName = 2;
+ * @param value The bytes for fileName to set.
+ * @return This builder for chaining.
*/
public Builder setFileNameBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
+ if (value == null) { throw new NullPointerException(); }
fileName_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -1365,28 +1486,71 @@ public Builder setFileNameBytes(
// @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CloudSignFile)
}
+ // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CloudSignFile)
+ private static final Diadoc.Api.Proto.CloudSignProtos.CloudSignFile DEFAULT_INSTANCE;
static {
- defaultInstance = new CloudSignFile(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new Diadoc.Api.Proto.CloudSignProtos.CloudSignFile();
}
- // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CloudSignFile)
- }
-
- public interface CloudSignResultOrBuilder extends
- // @@protoc_insertion_point(interface_extends:Diadoc.Api.Proto.CloudSignResult)
- com.google.protobuf.MessageOrBuilder {
+ public static Diadoc.Api.Proto.CloudSignProtos.CloudSignFile getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
- /**
- * optional string Token = 1;
- */
+ private static final com.google.protobuf.Parseroptional string Token = 1;
+ * @return Whether the token field is set.
+ */
boolean hasToken();
/**
* optional string Token = 1;
+ * @return The token.
*/
java.lang.String getToken();
/**
* optional string Token = 1;
+ * @return The bytes for token.
*/
com.google.protobuf.ByteString
getTokenBytes();
@@ -1398,74 +1562,30 @@ public static final class CloudSignResult extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CloudSignResult)
CloudSignResultOrBuilder {
+ 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= */ "",
+ CloudSignResult.class.getName());
+ }
// Use CloudSignResult.newBuilder() to construct.
private CloudSignResult(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private CloudSignResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final CloudSignResult defaultInstance;
- public static CloudSignResult getDefaultInstance() {
- return defaultInstance;
- }
-
- public CloudSignResult getDefaultInstanceForType() {
- return defaultInstance;
+ private CloudSignResult() {
+ token_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private CloudSignResult(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000001;
- token_ = bs;
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignResult_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignResult_fieldAccessorTable
@@ -1473,33 +1593,23 @@ private CloudSignResult(
Diadoc.Api.Proto.CloudSignProtos.CloudSignResult.class, Diadoc.Api.Proto.CloudSignProtos.CloudSignResult.Builder.class);
}
- public static com.google.protobuf.Parseroptional string Token = 1;
+ * @return Whether the token field is set.
*/
+ @java.lang.Override
public boolean hasToken() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string Token = 1;
+ * @return The token.
*/
+ @java.lang.Override
public java.lang.String getToken() {
java.lang.Object ref = token_;
if (ref instanceof java.lang.String) {
@@ -1516,7 +1626,9 @@ public java.lang.String getToken() {
}
/**
* optional string Token = 1;
+ * @return The bytes for token.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getTokenBytes() {
java.lang.Object ref = token_;
@@ -1531,10 +1643,8 @@ public java.lang.String getToken() {
}
}
- private void initFields() {
- token_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -1544,37 +1654,75 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getTokenBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, token_);
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getTokenBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, token_);
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.CloudSignProtos.CloudSignResult)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.CloudSignProtos.CloudSignResult other = (Diadoc.Api.Proto.CloudSignProtos.CloudSignResult) obj;
+
+ if (hasToken() != other.hasToken()) return false;
+ if (hasToken()) {
+ if (!getToken()
+ .equals(other.getToken())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasToken()) {
+ hash = (37 * hash) + TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getToken().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
+ public static Diadoc.Api.Proto.CloudSignProtos.CloudSignResult parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.CloudSignProtos.CloudSignResult 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.CloudSignProtos.CloudSignResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1598,42 +1746,57 @@ public static Diadoc.Api.Proto.CloudSignProtos.CloudSignResult parseFrom(
}
public static Diadoc.Api.Proto.CloudSignProtos.CloudSignResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CloudSignProtos.CloudSignResult parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.CloudSignProtos.CloudSignResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.CloudSignProtos.CloudSignResult parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.CloudSignProtos.CloudSignResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CloudSignProtos.CloudSignResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.CloudSignProtos.CloudSignResult prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -1653,6 +1816,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignResult_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignResult_fieldAccessorTable
@@ -1662,42 +1826,34 @@ public static final class Builder extends
// Construct using Diadoc.Api.Proto.CloudSignProtos.CloudSignResult.newBuilder()
private Builder() {
- maybeForceBuilderInitialization();
+
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- private static Builder create() {
- return new Builder();
- }
+ }
+ @java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
token_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignResult_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CloudSignProtos.CloudSignResult getDefaultInstanceForType() {
return Diadoc.Api.Proto.CloudSignProtos.CloudSignResult.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.CloudSignProtos.CloudSignResult build() {
Diadoc.Api.Proto.CloudSignProtos.CloudSignResult result = buildPartial();
if (!result.isInitialized()) {
@@ -1706,19 +1862,25 @@ public Diadoc.Api.Proto.CloudSignProtos.CloudSignResult build() {
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CloudSignProtos.CloudSignResult buildPartial() {
Diadoc.Api.Proto.CloudSignProtos.CloudSignResult result = new Diadoc.Api.Proto.CloudSignProtos.CloudSignResult(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(Diadoc.Api.Proto.CloudSignProtos.CloudSignResult result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.token_ = token_;
to_bitField0_ |= 0x00000001;
}
- result.token_ = token_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
+ result.bitField0_ |= to_bitField0_;
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.CloudSignProtos.CloudSignResult) {
return mergeFrom((Diadoc.Api.Proto.CloudSignProtos.CloudSignResult)other);
@@ -1731,33 +1893,54 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(Diadoc.Api.Proto.CloudSignProtos.CloudSignResult other) {
if (other == Diadoc.Api.Proto.CloudSignProtos.CloudSignResult.getDefaultInstance()) return this;
if (other.hasToken()) {
- bitField0_ |= 0x00000001;
token_ = other.token_;
+ bitField0_ |= 0x00000001;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- Diadoc.Api.Proto.CloudSignProtos.CloudSignResult parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ token_ = 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) {
- parsedMessage = (Diadoc.Api.Proto.CloudSignProtos.CloudSignResult) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
@@ -1765,12 +1948,14 @@ public Builder mergeFrom(
private java.lang.Object token_ = "";
/**
* optional string Token = 1;
+ * @return Whether the token field is set.
*/
public boolean hasToken() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string Token = 1;
+ * @return The token.
*/
public java.lang.String getToken() {
java.lang.Object ref = token_;
@@ -1788,6 +1973,7 @@ public java.lang.String getToken() {
}
/**
* optional string Token = 1;
+ * @return The bytes for token.
*/
public com.google.protobuf.ByteString
getTokenBytes() {
@@ -1804,36 +1990,37 @@ public java.lang.String getToken() {
}
/**
* optional string Token = 1;
+ * @param value The token to set.
+ * @return This builder for chaining.
*/
public Builder setToken(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
token_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional string Token = 1;
+ * @return This builder for chaining.
*/
public Builder clearToken() {
- bitField0_ = (bitField0_ & ~0x00000001);
token_ = getDefaultInstance().getToken();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* optional string Token = 1;
+ * @param value The bytes for token to set.
+ * @return This builder for chaining.
*/
public Builder setTokenBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
token_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -1841,12 +2028,52 @@ public Builder setTokenBytes(
// @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CloudSignResult)
}
+ // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CloudSignResult)
+ private static final Diadoc.Api.Proto.CloudSignProtos.CloudSignResult DEFAULT_INSTANCE;
static {
- defaultInstance = new CloudSignResult(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new Diadoc.Api.Proto.CloudSignProtos.CloudSignResult();
+ }
+
+ public static Diadoc.Api.Proto.CloudSignProtos.CloudSignResult getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserrepeated .Diadoc.Api.Proto.Content_v2 Signatures = 1;
*/
+ @java.lang.Override
public java.util.Listrepeated .Diadoc.Api.Proto.Content_v2 Signatures = 1;
*/
+ @java.lang.Override
public java.util.List extends Diadoc.Api.Proto.Content_v2Protos.Content_v2OrBuilder>
getSignaturesOrBuilderList() {
return signatures_;
@@ -1997,27 +2163,28 @@ public java.util.Listrepeated .Diadoc.Api.Proto.Content_v2 Signatures = 1;
*/
+ @java.lang.Override
public int getSignaturesCount() {
return signatures_.size();
}
/**
* repeated .Diadoc.Api.Proto.Content_v2 Signatures = 1;
*/
+ @java.lang.Override
public Diadoc.Api.Proto.Content_v2Protos.Content_v2 getSignatures(int index) {
return signatures_.get(index);
}
/**
* repeated .Diadoc.Api.Proto.Content_v2 Signatures = 1;
*/
+ @java.lang.Override
public Diadoc.Api.Proto.Content_v2Protos.Content_v2OrBuilder getSignaturesOrBuilder(
int index) {
return signatures_.get(index);
}
- private void initFields() {
- signatures_ = java.util.Collections.emptyList();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -2033,18 +2200,18 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
for (int i = 0; i < signatures_.size(); i++) {
output.writeMessage(1, signatures_.get(i));
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -2053,17 +2220,53 @@ public int getSerializedSize() {
.computeMessageSize(1, signatures_.get(i));
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult other = (Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult) obj;
+
+ if (!getSignaturesList()
+ .equals(other.getSignaturesList())) 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 (getSignaturesCount() > 0) {
+ hash = (37 * hash) + SIGNATURES_FIELD_NUMBER;
+ hash = (53 * hash) + getSignaturesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
+ public static Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult 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.CloudSignProtos.CloudSignConfirmResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -2087,42 +2290,57 @@ public static Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult parseFrom(
}
public static Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -2142,6 +2360,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignConfirmResult_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignConfirmResult_fieldAccessorTable
@@ -2151,47 +2370,40 @@ public static final class Builder extends
// Construct using Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult.newBuilder()
private Builder() {
- maybeForceBuilderInitialization();
+
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getSignaturesFieldBuilder();
- }
- }
- private static Builder create() {
- return new Builder();
- }
+ }
+ @java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (signaturesBuilder_ == null) {
signatures_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
} else {
+ signatures_ = null;
signaturesBuilder_.clear();
}
+ bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_CloudSignConfirmResult_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult getDefaultInstanceForType() {
return Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult build() {
Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult result = buildPartial();
if (!result.isInitialized()) {
@@ -2200,11 +2412,18 @@ public Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult build() {
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult buildPartial() {
Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult result = new Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult(this);
- int from_bitField0_ = bitField0_;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult result) {
if (signaturesBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
signatures_ = java.util.Collections.unmodifiableList(signatures_);
bitField0_ = (bitField0_ & ~0x00000001);
}
@@ -2212,10 +2431,13 @@ public Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult buildPartial() {
} else {
result.signatures_ = signaturesBuilder_.build();
}
- onBuilt();
- return result;
}
+ private void buildPartial0(Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult result) {
+ int from_bitField0_ = bitField0_;
+ }
+
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult) {
return mergeFrom((Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult)other);
@@ -2254,34 +2476,62 @@ public Builder mergeFrom(Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult
}
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getSignaturesCount(); i++) {
if (!getSignatures(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 {
- Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ Diadoc.Api.Proto.Content_v2Protos.Content_v2 m =
+ input.readMessage(
+ Diadoc.Api.Proto.Content_v2Protos.Content_v2.parser(),
+ extensionRegistry);
+ if (signaturesBuilder_ == null) {
+ ensureSignaturesIsMutable();
+ signatures_.add(m);
+ } else {
+ signaturesBuilder_.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) {
- parsedMessage = (Diadoc.Api.Proto.CloudSignProtos.CloudSignConfirmResult) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
@@ -2289,7 +2539,7 @@ public Builder mergeFrom(
private java.util.Listrequired int64 SignedReceiptsCount = 1;
+ * @return Whether the signedReceiptsCount field is set.
*/
boolean hasSignedReceiptsCount();
/**
* required int64 SignedReceiptsCount = 1;
+ * @return The signedReceiptsCount.
*/
long getSignedReceiptsCount();
/**
* required string NextBatchKey = 2;
+ * @return Whether the nextBatchKey field is set.
*/
boolean hasNextBatchKey();
/**
* required string NextBatchKey = 2;
+ * @return The nextBatchKey.
*/
java.lang.String getNextBatchKey();
/**
* required string NextBatchKey = 2;
+ * @return The bytes for nextBatchKey.
*/
com.google.protobuf.ByteString
getNextBatchKeyBytes();
@@ -2571,79 +2866,30 @@ public static final class AutosignReceiptsResult extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.AutosignReceiptsResult)
AutosignReceiptsResultOrBuilder {
+ 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= */ "",
+ AutosignReceiptsResult.class.getName());
+ }
// Use AutosignReceiptsResult.newBuilder() to construct.
private AutosignReceiptsResult(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private AutosignReceiptsResult(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final AutosignReceiptsResult defaultInstance;
- public static AutosignReceiptsResult getDefaultInstance() {
- return defaultInstance;
- }
-
- public AutosignReceiptsResult getDefaultInstanceForType() {
- return defaultInstance;
+ private AutosignReceiptsResult() {
+ nextBatchKey_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private AutosignReceiptsResult(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 8: {
- bitField0_ |= 0x00000001;
- signedReceiptsCount_ = input.readInt64();
- break;
- }
- case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- nextBatchKey_ = bs;
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_AutosignReceiptsResult_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_AutosignReceiptsResult_fieldAccessorTable
@@ -2651,48 +2897,42 @@ private AutosignReceiptsResult(
Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult.class, Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult.Builder.class);
}
- public static com.google.protobuf.Parserrequired int64 SignedReceiptsCount = 1;
+ * @return Whether the signedReceiptsCount field is set.
*/
+ @java.lang.Override
public boolean hasSignedReceiptsCount() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required int64 SignedReceiptsCount = 1;
+ * @return The signedReceiptsCount.
*/
+ @java.lang.Override
public long getSignedReceiptsCount() {
return signedReceiptsCount_;
}
public static final int NEXTBATCHKEY_FIELD_NUMBER = 2;
- private java.lang.Object nextBatchKey_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nextBatchKey_ = "";
/**
* required string NextBatchKey = 2;
+ * @return Whether the nextBatchKey field is set.
*/
+ @java.lang.Override
public boolean hasNextBatchKey() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required string NextBatchKey = 2;
+ * @return The nextBatchKey.
*/
+ @java.lang.Override
public java.lang.String getNextBatchKey() {
java.lang.Object ref = nextBatchKey_;
if (ref instanceof java.lang.String) {
@@ -2709,7 +2949,9 @@ public java.lang.String getNextBatchKey() {
}
/**
* required string NextBatchKey = 2;
+ * @return The bytes for nextBatchKey.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getNextBatchKeyBytes() {
java.lang.Object ref = nextBatchKey_;
@@ -2724,11 +2966,8 @@ public java.lang.String getNextBatchKey() {
}
}
- private void initFields() {
- signedReceiptsCount_ = 0L;
- nextBatchKey_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -2746,44 +2985,92 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt64(1, signedReceiptsCount_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getNextBatchKeyBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, nextBatchKey_);
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(1, signedReceiptsCount_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getNextBatchKeyBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextBatchKey_);
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult other = (Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult) obj;
+
+ if (hasSignedReceiptsCount() != other.hasSignedReceiptsCount()) return false;
+ if (hasSignedReceiptsCount()) {
+ if (getSignedReceiptsCount()
+ != other.getSignedReceiptsCount()) return false;
+ }
+ if (hasNextBatchKey() != other.hasNextBatchKey()) return false;
+ if (hasNextBatchKey()) {
+ if (!getNextBatchKey()
+ .equals(other.getNextBatchKey())) 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 (hasSignedReceiptsCount()) {
+ hash = (37 * hash) + SIGNEDRECEIPTSCOUNT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
+ getSignedReceiptsCount());
+ }
+ if (hasNextBatchKey()) {
+ hash = (37 * hash) + NEXTBATCHKEY_FIELD_NUMBER;
+ hash = (53 * hash) + getNextBatchKey().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
+ public static Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult 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.CloudSignProtos.AutosignReceiptsResult parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -2807,42 +3094,57 @@ public static Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult parseFrom(
}
public static Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -2862,6 +3164,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_AutosignReceiptsResult_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_AutosignReceiptsResult_fieldAccessorTable
@@ -2871,44 +3174,35 @@ public static final class Builder extends
// Construct using Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult.newBuilder()
private Builder() {
- maybeForceBuilderInitialization();
+
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- private static Builder create() {
- return new Builder();
- }
+ }
+ @java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
signedReceiptsCount_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000001);
nextBatchKey_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.CloudSignProtos.internal_static_Diadoc_Api_Proto_AutosignReceiptsResult_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult getDefaultInstanceForType() {
return Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult build() {
Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult result = buildPartial();
if (!result.isInitialized()) {
@@ -2917,23 +3211,29 @@ public Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult build() {
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult buildPartial() {
Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult result = new Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.signedReceiptsCount_ = signedReceiptsCount_;
to_bitField0_ |= 0x00000001;
}
- result.signedReceiptsCount_ = signedReceiptsCount_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.nextBatchKey_ = nextBatchKey_;
to_bitField0_ |= 0x00000002;
}
- result.nextBatchKey_ = nextBatchKey_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
+ result.bitField0_ |= to_bitField0_;
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult) {
return mergeFrom((Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult)other);
@@ -2949,41 +3249,65 @@ public Builder mergeFrom(Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult
setSignedReceiptsCount(other.getSignedReceiptsCount());
}
if (other.hasNextBatchKey()) {
- bitField0_ |= 0x00000002;
nextBatchKey_ = other.nextBatchKey_;
+ bitField0_ |= 0x00000002;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
if (!hasSignedReceiptsCount()) {
-
return false;
}
if (!hasNextBatchKey()) {
-
return false;
}
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ signedReceiptsCount_ = input.readInt64();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ nextBatchKey_ = 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) {
- parsedMessage = (Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
@@ -2991,27 +3315,35 @@ public Builder mergeFrom(
private long signedReceiptsCount_ ;
/**
* required int64 SignedReceiptsCount = 1;
+ * @return Whether the signedReceiptsCount field is set.
*/
+ @java.lang.Override
public boolean hasSignedReceiptsCount() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required int64 SignedReceiptsCount = 1;
+ * @return The signedReceiptsCount.
*/
+ @java.lang.Override
public long getSignedReceiptsCount() {
return signedReceiptsCount_;
}
/**
* required int64 SignedReceiptsCount = 1;
+ * @param value The signedReceiptsCount to set.
+ * @return This builder for chaining.
*/
public Builder setSignedReceiptsCount(long value) {
- bitField0_ |= 0x00000001;
+
signedReceiptsCount_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required int64 SignedReceiptsCount = 1;
+ * @return This builder for chaining.
*/
public Builder clearSignedReceiptsCount() {
bitField0_ = (bitField0_ & ~0x00000001);
@@ -3023,12 +3355,14 @@ public Builder clearSignedReceiptsCount() {
private java.lang.Object nextBatchKey_ = "";
/**
* required string NextBatchKey = 2;
+ * @return Whether the nextBatchKey field is set.
*/
public boolean hasNextBatchKey() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required string NextBatchKey = 2;
+ * @return The nextBatchKey.
*/
public java.lang.String getNextBatchKey() {
java.lang.Object ref = nextBatchKey_;
@@ -3046,6 +3380,7 @@ public java.lang.String getNextBatchKey() {
}
/**
* required string NextBatchKey = 2;
+ * @return The bytes for nextBatchKey.
*/
public com.google.protobuf.ByteString
getNextBatchKeyBytes() {
@@ -3062,36 +3397,37 @@ public java.lang.String getNextBatchKey() {
}
/**
* required string NextBatchKey = 2;
+ * @param value The nextBatchKey to set.
+ * @return This builder for chaining.
*/
public Builder setNextBatchKey(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
+ if (value == null) { throw new NullPointerException(); }
nextBatchKey_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* required string NextBatchKey = 2;
+ * @return This builder for chaining.
*/
public Builder clearNextBatchKey() {
- bitField0_ = (bitField0_ & ~0x00000002);
nextBatchKey_ = getDefaultInstance().getNextBatchKey();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* required string NextBatchKey = 2;
+ * @param value The bytes for nextBatchKey to set.
+ * @return This builder for chaining.
*/
public Builder setNextBatchKeyBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
+ if (value == null) { throw new NullPointerException(); }
nextBatchKey_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -3099,37 +3435,77 @@ public Builder setNextBatchKeyBytes(
// @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.AutosignReceiptsResult)
}
+ // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.AutosignReceiptsResult)
+ private static final Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult DEFAULT_INSTANCE;
static {
- defaultInstance = new AutosignReceiptsResult(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult();
+ }
+
+ public static Diadoc.Api.Proto.CloudSignProtos.AutosignReceiptsResult getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserrequired sfixed32 Size = 1;
- *
* * -1 if content size is unknown *+ * + *
required sfixed32 Size = 1;
+ * @return Whether the size field is set.
*/
boolean hasSize();
/**
- * required sfixed32 Size = 1;
- *
* * -1 if content size is unknown *+ * + *
required sfixed32 Size = 1;
+ * @return The size.
*/
int getSize();
/**
- * optional bytes Data = 2;
- *
* * null <=> entity content exists but is not included in proto buffer *+ * + *
optional bytes Data = 2;
+ * @return Whether the data field is set.
*/
boolean hasData();
/**
- * optional bytes Data = 2;
- *
* * null <=> entity content exists but is not included in proto buffer *+ * + *
optional bytes Data = 2;
+ * @return The data.
*/
com.google.protobuf.ByteString getData();
}
@@ -53,78 +74,30 @@ public static final class Content extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Content)
ContentOrBuilder {
+ 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= */ "",
+ Content.class.getName());
+ }
// Use Content.newBuilder() to construct.
private Content(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private Content(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Content defaultInstance;
- public static Content getDefaultInstance() {
- return defaultInstance;
- }
-
- public Content getDefaultInstanceForType() {
- return defaultInstance;
+ private Content() {
+ data_ = com.google.protobuf.ByteString.EMPTY;
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private Content(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 13: {
- bitField0_ |= 0x00000001;
- size_ = input.readSFixed32();
- break;
- }
- case 18: {
- bitField0_ |= 0x00000002;
- data_ = input.readBytes();
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Diadoc.Api.Proto.ContentProtos.internal_static_Diadoc_Api_Proto_Content_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.ContentProtos.internal_static_Diadoc_Api_Proto_Content_fieldAccessorTable
@@ -132,73 +105,63 @@ private Content(
Diadoc.Api.Proto.ContentProtos.Content.class, Diadoc.Api.Proto.ContentProtos.Content.Builder.class);
}
- public static com.google.protobuf.Parserrequired sfixed32 Size = 1;
- *
* * -1 if content size is unknown *+ * + *
required sfixed32 Size = 1;
+ * @return Whether the size field is set.
*/
+ @java.lang.Override
public boolean hasSize() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
- * required sfixed32 Size = 1;
- *
* * -1 if content size is unknown *+ * + *
required sfixed32 Size = 1;
+ * @return The size.
*/
+ @java.lang.Override
public int getSize() {
return size_;
}
public static final int DATA_FIELD_NUMBER = 2;
- private com.google.protobuf.ByteString data_;
+ private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
- * optional bytes Data = 2;
- *
* * null <=> entity content exists but is not included in proto buffer *+ * + *
optional bytes Data = 2;
+ * @return Whether the data field is set.
*/
+ @java.lang.Override
public boolean hasData() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
- * optional bytes Data = 2;
- *
* * null <=> entity content exists but is not included in proto buffer *+ * + *
optional bytes Data = 2;
+ * @return The data.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
- private void initFields() {
- size_ = 0;
- data_ = com.google.protobuf.ByteString.EMPTY;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -212,44 +175,92 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeSFixed32(1, size_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
output.writeBytes(2, data_);
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed32Size(1, size_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, data_);
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.ContentProtos.Content)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.ContentProtos.Content other = (Diadoc.Api.Proto.ContentProtos.Content) obj;
+
+ if (hasSize() != other.hasSize()) return false;
+ if (hasSize()) {
+ if (getSize()
+ != other.getSize()) return false;
+ }
+ if (hasData() != other.hasData()) return false;
+ if (hasData()) {
+ if (!getData()
+ .equals(other.getData())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasSize()) {
+ hash = (37 * hash) + SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getSize();
+ }
+ if (hasData()) {
+ hash = (37 * hash) + DATA_FIELD_NUMBER;
+ hash = (53 * hash) + getData().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
+ public static Diadoc.Api.Proto.ContentProtos.Content parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.ContentProtos.Content 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.ContentProtos.Content parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -273,42 +284,57 @@ public static Diadoc.Api.Proto.ContentProtos.Content parseFrom(
}
public static Diadoc.Api.Proto.ContentProtos.Content parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.ContentProtos.Content parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.ContentProtos.Content parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.ContentProtos.Content parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.ContentProtos.Content parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.ContentProtos.Content parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.ContentProtos.Content prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -328,6 +354,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.ContentProtos.internal_static_Diadoc_Api_Proto_Content_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.ContentProtos.internal_static_Diadoc_Api_Proto_Content_fieldAccessorTable
@@ -337,44 +364,35 @@ public static final class Builder extends
// Construct using Diadoc.Api.Proto.ContentProtos.Content.newBuilder()
private Builder() {
- maybeForceBuilderInitialization();
+
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- private static Builder create() {
- return new Builder();
- }
+ }
+ @java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
size_ = 0;
- bitField0_ = (bitField0_ & ~0x00000001);
data_ = com.google.protobuf.ByteString.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.ContentProtos.internal_static_Diadoc_Api_Proto_Content_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.ContentProtos.Content getDefaultInstanceForType() {
return Diadoc.Api.Proto.ContentProtos.Content.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.ContentProtos.Content build() {
Diadoc.Api.Proto.ContentProtos.Content result = buildPartial();
if (!result.isInitialized()) {
@@ -383,23 +401,29 @@ public Diadoc.Api.Proto.ContentProtos.Content build() {
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.ContentProtos.Content buildPartial() {
Diadoc.Api.Proto.ContentProtos.Content result = new Diadoc.Api.Proto.ContentProtos.Content(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(Diadoc.Api.Proto.ContentProtos.Content result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.size_ = size_;
to_bitField0_ |= 0x00000001;
}
- result.size_ = size_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.data_ = data_;
to_bitField0_ |= 0x00000002;
}
- result.data_ = data_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
+ result.bitField0_ |= to_bitField0_;
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.ContentProtos.Content) {
return mergeFrom((Diadoc.Api.Proto.ContentProtos.Content)other);
@@ -418,76 +442,109 @@ public Builder mergeFrom(Diadoc.Api.Proto.ContentProtos.Content other) {
setData(other.getData());
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
if (!hasSize()) {
-
return false;
}
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- Diadoc.Api.Proto.ContentProtos.Content parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 13: {
+ size_ = input.readSFixed32();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 13
+ case 18: {
+ data_ = 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) {
- parsedMessage = (Diadoc.Api.Proto.ContentProtos.Content) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
private int size_ ;
/**
- * required sfixed32 Size = 1;
- *
* * -1 if content size is unknown *+ * + *
required sfixed32 Size = 1;
+ * @return Whether the size field is set.
*/
+ @java.lang.Override
public boolean hasSize() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
- * required sfixed32 Size = 1;
- *
* * -1 if content size is unknown *+ * + *
required sfixed32 Size = 1;
+ * @return The size.
*/
+ @java.lang.Override
public int getSize() {
return size_;
}
/**
- * required sfixed32 Size = 1;
- *
* * -1 if content size is unknown *+ * + *
required sfixed32 Size = 1;
+ * @param value The size to set.
+ * @return This builder for chaining.
*/
public Builder setSize(int value) {
- bitField0_ |= 0x00000001;
+
size_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
- * required sfixed32 Size = 1;
- *
* * -1 if content size is unknown *+ * + *
required sfixed32 Size = 1;
+ * @return This builder for chaining.
*/
public Builder clearSize() {
bitField0_ = (bitField0_ & ~0x00000001);
@@ -498,47 +555,52 @@ public Builder clearSize() {
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
- * optional bytes Data = 2;
- *
* * null <=> entity content exists but is not included in proto buffer *+ * + *
optional bytes Data = 2;
+ * @return Whether the data field is set.
*/
+ @java.lang.Override
public boolean hasData() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
- * optional bytes Data = 2;
- *
* * null <=> entity content exists but is not included in proto buffer *+ * + *
optional bytes Data = 2;
+ * @return The data.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
- * optional bytes Data = 2;
- *
* * null <=> entity content exists but is not included in proto buffer *+ * + *
optional bytes Data = 2;
+ * @param value The data to set.
+ * @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
+ if (value == null) { throw new NullPointerException(); }
data_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
- * optional bytes Data = 2;
- *
* * null <=> entity content exists but is not included in proto buffer *+ * + *
optional bytes Data = 2;
+ * @return This builder for chaining.
*/
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000002);
@@ -550,17 +612,57 @@ public Builder clearData() {
// @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Content)
}
+ // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Content)
+ private static final Diadoc.Api.Proto.ContentProtos.Content DEFAULT_INSTANCE;
static {
- defaultInstance = new Content(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new Diadoc.Api.Proto.ContentProtos.Content();
+ }
+
+ public static Diadoc.Api.Proto.ContentProtos.Content getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parseroptional bytes Content = 1;
+ * @return Whether the content field is set.
*/
boolean hasContent();
/**
* optional bytes Content = 1;
+ * @return The content.
*/
com.google.protobuf.ByteString getContent();
/**
* optional string NameOnShelf = 2;
+ * @return Whether the nameOnShelf field is set.
*/
boolean hasNameOnShelf();
/**
* optional string NameOnShelf = 2;
+ * @return The nameOnShelf.
*/
java.lang.String getNameOnShelf();
/**
* optional string NameOnShelf = 2;
+ * @return The bytes for nameOnShelf.
*/
com.google.protobuf.ByteString
getNameOnShelfBytes();
/**
* optional string PatchedContentId = 3;
+ * @return Whether the patchedContentId field is set.
*/
boolean hasPatchedContentId();
/**
* optional string PatchedContentId = 3;
+ * @return The patchedContentId.
*/
java.lang.String getPatchedContentId();
/**
* optional string PatchedContentId = 3;
+ * @return The bytes for patchedContentId.
*/
com.google.protobuf.ByteString
getPatchedContentIdBytes();
/**
* optional .Diadoc.Api.Proto.DocumentIdEx DocumentId = 4;
+ * @return Whether the documentId field is set.
*/
boolean hasDocumentId();
/**
* optional .Diadoc.Api.Proto.DocumentIdEx DocumentId = 4;
+ * @return The documentId.
*/
Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx getDocumentId();
/**
@@ -69,98 +96,32 @@ public static final class Content_v2 extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Content_v2)
Content_v2OrBuilder {
+ 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= */ "",
+ Content_v2.class.getName());
+ }
// Use Content_v2.newBuilder() to construct.
private Content_v2(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private Content_v2(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Content_v2 defaultInstance;
- public static Content_v2 getDefaultInstance() {
- return defaultInstance;
}
-
- public Content_v2 getDefaultInstanceForType() {
- return defaultInstance;
+ private Content_v2() {
+ content_ = com.google.protobuf.ByteString.EMPTY;
+ nameOnShelf_ = "";
+ patchedContentId_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private Content_v2(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- bitField0_ |= 0x00000001;
- content_ = input.readBytes();
- break;
- }
- case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- nameOnShelf_ = bs;
- break;
- }
- case 26: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000004;
- patchedContentId_ = bs;
- break;
- }
- case 34: {
- Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.Builder subBuilder = null;
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- subBuilder = documentId_.toBuilder();
- }
- documentId_ = input.readMessage(Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(documentId_);
- documentId_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000008;
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Diadoc.Api.Proto.Content_v2Protos.internal_static_Diadoc_Api_Proto_Content_v2_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.Content_v2Protos.internal_static_Diadoc_Api_Proto_Content_v2_fieldAccessorTable
@@ -168,48 +129,42 @@ private Content_v2(
Diadoc.Api.Proto.Content_v2Protos.Content_v2.class, Diadoc.Api.Proto.Content_v2Protos.Content_v2.Builder.class);
}
- public static com.google.protobuf.Parseroptional bytes Content = 1;
+ * @return Whether the content field is set.
*/
+ @java.lang.Override
public boolean hasContent() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional bytes Content = 1;
+ * @return The content.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getContent() {
return content_;
}
public static final int NAMEONSHELF_FIELD_NUMBER = 2;
- private java.lang.Object nameOnShelf_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nameOnShelf_ = "";
/**
* optional string NameOnShelf = 2;
+ * @return Whether the nameOnShelf field is set.
*/
+ @java.lang.Override
public boolean hasNameOnShelf() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string NameOnShelf = 2;
+ * @return The nameOnShelf.
*/
+ @java.lang.Override
public java.lang.String getNameOnShelf() {
java.lang.Object ref = nameOnShelf_;
if (ref instanceof java.lang.String) {
@@ -226,7 +181,9 @@ public java.lang.String getNameOnShelf() {
}
/**
* optional string NameOnShelf = 2;
+ * @return The bytes for nameOnShelf.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getNameOnShelfBytes() {
java.lang.Object ref = nameOnShelf_;
@@ -242,16 +199,21 @@ public java.lang.String getNameOnShelf() {
}
public static final int PATCHEDCONTENTID_FIELD_NUMBER = 3;
- private java.lang.Object patchedContentId_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object patchedContentId_ = "";
/**
* optional string PatchedContentId = 3;
+ * @return Whether the patchedContentId field is set.
*/
+ @java.lang.Override
public boolean hasPatchedContentId() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string PatchedContentId = 3;
+ * @return The patchedContentId.
*/
+ @java.lang.Override
public java.lang.String getPatchedContentId() {
java.lang.Object ref = patchedContentId_;
if (ref instanceof java.lang.String) {
@@ -268,7 +230,9 @@ public java.lang.String getPatchedContentId() {
}
/**
* optional string PatchedContentId = 3;
+ * @return The bytes for patchedContentId.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getPatchedContentIdBytes() {
java.lang.Object ref = patchedContentId_;
@@ -287,30 +251,30 @@ public java.lang.String getPatchedContentId() {
private Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx documentId_;
/**
* optional .Diadoc.Api.Proto.DocumentIdEx DocumentId = 4;
+ * @return Whether the documentId field is set.
*/
+ @java.lang.Override
public boolean hasDocumentId() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .Diadoc.Api.Proto.DocumentIdEx DocumentId = 4;
+ * @return The documentId.
*/
+ @java.lang.Override
public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx getDocumentId() {
- return documentId_;
+ return documentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.getDefaultInstance() : documentId_;
}
/**
* optional .Diadoc.Api.Proto.DocumentIdEx DocumentId = 4;
*/
+ @java.lang.Override
public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdExOrBuilder getDocumentIdOrBuilder() {
- return documentId_;
+ return documentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.getDefaultInstance() : documentId_;
}
- private void initFields() {
- content_ = com.google.protobuf.ByteString.EMPTY;
- nameOnShelf_ = "";
- patchedContentId_ = "";
- documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -326,58 +290,122 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeBytes(1, content_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getNameOnShelfBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, nameOnShelf_);
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeBytes(3, getPatchedContentIdBytes());
+ if (((bitField0_ & 0x00000004) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, patchedContentId_);
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeMessage(4, documentId_);
+ if (((bitField0_ & 0x00000008) != 0)) {
+ output.writeMessage(4, getDocumentId());
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, content_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getNameOnShelfBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nameOnShelf_);
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, getPatchedContentIdBytes());
+ if (((bitField0_ & 0x00000004) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, patchedContentId_);
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
+ if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(4, documentId_);
+ .computeMessageSize(4, getDocumentId());
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.Content_v2Protos.Content_v2)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.Content_v2Protos.Content_v2 other = (Diadoc.Api.Proto.Content_v2Protos.Content_v2) obj;
+
+ if (hasContent() != other.hasContent()) return false;
+ if (hasContent()) {
+ if (!getContent()
+ .equals(other.getContent())) return false;
+ }
+ if (hasNameOnShelf() != other.hasNameOnShelf()) return false;
+ if (hasNameOnShelf()) {
+ if (!getNameOnShelf()
+ .equals(other.getNameOnShelf())) return false;
+ }
+ if (hasPatchedContentId() != other.hasPatchedContentId()) return false;
+ if (hasPatchedContentId()) {
+ if (!getPatchedContentId()
+ .equals(other.getPatchedContentId())) return false;
+ }
+ if (hasDocumentId() != other.hasDocumentId()) return false;
+ if (hasDocumentId()) {
+ if (!getDocumentId()
+ .equals(other.getDocumentId())) 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 (hasContent()) {
+ hash = (37 * hash) + CONTENT_FIELD_NUMBER;
+ hash = (53 * hash) + getContent().hashCode();
+ }
+ if (hasNameOnShelf()) {
+ hash = (37 * hash) + NAMEONSHELF_FIELD_NUMBER;
+ hash = (53 * hash) + getNameOnShelf().hashCode();
+ }
+ if (hasPatchedContentId()) {
+ hash = (37 * hash) + PATCHEDCONTENTID_FIELD_NUMBER;
+ hash = (53 * hash) + getPatchedContentId().hashCode();
+ }
+ if (hasDocumentId()) {
+ hash = (37 * hash) + DOCUMENTID_FIELD_NUMBER;
+ hash = (53 * hash) + getDocumentId().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
+ public static Diadoc.Api.Proto.Content_v2Protos.Content_v2 parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.Content_v2Protos.Content_v2 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.Content_v2Protos.Content_v2 parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -401,42 +429,57 @@ public static Diadoc.Api.Proto.Content_v2Protos.Content_v2 parseFrom(
}
public static Diadoc.Api.Proto.Content_v2Protos.Content_v2 parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.Content_v2Protos.Content_v2 parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.Content_v2Protos.Content_v2 parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.Content_v2Protos.Content_v2 parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.Content_v2Protos.Content_v2 parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.Content_v2Protos.Content_v2 parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.Content_v2Protos.Content_v2 prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -456,6 +499,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.Content_v2Protos.internal_static_Diadoc_Api_Proto_Content_v2_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.Content_v2Protos.internal_static_Diadoc_Api_Proto_Content_v2_fieldAccessorTable
@@ -474,44 +518,38 @@ private Builder(
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessage
+ .alwaysUseFieldBuilders) {
getDocumentIdFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
content_ = com.google.protobuf.ByteString.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
nameOnShelf_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
patchedContentId_ = "";
- bitField0_ = (bitField0_ & ~0x00000004);
- if (documentIdBuilder_ == null) {
- documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.getDefaultInstance();
- } else {
- documentIdBuilder_.clear();
+ documentId_ = null;
+ if (documentIdBuilder_ != null) {
+ documentIdBuilder_.dispose();
+ documentIdBuilder_ = null;
}
- bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.Content_v2Protos.internal_static_Diadoc_Api_Proto_Content_v2_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.Content_v2Protos.Content_v2 getDefaultInstanceForType() {
return Diadoc.Api.Proto.Content_v2Protos.Content_v2.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.Content_v2Protos.Content_v2 build() {
Diadoc.Api.Proto.Content_v2Protos.Content_v2 result = buildPartial();
if (!result.isInitialized()) {
@@ -520,35 +558,39 @@ public Diadoc.Api.Proto.Content_v2Protos.Content_v2 build() {
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.Content_v2Protos.Content_v2 buildPartial() {
Diadoc.Api.Proto.Content_v2Protos.Content_v2 result = new Diadoc.Api.Proto.Content_v2Protos.Content_v2(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(Diadoc.Api.Proto.Content_v2Protos.Content_v2 result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.content_ = content_;
to_bitField0_ |= 0x00000001;
}
- result.content_ = content_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.nameOnShelf_ = nameOnShelf_;
to_bitField0_ |= 0x00000002;
}
- result.nameOnShelf_ = nameOnShelf_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.patchedContentId_ = patchedContentId_;
to_bitField0_ |= 0x00000004;
}
- result.patchedContentId_ = patchedContentId_;
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.documentId_ = documentIdBuilder_ == null
+ ? documentId_
+ : documentIdBuilder_.build();
to_bitField0_ |= 0x00000008;
}
- if (documentIdBuilder_ == null) {
- result.documentId_ = documentId_;
- } else {
- result.documentId_ = documentIdBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
+ result.bitField0_ |= to_bitField0_;
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.Content_v2Protos.Content_v2) {
return mergeFrom((Diadoc.Api.Proto.Content_v2Protos.Content_v2)other);
@@ -564,47 +606,84 @@ public Builder mergeFrom(Diadoc.Api.Proto.Content_v2Protos.Content_v2 other) {
setContent(other.getContent());
}
if (other.hasNameOnShelf()) {
- bitField0_ |= 0x00000002;
nameOnShelf_ = other.nameOnShelf_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasPatchedContentId()) {
- bitField0_ |= 0x00000004;
patchedContentId_ = other.patchedContentId_;
+ bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasDocumentId()) {
mergeDocumentId(other.getDocumentId());
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
if (hasDocumentId()) {
if (!getDocumentId().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 {
- Diadoc.Api.Proto.Content_v2Protos.Content_v2 parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ content_ = input.readBytes();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ nameOnShelf_ = input.readBytes();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ patchedContentId_ = input.readBytes();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34: {
+ input.readMessage(
+ getDocumentIdFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (Diadoc.Api.Proto.Content_v2Protos.Content_v2) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
@@ -612,30 +691,35 @@ public Builder mergeFrom(
private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes Content = 1;
+ * @return Whether the content field is set.
*/
+ @java.lang.Override
public boolean hasContent() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional bytes Content = 1;
+ * @return The content.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getContent() {
return content_;
}
/**
* optional bytes Content = 1;
+ * @param value The content to set.
+ * @return This builder for chaining.
*/
public Builder setContent(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
content_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional bytes Content = 1;
+ * @return This builder for chaining.
*/
public Builder clearContent() {
bitField0_ = (bitField0_ & ~0x00000001);
@@ -647,12 +731,14 @@ public Builder clearContent() {
private java.lang.Object nameOnShelf_ = "";
/**
* optional string NameOnShelf = 2;
+ * @return Whether the nameOnShelf field is set.
*/
public boolean hasNameOnShelf() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string NameOnShelf = 2;
+ * @return The nameOnShelf.
*/
public java.lang.String getNameOnShelf() {
java.lang.Object ref = nameOnShelf_;
@@ -670,6 +756,7 @@ public java.lang.String getNameOnShelf() {
}
/**
* optional string NameOnShelf = 2;
+ * @return The bytes for nameOnShelf.
*/
public com.google.protobuf.ByteString
getNameOnShelfBytes() {
@@ -686,36 +773,37 @@ public java.lang.String getNameOnShelf() {
}
/**
* optional string NameOnShelf = 2;
+ * @param value The nameOnShelf to set.
+ * @return This builder for chaining.
*/
public Builder setNameOnShelf(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
+ if (value == null) { throw new NullPointerException(); }
nameOnShelf_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional string NameOnShelf = 2;
+ * @return This builder for chaining.
*/
public Builder clearNameOnShelf() {
- bitField0_ = (bitField0_ & ~0x00000002);
nameOnShelf_ = getDefaultInstance().getNameOnShelf();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* optional string NameOnShelf = 2;
+ * @param value The bytes for nameOnShelf to set.
+ * @return This builder for chaining.
*/
public Builder setNameOnShelfBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
+ if (value == null) { throw new NullPointerException(); }
nameOnShelf_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
@@ -723,12 +811,14 @@ public Builder setNameOnShelfBytes(
private java.lang.Object patchedContentId_ = "";
/**
* optional string PatchedContentId = 3;
+ * @return Whether the patchedContentId field is set.
*/
public boolean hasPatchedContentId() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string PatchedContentId = 3;
+ * @return The patchedContentId.
*/
public java.lang.String getPatchedContentId() {
java.lang.Object ref = patchedContentId_;
@@ -746,6 +836,7 @@ public java.lang.String getPatchedContentId() {
}
/**
* optional string PatchedContentId = 3;
+ * @return The bytes for patchedContentId.
*/
public com.google.protobuf.ByteString
getPatchedContentIdBytes() {
@@ -762,55 +853,58 @@ public java.lang.String getPatchedContentId() {
}
/**
* optional string PatchedContentId = 3;
+ * @param value The patchedContentId to set.
+ * @return This builder for chaining.
*/
public Builder setPatchedContentId(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
+ if (value == null) { throw new NullPointerException(); }
patchedContentId_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional string PatchedContentId = 3;
+ * @return This builder for chaining.
*/
public Builder clearPatchedContentId() {
- bitField0_ = (bitField0_ & ~0x00000004);
patchedContentId_ = getDefaultInstance().getPatchedContentId();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* optional string PatchedContentId = 3;
+ * @param value The bytes for patchedContentId to set.
+ * @return This builder for chaining.
*/
public Builder setPatchedContentIdBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
+ if (value == null) { throw new NullPointerException(); }
patchedContentId_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
- private Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.getDefaultInstance();
+ private Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx documentId_;
private com.google.protobuf.SingleFieldBuilder<
Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.Builder, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdExOrBuilder> documentIdBuilder_;
/**
* optional .Diadoc.Api.Proto.DocumentIdEx DocumentId = 4;
+ * @return Whether the documentId field is set.
*/
public boolean hasDocumentId() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .Diadoc.Api.Proto.DocumentIdEx DocumentId = 4;
+ * @return The documentId.
*/
public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx getDocumentId() {
if (documentIdBuilder_ == null) {
- return documentId_;
+ return documentId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.getDefaultInstance() : documentId_;
} else {
return documentIdBuilder_.getMessage();
}
@@ -824,11 +918,11 @@ public Builder setDocumentId(Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx valu
throw new NullPointerException();
}
documentId_ = value;
- onChanged();
} else {
documentIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
@@ -838,11 +932,11 @@ public Builder setDocumentId(
Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.Builder builderForValue) {
if (documentIdBuilder_ == null) {
documentId_ = builderForValue.build();
- onChanged();
} else {
documentIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
+ onChanged();
return this;
}
/**
@@ -850,31 +944,33 @@ public Builder setDocumentId(
*/
public Builder mergeDocumentId(Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx value) {
if (documentIdBuilder_ == null) {
- if (((bitField0_ & 0x00000008) == 0x00000008) &&
- documentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.getDefaultInstance()) {
- documentId_ =
- Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.newBuilder(documentId_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000008) != 0) &&
+ documentId_ != null &&
+ documentId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.getDefaultInstance()) {
+ getDocumentIdBuilder().mergeFrom(value);
} else {
documentId_ = value;
}
- onChanged();
} else {
documentIdBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000008;
+ if (documentId_ != null) {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ }
return this;
}
/**
* optional .Diadoc.Api.Proto.DocumentIdEx DocumentId = 4;
*/
public Builder clearDocumentId() {
- if (documentIdBuilder_ == null) {
- documentId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.getDefaultInstance();
- onChanged();
- } else {
- documentIdBuilder_.clear();
- }
bitField0_ = (bitField0_ & ~0x00000008);
+ documentId_ = null;
+ if (documentIdBuilder_ != null) {
+ documentIdBuilder_.dispose();
+ documentIdBuilder_ = null;
+ }
+ onChanged();
return this;
}
/**
@@ -892,7 +988,8 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdExOrBuilder getDocumentIdOrBu
if (documentIdBuilder_ != null) {
return documentIdBuilder_.getMessageOrBuilder();
} else {
- return documentId_;
+ return documentId_ == null ?
+ Diadoc.Api.Proto.DocumentIdProtos.DocumentIdEx.getDefaultInstance() : documentId_;
}
}
/**
@@ -915,17 +1012,57 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdExOrBuilder getDocumentIdOrBu
// @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Content_v2)
}
+ // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Content_v2)
+ private static final Diadoc.Api.Proto.Content_v2Protos.Content_v2 DEFAULT_INSTANCE;
static {
- defaultInstance = new Content_v2(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new Diadoc.Api.Proto.Content_v2Protos.Content_v2();
+ }
+
+ public static Diadoc.Api.Proto.Content_v2Protos.Content_v2 getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parseroptional bytes Content = 1;
+ * @return Whether the content field is set.
*/
boolean hasContent();
/**
* optional bytes Content = 1;
+ * @return The content.
*/
com.google.protobuf.ByteString getContent();
/**
* optional string NameOnShelf = 2;
+ * @return Whether the nameOnShelf field is set.
*/
boolean hasNameOnShelf();
/**
* optional string NameOnShelf = 2;
+ * @return The nameOnShelf.
*/
java.lang.String getNameOnShelf();
/**
* optional string NameOnShelf = 2;
+ * @return The bytes for nameOnShelf.
*/
com.google.protobuf.ByteString
getNameOnShelfBytes();
/**
* optional .Diadoc.Api.Proto.DocumentId EntityId = 3;
+ * @return Whether the entityId field is set.
*/
boolean hasEntityId();
/**
* optional .Diadoc.Api.Proto.DocumentId EntityId = 3;
+ * @return The entityId.
*/
Diadoc.Api.Proto.DocumentIdProtos.DocumentId getEntityId();
/**
@@ -50,14 +74,17 @@ public interface Content_v3OrBuilder extends
/**
* optional string PatchedContentId = 4;
+ * @return Whether the patchedContentId field is set.
*/
boolean hasPatchedContentId();
/**
* optional string PatchedContentId = 4;
+ * @return The patchedContentId.
*/
java.lang.String getPatchedContentId();
/**
* optional string PatchedContentId = 4;
+ * @return The bytes for patchedContentId.
*/
com.google.protobuf.ByteString
getPatchedContentIdBytes();
@@ -69,98 +96,32 @@ public static final class Content_v3 extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.Content_v3)
Content_v3OrBuilder {
+ 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= */ "",
+ Content_v3.class.getName());
+ }
// Use Content_v3.newBuilder() to construct.
private Content_v3(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private Content_v3(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final Content_v3 defaultInstance;
- public static Content_v3 getDefaultInstance() {
- return defaultInstance;
}
-
- public Content_v3 getDefaultInstanceForType() {
- return defaultInstance;
+ private Content_v3() {
+ content_ = com.google.protobuf.ByteString.EMPTY;
+ nameOnShelf_ = "";
+ patchedContentId_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private Content_v3(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- bitField0_ |= 0x00000001;
- content_ = input.readBytes();
- break;
- }
- case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- nameOnShelf_ = bs;
- break;
- }
- case 26: {
- Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder subBuilder = null;
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- subBuilder = entityId_.toBuilder();
- }
- entityId_ = input.readMessage(Diadoc.Api.Proto.DocumentIdProtos.DocumentId.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(entityId_);
- entityId_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000004;
- break;
- }
- case 34: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000008;
- patchedContentId_ = bs;
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Diadoc.Api.Proto.Content_v3Protos.internal_static_Diadoc_Api_Proto_Content_v3_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.Content_v3Protos.internal_static_Diadoc_Api_Proto_Content_v3_fieldAccessorTable
@@ -168,48 +129,42 @@ private Content_v3(
Diadoc.Api.Proto.Content_v3Protos.Content_v3.class, Diadoc.Api.Proto.Content_v3Protos.Content_v3.Builder.class);
}
- public static com.google.protobuf.Parseroptional bytes Content = 1;
+ * @return Whether the content field is set.
*/
+ @java.lang.Override
public boolean hasContent() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional bytes Content = 1;
+ * @return The content.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getContent() {
return content_;
}
public static final int NAMEONSHELF_FIELD_NUMBER = 2;
- private java.lang.Object nameOnShelf_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nameOnShelf_ = "";
/**
* optional string NameOnShelf = 2;
+ * @return Whether the nameOnShelf field is set.
*/
+ @java.lang.Override
public boolean hasNameOnShelf() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string NameOnShelf = 2;
+ * @return The nameOnShelf.
*/
+ @java.lang.Override
public java.lang.String getNameOnShelf() {
java.lang.Object ref = nameOnShelf_;
if (ref instanceof java.lang.String) {
@@ -226,7 +181,9 @@ public java.lang.String getNameOnShelf() {
}
/**
* optional string NameOnShelf = 2;
+ * @return The bytes for nameOnShelf.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getNameOnShelfBytes() {
java.lang.Object ref = nameOnShelf_;
@@ -245,34 +202,44 @@ public java.lang.String getNameOnShelf() {
private Diadoc.Api.Proto.DocumentIdProtos.DocumentId entityId_;
/**
* optional .Diadoc.Api.Proto.DocumentId EntityId = 3;
+ * @return Whether the entityId field is set.
*/
+ @java.lang.Override
public boolean hasEntityId() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .Diadoc.Api.Proto.DocumentId EntityId = 3;
+ * @return The entityId.
*/
+ @java.lang.Override
public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getEntityId() {
- return entityId_;
+ return entityId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : entityId_;
}
/**
* optional .Diadoc.Api.Proto.DocumentId EntityId = 3;
*/
+ @java.lang.Override
public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getEntityIdOrBuilder() {
- return entityId_;
+ return entityId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : entityId_;
}
public static final int PATCHEDCONTENTID_FIELD_NUMBER = 4;
- private java.lang.Object patchedContentId_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object patchedContentId_ = "";
/**
* optional string PatchedContentId = 4;
+ * @return Whether the patchedContentId field is set.
*/
+ @java.lang.Override
public boolean hasPatchedContentId() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string PatchedContentId = 4;
+ * @return The patchedContentId.
*/
+ @java.lang.Override
public java.lang.String getPatchedContentId() {
java.lang.Object ref = patchedContentId_;
if (ref instanceof java.lang.String) {
@@ -289,7 +256,9 @@ public java.lang.String getPatchedContentId() {
}
/**
* optional string PatchedContentId = 4;
+ * @return The bytes for patchedContentId.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getPatchedContentIdBytes() {
java.lang.Object ref = patchedContentId_;
@@ -304,13 +273,8 @@ public java.lang.String getPatchedContentId() {
}
}
- private void initFields() {
- content_ = com.google.protobuf.ByteString.EMPTY;
- nameOnShelf_ = "";
- entityId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance();
- patchedContentId_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -326,58 +290,122 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeBytes(1, content_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getNameOnShelfBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, nameOnShelf_);
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeMessage(3, entityId_);
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeMessage(3, getEntityId());
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- output.writeBytes(4, getPatchedContentIdBytes());
+ if (((bitField0_ & 0x00000008) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 4, patchedContentId_);
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, content_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getNameOnShelfBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nameOnShelf_);
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, entityId_);
+ .computeMessageSize(3, getEntityId());
}
- if (((bitField0_ & 0x00000008) == 0x00000008)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(4, getPatchedContentIdBytes());
+ if (((bitField0_ & 0x00000008) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(4, patchedContentId_);
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.Content_v3Protos.Content_v3)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.Content_v3Protos.Content_v3 other = (Diadoc.Api.Proto.Content_v3Protos.Content_v3) obj;
+
+ if (hasContent() != other.hasContent()) return false;
+ if (hasContent()) {
+ if (!getContent()
+ .equals(other.getContent())) return false;
+ }
+ if (hasNameOnShelf() != other.hasNameOnShelf()) return false;
+ if (hasNameOnShelf()) {
+ if (!getNameOnShelf()
+ .equals(other.getNameOnShelf())) return false;
+ }
+ if (hasEntityId() != other.hasEntityId()) return false;
+ if (hasEntityId()) {
+ if (!getEntityId()
+ .equals(other.getEntityId())) return false;
+ }
+ if (hasPatchedContentId() != other.hasPatchedContentId()) return false;
+ if (hasPatchedContentId()) {
+ if (!getPatchedContentId()
+ .equals(other.getPatchedContentId())) 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 (hasContent()) {
+ hash = (37 * hash) + CONTENT_FIELD_NUMBER;
+ hash = (53 * hash) + getContent().hashCode();
+ }
+ if (hasNameOnShelf()) {
+ hash = (37 * hash) + NAMEONSHELF_FIELD_NUMBER;
+ hash = (53 * hash) + getNameOnShelf().hashCode();
+ }
+ if (hasEntityId()) {
+ hash = (37 * hash) + ENTITYID_FIELD_NUMBER;
+ hash = (53 * hash) + getEntityId().hashCode();
+ }
+ if (hasPatchedContentId()) {
+ hash = (37 * hash) + PATCHEDCONTENTID_FIELD_NUMBER;
+ hash = (53 * hash) + getPatchedContentId().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
+ public static Diadoc.Api.Proto.Content_v3Protos.Content_v3 parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.Content_v3Protos.Content_v3 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.Content_v3Protos.Content_v3 parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -401,42 +429,57 @@ public static Diadoc.Api.Proto.Content_v3Protos.Content_v3 parseFrom(
}
public static Diadoc.Api.Proto.Content_v3Protos.Content_v3 parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.Content_v3Protos.Content_v3 parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.Content_v3Protos.Content_v3 parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.Content_v3Protos.Content_v3 parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.Content_v3Protos.Content_v3 parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.Content_v3Protos.Content_v3 parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.Content_v3Protos.Content_v3 prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -456,6 +499,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.Content_v3Protos.internal_static_Diadoc_Api_Proto_Content_v3_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.Content_v3Protos.internal_static_Diadoc_Api_Proto_Content_v3_fieldAccessorTable
@@ -474,44 +518,38 @@ private Builder(
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessage
+ .alwaysUseFieldBuilders) {
getEntityIdFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
content_ = com.google.protobuf.ByteString.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
nameOnShelf_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
- if (entityIdBuilder_ == null) {
- entityId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance();
- } else {
- entityIdBuilder_.clear();
+ entityId_ = null;
+ if (entityIdBuilder_ != null) {
+ entityIdBuilder_.dispose();
+ entityIdBuilder_ = null;
}
- bitField0_ = (bitField0_ & ~0x00000004);
patchedContentId_ = "";
- bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.Content_v3Protos.internal_static_Diadoc_Api_Proto_Content_v3_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.Content_v3Protos.Content_v3 getDefaultInstanceForType() {
return Diadoc.Api.Proto.Content_v3Protos.Content_v3.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.Content_v3Protos.Content_v3 build() {
Diadoc.Api.Proto.Content_v3Protos.Content_v3 result = buildPartial();
if (!result.isInitialized()) {
@@ -520,35 +558,39 @@ public Diadoc.Api.Proto.Content_v3Protos.Content_v3 build() {
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.Content_v3Protos.Content_v3 buildPartial() {
Diadoc.Api.Proto.Content_v3Protos.Content_v3 result = new Diadoc.Api.Proto.Content_v3Protos.Content_v3(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(Diadoc.Api.Proto.Content_v3Protos.Content_v3 result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.content_ = content_;
to_bitField0_ |= 0x00000001;
}
- result.content_ = content_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.nameOnShelf_ = nameOnShelf_;
to_bitField0_ |= 0x00000002;
}
- result.nameOnShelf_ = nameOnShelf_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.entityId_ = entityIdBuilder_ == null
+ ? entityId_
+ : entityIdBuilder_.build();
to_bitField0_ |= 0x00000004;
}
- if (entityIdBuilder_ == null) {
- result.entityId_ = entityId_;
- } else {
- result.entityId_ = entityIdBuilder_.build();
- }
- if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
+ if (((from_bitField0_ & 0x00000008) != 0)) {
+ result.patchedContentId_ = patchedContentId_;
to_bitField0_ |= 0x00000008;
}
- result.patchedContentId_ = patchedContentId_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
+ result.bitField0_ |= to_bitField0_;
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.Content_v3Protos.Content_v3) {
return mergeFrom((Diadoc.Api.Proto.Content_v3Protos.Content_v3)other);
@@ -564,47 +606,84 @@ public Builder mergeFrom(Diadoc.Api.Proto.Content_v3Protos.Content_v3 other) {
setContent(other.getContent());
}
if (other.hasNameOnShelf()) {
- bitField0_ |= 0x00000002;
nameOnShelf_ = other.nameOnShelf_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasEntityId()) {
mergeEntityId(other.getEntityId());
}
if (other.hasPatchedContentId()) {
- bitField0_ |= 0x00000008;
patchedContentId_ = other.patchedContentId_;
+ bitField0_ |= 0x00000008;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
if (hasEntityId()) {
if (!getEntityId().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 {
- Diadoc.Api.Proto.Content_v3Protos.Content_v3 parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ content_ = input.readBytes();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ nameOnShelf_ = input.readBytes();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ input.readMessage(
+ getEntityIdFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ case 34: {
+ patchedContentId_ = input.readBytes();
+ bitField0_ |= 0x00000008;
+ break;
+ } // case 34
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (Diadoc.Api.Proto.Content_v3Protos.Content_v3) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
@@ -612,30 +691,35 @@ public Builder mergeFrom(
private com.google.protobuf.ByteString content_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes Content = 1;
+ * @return Whether the content field is set.
*/
+ @java.lang.Override
public boolean hasContent() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional bytes Content = 1;
+ * @return The content.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString getContent() {
return content_;
}
/**
* optional bytes Content = 1;
+ * @param value The content to set.
+ * @return This builder for chaining.
*/
public Builder setContent(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
content_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional bytes Content = 1;
+ * @return This builder for chaining.
*/
public Builder clearContent() {
bitField0_ = (bitField0_ & ~0x00000001);
@@ -647,12 +731,14 @@ public Builder clearContent() {
private java.lang.Object nameOnShelf_ = "";
/**
* optional string NameOnShelf = 2;
+ * @return Whether the nameOnShelf field is set.
*/
public boolean hasNameOnShelf() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string NameOnShelf = 2;
+ * @return The nameOnShelf.
*/
public java.lang.String getNameOnShelf() {
java.lang.Object ref = nameOnShelf_;
@@ -670,6 +756,7 @@ public java.lang.String getNameOnShelf() {
}
/**
* optional string NameOnShelf = 2;
+ * @return The bytes for nameOnShelf.
*/
public com.google.protobuf.ByteString
getNameOnShelfBytes() {
@@ -686,55 +773,58 @@ public java.lang.String getNameOnShelf() {
}
/**
* optional string NameOnShelf = 2;
+ * @param value The nameOnShelf to set.
+ * @return This builder for chaining.
*/
public Builder setNameOnShelf(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
+ if (value == null) { throw new NullPointerException(); }
nameOnShelf_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional string NameOnShelf = 2;
+ * @return This builder for chaining.
*/
public Builder clearNameOnShelf() {
- bitField0_ = (bitField0_ & ~0x00000002);
nameOnShelf_ = getDefaultInstance().getNameOnShelf();
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* optional string NameOnShelf = 2;
+ * @param value The bytes for nameOnShelf to set.
+ * @return This builder for chaining.
*/
public Builder setNameOnShelfBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
+ if (value == null) { throw new NullPointerException(); }
nameOnShelf_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
- private Diadoc.Api.Proto.DocumentIdProtos.DocumentId entityId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance();
+ private Diadoc.Api.Proto.DocumentIdProtos.DocumentId entityId_;
private com.google.protobuf.SingleFieldBuilder<
Diadoc.Api.Proto.DocumentIdProtos.DocumentId, Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder, Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder> entityIdBuilder_;
/**
* optional .Diadoc.Api.Proto.DocumentId EntityId = 3;
+ * @return Whether the entityId field is set.
*/
public boolean hasEntityId() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .Diadoc.Api.Proto.DocumentId EntityId = 3;
+ * @return The entityId.
*/
public Diadoc.Api.Proto.DocumentIdProtos.DocumentId getEntityId() {
if (entityIdBuilder_ == null) {
- return entityId_;
+ return entityId_ == null ? Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : entityId_;
} else {
return entityIdBuilder_.getMessage();
}
@@ -748,11 +838,11 @@ public Builder setEntityId(Diadoc.Api.Proto.DocumentIdProtos.DocumentId value) {
throw new NullPointerException();
}
entityId_ = value;
- onChanged();
} else {
entityIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -762,11 +852,11 @@ public Builder setEntityId(
Diadoc.Api.Proto.DocumentIdProtos.DocumentId.Builder builderForValue) {
if (entityIdBuilder_ == null) {
entityId_ = builderForValue.build();
- onChanged();
} else {
entityIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -774,31 +864,33 @@ public Builder setEntityId(
*/
public Builder mergeEntityId(Diadoc.Api.Proto.DocumentIdProtos.DocumentId value) {
if (entityIdBuilder_ == null) {
- if (((bitField0_ & 0x00000004) == 0x00000004) &&
- entityId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) {
- entityId_ =
- Diadoc.Api.Proto.DocumentIdProtos.DocumentId.newBuilder(entityId_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000004) != 0) &&
+ entityId_ != null &&
+ entityId_ != Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance()) {
+ getEntityIdBuilder().mergeFrom(value);
} else {
entityId_ = value;
}
- onChanged();
} else {
entityIdBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000004;
+ if (entityId_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
return this;
}
/**
* optional .Diadoc.Api.Proto.DocumentId EntityId = 3;
*/
public Builder clearEntityId() {
- if (entityIdBuilder_ == null) {
- entityId_ = Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance();
- onChanged();
- } else {
- entityIdBuilder_.clear();
- }
bitField0_ = (bitField0_ & ~0x00000004);
+ entityId_ = null;
+ if (entityIdBuilder_ != null) {
+ entityIdBuilder_.dispose();
+ entityIdBuilder_ = null;
+ }
+ onChanged();
return this;
}
/**
@@ -816,7 +908,8 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getEntityIdOrBuilde
if (entityIdBuilder_ != null) {
return entityIdBuilder_.getMessageOrBuilder();
} else {
- return entityId_;
+ return entityId_ == null ?
+ Diadoc.Api.Proto.DocumentIdProtos.DocumentId.getDefaultInstance() : entityId_;
}
}
/**
@@ -839,12 +932,14 @@ public Diadoc.Api.Proto.DocumentIdProtos.DocumentIdOrBuilder getEntityIdOrBuilde
private java.lang.Object patchedContentId_ = "";
/**
* optional string PatchedContentId = 4;
+ * @return Whether the patchedContentId field is set.
*/
public boolean hasPatchedContentId() {
- return ((bitField0_ & 0x00000008) == 0x00000008);
+ return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string PatchedContentId = 4;
+ * @return The patchedContentId.
*/
public java.lang.String getPatchedContentId() {
java.lang.Object ref = patchedContentId_;
@@ -862,6 +957,7 @@ public java.lang.String getPatchedContentId() {
}
/**
* optional string PatchedContentId = 4;
+ * @return The bytes for patchedContentId.
*/
public com.google.protobuf.ByteString
getPatchedContentIdBytes() {
@@ -878,36 +974,37 @@ public java.lang.String getPatchedContentId() {
}
/**
* optional string PatchedContentId = 4;
+ * @param value The patchedContentId to set.
+ * @return This builder for chaining.
*/
public Builder setPatchedContentId(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
+ if (value == null) { throw new NullPointerException(); }
patchedContentId_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional string PatchedContentId = 4;
+ * @return This builder for chaining.
*/
public Builder clearPatchedContentId() {
- bitField0_ = (bitField0_ & ~0x00000008);
patchedContentId_ = getDefaultInstance().getPatchedContentId();
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* optional string PatchedContentId = 4;
+ * @param value The bytes for patchedContentId to set.
+ * @return This builder for chaining.
*/
public Builder setPatchedContentIdBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
+ if (value == null) { throw new NullPointerException(); }
patchedContentId_ = value;
+ bitField0_ |= 0x00000008;
onChanged();
return this;
}
@@ -915,17 +1012,57 @@ public Builder setPatchedContentIdBytes(
// @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.Content_v3)
}
+ // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.Content_v3)
+ private static final Diadoc.Api.Proto.Content_v3Protos.Content_v3 DEFAULT_INSTANCE;
static {
- defaultInstance = new Content_v3(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new Diadoc.Api.Proto.Content_v3Protos.Content_v3();
+ }
+
+ public static Diadoc.Api.Proto.Content_v3Protos.Content_v3 getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserrepeated string CounteragentBoxId = 1;
+ * @return A list containing the counteragentBoxId.
*/
- com.google.protobuf.ProtocolStringList
+ java.util.Listrepeated string CounteragentBoxId = 1;
+ * @return The count of counteragentBoxId.
*/
int getCounteragentBoxIdCount();
/**
* repeated string CounteragentBoxId = 1;
+ * @param index The index of the element to return.
+ * @return The counteragentBoxId at the given index.
*/
java.lang.String getCounteragentBoxId(int index);
/**
* repeated string CounteragentBoxId = 1;
+ * @param index The index of the value to return.
+ * @return The bytes of the counteragentBoxId at the given index.
*/
com.google.protobuf.ByteString
getCounteragentBoxIdBytes(int index);
/**
* required int32 TotalCount = 2;
+ * @return Whether the totalCount field is set.
*/
boolean hasTotalCount();
/**
* required int32 TotalCount = 2;
+ * @return The totalCount.
*/
int getTotalCount();
/**
* optional string AfterIndexKey = 3;
+ * @return Whether the afterIndexKey field is set.
*/
boolean hasAfterIndexKey();
/**
* optional string AfterIndexKey = 3;
+ * @return The afterIndexKey.
*/
java.lang.String getAfterIndexKey();
/**
* optional string AfterIndexKey = 3;
+ * @return The bytes for afterIndexKey.
*/
com.google.protobuf.ByteString
getAfterIndexKeyBytes();
@@ -61,91 +89,32 @@ public static final class CounteragentFromGroupResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponse)
CounteragentFromGroupResponseOrBuilder {
+ 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= */ "",
+ CounteragentFromGroupResponse.class.getName());
+ }
// Use CounteragentFromGroupResponse.newBuilder() to construct.
private CounteragentFromGroupResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private CounteragentFromGroupResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final CounteragentFromGroupResponse defaultInstance;
- public static CounteragentFromGroupResponse getDefaultInstance() {
- return defaultInstance;
}
-
- public CounteragentFromGroupResponse getDefaultInstanceForType() {
- return defaultInstance;
+ private CounteragentFromGroupResponse() {
+ counteragentBoxId_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ afterIndexKey_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private CounteragentFromGroupResponse(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
- if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- counteragentBoxId_ = new com.google.protobuf.LazyStringArrayList();
- mutable_bitField0_ |= 0x00000001;
- }
- counteragentBoxId_.add(bs);
- break;
- }
- case 16: {
- bitField0_ |= 0x00000001;
- totalCount_ = input.readInt32();
- break;
- }
- case 26: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- afterIndexKey_ = bs;
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- counteragentBoxId_ = counteragentBoxId_.getUnmodifiableView();
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentFromGroupResponse_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentFromGroupResponse_fieldAccessorTable
@@ -153,26 +122,14 @@ private CounteragentFromGroupResponse(
Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse.class, Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse.Builder.class);
}
- public static com.google.protobuf.Parserrepeated string CounteragentBoxId = 1;
+ * @return A list containing the counteragentBoxId.
*/
public com.google.protobuf.ProtocolStringList
getCounteragentBoxIdList() {
@@ -180,18 +137,23 @@ public com.google.protobuf.Parserrepeated string CounteragentBoxId = 1;
+ * @return The count of counteragentBoxId.
*/
public int getCounteragentBoxIdCount() {
return counteragentBoxId_.size();
}
/**
* repeated string CounteragentBoxId = 1;
+ * @param index The index of the element to return.
+ * @return The counteragentBoxId at the given index.
*/
public java.lang.String getCounteragentBoxId(int index) {
return counteragentBoxId_.get(index);
}
/**
* repeated string CounteragentBoxId = 1;
+ * @param index The index of the value to return.
+ * @return The bytes of the counteragentBoxId at the given index.
*/
public com.google.protobuf.ByteString
getCounteragentBoxIdBytes(int index) {
@@ -199,31 +161,40 @@ public java.lang.String getCounteragentBoxId(int index) {
}
public static final int TOTALCOUNT_FIELD_NUMBER = 2;
- private int totalCount_;
+ private int totalCount_ = 0;
/**
* required int32 TotalCount = 2;
+ * @return Whether the totalCount field is set.
*/
+ @java.lang.Override
public boolean hasTotalCount() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required int32 TotalCount = 2;
+ * @return The totalCount.
*/
+ @java.lang.Override
public int getTotalCount() {
return totalCount_;
}
public static final int AFTERINDEXKEY_FIELD_NUMBER = 3;
- private java.lang.Object afterIndexKey_;
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object afterIndexKey_ = "";
/**
* optional string AfterIndexKey = 3;
+ * @return Whether the afterIndexKey field is set.
*/
+ @java.lang.Override
public boolean hasAfterIndexKey() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string AfterIndexKey = 3;
+ * @return The afterIndexKey.
*/
+ @java.lang.Override
public java.lang.String getAfterIndexKey() {
java.lang.Object ref = afterIndexKey_;
if (ref instanceof java.lang.String) {
@@ -240,7 +211,9 @@ public java.lang.String getAfterIndexKey() {
}
/**
* optional string AfterIndexKey = 3;
+ * @return The bytes for afterIndexKey.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getAfterIndexKeyBytes() {
java.lang.Object ref = afterIndexKey_;
@@ -255,12 +228,8 @@ public java.lang.String getAfterIndexKey() {
}
}
- private void initFields() {
- counteragentBoxId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- totalCount_ = 0;
- afterIndexKey_ = "";
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -274,56 +243,108 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
for (int i = 0; i < counteragentBoxId_.size(); i++) {
- output.writeBytes(1, counteragentBoxId_.getByteString(i));
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, counteragentBoxId_.getRaw(i));
}
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt32(2, totalCount_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(3, getAfterIndexKeyBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 3, afterIndexKey_);
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < counteragentBoxId_.size(); i++) {
- dataSize += com.google.protobuf.CodedOutputStream
- .computeBytesSizeNoTag(counteragentBoxId_.getByteString(i));
+ dataSize += computeStringSizeNoTag(counteragentBoxId_.getRaw(i));
}
size += dataSize;
size += 1 * getCounteragentBoxIdList().size();
}
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, totalCount_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(3, getAfterIndexKeyBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(3, afterIndexKey_);
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse other = (Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse) obj;
+
+ if (!getCounteragentBoxIdList()
+ .equals(other.getCounteragentBoxIdList())) return false;
+ if (hasTotalCount() != other.hasTotalCount()) return false;
+ if (hasTotalCount()) {
+ if (getTotalCount()
+ != other.getTotalCount()) return false;
+ }
+ if (hasAfterIndexKey() != other.hasAfterIndexKey()) return false;
+ if (hasAfterIndexKey()) {
+ if (!getAfterIndexKey()
+ .equals(other.getAfterIndexKey())) 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 (getCounteragentBoxIdCount() > 0) {
+ hash = (37 * hash) + COUNTERAGENTBOXID_FIELD_NUMBER;
+ hash = (53 * hash) + getCounteragentBoxIdList().hashCode();
+ }
+ if (hasTotalCount()) {
+ hash = (37 * hash) + TOTALCOUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getTotalCount();
+ }
+ if (hasAfterIndexKey()) {
+ hash = (37 * hash) + AFTERINDEXKEY_FIELD_NUMBER;
+ hash = (53 * hash) + getAfterIndexKey().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
+ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse 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.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -347,42 +368,57 @@ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseP
}
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -402,6 +438,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentFromGroupResponse_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentFromGroupResponse_fieldAccessorTable
@@ -411,46 +448,37 @@ public static final class Builder extends
// Construct using Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse.newBuilder()
private Builder() {
- maybeForceBuilderInitialization();
+
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- }
- }
- private static Builder create() {
- return new Builder();
- }
+ }
+ @java.lang.Override
public Builder clear() {
super.clear();
- counteragentBoxId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = 0;
+ counteragentBoxId_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
totalCount_ = 0;
- bitField0_ = (bitField0_ & ~0x00000002);
afterIndexKey_ = "";
- bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentFromGroupResponse_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse getDefaultInstanceForType() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse build() {
Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse result = buildPartial();
if (!result.isInitialized()) {
@@ -459,28 +487,33 @@ public Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.C
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse buildPartial() {
Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse result = new Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse result) {
int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- counteragentBoxId_ = counteragentBoxId_.getUnmodifiableView();
- bitField0_ = (bitField0_ & ~0x00000001);
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ counteragentBoxId_.makeImmutable();
+ result.counteragentBoxId_ = counteragentBoxId_;
}
- result.counteragentBoxId_ = counteragentBoxId_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.totalCount_ = totalCount_;
to_bitField0_ |= 0x00000001;
}
- result.totalCount_ = totalCount_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.afterIndexKey_ = afterIndexKey_;
to_bitField0_ |= 0x00000002;
}
- result.afterIndexKey_ = afterIndexKey_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
+ result.bitField0_ |= to_bitField0_;
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse) {
return mergeFrom((Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse)other);
@@ -495,7 +528,7 @@ public Builder mergeFrom(Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGro
if (!other.counteragentBoxId_.isEmpty()) {
if (counteragentBoxId_.isEmpty()) {
counteragentBoxId_ = other.counteragentBoxId_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ |= 0x00000001;
} else {
ensureCounteragentBoxIdIsMutable();
counteragentBoxId_.addAll(other.counteragentBoxId_);
@@ -506,69 +539,108 @@ public Builder mergeFrom(Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGro
setTotalCount(other.getTotalCount());
}
if (other.hasAfterIndexKey()) {
- bitField0_ |= 0x00000004;
afterIndexKey_ = other.afterIndexKey_;
+ bitField0_ |= 0x00000004;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
if (!hasTotalCount()) {
-
return false;
}
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.google.protobuf.ByteString bs = input.readBytes();
+ ensureCounteragentBoxIdIsMutable();
+ counteragentBoxId_.add(bs);
+ break;
+ } // case 10
+ case 16: {
+ totalCount_ = input.readInt32();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ case 26: {
+ afterIndexKey_ = input.readBytes();
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
- private com.google.protobuf.LazyStringList counteragentBoxId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ private com.google.protobuf.LazyStringArrayList counteragentBoxId_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureCounteragentBoxIdIsMutable() {
- if (!((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (!counteragentBoxId_.isModifiable()) {
counteragentBoxId_ = new com.google.protobuf.LazyStringArrayList(counteragentBoxId_);
- bitField0_ |= 0x00000001;
- }
+ }
+ bitField0_ |= 0x00000001;
}
/**
* repeated string CounteragentBoxId = 1;
+ * @return A list containing the counteragentBoxId.
*/
public com.google.protobuf.ProtocolStringList
getCounteragentBoxIdList() {
- return counteragentBoxId_.getUnmodifiableView();
+ counteragentBoxId_.makeImmutable();
+ return counteragentBoxId_;
}
/**
* repeated string CounteragentBoxId = 1;
+ * @return The count of counteragentBoxId.
*/
public int getCounteragentBoxIdCount() {
return counteragentBoxId_.size();
}
/**
* repeated string CounteragentBoxId = 1;
+ * @param index The index of the element to return.
+ * @return The counteragentBoxId at the given index.
*/
public java.lang.String getCounteragentBoxId(int index) {
return counteragentBoxId_.get(index);
}
/**
* repeated string CounteragentBoxId = 1;
+ * @param index The index of the value to return.
+ * @return The bytes of the counteragentBoxId at the given index.
*/
public com.google.protobuf.ByteString
getCounteragentBoxIdBytes(int index) {
@@ -576,60 +648,69 @@ public java.lang.String getCounteragentBoxId(int index) {
}
/**
* repeated string CounteragentBoxId = 1;
+ * @param index The index to set the value at.
+ * @param value The counteragentBoxId to set.
+ * @return This builder for chaining.
*/
public Builder setCounteragentBoxId(
int index, java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureCounteragentBoxIdIsMutable();
+ if (value == null) { throw new NullPointerException(); }
+ ensureCounteragentBoxIdIsMutable();
counteragentBoxId_.set(index, value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string CounteragentBoxId = 1;
+ * @param value The counteragentBoxId to add.
+ * @return This builder for chaining.
*/
public Builder addCounteragentBoxId(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureCounteragentBoxIdIsMutable();
+ if (value == null) { throw new NullPointerException(); }
+ ensureCounteragentBoxIdIsMutable();
counteragentBoxId_.add(value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* repeated string CounteragentBoxId = 1;
+ * @param values The counteragentBoxId to add.
+ * @return This builder for chaining.
*/
public Builder addAllCounteragentBoxId(
java.lang.Iterablerepeated string CounteragentBoxId = 1;
+ * @return This builder for chaining.
*/
public Builder clearCounteragentBoxId() {
- counteragentBoxId_ = com.google.protobuf.LazyStringArrayList.EMPTY;
- bitField0_ = (bitField0_ & ~0x00000001);
+ counteragentBoxId_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);;
onChanged();
return this;
}
/**
* repeated string CounteragentBoxId = 1;
+ * @param value The bytes of the counteragentBoxId to add.
+ * @return This builder for chaining.
*/
public Builder addCounteragentBoxIdBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureCounteragentBoxIdIsMutable();
+ if (value == null) { throw new NullPointerException(); }
+ ensureCounteragentBoxIdIsMutable();
counteragentBoxId_.add(value);
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -637,27 +718,35 @@ public Builder addCounteragentBoxIdBytes(
private int totalCount_ ;
/**
* required int32 TotalCount = 2;
+ * @return Whether the totalCount field is set.
*/
+ @java.lang.Override
public boolean hasTotalCount() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required int32 TotalCount = 2;
+ * @return The totalCount.
*/
+ @java.lang.Override
public int getTotalCount() {
return totalCount_;
}
/**
* required int32 TotalCount = 2;
+ * @param value The totalCount to set.
+ * @return This builder for chaining.
*/
public Builder setTotalCount(int value) {
- bitField0_ |= 0x00000002;
+
totalCount_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* required int32 TotalCount = 2;
+ * @return This builder for chaining.
*/
public Builder clearTotalCount() {
bitField0_ = (bitField0_ & ~0x00000002);
@@ -669,12 +758,14 @@ public Builder clearTotalCount() {
private java.lang.Object afterIndexKey_ = "";
/**
* optional string AfterIndexKey = 3;
+ * @return Whether the afterIndexKey field is set.
*/
public boolean hasAfterIndexKey() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string AfterIndexKey = 3;
+ * @return The afterIndexKey.
*/
public java.lang.String getAfterIndexKey() {
java.lang.Object ref = afterIndexKey_;
@@ -692,6 +783,7 @@ public java.lang.String getAfterIndexKey() {
}
/**
* optional string AfterIndexKey = 3;
+ * @return The bytes for afterIndexKey.
*/
public com.google.protobuf.ByteString
getAfterIndexKeyBytes() {
@@ -708,36 +800,37 @@ public java.lang.String getAfterIndexKey() {
}
/**
* optional string AfterIndexKey = 3;
+ * @param value The afterIndexKey to set.
+ * @return This builder for chaining.
*/
public Builder setAfterIndexKey(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
+ if (value == null) { throw new NullPointerException(); }
afterIndexKey_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional string AfterIndexKey = 3;
+ * @return This builder for chaining.
*/
public Builder clearAfterIndexKey() {
- bitField0_ = (bitField0_ & ~0x00000004);
afterIndexKey_ = getDefaultInstance().getAfterIndexKey();
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* optional string AfterIndexKey = 3;
+ * @param value The bytes for afterIndexKey to set.
+ * @return This builder for chaining.
*/
public Builder setAfterIndexKeyBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
+ if (value == null) { throw new NullPointerException(); }
afterIndexKey_ = value;
+ bitField0_ |= 0x00000004;
onChanged();
return this;
}
@@ -745,17 +838,57 @@ public Builder setAfterIndexKeyBytes(
// @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponse)
}
+ // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponse)
+ private static final Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse DEFAULT_INSTANCE;
static {
- defaultInstance = new CounteragentFromGroupResponse(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse();
+ }
+
+ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentFromGroupResponseProtos.CounteragentFromGroupResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserrequired string CounteragentGroupId = 1;
+ * @return Whether the counteragentGroupId field is set.
*/
boolean hasCounteragentGroupId();
/**
* required string CounteragentGroupId = 1;
+ * @return The counteragentGroupId.
*/
java.lang.String getCounteragentGroupId();
/**
* required string CounteragentGroupId = 1;
+ * @return The bytes for counteragentGroupId.
*/
com.google.protobuf.ByteString
getCounteragentGroupIdBytes();
/**
* 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();
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 3;
+ * @return Whether the departments field is set.
*/
boolean hasDepartments();
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 3;
+ * @return The departments.
*/
Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup getDepartments();
/**
@@ -60,93 +85,31 @@ public static final class CounteragentGroup extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroup)
CounteragentGroupOrBuilder {
+ 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= */ "",
+ CounteragentGroup.class.getName());
+ }
// Use CounteragentGroup.newBuilder() to construct.
private CounteragentGroup(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private CounteragentGroup(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final CounteragentGroup defaultInstance;
- public static CounteragentGroup getDefaultInstance() {
- return defaultInstance;
- }
-
- public CounteragentGroup getDefaultInstanceForType() {
- return defaultInstance;
+ private CounteragentGroup() {
+ counteragentGroupId_ = "";
+ name_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private CounteragentGroup(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000001;
- counteragentGroupId_ = bs;
- break;
- }
- case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- name_ = bs;
- break;
- }
- case 26: {
- Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.Builder subBuilder = null;
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- subBuilder = departments_.toBuilder();
- }
- departments_ = input.readMessage(Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(departments_);
- departments_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000004;
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroup_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroup_fieldAccessorTable
@@ -154,33 +117,23 @@ private CounteragentGroup(
Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup.class, Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup.Builder.class);
}
- public static com.google.protobuf.Parserrequired string CounteragentGroupId = 1;
+ * @return Whether the counteragentGroupId field is set.
*/
+ @java.lang.Override
public boolean hasCounteragentGroupId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string CounteragentGroupId = 1;
+ * @return The counteragentGroupId.
*/
+ @java.lang.Override
public java.lang.String getCounteragentGroupId() {
java.lang.Object ref = counteragentGroupId_;
if (ref instanceof java.lang.String) {
@@ -197,7 +150,9 @@ public java.lang.String getCounteragentGroupId() {
}
/**
* required string CounteragentGroupId = 1;
+ * @return The bytes for counteragentGroupId.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getCounteragentGroupIdBytes() {
java.lang.Object ref = counteragentGroupId_;
@@ -213,16 +168,21 @@ public java.lang.String getCounteragentGroupId() {
}
public static final int NAME_FIELD_NUMBER = 2;
- private java.lang.Object name_;
+ @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) == 0x00000002);
+ 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) {
@@ -239,7 +199,9 @@ public java.lang.String getName() {
}
/**
* required string Name = 2;
+ * @return The bytes for name.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
@@ -258,29 +220,30 @@ public java.lang.String getName() {
private Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup departments_;
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 3;
+ * @return Whether the departments field is set.
*/
+ @java.lang.Override
public boolean hasDepartments() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 3;
+ * @return The departments.
*/
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup getDepartments() {
- return departments_;
+ return departments_ == null ? Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance() : departments_;
}
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 3;
*/
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroupOrBuilder getDepartmentsOrBuilder() {
- return departments_;
+ return departments_ == null ? Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance() : departments_;
}
- private void initFields() {
- counteragentGroupId_ = "";
- name_ = "";
- departments_ = Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -298,51 +261,106 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getCounteragentGroupIdBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, counteragentGroupId_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeBytes(2, getNameBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 2, name_);
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
- output.writeMessage(3, departments_);
+ if (((bitField0_ & 0x00000004) != 0)) {
+ output.writeMessage(3, getDepartments());
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getCounteragentGroupIdBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, counteragentGroupId_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(2, getNameBytes());
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_);
}
- if (((bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(3, departments_);
+ .computeMessageSize(3, getDepartments());
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup other = (Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup) obj;
+
+ if (hasCounteragentGroupId() != other.hasCounteragentGroupId()) return false;
+ if (hasCounteragentGroupId()) {
+ if (!getCounteragentGroupId()
+ .equals(other.getCounteragentGroupId())) return false;
+ }
+ if (hasName() != other.hasName()) return false;
+ if (hasName()) {
+ if (!getName()
+ .equals(other.getName())) return false;
+ }
+ if (hasDepartments() != other.hasDepartments()) return false;
+ if (hasDepartments()) {
+ if (!getDepartments()
+ .equals(other.getDepartments())) 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 (hasCounteragentGroupId()) {
+ hash = (37 * hash) + COUNTERAGENTGROUPID_FIELD_NUMBER;
+ hash = (53 * hash) + getCounteragentGroupId().hashCode();
+ }
+ if (hasName()) {
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ }
+ if (hasDepartments()) {
+ hash = (37 * hash) + DEPARTMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getDepartments().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
+ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup 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.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -366,42 +384,57 @@ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.Counte
}
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -421,6 +454,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroup_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroup_fieldAccessorTable
@@ -439,42 +473,37 @@ private Builder(
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessage
+ .alwaysUseFieldBuilders) {
getDepartmentsFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
counteragentGroupId_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
name_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
- if (departmentsBuilder_ == null) {
- departments_ = Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance();
- } else {
- departmentsBuilder_.clear();
+ departments_ = null;
+ if (departmentsBuilder_ != null) {
+ departmentsBuilder_.dispose();
+ departmentsBuilder_ = null;
}
- bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroup_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup getDefaultInstanceForType() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup build() {
Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup result = buildPartial();
if (!result.isInitialized()) {
@@ -483,31 +512,35 @@ public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentG
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup buildPartial() {
Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup result = new Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.counteragentGroupId_ = counteragentGroupId_;
to_bitField0_ |= 0x00000001;
}
- result.counteragentGroupId_ = counteragentGroupId_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.name_ = name_;
to_bitField0_ |= 0x00000002;
}
- result.name_ = name_;
- if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ result.departments_ = departmentsBuilder_ == null
+ ? departments_
+ : departmentsBuilder_.build();
to_bitField0_ |= 0x00000004;
}
- if (departmentsBuilder_ == null) {
- result.departments_ = departments_;
- } else {
- result.departments_ = departmentsBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
+ result.bitField0_ |= to_bitField0_;
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup) {
return mergeFrom((Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup)other);
@@ -520,49 +553,80 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup other) {
if (other == Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup.getDefaultInstance()) return this;
if (other.hasCounteragentGroupId()) {
- bitField0_ |= 0x00000001;
counteragentGroupId_ = other.counteragentGroupId_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasName()) {
- bitField0_ |= 0x00000002;
name_ = other.name_;
+ bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasDepartments()) {
mergeDepartments(other.getDepartments());
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
if (!hasCounteragentGroupId()) {
-
return false;
}
if (!hasName()) {
-
return false;
}
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ counteragentGroupId_ = input.readBytes();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 10
+ case 18: {
+ name_ = input.readBytes();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ case 26: {
+ input.readMessage(
+ getDepartmentsFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000004;
+ break;
+ } // case 26
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
@@ -570,12 +634,14 @@ public Builder mergeFrom(
private java.lang.Object counteragentGroupId_ = "";
/**
* required string CounteragentGroupId = 1;
+ * @return Whether the counteragentGroupId field is set.
*/
public boolean hasCounteragentGroupId() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string CounteragentGroupId = 1;
+ * @return The counteragentGroupId.
*/
public java.lang.String getCounteragentGroupId() {
java.lang.Object ref = counteragentGroupId_;
@@ -593,6 +659,7 @@ public java.lang.String getCounteragentGroupId() {
}
/**
* required string CounteragentGroupId = 1;
+ * @return The bytes for counteragentGroupId.
*/
public com.google.protobuf.ByteString
getCounteragentGroupIdBytes() {
@@ -609,36 +676,37 @@ public java.lang.String getCounteragentGroupId() {
}
/**
* required string CounteragentGroupId = 1;
+ * @param value The counteragentGroupId to set.
+ * @return This builder for chaining.
*/
public Builder setCounteragentGroupId(
java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
counteragentGroupId_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required string CounteragentGroupId = 1;
+ * @return This builder for chaining.
*/
public Builder clearCounteragentGroupId() {
- bitField0_ = (bitField0_ & ~0x00000001);
counteragentGroupId_ = getDefaultInstance().getCounteragentGroupId();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* required string CounteragentGroupId = 1;
+ * @param value The bytes for counteragentGroupId to set.
+ * @return This builder for chaining.
*/
public Builder setCounteragentGroupIdBytes(
com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
counteragentGroupId_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
@@ -646,12 +714,14 @@ public Builder setCounteragentGroupIdBytes(
private java.lang.Object name_ = "";
/**
* required string Name = 2;
+ * @return Whether the name field is set.
*/
public boolean hasName() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required string Name = 2;
+ * @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
@@ -669,6 +739,7 @@ public java.lang.String getName() {
}
/**
* required string Name = 2;
+ * @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
@@ -685,55 +756,58 @@ public java.lang.String getName() {
}
/**
* 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();
- }
- bitField0_ |= 0x00000002;
+ 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() {
- bitField0_ = (bitField0_ & ~0x00000002);
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();
- }
- bitField0_ |= 0x00000002;
+ if (value == null) { throw new NullPointerException(); }
name_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
- private Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup departments_ = Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance();
+ private Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup departments_;
private com.google.protobuf.SingleFieldBuilder<
Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup, Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.Builder, Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroupOrBuilder> departmentsBuilder_;
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 3;
+ * @return Whether the departments field is set.
*/
public boolean hasDepartments() {
- return ((bitField0_ & 0x00000004) == 0x00000004);
+ return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 3;
+ * @return The departments.
*/
public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup getDepartments() {
if (departmentsBuilder_ == null) {
- return departments_;
+ return departments_ == null ? Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance() : departments_;
} else {
return departmentsBuilder_.getMessage();
}
@@ -747,11 +821,11 @@ public Builder setDepartments(Diadoc.Api.Proto.CounteragentGroups.DepartmentsInG
throw new NullPointerException();
}
departments_ = value;
- onChanged();
} else {
departmentsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -761,11 +835,11 @@ public Builder setDepartments(
Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.Builder builderForValue) {
if (departmentsBuilder_ == null) {
departments_ = builderForValue.build();
- onChanged();
} else {
departmentsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
+ onChanged();
return this;
}
/**
@@ -773,31 +847,33 @@ public Builder setDepartments(
*/
public Builder mergeDepartments(Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup value) {
if (departmentsBuilder_ == null) {
- if (((bitField0_ & 0x00000004) == 0x00000004) &&
- departments_ != Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance()) {
- departments_ =
- Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.newBuilder(departments_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000004) != 0) &&
+ departments_ != null &&
+ departments_ != Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance()) {
+ getDepartmentsBuilder().mergeFrom(value);
} else {
departments_ = value;
}
- onChanged();
} else {
departmentsBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000004;
+ if (departments_ != null) {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ }
return this;
}
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 3;
*/
public Builder clearDepartments() {
- if (departmentsBuilder_ == null) {
- departments_ = Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance();
- onChanged();
- } else {
- departmentsBuilder_.clear();
- }
bitField0_ = (bitField0_ & ~0x00000004);
+ departments_ = null;
+ if (departmentsBuilder_ != null) {
+ departmentsBuilder_.dispose();
+ departmentsBuilder_ = null;
+ }
+ onChanged();
return this;
}
/**
@@ -815,7 +891,8 @@ public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsI
if (departmentsBuilder_ != null) {
return departmentsBuilder_.getMessageOrBuilder();
} else {
- return departments_;
+ return departments_ == null ?
+ Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance() : departments_;
}
}
/**
@@ -838,12 +915,52 @@ public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsI
// @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroup)
}
+ // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroup)
+ private static final Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup DEFAULT_INSTANCE;
static {
- defaultInstance = new CounteragentGroup(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup();
+ }
+
+ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserrequired int32 TotalCount = 2;
+ * @return Whether the totalCount field is set.
*/
boolean hasTotalCount();
/**
* required int32 TotalCount = 2;
+ * @return The totalCount.
*/
int getTotalCount();
}
@@ -890,84 +1009,30 @@ public static final class CounteragentGroupsList extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupsList)
CounteragentGroupsListOrBuilder {
+ 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= */ "",
+ CounteragentGroupsList.class.getName());
+ }
// Use CounteragentGroupsList.newBuilder() to construct.
private CounteragentGroupsList(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private CounteragentGroupsList(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final CounteragentGroupsList defaultInstance;
- public static CounteragentGroupsList getDefaultInstance() {
- return defaultInstance;
}
-
- public CounteragentGroupsList getDefaultInstanceForType() {
- return defaultInstance;
+ private CounteragentGroupsList() {
+ groups_ = java.util.Collections.emptyList();
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private CounteragentGroupsList(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
- groups_ = new java.util.ArrayListrepeated .Diadoc.Api.Proto.CounteragentGroups.CounteragentGroup Groups = 1;
*/
+ @java.lang.Override
public java.util.Listrepeated .Diadoc.Api.Proto.CounteragentGroups.CounteragentGroup Groups = 1;
*/
+ @java.lang.Override
public java.util.List extends Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupOrBuilder>
getGroupsOrBuilderList() {
return groups_;
@@ -1009,43 +1062,47 @@ public java.util.Listrepeated .Diadoc.Api.Proto.CounteragentGroups.CounteragentGroup Groups = 1;
*/
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup getGroups(int index) {
return groups_.get(index);
}
/**
* repeated .Diadoc.Api.Proto.CounteragentGroups.CounteragentGroup Groups = 1;
*/
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupOrBuilder getGroupsOrBuilder(
int index) {
return groups_.get(index);
}
public static final int TOTALCOUNT_FIELD_NUMBER = 2;
- private int totalCount_;
+ private int totalCount_ = 0;
/**
* required int32 TotalCount = 2;
+ * @return Whether the totalCount field is set.
*/
+ @java.lang.Override
public boolean hasTotalCount() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required int32 TotalCount = 2;
+ * @return The totalCount.
*/
+ @java.lang.Override
public int getTotalCount() {
return totalCount_;
}
- private void initFields() {
- groups_ = java.util.Collections.emptyList();
- totalCount_ = 0;
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -1065,21 +1122,21 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
for (int i = 0; i < groups_.size(); i++) {
output.writeMessage(1, groups_.get(i));
}
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeInt32(2, totalCount_);
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
@@ -1087,22 +1144,67 @@ public int getSerializedSize() {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, groups_.get(i));
}
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, totalCount_);
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList other = (Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList) obj;
+
+ if (!getGroupsList()
+ .equals(other.getGroupsList())) return false;
+ if (hasTotalCount() != other.hasTotalCount()) return false;
+ if (hasTotalCount()) {
+ if (getTotalCount()
+ != other.getTotalCount()) 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 (getGroupsCount() > 0) {
+ hash = (37 * hash) + GROUPS_FIELD_NUMBER;
+ hash = (53 * hash) + getGroupsList().hashCode();
+ }
+ if (hasTotalCount()) {
+ hash = (37 * hash) + TOTALCOUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getTotalCount();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
+ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList 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.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -1126,42 +1228,57 @@ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.Counte
}
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -1181,6 +1298,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupsList_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupsList_fieldAccessorTable
@@ -1190,49 +1308,41 @@ public static final class Builder extends
// Construct using Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList.newBuilder()
private Builder() {
- maybeForceBuilderInitialization();
+
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
- getGroupsFieldBuilder();
- }
- }
- private static Builder create() {
- return new Builder();
- }
+ }
+ @java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
if (groupsBuilder_ == null) {
groups_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
} else {
+ groups_ = null;
groupsBuilder_.clear();
}
+ bitField0_ = (bitField0_ & ~0x00000001);
totalCount_ = 0;
- bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupsList_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList getDefaultInstanceForType() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList build() {
Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList result = buildPartial();
if (!result.isInitialized()) {
@@ -1241,12 +1351,18 @@ public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentG
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList buildPartial() {
Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList result = new Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
+ buildPartialRepeatedFields(result);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartialRepeatedFields(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList result) {
if (groupsBuilder_ == null) {
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
groups_ = java.util.Collections.unmodifiableList(groups_);
bitField0_ = (bitField0_ & ~0x00000001);
}
@@ -1254,15 +1370,19 @@ public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentG
} else {
result.groups_ = groupsBuilder_.build();
}
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ }
+
+ private void buildPartial0(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList result) {
+ int from_bitField0_ = bitField0_;
+ int to_bitField0_ = 0;
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.totalCount_ = totalCount_;
to_bitField0_ |= 0x00000001;
}
- result.totalCount_ = totalCount_;
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
+ result.bitField0_ |= to_bitField0_;
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList) {
return mergeFrom((Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList)other);
@@ -1304,38 +1424,70 @@ public Builder mergeFrom(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupPr
setTotalCount(other.getTotalCount());
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
if (!hasTotalCount()) {
-
return false;
}
for (int i = 0; i < getGroupsCount(); i++) {
if (!getGroups(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 {
- Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup m =
+ input.readMessage(
+ Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroup.parser(),
+ extensionRegistry);
+ if (groupsBuilder_ == null) {
+ ensureGroupsIsMutable();
+ groups_.add(m);
+ } else {
+ groupsBuilder_.addMessage(m);
+ }
+ break;
+ } // case 10
+ case 16: {
+ totalCount_ = input.readInt32();
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 16
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
@@ -1343,7 +1495,7 @@ public Builder mergeFrom(
private java.util.Listrequired int32 TotalCount = 2;
+ * @return Whether the totalCount field is set.
*/
+ @java.lang.Override
public boolean hasTotalCount() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* required int32 TotalCount = 2;
+ * @return The totalCount.
*/
+ @java.lang.Override
public int getTotalCount() {
return totalCount_;
}
/**
* required int32 TotalCount = 2;
+ * @param value The totalCount to set.
+ * @return This builder for chaining.
*/
public Builder setTotalCount(int value) {
- bitField0_ |= 0x00000002;
+
totalCount_ = value;
+ bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* required int32 TotalCount = 2;
+ * @return This builder for chaining.
*/
public Builder clearTotalCount() {
bitField0_ = (bitField0_ & ~0x00000002);
@@ -1615,22 +1775,62 @@ public Builder clearTotalCount() {
// @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupsList)
}
+ // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupsList)
+ private static final Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList DEFAULT_INSTANCE;
static {
- defaultInstance = new CounteragentGroupsList(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList();
+ }
+
+ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupProtos.CounteragentGroupsList getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserrequired 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();
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2;
+ * @return Whether the departments field is set.
*/
boolean hasDepartments();
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2;
+ * @return The departments.
*/
Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup getDepartments();
/**
@@ -46,87 +68,30 @@ public static final class CounteragentGroupToCreate extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreate)
CounteragentGroupToCreateOrBuilder {
+ 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= */ "",
+ CounteragentGroupToCreate.class.getName());
+ }
// Use CounteragentGroupToCreate.newBuilder() to construct.
private CounteragentGroupToCreate(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private CounteragentGroupToCreate(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final CounteragentGroupToCreate defaultInstance;
- public static CounteragentGroupToCreate getDefaultInstance() {
- return defaultInstance;
}
-
- public CounteragentGroupToCreate getDefaultInstanceForType() {
- return defaultInstance;
+ private CounteragentGroupToCreate() {
+ name_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private CounteragentGroupToCreate(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000001;
- name_ = bs;
- break;
- }
- case 18: {
- Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.Builder subBuilder = null;
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- subBuilder = departments_.toBuilder();
- }
- departments_ = input.readMessage(Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(departments_);
- departments_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000002;
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToCreate_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToCreate_fieldAccessorTable
@@ -134,33 +99,23 @@ private CounteragentGroupToCreate(
Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate.class, Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate.Builder.class);
}
- public static com.google.protobuf.Parserrequired string Name = 1;
+ * @return Whether the name field is set.
*/
+ @java.lang.Override
public boolean hasName() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ 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) {
@@ -177,7 +132,9 @@ public java.lang.String getName() {
}
/**
* required string Name = 1;
+ * @return The bytes for name.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
@@ -196,28 +153,30 @@ public java.lang.String getName() {
private Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup departments_;
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2;
+ * @return Whether the departments field is set.
*/
+ @java.lang.Override
public boolean hasDepartments() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2;
+ * @return The departments.
*/
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup getDepartments() {
- return departments_;
+ return departments_ == null ? Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance() : departments_;
}
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2;
*/
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroupOrBuilder getDepartmentsOrBuilder() {
- return departments_;
+ return departments_ == null ? Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance() : departments_;
}
- private void initFields() {
- name_ = "";
- departments_ = Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -231,44 +190,91 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getNameBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, name_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, departments_);
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(2, getDepartments());
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getNameBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, departments_);
+ .computeMessageSize(2, getDepartments());
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate other = (Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate) obj;
+
+ if (hasName() != other.hasName()) return false;
+ if (hasName()) {
+ if (!getName()
+ .equals(other.getName())) return false;
+ }
+ if (hasDepartments() != other.hasDepartments()) return false;
+ if (hasDepartments()) {
+ if (!getDepartments()
+ .equals(other.getDepartments())) 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 (hasDepartments()) {
+ hash = (37 * hash) + DEPARTMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getDepartments().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
+ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate 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.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -292,42 +298,57 @@ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProto
}
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -347,6 +368,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToCreate_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToCreate_fieldAccessorTable
@@ -365,40 +387,36 @@ private Builder(
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessage
+ .alwaysUseFieldBuilders) {
getDepartmentsFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
- if (departmentsBuilder_ == null) {
- departments_ = Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance();
- } else {
- departmentsBuilder_.clear();
+ departments_ = null;
+ if (departmentsBuilder_ != null) {
+ departmentsBuilder_.dispose();
+ departmentsBuilder_ = null;
}
- bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToCreate_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate getDefaultInstanceForType() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate build() {
Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate result = buildPartial();
if (!result.isInitialized()) {
@@ -407,27 +425,31 @@ public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.Count
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate buildPartial() {
Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate result = new Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
to_bitField0_ |= 0x00000001;
}
- result.name_ = name_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.departments_ = departmentsBuilder_ == null
+ ? departments_
+ : departmentsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
- if (departmentsBuilder_ == null) {
- result.departments_ = departments_;
- } else {
- result.departments_ = departmentsBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
+ result.bitField0_ |= to_bitField0_;
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate) {
return mergeFrom((Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate)other);
@@ -440,40 +462,67 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate other) {
if (other == Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate.getDefaultInstance()) return this;
if (other.hasName()) {
- bitField0_ |= 0x00000001;
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasDepartments()) {
mergeDepartments(other.getDepartments());
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
if (!hasName()) {
-
return false;
}
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ 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: {
+ input.readMessage(
+ getDepartmentsFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
@@ -481,12 +530,14 @@ public Builder mergeFrom(
private java.lang.Object name_ = "";
/**
* required string Name = 1;
+ * @return Whether the name field is set.
*/
public boolean hasName() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required string Name = 1;
+ * @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
@@ -504,6 +555,7 @@ public java.lang.String getName() {
}
/**
* required string Name = 1;
+ * @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
@@ -520,55 +572,58 @@ public java.lang.String getName() {
}
/**
* 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();
- }
- bitField0_ |= 0x00000001;
+ 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() {
- bitField0_ = (bitField0_ & ~0x00000001);
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();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
- private Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup departments_ = Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance();
+ private Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup departments_;
private com.google.protobuf.SingleFieldBuilder<
Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup, Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.Builder, Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroupOrBuilder> departmentsBuilder_;
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2;
+ * @return Whether the departments field is set.
*/
public boolean hasDepartments() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2;
+ * @return The departments.
*/
public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup getDepartments() {
if (departmentsBuilder_ == null) {
- return departments_;
+ return departments_ == null ? Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance() : departments_;
} else {
return departmentsBuilder_.getMessage();
}
@@ -582,11 +637,11 @@ public Builder setDepartments(Diadoc.Api.Proto.CounteragentGroups.DepartmentsInG
throw new NullPointerException();
}
departments_ = value;
- onChanged();
} else {
departmentsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -596,11 +651,11 @@ public Builder setDepartments(
Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.Builder builderForValue) {
if (departmentsBuilder_ == null) {
departments_ = builderForValue.build();
- onChanged();
} else {
departmentsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -608,31 +663,33 @@ public Builder setDepartments(
*/
public Builder mergeDepartments(Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup value) {
if (departmentsBuilder_ == null) {
- if (((bitField0_ & 0x00000002) == 0x00000002) &&
- departments_ != Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance()) {
- departments_ =
- Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.newBuilder(departments_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000002) != 0) &&
+ departments_ != null &&
+ departments_ != Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance()) {
+ getDepartmentsBuilder().mergeFrom(value);
} else {
departments_ = value;
}
- onChanged();
} else {
departmentsBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000002;
+ if (departments_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
return this;
}
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2;
*/
public Builder clearDepartments() {
- if (departmentsBuilder_ == null) {
- departments_ = Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance();
- onChanged();
- } else {
- departmentsBuilder_.clear();
- }
bitField0_ = (bitField0_ & ~0x00000002);
+ departments_ = null;
+ if (departmentsBuilder_ != null) {
+ departmentsBuilder_.dispose();
+ departmentsBuilder_ = null;
+ }
+ onChanged();
return this;
}
/**
@@ -650,7 +707,8 @@ public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsI
if (departmentsBuilder_ != null) {
return departmentsBuilder_.getMessageOrBuilder();
} else {
- return departments_;
+ return departments_ == null ?
+ Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance() : departments_;
}
}
/**
@@ -673,17 +731,57 @@ public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsI
// @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreate)
}
+ // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreate)
+ private static final Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate DEFAULT_INSTANCE;
static {
- defaultInstance = new CounteragentGroupToCreate(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate();
+ }
+
+ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToCreateProtos.CounteragentGroupToCreate getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parseroptional string Name = 1;
+ * @return Whether the name field is set.
*/
boolean hasName();
/**
* optional string Name = 1;
+ * @return The name.
*/
java.lang.String getName();
/**
* optional string Name = 1;
+ * @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupDepartmentPatch GroupDepartments = 2;
+ * @return Whether the groupDepartments field is set.
*/
boolean hasGroupDepartments();
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupDepartmentPatch GroupDepartments = 2;
+ * @return The groupDepartments.
*/
Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch getGroupDepartments();
/**
@@ -46,87 +68,30 @@ public static final class CounteragentGroupToUpdate extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdate)
CounteragentGroupToUpdateOrBuilder {
+ 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= */ "",
+ CounteragentGroupToUpdate.class.getName());
+ }
// Use CounteragentGroupToUpdate.newBuilder() to construct.
private CounteragentGroupToUpdate(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
- }
- private CounteragentGroupToUpdate(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final CounteragentGroupToUpdate defaultInstance;
- public static CounteragentGroupToUpdate getDefaultInstance() {
- return defaultInstance;
}
-
- public CounteragentGroupToUpdate getDefaultInstanceForType() {
- return defaultInstance;
+ private CounteragentGroupToUpdate() {
+ name_ = "";
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private CounteragentGroupToUpdate(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 10: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000001;
- name_ = bs;
- break;
- }
- case 18: {
- Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.Builder subBuilder = null;
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- subBuilder = groupDepartments_.toBuilder();
- }
- groupDepartments_ = input.readMessage(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(groupDepartments_);
- groupDepartments_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000002;
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToUpdate_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToUpdate_fieldAccessorTable
@@ -134,33 +99,23 @@ private CounteragentGroupToUpdate(
Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate.class, Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate.Builder.class);
}
- public static com.google.protobuf.Parseroptional string Name = 1;
+ * @return Whether the name field is set.
*/
+ @java.lang.Override
public boolean hasName() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional 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) {
@@ -177,7 +132,9 @@ public java.lang.String getName() {
}
/**
* optional string Name = 1;
+ * @return The bytes for name.
*/
+ @java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
@@ -196,28 +153,30 @@ public java.lang.String getName() {
private Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch groupDepartments_;
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupDepartmentPatch GroupDepartments = 2;
+ * @return Whether the groupDepartments field is set.
*/
+ @java.lang.Override
public boolean hasGroupDepartments() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupDepartmentPatch GroupDepartments = 2;
+ * @return The groupDepartments.
*/
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch getGroupDepartments() {
- return groupDepartments_;
+ return groupDepartments_ == null ? Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.getDefaultInstance() : groupDepartments_;
}
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupDepartmentPatch GroupDepartments = 2;
*/
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatchOrBuilder getGroupDepartmentsOrBuilder() {
- return groupDepartments_;
+ return groupDepartments_ == null ? Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.getDefaultInstance() : groupDepartments_;
}
- private void initFields() {
- name_ = "";
- groupDepartments_ = Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -233,44 +192,91 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- output.writeBytes(1, getNameBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessage.writeString(output, 1, name_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, groupDepartments_);
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(2, getGroupDepartments());
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBytesSize(1, getNameBytes());
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, groupDepartments_);
+ .computeMessageSize(2, getGroupDepartments());
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate other = (Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate) obj;
+
+ if (hasName() != other.hasName()) return false;
+ if (hasName()) {
+ if (!getName()
+ .equals(other.getName())) return false;
+ }
+ if (hasGroupDepartments() != other.hasGroupDepartments()) return false;
+ if (hasGroupDepartments()) {
+ if (!getGroupDepartments()
+ .equals(other.getGroupDepartments())) 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 (hasGroupDepartments()) {
+ hash = (37 * hash) + GROUPDEPARTMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getGroupDepartments().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
+ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate 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.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -294,42 +300,57 @@ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProto
}
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -349,6 +370,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToUpdate_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToUpdate_fieldAccessorTable
@@ -367,40 +389,36 @@ private Builder(
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessage
+ .alwaysUseFieldBuilders) {
getGroupDepartmentsFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
name_ = "";
- bitField0_ = (bitField0_ & ~0x00000001);
- if (groupDepartmentsBuilder_ == null) {
- groupDepartments_ = Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.getDefaultInstance();
- } else {
- groupDepartmentsBuilder_.clear();
+ groupDepartments_ = null;
+ if (groupDepartmentsBuilder_ != null) {
+ groupDepartmentsBuilder_.dispose();
+ groupDepartmentsBuilder_ = null;
}
- bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupToUpdate_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate getDefaultInstanceForType() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate build() {
Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate result = buildPartial();
if (!result.isInitialized()) {
@@ -409,27 +427,31 @@ public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.Count
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate buildPartial() {
Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate result = new Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.name_ = name_;
to_bitField0_ |= 0x00000001;
}
- result.name_ = name_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.groupDepartments_ = groupDepartmentsBuilder_ == null
+ ? groupDepartments_
+ : groupDepartmentsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
- if (groupDepartmentsBuilder_ == null) {
- result.groupDepartments_ = groupDepartments_;
- } else {
- result.groupDepartments_ = groupDepartmentsBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
+ result.bitField0_ |= to_bitField0_;
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate) {
return mergeFrom((Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate)other);
@@ -442,42 +464,69 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate other) {
if (other == Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate.getDefaultInstance()) return this;
if (other.hasName()) {
- bitField0_ |= 0x00000001;
name_ = other.name_;
+ bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasGroupDepartments()) {
mergeGroupDepartments(other.getGroupDepartments());
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
if (hasGroupDepartments()) {
if (!getGroupDepartments().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 {
- Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ 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: {
+ input.readMessage(
+ getGroupDepartmentsFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
@@ -485,12 +534,14 @@ public Builder mergeFrom(
private java.lang.Object name_ = "";
/**
* optional string Name = 1;
+ * @return Whether the name field is set.
*/
public boolean hasName() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string Name = 1;
+ * @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
@@ -508,6 +559,7 @@ public java.lang.String getName() {
}
/**
* optional string Name = 1;
+ * @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
@@ -524,55 +576,58 @@ public java.lang.String getName() {
}
/**
* optional 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();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* optional string Name = 1;
+ * @return This builder for chaining.
*/
public Builder clearName() {
- bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* optional 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();
- }
- bitField0_ |= 0x00000001;
+ if (value == null) { throw new NullPointerException(); }
name_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
- private Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch groupDepartments_ = Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.getDefaultInstance();
+ private Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch groupDepartments_;
private com.google.protobuf.SingleFieldBuilder<
Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch, Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.Builder, Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatchOrBuilder> groupDepartmentsBuilder_;
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupDepartmentPatch GroupDepartments = 2;
+ * @return Whether the groupDepartments field is set.
*/
public boolean hasGroupDepartments() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupDepartmentPatch GroupDepartments = 2;
+ * @return The groupDepartments.
*/
public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch getGroupDepartments() {
if (groupDepartmentsBuilder_ == null) {
- return groupDepartments_;
+ return groupDepartments_ == null ? Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.getDefaultInstance() : groupDepartments_;
} else {
return groupDepartmentsBuilder_.getMessage();
}
@@ -586,11 +641,11 @@ public Builder setGroupDepartments(Diadoc.Api.Proto.CounteragentGroups.Counterag
throw new NullPointerException();
}
groupDepartments_ = value;
- onChanged();
} else {
groupDepartmentsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -600,11 +655,11 @@ public Builder setGroupDepartments(
Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.Builder builderForValue) {
if (groupDepartmentsBuilder_ == null) {
groupDepartments_ = builderForValue.build();
- onChanged();
} else {
groupDepartmentsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -612,31 +667,33 @@ public Builder setGroupDepartments(
*/
public Builder mergeGroupDepartments(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch value) {
if (groupDepartmentsBuilder_ == null) {
- if (((bitField0_ & 0x00000002) == 0x00000002) &&
- groupDepartments_ != Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.getDefaultInstance()) {
- groupDepartments_ =
- Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.newBuilder(groupDepartments_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000002) != 0) &&
+ groupDepartments_ != null &&
+ groupDepartments_ != Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.getDefaultInstance()) {
+ getGroupDepartmentsBuilder().mergeFrom(value);
} else {
groupDepartments_ = value;
}
- onChanged();
} else {
groupDepartmentsBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000002;
+ if (groupDepartments_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
return this;
}
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupDepartmentPatch GroupDepartments = 2;
*/
public Builder clearGroupDepartments() {
- if (groupDepartmentsBuilder_ == null) {
- groupDepartments_ = Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.getDefaultInstance();
- onChanged();
- } else {
- groupDepartmentsBuilder_.clear();
- }
bitField0_ = (bitField0_ & ~0x00000002);
+ groupDepartments_ = null;
+ if (groupDepartmentsBuilder_ != null) {
+ groupDepartmentsBuilder_.dispose();
+ groupDepartmentsBuilder_ = null;
+ }
+ onChanged();
return this;
}
/**
@@ -654,7 +711,8 @@ public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.Count
if (groupDepartmentsBuilder_ != null) {
return groupDepartmentsBuilder_.getMessageOrBuilder();
} else {
- return groupDepartments_;
+ return groupDepartments_ == null ?
+ Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.getDefaultInstance() : groupDepartments_;
}
}
/**
@@ -677,12 +735,52 @@ public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.Count
// @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdate)
}
+ // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdate)
+ private static final Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate DEFAULT_INSTANCE;
static {
- defaultInstance = new CounteragentGroupToUpdate(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate();
+ }
+
+ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupToUpdate getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserrequired bool AnyDepartment = 1;
+ * @return Whether the anyDepartment field is set.
*/
boolean hasAnyDepartment();
/**
* required bool AnyDepartment = 1;
+ * @return The anyDepartment.
*/
boolean getAnyDepartment();
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2;
+ * @return Whether the departments field is set.
*/
boolean hasDepartments();
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2;
+ * @return The departments.
*/
Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup getDepartments();
/**
@@ -718,86 +820,29 @@ public static final class CounteragentGroupDepartmentPatch extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupDepartmentPatch)
CounteragentGroupDepartmentPatchOrBuilder {
+ 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= */ "",
+ CounteragentGroupDepartmentPatch.class.getName());
+ }
// Use CounteragentGroupDepartmentPatch.newBuilder() to construct.
private CounteragentGroupDepartmentPatch(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
- this.unknownFields = builder.getUnknownFields();
}
- private CounteragentGroupDepartmentPatch(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
-
- private static final CounteragentGroupDepartmentPatch defaultInstance;
- public static CounteragentGroupDepartmentPatch getDefaultInstance() {
- return defaultInstance;
- }
-
- public CounteragentGroupDepartmentPatch getDefaultInstanceForType() {
- return defaultInstance;
+ private CounteragentGroupDepartmentPatch() {
}
- private final com.google.protobuf.UnknownFieldSet unknownFields;
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private CounteragentGroupDepartmentPatch(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- initFields();
- int mutable_bitField0_ = 0;
- com.google.protobuf.UnknownFieldSet.Builder unknownFields =
- com.google.protobuf.UnknownFieldSet.newBuilder();
- try {
- boolean done = false;
- while (!done) {
- int tag = input.readTag();
- switch (tag) {
- case 0:
- done = true;
- break;
- default: {
- if (!parseUnknownField(input, unknownFields,
- extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- case 8: {
- bitField0_ |= 0x00000001;
- anyDepartment_ = input.readBool();
- break;
- }
- case 18: {
- Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.Builder subBuilder = null;
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- subBuilder = departments_.toBuilder();
- }
- departments_ = input.readMessage(Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(departments_);
- departments_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000002;
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e.getMessage()).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupDepartmentPatch_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupDepartmentPatch_fieldAccessorTable
@@ -805,33 +850,22 @@ private CounteragentGroupDepartmentPatch(
Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.class, Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.Builder.class);
}
- public static com.google.protobuf.Parserrequired bool AnyDepartment = 1;
+ * @return Whether the anyDepartment field is set.
*/
+ @java.lang.Override
public boolean hasAnyDepartment() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required bool AnyDepartment = 1;
+ * @return The anyDepartment.
*/
+ @java.lang.Override
public boolean getAnyDepartment() {
return anyDepartment_;
}
@@ -840,28 +874,30 @@ public boolean getAnyDepartment() {
private Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup departments_;
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2;
+ * @return Whether the departments field is set.
*/
+ @java.lang.Override
public boolean hasDepartments() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2;
+ * @return The departments.
*/
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup getDepartments() {
- return departments_;
+ return departments_ == null ? Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance() : departments_;
}
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2;
*/
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroupOrBuilder getDepartmentsOrBuilder() {
- return departments_;
+ return departments_ == null ? Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance() : departments_;
}
- private void initFields() {
- anyDepartment_ = false;
- departments_ = Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance();
- }
private byte memoizedIsInitialized = -1;
+ @java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
@@ -875,44 +911,93 @@ public final boolean isInitialized() {
return true;
}
+ @java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
- getSerializedSize();
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
output.writeBool(1, anyDepartment_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
- output.writeMessage(2, departments_);
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(2, getDepartments());
}
getUnknownFields().writeTo(output);
}
- private int memoizedSerializedSize = -1;
+ @java.lang.Override
public int getSerializedSize() {
- int size = memoizedSerializedSize;
+ int size = memoizedSize;
if (size != -1) return size;
size = 0;
- if (((bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, anyDepartment_);
}
- if (((bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, departments_);
+ .computeMessageSize(2, getDepartments());
}
size += getUnknownFields().getSerializedSize();
- memoizedSerializedSize = size;
+ memoizedSize = size;
return size;
}
- private static final long serialVersionUID = 0L;
@java.lang.Override
- protected java.lang.Object writeReplace()
- throws java.io.ObjectStreamException {
- return super.writeReplace();
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch)) {
+ return super.equals(obj);
+ }
+ Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch other = (Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch) obj;
+
+ if (hasAnyDepartment() != other.hasAnyDepartment()) return false;
+ if (hasAnyDepartment()) {
+ if (getAnyDepartment()
+ != other.getAnyDepartment()) return false;
+ }
+ if (hasDepartments() != other.hasDepartments()) return false;
+ if (hasDepartments()) {
+ if (!getDepartments()
+ .equals(other.getDepartments())) 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 (hasAnyDepartment()) {
+ hash = (37 * hash) + ANYDEPARTMENT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getAnyDepartment());
+ }
+ if (hasDepartments()) {
+ hash = (37 * hash) + DEPARTMENTS_FIELD_NUMBER;
+ hash = (53 * hash) + getDepartments().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
}
+ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch 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.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
@@ -936,42 +1021,57 @@ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProto
}
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch parseFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
+
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input);
}
+
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseDelimitedFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
- return PARSER.parseFrom(input);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input);
}
public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- return PARSER.parseFrom(input, extensionRegistry);
+ return com.google.protobuf.GeneratedMessage
+ .parseWithIOException(PARSER, input, extensionRegistry);
}
- public static Builder newBuilder() { return Builder.create(); }
+ @java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
public static Builder newBuilder(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch prototype) {
- return newBuilder().mergeFrom(prototype);
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
}
- public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
@@ -991,6 +1091,7 @@ public static final class Builder extends
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupDepartmentPatch_descriptor;
}
+ @java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupDepartmentPatch_fieldAccessorTable
@@ -1009,40 +1110,36 @@ private Builder(
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
+ if (com.google.protobuf.GeneratedMessage
+ .alwaysUseFieldBuilders) {
getDepartmentsFieldBuilder();
}
}
- private static Builder create() {
- return new Builder();
- }
-
+ @java.lang.Override
public Builder clear() {
super.clear();
+ bitField0_ = 0;
anyDepartment_ = false;
- bitField0_ = (bitField0_ & ~0x00000001);
- if (departmentsBuilder_ == null) {
- departments_ = Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance();
- } else {
- departmentsBuilder_.clear();
+ departments_ = null;
+ if (departmentsBuilder_ != null) {
+ departmentsBuilder_.dispose();
+ departmentsBuilder_ = null;
}
- bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
- public Builder clone() {
- return create().mergeFrom(buildPartial());
- }
-
+ @java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.internal_static_Diadoc_Api_Proto_CounteragentGroups_CounteragentGroupDepartmentPatch_descriptor;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch getDefaultInstanceForType() {
return Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch.getDefaultInstance();
}
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch build() {
Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch result = buildPartial();
if (!result.isInitialized()) {
@@ -1051,27 +1148,31 @@ public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.Count
return result;
}
+ @java.lang.Override
public Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch buildPartial() {
Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch result = new Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch(this);
+ if (bitField0_ != 0) { buildPartial0(result); }
+ onBuilt();
+ return result;
+ }
+
+ private void buildPartial0(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
+ if (((from_bitField0_ & 0x00000001) != 0)) {
+ result.anyDepartment_ = anyDepartment_;
to_bitField0_ |= 0x00000001;
}
- result.anyDepartment_ = anyDepartment_;
- if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ result.departments_ = departmentsBuilder_ == null
+ ? departments_
+ : departmentsBuilder_.build();
to_bitField0_ |= 0x00000002;
}
- if (departmentsBuilder_ == null) {
- result.departments_ = departments_;
- } else {
- result.departments_ = departmentsBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- onBuilt();
- return result;
+ result.bitField0_ |= to_bitField0_;
}
+ @java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch) {
return mergeFrom((Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch)other);
@@ -1090,32 +1191,59 @@ public Builder mergeFrom(Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupTo
mergeDepartments(other.getDepartments());
}
this.mergeUnknownFields(other.getUnknownFields());
+ onChanged();
return this;
}
+ @java.lang.Override
public final boolean isInitialized() {
if (!hasAnyDepartment()) {
-
return false;
}
return true;
}
+ @java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
- Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch parsedMessage = null;
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+ anyDepartment_ = input.readBool();
+ bitField0_ |= 0x00000001;
+ break;
+ } // case 8
+ case 18: {
+ input.readMessage(
+ getDepartmentsFieldBuilder().getBuilder(),
+ extensionRegistry);
+ bitField0_ |= 0x00000002;
+ break;
+ } // case 18
+ default: {
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+ done = true; // was an endgroup tag
+ }
+ break;
+ } // default:
+ } // switch (tag)
+ } // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch) e.getUnfinishedMessage();
- throw e;
+ throw e.unwrapIOException();
} finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ onChanged();
+ } // finally
return this;
}
private int bitField0_;
@@ -1123,27 +1251,35 @@ public Builder mergeFrom(
private boolean anyDepartment_ ;
/**
* required bool AnyDepartment = 1;
+ * @return Whether the anyDepartment field is set.
*/
+ @java.lang.Override
public boolean hasAnyDepartment() {
- return ((bitField0_ & 0x00000001) == 0x00000001);
+ return ((bitField0_ & 0x00000001) != 0);
}
/**
* required bool AnyDepartment = 1;
+ * @return The anyDepartment.
*/
+ @java.lang.Override
public boolean getAnyDepartment() {
return anyDepartment_;
}
/**
* required bool AnyDepartment = 1;
+ * @param value The anyDepartment to set.
+ * @return This builder for chaining.
*/
public Builder setAnyDepartment(boolean value) {
- bitField0_ |= 0x00000001;
+
anyDepartment_ = value;
+ bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* required bool AnyDepartment = 1;
+ * @return This builder for chaining.
*/
public Builder clearAnyDepartment() {
bitField0_ = (bitField0_ & ~0x00000001);
@@ -1152,21 +1288,23 @@ public Builder clearAnyDepartment() {
return this;
}
- private Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup departments_ = Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance();
+ private Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup departments_;
private com.google.protobuf.SingleFieldBuilder<
Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup, Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.Builder, Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroupOrBuilder> departmentsBuilder_;
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2;
+ * @return Whether the departments field is set.
*/
public boolean hasDepartments() {
- return ((bitField0_ & 0x00000002) == 0x00000002);
+ return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2;
+ * @return The departments.
*/
public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup getDepartments() {
if (departmentsBuilder_ == null) {
- return departments_;
+ return departments_ == null ? Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance() : departments_;
} else {
return departmentsBuilder_.getMessage();
}
@@ -1180,11 +1318,11 @@ public Builder setDepartments(Diadoc.Api.Proto.CounteragentGroups.DepartmentsInG
throw new NullPointerException();
}
departments_ = value;
- onChanged();
} else {
departmentsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -1194,11 +1332,11 @@ public Builder setDepartments(
Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.Builder builderForValue) {
if (departmentsBuilder_ == null) {
departments_ = builderForValue.build();
- onChanged();
} else {
departmentsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
+ onChanged();
return this;
}
/**
@@ -1206,31 +1344,33 @@ public Builder setDepartments(
*/
public Builder mergeDepartments(Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup value) {
if (departmentsBuilder_ == null) {
- if (((bitField0_ & 0x00000002) == 0x00000002) &&
- departments_ != Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance()) {
- departments_ =
- Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.newBuilder(departments_).mergeFrom(value).buildPartial();
+ if (((bitField0_ & 0x00000002) != 0) &&
+ departments_ != null &&
+ departments_ != Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance()) {
+ getDepartmentsBuilder().mergeFrom(value);
} else {
departments_ = value;
}
- onChanged();
} else {
departmentsBuilder_.mergeFrom(value);
}
- bitField0_ |= 0x00000002;
+ if (departments_ != null) {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ }
return this;
}
/**
* optional .Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroup Departments = 2;
*/
public Builder clearDepartments() {
- if (departmentsBuilder_ == null) {
- departments_ = Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance();
- onChanged();
- } else {
- departmentsBuilder_.clear();
- }
bitField0_ = (bitField0_ & ~0x00000002);
+ departments_ = null;
+ if (departmentsBuilder_ != null) {
+ departmentsBuilder_.dispose();
+ departmentsBuilder_ = null;
+ }
+ onChanged();
return this;
}
/**
@@ -1248,7 +1388,8 @@ public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsI
if (departmentsBuilder_ != null) {
return departmentsBuilder_.getMessageOrBuilder();
} else {
- return departments_;
+ return departments_ == null ?
+ Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsInGroup.getDefaultInstance() : departments_;
}
}
/**
@@ -1271,22 +1412,62 @@ public Diadoc.Api.Proto.CounteragentGroups.DepartmentsInGroupProtos.DepartmentsI
// @@protoc_insertion_point(builder_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupDepartmentPatch)
}
+ // @@protoc_insertion_point(class_scope:Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupDepartmentPatch)
+ private static final Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch DEFAULT_INSTANCE;
static {
- defaultInstance = new CounteragentGroupDepartmentPatch(true);
- defaultInstance.initFields();
+ DEFAULT_INSTANCE = new Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch();
+ }
+
+ public static Diadoc.Api.Proto.CounteragentGroups.CounteragentGroupToUpdateProtos.CounteragentGroupDepartmentPatch getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser