@lansweeper/data-platform-outbound-grpc 0.3.19 → 0.3.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/gen-proto/image.json +1 -1
  3. package/gen-proto/outbound_pb.d.ts +749 -8
  4. package/gen-proto/outbound_pb.js +5939 -38
  5. package/generated-go/outbound.pb.go +11319 -9569
  6. package/java.json +1 -1
  7. package/model/pom.xml +1 -1
  8. package/model/src/main/proto/outbound.proto +134 -3
  9. package/model/target/classes/com/lansweeper/dp/outbound/v1/Asset$1.class +0 -0
  10. package/model/target/classes/com/lansweeper/dp/outbound/v1/Asset$Builder.class +0 -0
  11. package/model/target/classes/com/lansweeper/dp/outbound/v1/Asset.class +0 -0
  12. package/model/target/classes/com/lansweeper/dp/outbound/v1/AssetOrBuilder.class +0 -0
  13. package/model/target/classes/com/lansweeper/dp/outbound/v1/EsxiCluster$1.class +0 -0
  14. package/model/target/classes/com/lansweeper/dp/outbound/v1/EsxiCluster$Builder.class +0 -0
  15. package/model/target/classes/com/lansweeper/dp/outbound/v1/EsxiCluster$HypervisorsDefaultEntryHolder.class +0 -0
  16. package/model/target/classes/com/lansweeper/dp/outbound/v1/EsxiCluster.class +0 -0
  17. package/model/target/classes/com/lansweeper/dp/outbound/v1/EsxiClusterOrBuilder.class +0 -0
  18. package/model/target/classes/com/lansweeper/dp/outbound/v1/Group$1.class +0 -0
  19. package/model/target/classes/com/lansweeper/dp/outbound/v1/Group$Builder.class +0 -0
  20. package/model/target/classes/com/lansweeper/dp/outbound/v1/Group.class +0 -0
  21. package/model/target/classes/com/lansweeper/dp/outbound/v1/GroupOrBuilder.class +0 -0
  22. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365AssignedPlan$1.class +0 -0
  23. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365AssignedPlan$Builder.class +0 -0
  24. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365AssignedPlan$UsersKeysDefaultEntryHolder.class +0 -0
  25. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365AssignedPlan.class +0 -0
  26. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365AssignedPlanOrBuilder.class +0 -0
  27. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365Contact$1.class +0 -0
  28. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365Contact$Builder.class +0 -0
  29. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365Contact.class +0 -0
  30. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365ContactOrBuilder.class +0 -0
  31. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365Domain$1.class +0 -0
  32. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365Domain$Builder.class +0 -0
  33. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365Domain.class +0 -0
  34. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365DomainOrBuilder.class +0 -0
  35. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365Group$1.class +0 -0
  36. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365Group$Builder.class +0 -0
  37. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365Group.class +0 -0
  38. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365GroupOrBuilder.class +0 -0
  39. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365License$1.class +0 -0
  40. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365License$Builder.class +0 -0
  41. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365License$UsersKeysDefaultEntryHolder.class +0 -0
  42. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365License.class +0 -0
  43. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365LicenseOrBuilder.class +0 -0
  44. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365Organization$1.class +0 -0
  45. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365Organization$AssignedPlansDefaultEntryHolder.class +0 -0
  46. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365Organization$Builder$AssignedPlansConverter.class +0 -0
  47. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365Organization$Builder.class +0 -0
  48. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365Organization.class +0 -0
  49. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365OrganizationOrBuilder.class +0 -0
  50. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365ServicePlan$1.class +0 -0
  51. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365ServicePlan$Builder.class +0 -0
  52. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365ServicePlan.class +0 -0
  53. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365ServicePlanOrBuilder.class +0 -0
  54. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365User$1.class +0 -0
  55. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365User$Builder.class +0 -0
  56. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365User$GroupKeysDefaultEntryHolder.class +0 -0
  57. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365User.class +0 -0
  58. package/model/target/classes/com/lansweeper/dp/outbound/v1/Office365UserOrBuilder.class +0 -0
  59. package/model/target/classes/com/lansweeper/dp/outbound/v1/Outbound.class +0 -0
  60. package/model/target/classes/com/lansweeper/dp/outbound/v1/User$1.class +0 -0
  61. package/model/target/classes/com/lansweeper/dp/outbound/v1/User$Builder.class +0 -0
  62. package/model/target/classes/com/lansweeper/dp/outbound/v1/User.class +0 -0
  63. package/model/target/classes/com/lansweeper/dp/outbound/v1/UserOrBuilder.class +0 -0
  64. package/model/target/classes/com/lansweeper/dp/outbound/v1/VmwareDatastoreCluster$1.class +0 -0
  65. package/model/target/classes/com/lansweeper/dp/outbound/v1/VmwareDatastoreCluster$Builder$DatastoresConverter.class +0 -0
  66. package/model/target/classes/com/lansweeper/dp/outbound/v1/VmwareDatastoreCluster$Builder.class +0 -0
  67. package/model/target/classes/com/lansweeper/dp/outbound/v1/VmwareDatastoreCluster$DatastoresDefaultEntryHolder.class +0 -0
  68. package/model/target/classes/com/lansweeper/dp/outbound/v1/VmwareDatastoreCluster.class +0 -0
  69. package/model/target/classes/com/lansweeper/dp/outbound/v1/VmwareDatastoreClusterOrBuilder.class +0 -0
  70. package/model/target/classes/com/lansweeper/dp/outbound/v1/VmwareEsxiGuestVm$1.class +0 -0
  71. package/model/target/classes/com/lansweeper/dp/outbound/v1/VmwareEsxiGuestVm$Builder$EsxiGuestSnapshotsConverter.class +0 -0
  72. package/model/target/classes/com/lansweeper/dp/outbound/v1/VmwareEsxiGuestVm$Builder.class +0 -0
  73. package/model/target/classes/com/lansweeper/dp/outbound/v1/VmwareEsxiGuestVm.class +0 -0
  74. package/model/target/classes/com/lansweeper/dp/outbound/v1/VmwareEsxiGuestVmOrBuilder.class +0 -0
  75. package/model/target/classes/com/lansweeper/dp/outbound/v1/VmwareEsxiHypervisor$1.class +0 -0
  76. package/model/target/classes/com/lansweeper/dp/outbound/v1/VmwareEsxiHypervisor$Builder$EsxiHypervisorDatastoresConverter.class +0 -0
  77. package/model/target/classes/com/lansweeper/dp/outbound/v1/VmwareEsxiHypervisor$Builder.class +0 -0
  78. package/model/target/classes/com/lansweeper/dp/outbound/v1/VmwareEsxiHypervisor.class +0 -0
  79. package/model/target/classes/com/lansweeper/dp/outbound/v1/VmwareEsxiHypervisorOrBuilder.class +0 -0
  80. package/model/target/classes/outbound.proto +134 -3
  81. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/Asset.java +232 -47
  82. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/AssetOrBuilder.java +23 -8
  83. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/EsxiCluster.java +200 -7
  84. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/EsxiClusterOrBuilder.java +31 -2
  85. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/Group.java +185 -0
  86. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/GroupOrBuilder.java +15 -0
  87. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/Office365AssignedPlan.java +1368 -0
  88. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/Office365AssignedPlanOrBuilder.java +123 -0
  89. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/Office365Contact.java +723 -0
  90. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/Office365ContactOrBuilder.java +44 -0
  91. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/Office365Domain.java +1793 -0
  92. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/Office365DomainOrBuilder.java +167 -0
  93. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/Office365Group.java +1701 -0
  94. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/Office365GroupOrBuilder.java +158 -0
  95. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/Office365License.java +2041 -0
  96. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/Office365LicenseOrBuilder.java +193 -0
  97. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/Office365Organization.java +3591 -0
  98. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/Office365OrganizationOrBuilder.java +330 -0
  99. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/Office365ServicePlan.java +1037 -0
  100. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/Office365ServicePlanOrBuilder.java +78 -0
  101. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/Office365User.java +6756 -0
  102. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/Office365UserOrBuilder.java +715 -0
  103. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/Outbound.java +722 -444
  104. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/User.java +232 -47
  105. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/UserOrBuilder.java +23 -8
  106. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/VmwareDatastoreCluster.java +104 -306
  107. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/VmwareDatastoreClusterOrBuilder.java +8 -25
  108. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/VmwareEsxiGuestVm.java +114 -0
  109. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/VmwareEsxiGuestVmOrBuilder.java +19 -0
  110. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/VmwareEsxiHypervisor.java +334 -109
  111. package/model/target/generated-sources/protobuf/java/com/lansweeper/dp/outbound/v1/VmwareEsxiHypervisorOrBuilder.java +51 -13
  112. package/model/target/maven-archiver/pom.properties +2 -2
  113. package/model/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst +37 -0
  114. package/model/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +16 -0
  115. package/model/target/{outbound-model-0.3.18-sources.jar → outbound-model-0.3.20-sources.jar} +0 -0
  116. package/model/target/{outbound-model-0.3.18.jar → outbound-model-0.3.20.jar} +0 -0
  117. package/package.json +2 -2
  118. package/pom.xml +1 -1
  119. package/proto/outbound.proto +134 -3
  120. package/service/pom.xml +1 -1
  121. package/service/target/maven-archiver/pom.properties +2 -2
  122. package/service/target/{outbound-service-0.3.18-sources.jar → outbound-service-0.3.20-sources.jar} +0 -0
  123. package/service/target/{outbound-service-0.3.18.jar → outbound-service-0.3.20.jar} +0 -0
@@ -0,0 +1,3591 @@
1
+ // Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ // source: outbound.proto
3
+
4
+ // Protobuf Java Version: 3.25.1
5
+ package com.lansweeper.dp.outbound.v1;
6
+
7
+ /**
8
+ * <pre>
9
+ * Office365 API scanning root object
10
+ * </pre>
11
+ *
12
+ * Protobuf type {@code com.lansweeper.dp.outbound.v1.Office365Organization}
13
+ */
14
+ public final class Office365Organization extends
15
+ com.google.protobuf.GeneratedMessageV3 implements
16
+ // @@protoc_insertion_point(message_implements:com.lansweeper.dp.outbound.v1.Office365Organization)
17
+ Office365OrganizationOrBuilder {
18
+ private static final long serialVersionUID = 0L;
19
+ // Use Office365Organization.newBuilder() to construct.
20
+ private Office365Organization(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
21
+ super(builder);
22
+ }
23
+ private Office365Organization() {
24
+ tenantId_ = "";
25
+ displayname_ = "";
26
+ country_ = "";
27
+ city_ = "";
28
+ countryName_ = "";
29
+ postalCode_ = "";
30
+ state_ = "";
31
+ street_ = "";
32
+ telephoneNumber_ = "";
33
+ domains_ = java.util.Collections.emptyList();
34
+ licenses_ = java.util.Collections.emptyList();
35
+ contacts_ = java.util.Collections.emptyList();
36
+ }
37
+
38
+ @java.lang.Override
39
+ @SuppressWarnings({"unused"})
40
+ protected java.lang.Object newInstance(
41
+ UnusedPrivateParameter unused) {
42
+ return new Office365Organization();
43
+ }
44
+
45
+ public static final com.google.protobuf.Descriptors.Descriptor
46
+ getDescriptor() {
47
+ return com.lansweeper.dp.outbound.v1.Outbound.internal_static_com_lansweeper_dp_outbound_v1_Office365Organization_descriptor;
48
+ }
49
+
50
+ @SuppressWarnings({"rawtypes"})
51
+ @java.lang.Override
52
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
53
+ int number) {
54
+ switch (number) {
55
+ case 16:
56
+ return internalGetAssignedPlans();
57
+ default:
58
+ throw new RuntimeException(
59
+ "Invalid map field number: " + number);
60
+ }
61
+ }
62
+ @java.lang.Override
63
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
64
+ internalGetFieldAccessorTable() {
65
+ return com.lansweeper.dp.outbound.v1.Outbound.internal_static_com_lansweeper_dp_outbound_v1_Office365Organization_fieldAccessorTable
66
+ .ensureFieldAccessorsInitialized(
67
+ com.lansweeper.dp.outbound.v1.Office365Organization.class, com.lansweeper.dp.outbound.v1.Office365Organization.Builder.class);
68
+ }
69
+
70
+ private int bitField0_;
71
+ public static final int TENANT_ID_FIELD_NUMBER = 1;
72
+ @SuppressWarnings("serial")
73
+ private volatile java.lang.Object tenantId_ = "";
74
+ /**
75
+ * <code>string tenant_id = 1;</code>
76
+ * @return The tenantId.
77
+ */
78
+ @java.lang.Override
79
+ public java.lang.String getTenantId() {
80
+ java.lang.Object ref = tenantId_;
81
+ if (ref instanceof java.lang.String) {
82
+ return (java.lang.String) ref;
83
+ } else {
84
+ com.google.protobuf.ByteString bs =
85
+ (com.google.protobuf.ByteString) ref;
86
+ java.lang.String s = bs.toStringUtf8();
87
+ tenantId_ = s;
88
+ return s;
89
+ }
90
+ }
91
+ /**
92
+ * <code>string tenant_id = 1;</code>
93
+ * @return The bytes for tenantId.
94
+ */
95
+ @java.lang.Override
96
+ public com.google.protobuf.ByteString
97
+ getTenantIdBytes() {
98
+ java.lang.Object ref = tenantId_;
99
+ if (ref instanceof java.lang.String) {
100
+ com.google.protobuf.ByteString b =
101
+ com.google.protobuf.ByteString.copyFromUtf8(
102
+ (java.lang.String) ref);
103
+ tenantId_ = b;
104
+ return b;
105
+ } else {
106
+ return (com.google.protobuf.ByteString) ref;
107
+ }
108
+ }
109
+
110
+ public static final int DISPLAYNAME_FIELD_NUMBER = 2;
111
+ @SuppressWarnings("serial")
112
+ private volatile java.lang.Object displayname_ = "";
113
+ /**
114
+ * <code>optional string displayname = 2;</code>
115
+ * @return Whether the displayname field is set.
116
+ */
117
+ @java.lang.Override
118
+ public boolean hasDisplayname() {
119
+ return ((bitField0_ & 0x00000001) != 0);
120
+ }
121
+ /**
122
+ * <code>optional string displayname = 2;</code>
123
+ * @return The displayname.
124
+ */
125
+ @java.lang.Override
126
+ public java.lang.String getDisplayname() {
127
+ java.lang.Object ref = displayname_;
128
+ if (ref instanceof java.lang.String) {
129
+ return (java.lang.String) ref;
130
+ } else {
131
+ com.google.protobuf.ByteString bs =
132
+ (com.google.protobuf.ByteString) ref;
133
+ java.lang.String s = bs.toStringUtf8();
134
+ displayname_ = s;
135
+ return s;
136
+ }
137
+ }
138
+ /**
139
+ * <code>optional string displayname = 2;</code>
140
+ * @return The bytes for displayname.
141
+ */
142
+ @java.lang.Override
143
+ public com.google.protobuf.ByteString
144
+ getDisplaynameBytes() {
145
+ java.lang.Object ref = displayname_;
146
+ if (ref instanceof java.lang.String) {
147
+ com.google.protobuf.ByteString b =
148
+ com.google.protobuf.ByteString.copyFromUtf8(
149
+ (java.lang.String) ref);
150
+ displayname_ = b;
151
+ return b;
152
+ } else {
153
+ return (com.google.protobuf.ByteString) ref;
154
+ }
155
+ }
156
+
157
+ public static final int COUNTRY_FIELD_NUMBER = 3;
158
+ @SuppressWarnings("serial")
159
+ private volatile java.lang.Object country_ = "";
160
+ /**
161
+ * <code>optional string country = 3;</code>
162
+ * @return Whether the country field is set.
163
+ */
164
+ @java.lang.Override
165
+ public boolean hasCountry() {
166
+ return ((bitField0_ & 0x00000002) != 0);
167
+ }
168
+ /**
169
+ * <code>optional string country = 3;</code>
170
+ * @return The country.
171
+ */
172
+ @java.lang.Override
173
+ public java.lang.String getCountry() {
174
+ java.lang.Object ref = country_;
175
+ if (ref instanceof java.lang.String) {
176
+ return (java.lang.String) ref;
177
+ } else {
178
+ com.google.protobuf.ByteString bs =
179
+ (com.google.protobuf.ByteString) ref;
180
+ java.lang.String s = bs.toStringUtf8();
181
+ country_ = s;
182
+ return s;
183
+ }
184
+ }
185
+ /**
186
+ * <code>optional string country = 3;</code>
187
+ * @return The bytes for country.
188
+ */
189
+ @java.lang.Override
190
+ public com.google.protobuf.ByteString
191
+ getCountryBytes() {
192
+ java.lang.Object ref = country_;
193
+ if (ref instanceof java.lang.String) {
194
+ com.google.protobuf.ByteString b =
195
+ com.google.protobuf.ByteString.copyFromUtf8(
196
+ (java.lang.String) ref);
197
+ country_ = b;
198
+ return b;
199
+ } else {
200
+ return (com.google.protobuf.ByteString) ref;
201
+ }
202
+ }
203
+
204
+ public static final int CITY_FIELD_NUMBER = 4;
205
+ @SuppressWarnings("serial")
206
+ private volatile java.lang.Object city_ = "";
207
+ /**
208
+ * <code>optional string city = 4;</code>
209
+ * @return Whether the city field is set.
210
+ */
211
+ @java.lang.Override
212
+ public boolean hasCity() {
213
+ return ((bitField0_ & 0x00000004) != 0);
214
+ }
215
+ /**
216
+ * <code>optional string city = 4;</code>
217
+ * @return The city.
218
+ */
219
+ @java.lang.Override
220
+ public java.lang.String getCity() {
221
+ java.lang.Object ref = city_;
222
+ if (ref instanceof java.lang.String) {
223
+ return (java.lang.String) ref;
224
+ } else {
225
+ com.google.protobuf.ByteString bs =
226
+ (com.google.protobuf.ByteString) ref;
227
+ java.lang.String s = bs.toStringUtf8();
228
+ city_ = s;
229
+ return s;
230
+ }
231
+ }
232
+ /**
233
+ * <code>optional string city = 4;</code>
234
+ * @return The bytes for city.
235
+ */
236
+ @java.lang.Override
237
+ public com.google.protobuf.ByteString
238
+ getCityBytes() {
239
+ java.lang.Object ref = city_;
240
+ if (ref instanceof java.lang.String) {
241
+ com.google.protobuf.ByteString b =
242
+ com.google.protobuf.ByteString.copyFromUtf8(
243
+ (java.lang.String) ref);
244
+ city_ = b;
245
+ return b;
246
+ } else {
247
+ return (com.google.protobuf.ByteString) ref;
248
+ }
249
+ }
250
+
251
+ public static final int COUNTRY_NAME_FIELD_NUMBER = 5;
252
+ @SuppressWarnings("serial")
253
+ private volatile java.lang.Object countryName_ = "";
254
+ /**
255
+ * <code>optional string country_name = 5;</code>
256
+ * @return Whether the countryName field is set.
257
+ */
258
+ @java.lang.Override
259
+ public boolean hasCountryName() {
260
+ return ((bitField0_ & 0x00000008) != 0);
261
+ }
262
+ /**
263
+ * <code>optional string country_name = 5;</code>
264
+ * @return The countryName.
265
+ */
266
+ @java.lang.Override
267
+ public java.lang.String getCountryName() {
268
+ java.lang.Object ref = countryName_;
269
+ if (ref instanceof java.lang.String) {
270
+ return (java.lang.String) ref;
271
+ } else {
272
+ com.google.protobuf.ByteString bs =
273
+ (com.google.protobuf.ByteString) ref;
274
+ java.lang.String s = bs.toStringUtf8();
275
+ countryName_ = s;
276
+ return s;
277
+ }
278
+ }
279
+ /**
280
+ * <code>optional string country_name = 5;</code>
281
+ * @return The bytes for countryName.
282
+ */
283
+ @java.lang.Override
284
+ public com.google.protobuf.ByteString
285
+ getCountryNameBytes() {
286
+ java.lang.Object ref = countryName_;
287
+ if (ref instanceof java.lang.String) {
288
+ com.google.protobuf.ByteString b =
289
+ com.google.protobuf.ByteString.copyFromUtf8(
290
+ (java.lang.String) ref);
291
+ countryName_ = b;
292
+ return b;
293
+ } else {
294
+ return (com.google.protobuf.ByteString) ref;
295
+ }
296
+ }
297
+
298
+ public static final int POSTAL_CODE_FIELD_NUMBER = 6;
299
+ @SuppressWarnings("serial")
300
+ private volatile java.lang.Object postalCode_ = "";
301
+ /**
302
+ * <code>optional string postal_code = 6;</code>
303
+ * @return Whether the postalCode field is set.
304
+ */
305
+ @java.lang.Override
306
+ public boolean hasPostalCode() {
307
+ return ((bitField0_ & 0x00000010) != 0);
308
+ }
309
+ /**
310
+ * <code>optional string postal_code = 6;</code>
311
+ * @return The postalCode.
312
+ */
313
+ @java.lang.Override
314
+ public java.lang.String getPostalCode() {
315
+ java.lang.Object ref = postalCode_;
316
+ if (ref instanceof java.lang.String) {
317
+ return (java.lang.String) ref;
318
+ } else {
319
+ com.google.protobuf.ByteString bs =
320
+ (com.google.protobuf.ByteString) ref;
321
+ java.lang.String s = bs.toStringUtf8();
322
+ postalCode_ = s;
323
+ return s;
324
+ }
325
+ }
326
+ /**
327
+ * <code>optional string postal_code = 6;</code>
328
+ * @return The bytes for postalCode.
329
+ */
330
+ @java.lang.Override
331
+ public com.google.protobuf.ByteString
332
+ getPostalCodeBytes() {
333
+ java.lang.Object ref = postalCode_;
334
+ if (ref instanceof java.lang.String) {
335
+ com.google.protobuf.ByteString b =
336
+ com.google.protobuf.ByteString.copyFromUtf8(
337
+ (java.lang.String) ref);
338
+ postalCode_ = b;
339
+ return b;
340
+ } else {
341
+ return (com.google.protobuf.ByteString) ref;
342
+ }
343
+ }
344
+
345
+ public static final int STATE_FIELD_NUMBER = 7;
346
+ @SuppressWarnings("serial")
347
+ private volatile java.lang.Object state_ = "";
348
+ /**
349
+ * <code>optional string state = 7;</code>
350
+ * @return Whether the state field is set.
351
+ */
352
+ @java.lang.Override
353
+ public boolean hasState() {
354
+ return ((bitField0_ & 0x00000020) != 0);
355
+ }
356
+ /**
357
+ * <code>optional string state = 7;</code>
358
+ * @return The state.
359
+ */
360
+ @java.lang.Override
361
+ public java.lang.String getState() {
362
+ java.lang.Object ref = state_;
363
+ if (ref instanceof java.lang.String) {
364
+ return (java.lang.String) ref;
365
+ } else {
366
+ com.google.protobuf.ByteString bs =
367
+ (com.google.protobuf.ByteString) ref;
368
+ java.lang.String s = bs.toStringUtf8();
369
+ state_ = s;
370
+ return s;
371
+ }
372
+ }
373
+ /**
374
+ * <code>optional string state = 7;</code>
375
+ * @return The bytes for state.
376
+ */
377
+ @java.lang.Override
378
+ public com.google.protobuf.ByteString
379
+ getStateBytes() {
380
+ java.lang.Object ref = state_;
381
+ if (ref instanceof java.lang.String) {
382
+ com.google.protobuf.ByteString b =
383
+ com.google.protobuf.ByteString.copyFromUtf8(
384
+ (java.lang.String) ref);
385
+ state_ = b;
386
+ return b;
387
+ } else {
388
+ return (com.google.protobuf.ByteString) ref;
389
+ }
390
+ }
391
+
392
+ public static final int STREET_FIELD_NUMBER = 8;
393
+ @SuppressWarnings("serial")
394
+ private volatile java.lang.Object street_ = "";
395
+ /**
396
+ * <code>optional string street = 8;</code>
397
+ * @return Whether the street field is set.
398
+ */
399
+ @java.lang.Override
400
+ public boolean hasStreet() {
401
+ return ((bitField0_ & 0x00000040) != 0);
402
+ }
403
+ /**
404
+ * <code>optional string street = 8;</code>
405
+ * @return The street.
406
+ */
407
+ @java.lang.Override
408
+ public java.lang.String getStreet() {
409
+ java.lang.Object ref = street_;
410
+ if (ref instanceof java.lang.String) {
411
+ return (java.lang.String) ref;
412
+ } else {
413
+ com.google.protobuf.ByteString bs =
414
+ (com.google.protobuf.ByteString) ref;
415
+ java.lang.String s = bs.toStringUtf8();
416
+ street_ = s;
417
+ return s;
418
+ }
419
+ }
420
+ /**
421
+ * <code>optional string street = 8;</code>
422
+ * @return The bytes for street.
423
+ */
424
+ @java.lang.Override
425
+ public com.google.protobuf.ByteString
426
+ getStreetBytes() {
427
+ java.lang.Object ref = street_;
428
+ if (ref instanceof java.lang.String) {
429
+ com.google.protobuf.ByteString b =
430
+ com.google.protobuf.ByteString.copyFromUtf8(
431
+ (java.lang.String) ref);
432
+ street_ = b;
433
+ return b;
434
+ } else {
435
+ return (com.google.protobuf.ByteString) ref;
436
+ }
437
+ }
438
+
439
+ public static final int TELEPHONE_NUMBER_FIELD_NUMBER = 9;
440
+ @SuppressWarnings("serial")
441
+ private volatile java.lang.Object telephoneNumber_ = "";
442
+ /**
443
+ * <code>optional string telephone_number = 9;</code>
444
+ * @return Whether the telephoneNumber field is set.
445
+ */
446
+ @java.lang.Override
447
+ public boolean hasTelephoneNumber() {
448
+ return ((bitField0_ & 0x00000080) != 0);
449
+ }
450
+ /**
451
+ * <code>optional string telephone_number = 9;</code>
452
+ * @return The telephoneNumber.
453
+ */
454
+ @java.lang.Override
455
+ public java.lang.String getTelephoneNumber() {
456
+ java.lang.Object ref = telephoneNumber_;
457
+ if (ref instanceof java.lang.String) {
458
+ return (java.lang.String) ref;
459
+ } else {
460
+ com.google.protobuf.ByteString bs =
461
+ (com.google.protobuf.ByteString) ref;
462
+ java.lang.String s = bs.toStringUtf8();
463
+ telephoneNumber_ = s;
464
+ return s;
465
+ }
466
+ }
467
+ /**
468
+ * <code>optional string telephone_number = 9;</code>
469
+ * @return The bytes for telephoneNumber.
470
+ */
471
+ @java.lang.Override
472
+ public com.google.protobuf.ByteString
473
+ getTelephoneNumberBytes() {
474
+ java.lang.Object ref = telephoneNumber_;
475
+ if (ref instanceof java.lang.String) {
476
+ com.google.protobuf.ByteString b =
477
+ com.google.protobuf.ByteString.copyFromUtf8(
478
+ (java.lang.String) ref);
479
+ telephoneNumber_ = b;
480
+ return b;
481
+ } else {
482
+ return (com.google.protobuf.ByteString) ref;
483
+ }
484
+ }
485
+
486
+ public static final int COMPANY_LAST_DIR_SYNC_TIME_FIELD_NUMBER = 10;
487
+ private com.google.protobuf.Timestamp companyLastDirSyncTime_;
488
+ /**
489
+ * <code>optional .google.protobuf.Timestamp company_last_dir_sync_time = 10;</code>
490
+ * @return Whether the companyLastDirSyncTime field is set.
491
+ */
492
+ @java.lang.Override
493
+ public boolean hasCompanyLastDirSyncTime() {
494
+ return ((bitField0_ & 0x00000100) != 0);
495
+ }
496
+ /**
497
+ * <code>optional .google.protobuf.Timestamp company_last_dir_sync_time = 10;</code>
498
+ * @return The companyLastDirSyncTime.
499
+ */
500
+ @java.lang.Override
501
+ public com.google.protobuf.Timestamp getCompanyLastDirSyncTime() {
502
+ return companyLastDirSyncTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : companyLastDirSyncTime_;
503
+ }
504
+ /**
505
+ * <code>optional .google.protobuf.Timestamp company_last_dir_sync_time = 10;</code>
506
+ */
507
+ @java.lang.Override
508
+ public com.google.protobuf.TimestampOrBuilder getCompanyLastDirSyncTimeOrBuilder() {
509
+ return companyLastDirSyncTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : companyLastDirSyncTime_;
510
+ }
511
+
512
+ public static final int DIR_SYNC_ENABLED_FIELD_NUMBER = 11;
513
+ private boolean dirSyncEnabled_ = false;
514
+ /**
515
+ * <code>optional bool dir_sync_enabled = 11;</code>
516
+ * @return Whether the dirSyncEnabled field is set.
517
+ */
518
+ @java.lang.Override
519
+ public boolean hasDirSyncEnabled() {
520
+ return ((bitField0_ & 0x00000200) != 0);
521
+ }
522
+ /**
523
+ * <code>optional bool dir_sync_enabled = 11;</code>
524
+ * @return The dirSyncEnabled.
525
+ */
526
+ @java.lang.Override
527
+ public boolean getDirSyncEnabled() {
528
+ return dirSyncEnabled_;
529
+ }
530
+
531
+ public static final int DOMAINS_FIELD_NUMBER = 12;
532
+ @SuppressWarnings("serial")
533
+ private java.util.List<com.lansweeper.dp.outbound.v1.Office365Domain> domains_;
534
+ /**
535
+ * <pre>
536
+ * Users and groups are standalone entities, so they are not included here
537
+ * </pre>
538
+ *
539
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Domain domains = 12;</code>
540
+ */
541
+ @java.lang.Override
542
+ public java.util.List<com.lansweeper.dp.outbound.v1.Office365Domain> getDomainsList() {
543
+ return domains_;
544
+ }
545
+ /**
546
+ * <pre>
547
+ * Users and groups are standalone entities, so they are not included here
548
+ * </pre>
549
+ *
550
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Domain domains = 12;</code>
551
+ */
552
+ @java.lang.Override
553
+ public java.util.List<? extends com.lansweeper.dp.outbound.v1.Office365DomainOrBuilder>
554
+ getDomainsOrBuilderList() {
555
+ return domains_;
556
+ }
557
+ /**
558
+ * <pre>
559
+ * Users and groups are standalone entities, so they are not included here
560
+ * </pre>
561
+ *
562
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Domain domains = 12;</code>
563
+ */
564
+ @java.lang.Override
565
+ public int getDomainsCount() {
566
+ return domains_.size();
567
+ }
568
+ /**
569
+ * <pre>
570
+ * Users and groups are standalone entities, so they are not included here
571
+ * </pre>
572
+ *
573
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Domain domains = 12;</code>
574
+ */
575
+ @java.lang.Override
576
+ public com.lansweeper.dp.outbound.v1.Office365Domain getDomains(int index) {
577
+ return domains_.get(index);
578
+ }
579
+ /**
580
+ * <pre>
581
+ * Users and groups are standalone entities, so they are not included here
582
+ * </pre>
583
+ *
584
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Domain domains = 12;</code>
585
+ */
586
+ @java.lang.Override
587
+ public com.lansweeper.dp.outbound.v1.Office365DomainOrBuilder getDomainsOrBuilder(
588
+ int index) {
589
+ return domains_.get(index);
590
+ }
591
+
592
+ public static final int LICENSES_FIELD_NUMBER = 15;
593
+ @SuppressWarnings("serial")
594
+ private java.util.List<com.lansweeper.dp.outbound.v1.Office365License> licenses_;
595
+ /**
596
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365License licenses = 15;</code>
597
+ */
598
+ @java.lang.Override
599
+ public java.util.List<com.lansweeper.dp.outbound.v1.Office365License> getLicensesList() {
600
+ return licenses_;
601
+ }
602
+ /**
603
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365License licenses = 15;</code>
604
+ */
605
+ @java.lang.Override
606
+ public java.util.List<? extends com.lansweeper.dp.outbound.v1.Office365LicenseOrBuilder>
607
+ getLicensesOrBuilderList() {
608
+ return licenses_;
609
+ }
610
+ /**
611
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365License licenses = 15;</code>
612
+ */
613
+ @java.lang.Override
614
+ public int getLicensesCount() {
615
+ return licenses_.size();
616
+ }
617
+ /**
618
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365License licenses = 15;</code>
619
+ */
620
+ @java.lang.Override
621
+ public com.lansweeper.dp.outbound.v1.Office365License getLicenses(int index) {
622
+ return licenses_.get(index);
623
+ }
624
+ /**
625
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365License licenses = 15;</code>
626
+ */
627
+ @java.lang.Override
628
+ public com.lansweeper.dp.outbound.v1.Office365LicenseOrBuilder getLicensesOrBuilder(
629
+ int index) {
630
+ return licenses_.get(index);
631
+ }
632
+
633
+ public static final int ASSIGNED_PLANS_FIELD_NUMBER = 16;
634
+ private static final class AssignedPlansDefaultEntryHolder {
635
+ static final com.google.protobuf.MapEntry<
636
+ java.lang.String, com.lansweeper.dp.outbound.v1.Office365AssignedPlan> defaultEntry =
637
+ com.google.protobuf.MapEntry
638
+ .<java.lang.String, com.lansweeper.dp.outbound.v1.Office365AssignedPlan>newDefaultInstance(
639
+ com.lansweeper.dp.outbound.v1.Outbound.internal_static_com_lansweeper_dp_outbound_v1_Office365Organization_AssignedPlansEntry_descriptor,
640
+ com.google.protobuf.WireFormat.FieldType.STRING,
641
+ "",
642
+ com.google.protobuf.WireFormat.FieldType.MESSAGE,
643
+ com.lansweeper.dp.outbound.v1.Office365AssignedPlan.getDefaultInstance());
644
+ }
645
+ @SuppressWarnings("serial")
646
+ private com.google.protobuf.MapField<
647
+ java.lang.String, com.lansweeper.dp.outbound.v1.Office365AssignedPlan> assignedPlans_;
648
+ private com.google.protobuf.MapField<java.lang.String, com.lansweeper.dp.outbound.v1.Office365AssignedPlan>
649
+ internalGetAssignedPlans() {
650
+ if (assignedPlans_ == null) {
651
+ return com.google.protobuf.MapField.emptyMapField(
652
+ AssignedPlansDefaultEntryHolder.defaultEntry);
653
+ }
654
+ return assignedPlans_;
655
+ }
656
+ public int getAssignedPlansCount() {
657
+ return internalGetAssignedPlans().getMap().size();
658
+ }
659
+ /**
660
+ * <pre>
661
+ * The key is the service plan id
662
+ * </pre>
663
+ *
664
+ * <code>map&lt;string, .com.lansweeper.dp.outbound.v1.Office365AssignedPlan&gt; assigned_plans = 16;</code>
665
+ */
666
+ @java.lang.Override
667
+ public boolean containsAssignedPlans(
668
+ java.lang.String key) {
669
+ if (key == null) { throw new NullPointerException("map key"); }
670
+ return internalGetAssignedPlans().getMap().containsKey(key);
671
+ }
672
+ /**
673
+ * Use {@link #getAssignedPlansMap()} instead.
674
+ */
675
+ @java.lang.Override
676
+ @java.lang.Deprecated
677
+ public java.util.Map<java.lang.String, com.lansweeper.dp.outbound.v1.Office365AssignedPlan> getAssignedPlans() {
678
+ return getAssignedPlansMap();
679
+ }
680
+ /**
681
+ * <pre>
682
+ * The key is the service plan id
683
+ * </pre>
684
+ *
685
+ * <code>map&lt;string, .com.lansweeper.dp.outbound.v1.Office365AssignedPlan&gt; assigned_plans = 16;</code>
686
+ */
687
+ @java.lang.Override
688
+ public java.util.Map<java.lang.String, com.lansweeper.dp.outbound.v1.Office365AssignedPlan> getAssignedPlansMap() {
689
+ return internalGetAssignedPlans().getMap();
690
+ }
691
+ /**
692
+ * <pre>
693
+ * The key is the service plan id
694
+ * </pre>
695
+ *
696
+ * <code>map&lt;string, .com.lansweeper.dp.outbound.v1.Office365AssignedPlan&gt; assigned_plans = 16;</code>
697
+ */
698
+ @java.lang.Override
699
+ public /* nullable */
700
+ com.lansweeper.dp.outbound.v1.Office365AssignedPlan getAssignedPlansOrDefault(
701
+ java.lang.String key,
702
+ /* nullable */
703
+ com.lansweeper.dp.outbound.v1.Office365AssignedPlan defaultValue) {
704
+ if (key == null) { throw new NullPointerException("map key"); }
705
+ java.util.Map<java.lang.String, com.lansweeper.dp.outbound.v1.Office365AssignedPlan> map =
706
+ internalGetAssignedPlans().getMap();
707
+ return map.containsKey(key) ? map.get(key) : defaultValue;
708
+ }
709
+ /**
710
+ * <pre>
711
+ * The key is the service plan id
712
+ * </pre>
713
+ *
714
+ * <code>map&lt;string, .com.lansweeper.dp.outbound.v1.Office365AssignedPlan&gt; assigned_plans = 16;</code>
715
+ */
716
+ @java.lang.Override
717
+ public com.lansweeper.dp.outbound.v1.Office365AssignedPlan getAssignedPlansOrThrow(
718
+ java.lang.String key) {
719
+ if (key == null) { throw new NullPointerException("map key"); }
720
+ java.util.Map<java.lang.String, com.lansweeper.dp.outbound.v1.Office365AssignedPlan> map =
721
+ internalGetAssignedPlans().getMap();
722
+ if (!map.containsKey(key)) {
723
+ throw new java.lang.IllegalArgumentException();
724
+ }
725
+ return map.get(key);
726
+ }
727
+
728
+ public static final int CONTACTS_FIELD_NUMBER = 17;
729
+ @SuppressWarnings("serial")
730
+ private java.util.List<com.lansweeper.dp.outbound.v1.Office365Contact> contacts_;
731
+ /**
732
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Contact contacts = 17;</code>
733
+ */
734
+ @java.lang.Override
735
+ public java.util.List<com.lansweeper.dp.outbound.v1.Office365Contact> getContactsList() {
736
+ return contacts_;
737
+ }
738
+ /**
739
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Contact contacts = 17;</code>
740
+ */
741
+ @java.lang.Override
742
+ public java.util.List<? extends com.lansweeper.dp.outbound.v1.Office365ContactOrBuilder>
743
+ getContactsOrBuilderList() {
744
+ return contacts_;
745
+ }
746
+ /**
747
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Contact contacts = 17;</code>
748
+ */
749
+ @java.lang.Override
750
+ public int getContactsCount() {
751
+ return contacts_.size();
752
+ }
753
+ /**
754
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Contact contacts = 17;</code>
755
+ */
756
+ @java.lang.Override
757
+ public com.lansweeper.dp.outbound.v1.Office365Contact getContacts(int index) {
758
+ return contacts_.get(index);
759
+ }
760
+ /**
761
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Contact contacts = 17;</code>
762
+ */
763
+ @java.lang.Override
764
+ public com.lansweeper.dp.outbound.v1.Office365ContactOrBuilder getContactsOrBuilder(
765
+ int index) {
766
+ return contacts_.get(index);
767
+ }
768
+
769
+ private byte memoizedIsInitialized = -1;
770
+ @java.lang.Override
771
+ public final boolean isInitialized() {
772
+ byte isInitialized = memoizedIsInitialized;
773
+ if (isInitialized == 1) return true;
774
+ if (isInitialized == 0) return false;
775
+
776
+ memoizedIsInitialized = 1;
777
+ return true;
778
+ }
779
+
780
+ @java.lang.Override
781
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
782
+ throws java.io.IOException {
783
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenantId_)) {
784
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tenantId_);
785
+ }
786
+ if (((bitField0_ & 0x00000001) != 0)) {
787
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayname_);
788
+ }
789
+ if (((bitField0_ & 0x00000002) != 0)) {
790
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, country_);
791
+ }
792
+ if (((bitField0_ & 0x00000004) != 0)) {
793
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, city_);
794
+ }
795
+ if (((bitField0_ & 0x00000008) != 0)) {
796
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, countryName_);
797
+ }
798
+ if (((bitField0_ & 0x00000010) != 0)) {
799
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, postalCode_);
800
+ }
801
+ if (((bitField0_ & 0x00000020) != 0)) {
802
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, state_);
803
+ }
804
+ if (((bitField0_ & 0x00000040) != 0)) {
805
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, street_);
806
+ }
807
+ if (((bitField0_ & 0x00000080) != 0)) {
808
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 9, telephoneNumber_);
809
+ }
810
+ if (((bitField0_ & 0x00000100) != 0)) {
811
+ output.writeMessage(10, getCompanyLastDirSyncTime());
812
+ }
813
+ if (((bitField0_ & 0x00000200) != 0)) {
814
+ output.writeBool(11, dirSyncEnabled_);
815
+ }
816
+ for (int i = 0; i < domains_.size(); i++) {
817
+ output.writeMessage(12, domains_.get(i));
818
+ }
819
+ for (int i = 0; i < licenses_.size(); i++) {
820
+ output.writeMessage(15, licenses_.get(i));
821
+ }
822
+ com.google.protobuf.GeneratedMessageV3
823
+ .serializeStringMapTo(
824
+ output,
825
+ internalGetAssignedPlans(),
826
+ AssignedPlansDefaultEntryHolder.defaultEntry,
827
+ 16);
828
+ for (int i = 0; i < contacts_.size(); i++) {
829
+ output.writeMessage(17, contacts_.get(i));
830
+ }
831
+ getUnknownFields().writeTo(output);
832
+ }
833
+
834
+ @java.lang.Override
835
+ public int getSerializedSize() {
836
+ int size = memoizedSize;
837
+ if (size != -1) return size;
838
+
839
+ size = 0;
840
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tenantId_)) {
841
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tenantId_);
842
+ }
843
+ if (((bitField0_ & 0x00000001) != 0)) {
844
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayname_);
845
+ }
846
+ if (((bitField0_ & 0x00000002) != 0)) {
847
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, country_);
848
+ }
849
+ if (((bitField0_ & 0x00000004) != 0)) {
850
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, city_);
851
+ }
852
+ if (((bitField0_ & 0x00000008) != 0)) {
853
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, countryName_);
854
+ }
855
+ if (((bitField0_ & 0x00000010) != 0)) {
856
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, postalCode_);
857
+ }
858
+ if (((bitField0_ & 0x00000020) != 0)) {
859
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, state_);
860
+ }
861
+ if (((bitField0_ & 0x00000040) != 0)) {
862
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, street_);
863
+ }
864
+ if (((bitField0_ & 0x00000080) != 0)) {
865
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, telephoneNumber_);
866
+ }
867
+ if (((bitField0_ & 0x00000100) != 0)) {
868
+ size += com.google.protobuf.CodedOutputStream
869
+ .computeMessageSize(10, getCompanyLastDirSyncTime());
870
+ }
871
+ if (((bitField0_ & 0x00000200) != 0)) {
872
+ size += com.google.protobuf.CodedOutputStream
873
+ .computeBoolSize(11, dirSyncEnabled_);
874
+ }
875
+ for (int i = 0; i < domains_.size(); i++) {
876
+ size += com.google.protobuf.CodedOutputStream
877
+ .computeMessageSize(12, domains_.get(i));
878
+ }
879
+ for (int i = 0; i < licenses_.size(); i++) {
880
+ size += com.google.protobuf.CodedOutputStream
881
+ .computeMessageSize(15, licenses_.get(i));
882
+ }
883
+ for (java.util.Map.Entry<java.lang.String, com.lansweeper.dp.outbound.v1.Office365AssignedPlan> entry
884
+ : internalGetAssignedPlans().getMap().entrySet()) {
885
+ com.google.protobuf.MapEntry<java.lang.String, com.lansweeper.dp.outbound.v1.Office365AssignedPlan>
886
+ assignedPlans__ = AssignedPlansDefaultEntryHolder.defaultEntry.newBuilderForType()
887
+ .setKey(entry.getKey())
888
+ .setValue(entry.getValue())
889
+ .build();
890
+ size += com.google.protobuf.CodedOutputStream
891
+ .computeMessageSize(16, assignedPlans__);
892
+ }
893
+ for (int i = 0; i < contacts_.size(); i++) {
894
+ size += com.google.protobuf.CodedOutputStream
895
+ .computeMessageSize(17, contacts_.get(i));
896
+ }
897
+ size += getUnknownFields().getSerializedSize();
898
+ memoizedSize = size;
899
+ return size;
900
+ }
901
+
902
+ @java.lang.Override
903
+ public boolean equals(final java.lang.Object obj) {
904
+ if (obj == this) {
905
+ return true;
906
+ }
907
+ if (!(obj instanceof com.lansweeper.dp.outbound.v1.Office365Organization)) {
908
+ return super.equals(obj);
909
+ }
910
+ com.lansweeper.dp.outbound.v1.Office365Organization other = (com.lansweeper.dp.outbound.v1.Office365Organization) obj;
911
+
912
+ if (!getTenantId()
913
+ .equals(other.getTenantId())) return false;
914
+ if (hasDisplayname() != other.hasDisplayname()) return false;
915
+ if (hasDisplayname()) {
916
+ if (!getDisplayname()
917
+ .equals(other.getDisplayname())) return false;
918
+ }
919
+ if (hasCountry() != other.hasCountry()) return false;
920
+ if (hasCountry()) {
921
+ if (!getCountry()
922
+ .equals(other.getCountry())) return false;
923
+ }
924
+ if (hasCity() != other.hasCity()) return false;
925
+ if (hasCity()) {
926
+ if (!getCity()
927
+ .equals(other.getCity())) return false;
928
+ }
929
+ if (hasCountryName() != other.hasCountryName()) return false;
930
+ if (hasCountryName()) {
931
+ if (!getCountryName()
932
+ .equals(other.getCountryName())) return false;
933
+ }
934
+ if (hasPostalCode() != other.hasPostalCode()) return false;
935
+ if (hasPostalCode()) {
936
+ if (!getPostalCode()
937
+ .equals(other.getPostalCode())) return false;
938
+ }
939
+ if (hasState() != other.hasState()) return false;
940
+ if (hasState()) {
941
+ if (!getState()
942
+ .equals(other.getState())) return false;
943
+ }
944
+ if (hasStreet() != other.hasStreet()) return false;
945
+ if (hasStreet()) {
946
+ if (!getStreet()
947
+ .equals(other.getStreet())) return false;
948
+ }
949
+ if (hasTelephoneNumber() != other.hasTelephoneNumber()) return false;
950
+ if (hasTelephoneNumber()) {
951
+ if (!getTelephoneNumber()
952
+ .equals(other.getTelephoneNumber())) return false;
953
+ }
954
+ if (hasCompanyLastDirSyncTime() != other.hasCompanyLastDirSyncTime()) return false;
955
+ if (hasCompanyLastDirSyncTime()) {
956
+ if (!getCompanyLastDirSyncTime()
957
+ .equals(other.getCompanyLastDirSyncTime())) return false;
958
+ }
959
+ if (hasDirSyncEnabled() != other.hasDirSyncEnabled()) return false;
960
+ if (hasDirSyncEnabled()) {
961
+ if (getDirSyncEnabled()
962
+ != other.getDirSyncEnabled()) return false;
963
+ }
964
+ if (!getDomainsList()
965
+ .equals(other.getDomainsList())) return false;
966
+ if (!getLicensesList()
967
+ .equals(other.getLicensesList())) return false;
968
+ if (!internalGetAssignedPlans().equals(
969
+ other.internalGetAssignedPlans())) return false;
970
+ if (!getContactsList()
971
+ .equals(other.getContactsList())) return false;
972
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
973
+ return true;
974
+ }
975
+
976
+ @java.lang.Override
977
+ public int hashCode() {
978
+ if (memoizedHashCode != 0) {
979
+ return memoizedHashCode;
980
+ }
981
+ int hash = 41;
982
+ hash = (19 * hash) + getDescriptor().hashCode();
983
+ hash = (37 * hash) + TENANT_ID_FIELD_NUMBER;
984
+ hash = (53 * hash) + getTenantId().hashCode();
985
+ if (hasDisplayname()) {
986
+ hash = (37 * hash) + DISPLAYNAME_FIELD_NUMBER;
987
+ hash = (53 * hash) + getDisplayname().hashCode();
988
+ }
989
+ if (hasCountry()) {
990
+ hash = (37 * hash) + COUNTRY_FIELD_NUMBER;
991
+ hash = (53 * hash) + getCountry().hashCode();
992
+ }
993
+ if (hasCity()) {
994
+ hash = (37 * hash) + CITY_FIELD_NUMBER;
995
+ hash = (53 * hash) + getCity().hashCode();
996
+ }
997
+ if (hasCountryName()) {
998
+ hash = (37 * hash) + COUNTRY_NAME_FIELD_NUMBER;
999
+ hash = (53 * hash) + getCountryName().hashCode();
1000
+ }
1001
+ if (hasPostalCode()) {
1002
+ hash = (37 * hash) + POSTAL_CODE_FIELD_NUMBER;
1003
+ hash = (53 * hash) + getPostalCode().hashCode();
1004
+ }
1005
+ if (hasState()) {
1006
+ hash = (37 * hash) + STATE_FIELD_NUMBER;
1007
+ hash = (53 * hash) + getState().hashCode();
1008
+ }
1009
+ if (hasStreet()) {
1010
+ hash = (37 * hash) + STREET_FIELD_NUMBER;
1011
+ hash = (53 * hash) + getStreet().hashCode();
1012
+ }
1013
+ if (hasTelephoneNumber()) {
1014
+ hash = (37 * hash) + TELEPHONE_NUMBER_FIELD_NUMBER;
1015
+ hash = (53 * hash) + getTelephoneNumber().hashCode();
1016
+ }
1017
+ if (hasCompanyLastDirSyncTime()) {
1018
+ hash = (37 * hash) + COMPANY_LAST_DIR_SYNC_TIME_FIELD_NUMBER;
1019
+ hash = (53 * hash) + getCompanyLastDirSyncTime().hashCode();
1020
+ }
1021
+ if (hasDirSyncEnabled()) {
1022
+ hash = (37 * hash) + DIR_SYNC_ENABLED_FIELD_NUMBER;
1023
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
1024
+ getDirSyncEnabled());
1025
+ }
1026
+ if (getDomainsCount() > 0) {
1027
+ hash = (37 * hash) + DOMAINS_FIELD_NUMBER;
1028
+ hash = (53 * hash) + getDomainsList().hashCode();
1029
+ }
1030
+ if (getLicensesCount() > 0) {
1031
+ hash = (37 * hash) + LICENSES_FIELD_NUMBER;
1032
+ hash = (53 * hash) + getLicensesList().hashCode();
1033
+ }
1034
+ if (!internalGetAssignedPlans().getMap().isEmpty()) {
1035
+ hash = (37 * hash) + ASSIGNED_PLANS_FIELD_NUMBER;
1036
+ hash = (53 * hash) + internalGetAssignedPlans().hashCode();
1037
+ }
1038
+ if (getContactsCount() > 0) {
1039
+ hash = (37 * hash) + CONTACTS_FIELD_NUMBER;
1040
+ hash = (53 * hash) + getContactsList().hashCode();
1041
+ }
1042
+ hash = (29 * hash) + getUnknownFields().hashCode();
1043
+ memoizedHashCode = hash;
1044
+ return hash;
1045
+ }
1046
+
1047
+ public static com.lansweeper.dp.outbound.v1.Office365Organization parseFrom(
1048
+ java.nio.ByteBuffer data)
1049
+ throws com.google.protobuf.InvalidProtocolBufferException {
1050
+ return PARSER.parseFrom(data);
1051
+ }
1052
+ public static com.lansweeper.dp.outbound.v1.Office365Organization parseFrom(
1053
+ java.nio.ByteBuffer data,
1054
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1055
+ throws com.google.protobuf.InvalidProtocolBufferException {
1056
+ return PARSER.parseFrom(data, extensionRegistry);
1057
+ }
1058
+ public static com.lansweeper.dp.outbound.v1.Office365Organization parseFrom(
1059
+ com.google.protobuf.ByteString data)
1060
+ throws com.google.protobuf.InvalidProtocolBufferException {
1061
+ return PARSER.parseFrom(data);
1062
+ }
1063
+ public static com.lansweeper.dp.outbound.v1.Office365Organization parseFrom(
1064
+ com.google.protobuf.ByteString data,
1065
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1066
+ throws com.google.protobuf.InvalidProtocolBufferException {
1067
+ return PARSER.parseFrom(data, extensionRegistry);
1068
+ }
1069
+ public static com.lansweeper.dp.outbound.v1.Office365Organization parseFrom(byte[] data)
1070
+ throws com.google.protobuf.InvalidProtocolBufferException {
1071
+ return PARSER.parseFrom(data);
1072
+ }
1073
+ public static com.lansweeper.dp.outbound.v1.Office365Organization parseFrom(
1074
+ byte[] data,
1075
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1076
+ throws com.google.protobuf.InvalidProtocolBufferException {
1077
+ return PARSER.parseFrom(data, extensionRegistry);
1078
+ }
1079
+ public static com.lansweeper.dp.outbound.v1.Office365Organization parseFrom(java.io.InputStream input)
1080
+ throws java.io.IOException {
1081
+ return com.google.protobuf.GeneratedMessageV3
1082
+ .parseWithIOException(PARSER, input);
1083
+ }
1084
+ public static com.lansweeper.dp.outbound.v1.Office365Organization parseFrom(
1085
+ java.io.InputStream input,
1086
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1087
+ throws java.io.IOException {
1088
+ return com.google.protobuf.GeneratedMessageV3
1089
+ .parseWithIOException(PARSER, input, extensionRegistry);
1090
+ }
1091
+
1092
+ public static com.lansweeper.dp.outbound.v1.Office365Organization parseDelimitedFrom(java.io.InputStream input)
1093
+ throws java.io.IOException {
1094
+ return com.google.protobuf.GeneratedMessageV3
1095
+ .parseDelimitedWithIOException(PARSER, input);
1096
+ }
1097
+
1098
+ public static com.lansweeper.dp.outbound.v1.Office365Organization parseDelimitedFrom(
1099
+ java.io.InputStream input,
1100
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1101
+ throws java.io.IOException {
1102
+ return com.google.protobuf.GeneratedMessageV3
1103
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1104
+ }
1105
+ public static com.lansweeper.dp.outbound.v1.Office365Organization parseFrom(
1106
+ com.google.protobuf.CodedInputStream input)
1107
+ throws java.io.IOException {
1108
+ return com.google.protobuf.GeneratedMessageV3
1109
+ .parseWithIOException(PARSER, input);
1110
+ }
1111
+ public static com.lansweeper.dp.outbound.v1.Office365Organization parseFrom(
1112
+ com.google.protobuf.CodedInputStream input,
1113
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1114
+ throws java.io.IOException {
1115
+ return com.google.protobuf.GeneratedMessageV3
1116
+ .parseWithIOException(PARSER, input, extensionRegistry);
1117
+ }
1118
+
1119
+ @java.lang.Override
1120
+ public Builder newBuilderForType() { return newBuilder(); }
1121
+ public static Builder newBuilder() {
1122
+ return DEFAULT_INSTANCE.toBuilder();
1123
+ }
1124
+ public static Builder newBuilder(com.lansweeper.dp.outbound.v1.Office365Organization prototype) {
1125
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1126
+ }
1127
+ @java.lang.Override
1128
+ public Builder toBuilder() {
1129
+ return this == DEFAULT_INSTANCE
1130
+ ? new Builder() : new Builder().mergeFrom(this);
1131
+ }
1132
+
1133
+ @java.lang.Override
1134
+ protected Builder newBuilderForType(
1135
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1136
+ Builder builder = new Builder(parent);
1137
+ return builder;
1138
+ }
1139
+ /**
1140
+ * <pre>
1141
+ * Office365 API scanning root object
1142
+ * </pre>
1143
+ *
1144
+ * Protobuf type {@code com.lansweeper.dp.outbound.v1.Office365Organization}
1145
+ */
1146
+ public static final class Builder extends
1147
+ com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
1148
+ // @@protoc_insertion_point(builder_implements:com.lansweeper.dp.outbound.v1.Office365Organization)
1149
+ com.lansweeper.dp.outbound.v1.Office365OrganizationOrBuilder {
1150
+ public static final com.google.protobuf.Descriptors.Descriptor
1151
+ getDescriptor() {
1152
+ return com.lansweeper.dp.outbound.v1.Outbound.internal_static_com_lansweeper_dp_outbound_v1_Office365Organization_descriptor;
1153
+ }
1154
+
1155
+ @SuppressWarnings({"rawtypes"})
1156
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
1157
+ int number) {
1158
+ switch (number) {
1159
+ case 16:
1160
+ return internalGetAssignedPlans();
1161
+ default:
1162
+ throw new RuntimeException(
1163
+ "Invalid map field number: " + number);
1164
+ }
1165
+ }
1166
+ @SuppressWarnings({"rawtypes"})
1167
+ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
1168
+ int number) {
1169
+ switch (number) {
1170
+ case 16:
1171
+ return internalGetMutableAssignedPlans();
1172
+ default:
1173
+ throw new RuntimeException(
1174
+ "Invalid map field number: " + number);
1175
+ }
1176
+ }
1177
+ @java.lang.Override
1178
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
1179
+ internalGetFieldAccessorTable() {
1180
+ return com.lansweeper.dp.outbound.v1.Outbound.internal_static_com_lansweeper_dp_outbound_v1_Office365Organization_fieldAccessorTable
1181
+ .ensureFieldAccessorsInitialized(
1182
+ com.lansweeper.dp.outbound.v1.Office365Organization.class, com.lansweeper.dp.outbound.v1.Office365Organization.Builder.class);
1183
+ }
1184
+
1185
+ // Construct using com.lansweeper.dp.outbound.v1.Office365Organization.newBuilder()
1186
+ private Builder() {
1187
+ maybeForceBuilderInitialization();
1188
+ }
1189
+
1190
+ private Builder(
1191
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1192
+ super(parent);
1193
+ maybeForceBuilderInitialization();
1194
+ }
1195
+ private void maybeForceBuilderInitialization() {
1196
+ if (com.google.protobuf.GeneratedMessageV3
1197
+ .alwaysUseFieldBuilders) {
1198
+ getCompanyLastDirSyncTimeFieldBuilder();
1199
+ getDomainsFieldBuilder();
1200
+ getLicensesFieldBuilder();
1201
+ getContactsFieldBuilder();
1202
+ }
1203
+ }
1204
+ @java.lang.Override
1205
+ public Builder clear() {
1206
+ super.clear();
1207
+ bitField0_ = 0;
1208
+ tenantId_ = "";
1209
+ displayname_ = "";
1210
+ country_ = "";
1211
+ city_ = "";
1212
+ countryName_ = "";
1213
+ postalCode_ = "";
1214
+ state_ = "";
1215
+ street_ = "";
1216
+ telephoneNumber_ = "";
1217
+ companyLastDirSyncTime_ = null;
1218
+ if (companyLastDirSyncTimeBuilder_ != null) {
1219
+ companyLastDirSyncTimeBuilder_.dispose();
1220
+ companyLastDirSyncTimeBuilder_ = null;
1221
+ }
1222
+ dirSyncEnabled_ = false;
1223
+ if (domainsBuilder_ == null) {
1224
+ domains_ = java.util.Collections.emptyList();
1225
+ } else {
1226
+ domains_ = null;
1227
+ domainsBuilder_.clear();
1228
+ }
1229
+ bitField0_ = (bitField0_ & ~0x00000800);
1230
+ if (licensesBuilder_ == null) {
1231
+ licenses_ = java.util.Collections.emptyList();
1232
+ } else {
1233
+ licenses_ = null;
1234
+ licensesBuilder_.clear();
1235
+ }
1236
+ bitField0_ = (bitField0_ & ~0x00001000);
1237
+ internalGetMutableAssignedPlans().clear();
1238
+ if (contactsBuilder_ == null) {
1239
+ contacts_ = java.util.Collections.emptyList();
1240
+ } else {
1241
+ contacts_ = null;
1242
+ contactsBuilder_.clear();
1243
+ }
1244
+ bitField0_ = (bitField0_ & ~0x00004000);
1245
+ return this;
1246
+ }
1247
+
1248
+ @java.lang.Override
1249
+ public com.google.protobuf.Descriptors.Descriptor
1250
+ getDescriptorForType() {
1251
+ return com.lansweeper.dp.outbound.v1.Outbound.internal_static_com_lansweeper_dp_outbound_v1_Office365Organization_descriptor;
1252
+ }
1253
+
1254
+ @java.lang.Override
1255
+ public com.lansweeper.dp.outbound.v1.Office365Organization getDefaultInstanceForType() {
1256
+ return com.lansweeper.dp.outbound.v1.Office365Organization.getDefaultInstance();
1257
+ }
1258
+
1259
+ @java.lang.Override
1260
+ public com.lansweeper.dp.outbound.v1.Office365Organization build() {
1261
+ com.lansweeper.dp.outbound.v1.Office365Organization result = buildPartial();
1262
+ if (!result.isInitialized()) {
1263
+ throw newUninitializedMessageException(result);
1264
+ }
1265
+ return result;
1266
+ }
1267
+
1268
+ @java.lang.Override
1269
+ public com.lansweeper.dp.outbound.v1.Office365Organization buildPartial() {
1270
+ com.lansweeper.dp.outbound.v1.Office365Organization result = new com.lansweeper.dp.outbound.v1.Office365Organization(this);
1271
+ buildPartialRepeatedFields(result);
1272
+ if (bitField0_ != 0) { buildPartial0(result); }
1273
+ onBuilt();
1274
+ return result;
1275
+ }
1276
+
1277
+ private void buildPartialRepeatedFields(com.lansweeper.dp.outbound.v1.Office365Organization result) {
1278
+ if (domainsBuilder_ == null) {
1279
+ if (((bitField0_ & 0x00000800) != 0)) {
1280
+ domains_ = java.util.Collections.unmodifiableList(domains_);
1281
+ bitField0_ = (bitField0_ & ~0x00000800);
1282
+ }
1283
+ result.domains_ = domains_;
1284
+ } else {
1285
+ result.domains_ = domainsBuilder_.build();
1286
+ }
1287
+ if (licensesBuilder_ == null) {
1288
+ if (((bitField0_ & 0x00001000) != 0)) {
1289
+ licenses_ = java.util.Collections.unmodifiableList(licenses_);
1290
+ bitField0_ = (bitField0_ & ~0x00001000);
1291
+ }
1292
+ result.licenses_ = licenses_;
1293
+ } else {
1294
+ result.licenses_ = licensesBuilder_.build();
1295
+ }
1296
+ if (contactsBuilder_ == null) {
1297
+ if (((bitField0_ & 0x00004000) != 0)) {
1298
+ contacts_ = java.util.Collections.unmodifiableList(contacts_);
1299
+ bitField0_ = (bitField0_ & ~0x00004000);
1300
+ }
1301
+ result.contacts_ = contacts_;
1302
+ } else {
1303
+ result.contacts_ = contactsBuilder_.build();
1304
+ }
1305
+ }
1306
+
1307
+ private void buildPartial0(com.lansweeper.dp.outbound.v1.Office365Organization result) {
1308
+ int from_bitField0_ = bitField0_;
1309
+ if (((from_bitField0_ & 0x00000001) != 0)) {
1310
+ result.tenantId_ = tenantId_;
1311
+ }
1312
+ int to_bitField0_ = 0;
1313
+ if (((from_bitField0_ & 0x00000002) != 0)) {
1314
+ result.displayname_ = displayname_;
1315
+ to_bitField0_ |= 0x00000001;
1316
+ }
1317
+ if (((from_bitField0_ & 0x00000004) != 0)) {
1318
+ result.country_ = country_;
1319
+ to_bitField0_ |= 0x00000002;
1320
+ }
1321
+ if (((from_bitField0_ & 0x00000008) != 0)) {
1322
+ result.city_ = city_;
1323
+ to_bitField0_ |= 0x00000004;
1324
+ }
1325
+ if (((from_bitField0_ & 0x00000010) != 0)) {
1326
+ result.countryName_ = countryName_;
1327
+ to_bitField0_ |= 0x00000008;
1328
+ }
1329
+ if (((from_bitField0_ & 0x00000020) != 0)) {
1330
+ result.postalCode_ = postalCode_;
1331
+ to_bitField0_ |= 0x00000010;
1332
+ }
1333
+ if (((from_bitField0_ & 0x00000040) != 0)) {
1334
+ result.state_ = state_;
1335
+ to_bitField0_ |= 0x00000020;
1336
+ }
1337
+ if (((from_bitField0_ & 0x00000080) != 0)) {
1338
+ result.street_ = street_;
1339
+ to_bitField0_ |= 0x00000040;
1340
+ }
1341
+ if (((from_bitField0_ & 0x00000100) != 0)) {
1342
+ result.telephoneNumber_ = telephoneNumber_;
1343
+ to_bitField0_ |= 0x00000080;
1344
+ }
1345
+ if (((from_bitField0_ & 0x00000200) != 0)) {
1346
+ result.companyLastDirSyncTime_ = companyLastDirSyncTimeBuilder_ == null
1347
+ ? companyLastDirSyncTime_
1348
+ : companyLastDirSyncTimeBuilder_.build();
1349
+ to_bitField0_ |= 0x00000100;
1350
+ }
1351
+ if (((from_bitField0_ & 0x00000400) != 0)) {
1352
+ result.dirSyncEnabled_ = dirSyncEnabled_;
1353
+ to_bitField0_ |= 0x00000200;
1354
+ }
1355
+ if (((from_bitField0_ & 0x00002000) != 0)) {
1356
+ result.assignedPlans_ = internalGetAssignedPlans().build(AssignedPlansDefaultEntryHolder.defaultEntry);
1357
+ }
1358
+ result.bitField0_ |= to_bitField0_;
1359
+ }
1360
+
1361
+ @java.lang.Override
1362
+ public Builder clone() {
1363
+ return super.clone();
1364
+ }
1365
+ @java.lang.Override
1366
+ public Builder setField(
1367
+ com.google.protobuf.Descriptors.FieldDescriptor field,
1368
+ java.lang.Object value) {
1369
+ return super.setField(field, value);
1370
+ }
1371
+ @java.lang.Override
1372
+ public Builder clearField(
1373
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
1374
+ return super.clearField(field);
1375
+ }
1376
+ @java.lang.Override
1377
+ public Builder clearOneof(
1378
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1379
+ return super.clearOneof(oneof);
1380
+ }
1381
+ @java.lang.Override
1382
+ public Builder setRepeatedField(
1383
+ com.google.protobuf.Descriptors.FieldDescriptor field,
1384
+ int index, java.lang.Object value) {
1385
+ return super.setRepeatedField(field, index, value);
1386
+ }
1387
+ @java.lang.Override
1388
+ public Builder addRepeatedField(
1389
+ com.google.protobuf.Descriptors.FieldDescriptor field,
1390
+ java.lang.Object value) {
1391
+ return super.addRepeatedField(field, value);
1392
+ }
1393
+ @java.lang.Override
1394
+ public Builder mergeFrom(com.google.protobuf.Message other) {
1395
+ if (other instanceof com.lansweeper.dp.outbound.v1.Office365Organization) {
1396
+ return mergeFrom((com.lansweeper.dp.outbound.v1.Office365Organization)other);
1397
+ } else {
1398
+ super.mergeFrom(other);
1399
+ return this;
1400
+ }
1401
+ }
1402
+
1403
+ public Builder mergeFrom(com.lansweeper.dp.outbound.v1.Office365Organization other) {
1404
+ if (other == com.lansweeper.dp.outbound.v1.Office365Organization.getDefaultInstance()) return this;
1405
+ if (!other.getTenantId().isEmpty()) {
1406
+ tenantId_ = other.tenantId_;
1407
+ bitField0_ |= 0x00000001;
1408
+ onChanged();
1409
+ }
1410
+ if (other.hasDisplayname()) {
1411
+ displayname_ = other.displayname_;
1412
+ bitField0_ |= 0x00000002;
1413
+ onChanged();
1414
+ }
1415
+ if (other.hasCountry()) {
1416
+ country_ = other.country_;
1417
+ bitField0_ |= 0x00000004;
1418
+ onChanged();
1419
+ }
1420
+ if (other.hasCity()) {
1421
+ city_ = other.city_;
1422
+ bitField0_ |= 0x00000008;
1423
+ onChanged();
1424
+ }
1425
+ if (other.hasCountryName()) {
1426
+ countryName_ = other.countryName_;
1427
+ bitField0_ |= 0x00000010;
1428
+ onChanged();
1429
+ }
1430
+ if (other.hasPostalCode()) {
1431
+ postalCode_ = other.postalCode_;
1432
+ bitField0_ |= 0x00000020;
1433
+ onChanged();
1434
+ }
1435
+ if (other.hasState()) {
1436
+ state_ = other.state_;
1437
+ bitField0_ |= 0x00000040;
1438
+ onChanged();
1439
+ }
1440
+ if (other.hasStreet()) {
1441
+ street_ = other.street_;
1442
+ bitField0_ |= 0x00000080;
1443
+ onChanged();
1444
+ }
1445
+ if (other.hasTelephoneNumber()) {
1446
+ telephoneNumber_ = other.telephoneNumber_;
1447
+ bitField0_ |= 0x00000100;
1448
+ onChanged();
1449
+ }
1450
+ if (other.hasCompanyLastDirSyncTime()) {
1451
+ mergeCompanyLastDirSyncTime(other.getCompanyLastDirSyncTime());
1452
+ }
1453
+ if (other.hasDirSyncEnabled()) {
1454
+ setDirSyncEnabled(other.getDirSyncEnabled());
1455
+ }
1456
+ if (domainsBuilder_ == null) {
1457
+ if (!other.domains_.isEmpty()) {
1458
+ if (domains_.isEmpty()) {
1459
+ domains_ = other.domains_;
1460
+ bitField0_ = (bitField0_ & ~0x00000800);
1461
+ } else {
1462
+ ensureDomainsIsMutable();
1463
+ domains_.addAll(other.domains_);
1464
+ }
1465
+ onChanged();
1466
+ }
1467
+ } else {
1468
+ if (!other.domains_.isEmpty()) {
1469
+ if (domainsBuilder_.isEmpty()) {
1470
+ domainsBuilder_.dispose();
1471
+ domainsBuilder_ = null;
1472
+ domains_ = other.domains_;
1473
+ bitField0_ = (bitField0_ & ~0x00000800);
1474
+ domainsBuilder_ =
1475
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1476
+ getDomainsFieldBuilder() : null;
1477
+ } else {
1478
+ domainsBuilder_.addAllMessages(other.domains_);
1479
+ }
1480
+ }
1481
+ }
1482
+ if (licensesBuilder_ == null) {
1483
+ if (!other.licenses_.isEmpty()) {
1484
+ if (licenses_.isEmpty()) {
1485
+ licenses_ = other.licenses_;
1486
+ bitField0_ = (bitField0_ & ~0x00001000);
1487
+ } else {
1488
+ ensureLicensesIsMutable();
1489
+ licenses_.addAll(other.licenses_);
1490
+ }
1491
+ onChanged();
1492
+ }
1493
+ } else {
1494
+ if (!other.licenses_.isEmpty()) {
1495
+ if (licensesBuilder_.isEmpty()) {
1496
+ licensesBuilder_.dispose();
1497
+ licensesBuilder_ = null;
1498
+ licenses_ = other.licenses_;
1499
+ bitField0_ = (bitField0_ & ~0x00001000);
1500
+ licensesBuilder_ =
1501
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1502
+ getLicensesFieldBuilder() : null;
1503
+ } else {
1504
+ licensesBuilder_.addAllMessages(other.licenses_);
1505
+ }
1506
+ }
1507
+ }
1508
+ internalGetMutableAssignedPlans().mergeFrom(
1509
+ other.internalGetAssignedPlans());
1510
+ bitField0_ |= 0x00002000;
1511
+ if (contactsBuilder_ == null) {
1512
+ if (!other.contacts_.isEmpty()) {
1513
+ if (contacts_.isEmpty()) {
1514
+ contacts_ = other.contacts_;
1515
+ bitField0_ = (bitField0_ & ~0x00004000);
1516
+ } else {
1517
+ ensureContactsIsMutable();
1518
+ contacts_.addAll(other.contacts_);
1519
+ }
1520
+ onChanged();
1521
+ }
1522
+ } else {
1523
+ if (!other.contacts_.isEmpty()) {
1524
+ if (contactsBuilder_.isEmpty()) {
1525
+ contactsBuilder_.dispose();
1526
+ contactsBuilder_ = null;
1527
+ contacts_ = other.contacts_;
1528
+ bitField0_ = (bitField0_ & ~0x00004000);
1529
+ contactsBuilder_ =
1530
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
1531
+ getContactsFieldBuilder() : null;
1532
+ } else {
1533
+ contactsBuilder_.addAllMessages(other.contacts_);
1534
+ }
1535
+ }
1536
+ }
1537
+ this.mergeUnknownFields(other.getUnknownFields());
1538
+ onChanged();
1539
+ return this;
1540
+ }
1541
+
1542
+ @java.lang.Override
1543
+ public final boolean isInitialized() {
1544
+ return true;
1545
+ }
1546
+
1547
+ @java.lang.Override
1548
+ public Builder mergeFrom(
1549
+ com.google.protobuf.CodedInputStream input,
1550
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1551
+ throws java.io.IOException {
1552
+ if (extensionRegistry == null) {
1553
+ throw new java.lang.NullPointerException();
1554
+ }
1555
+ try {
1556
+ boolean done = false;
1557
+ while (!done) {
1558
+ int tag = input.readTag();
1559
+ switch (tag) {
1560
+ case 0:
1561
+ done = true;
1562
+ break;
1563
+ case 10: {
1564
+ tenantId_ = input.readStringRequireUtf8();
1565
+ bitField0_ |= 0x00000001;
1566
+ break;
1567
+ } // case 10
1568
+ case 18: {
1569
+ displayname_ = input.readStringRequireUtf8();
1570
+ bitField0_ |= 0x00000002;
1571
+ break;
1572
+ } // case 18
1573
+ case 26: {
1574
+ country_ = input.readStringRequireUtf8();
1575
+ bitField0_ |= 0x00000004;
1576
+ break;
1577
+ } // case 26
1578
+ case 34: {
1579
+ city_ = input.readStringRequireUtf8();
1580
+ bitField0_ |= 0x00000008;
1581
+ break;
1582
+ } // case 34
1583
+ case 42: {
1584
+ countryName_ = input.readStringRequireUtf8();
1585
+ bitField0_ |= 0x00000010;
1586
+ break;
1587
+ } // case 42
1588
+ case 50: {
1589
+ postalCode_ = input.readStringRequireUtf8();
1590
+ bitField0_ |= 0x00000020;
1591
+ break;
1592
+ } // case 50
1593
+ case 58: {
1594
+ state_ = input.readStringRequireUtf8();
1595
+ bitField0_ |= 0x00000040;
1596
+ break;
1597
+ } // case 58
1598
+ case 66: {
1599
+ street_ = input.readStringRequireUtf8();
1600
+ bitField0_ |= 0x00000080;
1601
+ break;
1602
+ } // case 66
1603
+ case 74: {
1604
+ telephoneNumber_ = input.readStringRequireUtf8();
1605
+ bitField0_ |= 0x00000100;
1606
+ break;
1607
+ } // case 74
1608
+ case 82: {
1609
+ input.readMessage(
1610
+ getCompanyLastDirSyncTimeFieldBuilder().getBuilder(),
1611
+ extensionRegistry);
1612
+ bitField0_ |= 0x00000200;
1613
+ break;
1614
+ } // case 82
1615
+ case 88: {
1616
+ dirSyncEnabled_ = input.readBool();
1617
+ bitField0_ |= 0x00000400;
1618
+ break;
1619
+ } // case 88
1620
+ case 98: {
1621
+ com.lansweeper.dp.outbound.v1.Office365Domain m =
1622
+ input.readMessage(
1623
+ com.lansweeper.dp.outbound.v1.Office365Domain.parser(),
1624
+ extensionRegistry);
1625
+ if (domainsBuilder_ == null) {
1626
+ ensureDomainsIsMutable();
1627
+ domains_.add(m);
1628
+ } else {
1629
+ domainsBuilder_.addMessage(m);
1630
+ }
1631
+ break;
1632
+ } // case 98
1633
+ case 122: {
1634
+ com.lansweeper.dp.outbound.v1.Office365License m =
1635
+ input.readMessage(
1636
+ com.lansweeper.dp.outbound.v1.Office365License.parser(),
1637
+ extensionRegistry);
1638
+ if (licensesBuilder_ == null) {
1639
+ ensureLicensesIsMutable();
1640
+ licenses_.add(m);
1641
+ } else {
1642
+ licensesBuilder_.addMessage(m);
1643
+ }
1644
+ break;
1645
+ } // case 122
1646
+ case 130: {
1647
+ com.google.protobuf.MapEntry<java.lang.String, com.lansweeper.dp.outbound.v1.Office365AssignedPlan>
1648
+ assignedPlans__ = input.readMessage(
1649
+ AssignedPlansDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
1650
+ internalGetMutableAssignedPlans().ensureBuilderMap().put(
1651
+ assignedPlans__.getKey(), assignedPlans__.getValue());
1652
+ bitField0_ |= 0x00002000;
1653
+ break;
1654
+ } // case 130
1655
+ case 138: {
1656
+ com.lansweeper.dp.outbound.v1.Office365Contact m =
1657
+ input.readMessage(
1658
+ com.lansweeper.dp.outbound.v1.Office365Contact.parser(),
1659
+ extensionRegistry);
1660
+ if (contactsBuilder_ == null) {
1661
+ ensureContactsIsMutable();
1662
+ contacts_.add(m);
1663
+ } else {
1664
+ contactsBuilder_.addMessage(m);
1665
+ }
1666
+ break;
1667
+ } // case 138
1668
+ default: {
1669
+ if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1670
+ done = true; // was an endgroup tag
1671
+ }
1672
+ break;
1673
+ } // default:
1674
+ } // switch (tag)
1675
+ } // while (!done)
1676
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1677
+ throw e.unwrapIOException();
1678
+ } finally {
1679
+ onChanged();
1680
+ } // finally
1681
+ return this;
1682
+ }
1683
+ private int bitField0_;
1684
+
1685
+ private java.lang.Object tenantId_ = "";
1686
+ /**
1687
+ * <code>string tenant_id = 1;</code>
1688
+ * @return The tenantId.
1689
+ */
1690
+ public java.lang.String getTenantId() {
1691
+ java.lang.Object ref = tenantId_;
1692
+ if (!(ref instanceof java.lang.String)) {
1693
+ com.google.protobuf.ByteString bs =
1694
+ (com.google.protobuf.ByteString) ref;
1695
+ java.lang.String s = bs.toStringUtf8();
1696
+ tenantId_ = s;
1697
+ return s;
1698
+ } else {
1699
+ return (java.lang.String) ref;
1700
+ }
1701
+ }
1702
+ /**
1703
+ * <code>string tenant_id = 1;</code>
1704
+ * @return The bytes for tenantId.
1705
+ */
1706
+ public com.google.protobuf.ByteString
1707
+ getTenantIdBytes() {
1708
+ java.lang.Object ref = tenantId_;
1709
+ if (ref instanceof String) {
1710
+ com.google.protobuf.ByteString b =
1711
+ com.google.protobuf.ByteString.copyFromUtf8(
1712
+ (java.lang.String) ref);
1713
+ tenantId_ = b;
1714
+ return b;
1715
+ } else {
1716
+ return (com.google.protobuf.ByteString) ref;
1717
+ }
1718
+ }
1719
+ /**
1720
+ * <code>string tenant_id = 1;</code>
1721
+ * @param value The tenantId to set.
1722
+ * @return This builder for chaining.
1723
+ */
1724
+ public Builder setTenantId(
1725
+ java.lang.String value) {
1726
+ if (value == null) { throw new NullPointerException(); }
1727
+ tenantId_ = value;
1728
+ bitField0_ |= 0x00000001;
1729
+ onChanged();
1730
+ return this;
1731
+ }
1732
+ /**
1733
+ * <code>string tenant_id = 1;</code>
1734
+ * @return This builder for chaining.
1735
+ */
1736
+ public Builder clearTenantId() {
1737
+ tenantId_ = getDefaultInstance().getTenantId();
1738
+ bitField0_ = (bitField0_ & ~0x00000001);
1739
+ onChanged();
1740
+ return this;
1741
+ }
1742
+ /**
1743
+ * <code>string tenant_id = 1;</code>
1744
+ * @param value The bytes for tenantId to set.
1745
+ * @return This builder for chaining.
1746
+ */
1747
+ public Builder setTenantIdBytes(
1748
+ com.google.protobuf.ByteString value) {
1749
+ if (value == null) { throw new NullPointerException(); }
1750
+ checkByteStringIsUtf8(value);
1751
+ tenantId_ = value;
1752
+ bitField0_ |= 0x00000001;
1753
+ onChanged();
1754
+ return this;
1755
+ }
1756
+
1757
+ private java.lang.Object displayname_ = "";
1758
+ /**
1759
+ * <code>optional string displayname = 2;</code>
1760
+ * @return Whether the displayname field is set.
1761
+ */
1762
+ public boolean hasDisplayname() {
1763
+ return ((bitField0_ & 0x00000002) != 0);
1764
+ }
1765
+ /**
1766
+ * <code>optional string displayname = 2;</code>
1767
+ * @return The displayname.
1768
+ */
1769
+ public java.lang.String getDisplayname() {
1770
+ java.lang.Object ref = displayname_;
1771
+ if (!(ref instanceof java.lang.String)) {
1772
+ com.google.protobuf.ByteString bs =
1773
+ (com.google.protobuf.ByteString) ref;
1774
+ java.lang.String s = bs.toStringUtf8();
1775
+ displayname_ = s;
1776
+ return s;
1777
+ } else {
1778
+ return (java.lang.String) ref;
1779
+ }
1780
+ }
1781
+ /**
1782
+ * <code>optional string displayname = 2;</code>
1783
+ * @return The bytes for displayname.
1784
+ */
1785
+ public com.google.protobuf.ByteString
1786
+ getDisplaynameBytes() {
1787
+ java.lang.Object ref = displayname_;
1788
+ if (ref instanceof String) {
1789
+ com.google.protobuf.ByteString b =
1790
+ com.google.protobuf.ByteString.copyFromUtf8(
1791
+ (java.lang.String) ref);
1792
+ displayname_ = b;
1793
+ return b;
1794
+ } else {
1795
+ return (com.google.protobuf.ByteString) ref;
1796
+ }
1797
+ }
1798
+ /**
1799
+ * <code>optional string displayname = 2;</code>
1800
+ * @param value The displayname to set.
1801
+ * @return This builder for chaining.
1802
+ */
1803
+ public Builder setDisplayname(
1804
+ java.lang.String value) {
1805
+ if (value == null) { throw new NullPointerException(); }
1806
+ displayname_ = value;
1807
+ bitField0_ |= 0x00000002;
1808
+ onChanged();
1809
+ return this;
1810
+ }
1811
+ /**
1812
+ * <code>optional string displayname = 2;</code>
1813
+ * @return This builder for chaining.
1814
+ */
1815
+ public Builder clearDisplayname() {
1816
+ displayname_ = getDefaultInstance().getDisplayname();
1817
+ bitField0_ = (bitField0_ & ~0x00000002);
1818
+ onChanged();
1819
+ return this;
1820
+ }
1821
+ /**
1822
+ * <code>optional string displayname = 2;</code>
1823
+ * @param value The bytes for displayname to set.
1824
+ * @return This builder for chaining.
1825
+ */
1826
+ public Builder setDisplaynameBytes(
1827
+ com.google.protobuf.ByteString value) {
1828
+ if (value == null) { throw new NullPointerException(); }
1829
+ checkByteStringIsUtf8(value);
1830
+ displayname_ = value;
1831
+ bitField0_ |= 0x00000002;
1832
+ onChanged();
1833
+ return this;
1834
+ }
1835
+
1836
+ private java.lang.Object country_ = "";
1837
+ /**
1838
+ * <code>optional string country = 3;</code>
1839
+ * @return Whether the country field is set.
1840
+ */
1841
+ public boolean hasCountry() {
1842
+ return ((bitField0_ & 0x00000004) != 0);
1843
+ }
1844
+ /**
1845
+ * <code>optional string country = 3;</code>
1846
+ * @return The country.
1847
+ */
1848
+ public java.lang.String getCountry() {
1849
+ java.lang.Object ref = country_;
1850
+ if (!(ref instanceof java.lang.String)) {
1851
+ com.google.protobuf.ByteString bs =
1852
+ (com.google.protobuf.ByteString) ref;
1853
+ java.lang.String s = bs.toStringUtf8();
1854
+ country_ = s;
1855
+ return s;
1856
+ } else {
1857
+ return (java.lang.String) ref;
1858
+ }
1859
+ }
1860
+ /**
1861
+ * <code>optional string country = 3;</code>
1862
+ * @return The bytes for country.
1863
+ */
1864
+ public com.google.protobuf.ByteString
1865
+ getCountryBytes() {
1866
+ java.lang.Object ref = country_;
1867
+ if (ref instanceof String) {
1868
+ com.google.protobuf.ByteString b =
1869
+ com.google.protobuf.ByteString.copyFromUtf8(
1870
+ (java.lang.String) ref);
1871
+ country_ = b;
1872
+ return b;
1873
+ } else {
1874
+ return (com.google.protobuf.ByteString) ref;
1875
+ }
1876
+ }
1877
+ /**
1878
+ * <code>optional string country = 3;</code>
1879
+ * @param value The country to set.
1880
+ * @return This builder for chaining.
1881
+ */
1882
+ public Builder setCountry(
1883
+ java.lang.String value) {
1884
+ if (value == null) { throw new NullPointerException(); }
1885
+ country_ = value;
1886
+ bitField0_ |= 0x00000004;
1887
+ onChanged();
1888
+ return this;
1889
+ }
1890
+ /**
1891
+ * <code>optional string country = 3;</code>
1892
+ * @return This builder for chaining.
1893
+ */
1894
+ public Builder clearCountry() {
1895
+ country_ = getDefaultInstance().getCountry();
1896
+ bitField0_ = (bitField0_ & ~0x00000004);
1897
+ onChanged();
1898
+ return this;
1899
+ }
1900
+ /**
1901
+ * <code>optional string country = 3;</code>
1902
+ * @param value The bytes for country to set.
1903
+ * @return This builder for chaining.
1904
+ */
1905
+ public Builder setCountryBytes(
1906
+ com.google.protobuf.ByteString value) {
1907
+ if (value == null) { throw new NullPointerException(); }
1908
+ checkByteStringIsUtf8(value);
1909
+ country_ = value;
1910
+ bitField0_ |= 0x00000004;
1911
+ onChanged();
1912
+ return this;
1913
+ }
1914
+
1915
+ private java.lang.Object city_ = "";
1916
+ /**
1917
+ * <code>optional string city = 4;</code>
1918
+ * @return Whether the city field is set.
1919
+ */
1920
+ public boolean hasCity() {
1921
+ return ((bitField0_ & 0x00000008) != 0);
1922
+ }
1923
+ /**
1924
+ * <code>optional string city = 4;</code>
1925
+ * @return The city.
1926
+ */
1927
+ public java.lang.String getCity() {
1928
+ java.lang.Object ref = city_;
1929
+ if (!(ref instanceof java.lang.String)) {
1930
+ com.google.protobuf.ByteString bs =
1931
+ (com.google.protobuf.ByteString) ref;
1932
+ java.lang.String s = bs.toStringUtf8();
1933
+ city_ = s;
1934
+ return s;
1935
+ } else {
1936
+ return (java.lang.String) ref;
1937
+ }
1938
+ }
1939
+ /**
1940
+ * <code>optional string city = 4;</code>
1941
+ * @return The bytes for city.
1942
+ */
1943
+ public com.google.protobuf.ByteString
1944
+ getCityBytes() {
1945
+ java.lang.Object ref = city_;
1946
+ if (ref instanceof String) {
1947
+ com.google.protobuf.ByteString b =
1948
+ com.google.protobuf.ByteString.copyFromUtf8(
1949
+ (java.lang.String) ref);
1950
+ city_ = b;
1951
+ return b;
1952
+ } else {
1953
+ return (com.google.protobuf.ByteString) ref;
1954
+ }
1955
+ }
1956
+ /**
1957
+ * <code>optional string city = 4;</code>
1958
+ * @param value The city to set.
1959
+ * @return This builder for chaining.
1960
+ */
1961
+ public Builder setCity(
1962
+ java.lang.String value) {
1963
+ if (value == null) { throw new NullPointerException(); }
1964
+ city_ = value;
1965
+ bitField0_ |= 0x00000008;
1966
+ onChanged();
1967
+ return this;
1968
+ }
1969
+ /**
1970
+ * <code>optional string city = 4;</code>
1971
+ * @return This builder for chaining.
1972
+ */
1973
+ public Builder clearCity() {
1974
+ city_ = getDefaultInstance().getCity();
1975
+ bitField0_ = (bitField0_ & ~0x00000008);
1976
+ onChanged();
1977
+ return this;
1978
+ }
1979
+ /**
1980
+ * <code>optional string city = 4;</code>
1981
+ * @param value The bytes for city to set.
1982
+ * @return This builder for chaining.
1983
+ */
1984
+ public Builder setCityBytes(
1985
+ com.google.protobuf.ByteString value) {
1986
+ if (value == null) { throw new NullPointerException(); }
1987
+ checkByteStringIsUtf8(value);
1988
+ city_ = value;
1989
+ bitField0_ |= 0x00000008;
1990
+ onChanged();
1991
+ return this;
1992
+ }
1993
+
1994
+ private java.lang.Object countryName_ = "";
1995
+ /**
1996
+ * <code>optional string country_name = 5;</code>
1997
+ * @return Whether the countryName field is set.
1998
+ */
1999
+ public boolean hasCountryName() {
2000
+ return ((bitField0_ & 0x00000010) != 0);
2001
+ }
2002
+ /**
2003
+ * <code>optional string country_name = 5;</code>
2004
+ * @return The countryName.
2005
+ */
2006
+ public java.lang.String getCountryName() {
2007
+ java.lang.Object ref = countryName_;
2008
+ if (!(ref instanceof java.lang.String)) {
2009
+ com.google.protobuf.ByteString bs =
2010
+ (com.google.protobuf.ByteString) ref;
2011
+ java.lang.String s = bs.toStringUtf8();
2012
+ countryName_ = s;
2013
+ return s;
2014
+ } else {
2015
+ return (java.lang.String) ref;
2016
+ }
2017
+ }
2018
+ /**
2019
+ * <code>optional string country_name = 5;</code>
2020
+ * @return The bytes for countryName.
2021
+ */
2022
+ public com.google.protobuf.ByteString
2023
+ getCountryNameBytes() {
2024
+ java.lang.Object ref = countryName_;
2025
+ if (ref instanceof String) {
2026
+ com.google.protobuf.ByteString b =
2027
+ com.google.protobuf.ByteString.copyFromUtf8(
2028
+ (java.lang.String) ref);
2029
+ countryName_ = b;
2030
+ return b;
2031
+ } else {
2032
+ return (com.google.protobuf.ByteString) ref;
2033
+ }
2034
+ }
2035
+ /**
2036
+ * <code>optional string country_name = 5;</code>
2037
+ * @param value The countryName to set.
2038
+ * @return This builder for chaining.
2039
+ */
2040
+ public Builder setCountryName(
2041
+ java.lang.String value) {
2042
+ if (value == null) { throw new NullPointerException(); }
2043
+ countryName_ = value;
2044
+ bitField0_ |= 0x00000010;
2045
+ onChanged();
2046
+ return this;
2047
+ }
2048
+ /**
2049
+ * <code>optional string country_name = 5;</code>
2050
+ * @return This builder for chaining.
2051
+ */
2052
+ public Builder clearCountryName() {
2053
+ countryName_ = getDefaultInstance().getCountryName();
2054
+ bitField0_ = (bitField0_ & ~0x00000010);
2055
+ onChanged();
2056
+ return this;
2057
+ }
2058
+ /**
2059
+ * <code>optional string country_name = 5;</code>
2060
+ * @param value The bytes for countryName to set.
2061
+ * @return This builder for chaining.
2062
+ */
2063
+ public Builder setCountryNameBytes(
2064
+ com.google.protobuf.ByteString value) {
2065
+ if (value == null) { throw new NullPointerException(); }
2066
+ checkByteStringIsUtf8(value);
2067
+ countryName_ = value;
2068
+ bitField0_ |= 0x00000010;
2069
+ onChanged();
2070
+ return this;
2071
+ }
2072
+
2073
+ private java.lang.Object postalCode_ = "";
2074
+ /**
2075
+ * <code>optional string postal_code = 6;</code>
2076
+ * @return Whether the postalCode field is set.
2077
+ */
2078
+ public boolean hasPostalCode() {
2079
+ return ((bitField0_ & 0x00000020) != 0);
2080
+ }
2081
+ /**
2082
+ * <code>optional string postal_code = 6;</code>
2083
+ * @return The postalCode.
2084
+ */
2085
+ public java.lang.String getPostalCode() {
2086
+ java.lang.Object ref = postalCode_;
2087
+ if (!(ref instanceof java.lang.String)) {
2088
+ com.google.protobuf.ByteString bs =
2089
+ (com.google.protobuf.ByteString) ref;
2090
+ java.lang.String s = bs.toStringUtf8();
2091
+ postalCode_ = s;
2092
+ return s;
2093
+ } else {
2094
+ return (java.lang.String) ref;
2095
+ }
2096
+ }
2097
+ /**
2098
+ * <code>optional string postal_code = 6;</code>
2099
+ * @return The bytes for postalCode.
2100
+ */
2101
+ public com.google.protobuf.ByteString
2102
+ getPostalCodeBytes() {
2103
+ java.lang.Object ref = postalCode_;
2104
+ if (ref instanceof String) {
2105
+ com.google.protobuf.ByteString b =
2106
+ com.google.protobuf.ByteString.copyFromUtf8(
2107
+ (java.lang.String) ref);
2108
+ postalCode_ = b;
2109
+ return b;
2110
+ } else {
2111
+ return (com.google.protobuf.ByteString) ref;
2112
+ }
2113
+ }
2114
+ /**
2115
+ * <code>optional string postal_code = 6;</code>
2116
+ * @param value The postalCode to set.
2117
+ * @return This builder for chaining.
2118
+ */
2119
+ public Builder setPostalCode(
2120
+ java.lang.String value) {
2121
+ if (value == null) { throw new NullPointerException(); }
2122
+ postalCode_ = value;
2123
+ bitField0_ |= 0x00000020;
2124
+ onChanged();
2125
+ return this;
2126
+ }
2127
+ /**
2128
+ * <code>optional string postal_code = 6;</code>
2129
+ * @return This builder for chaining.
2130
+ */
2131
+ public Builder clearPostalCode() {
2132
+ postalCode_ = getDefaultInstance().getPostalCode();
2133
+ bitField0_ = (bitField0_ & ~0x00000020);
2134
+ onChanged();
2135
+ return this;
2136
+ }
2137
+ /**
2138
+ * <code>optional string postal_code = 6;</code>
2139
+ * @param value The bytes for postalCode to set.
2140
+ * @return This builder for chaining.
2141
+ */
2142
+ public Builder setPostalCodeBytes(
2143
+ com.google.protobuf.ByteString value) {
2144
+ if (value == null) { throw new NullPointerException(); }
2145
+ checkByteStringIsUtf8(value);
2146
+ postalCode_ = value;
2147
+ bitField0_ |= 0x00000020;
2148
+ onChanged();
2149
+ return this;
2150
+ }
2151
+
2152
+ private java.lang.Object state_ = "";
2153
+ /**
2154
+ * <code>optional string state = 7;</code>
2155
+ * @return Whether the state field is set.
2156
+ */
2157
+ public boolean hasState() {
2158
+ return ((bitField0_ & 0x00000040) != 0);
2159
+ }
2160
+ /**
2161
+ * <code>optional string state = 7;</code>
2162
+ * @return The state.
2163
+ */
2164
+ public java.lang.String getState() {
2165
+ java.lang.Object ref = state_;
2166
+ if (!(ref instanceof java.lang.String)) {
2167
+ com.google.protobuf.ByteString bs =
2168
+ (com.google.protobuf.ByteString) ref;
2169
+ java.lang.String s = bs.toStringUtf8();
2170
+ state_ = s;
2171
+ return s;
2172
+ } else {
2173
+ return (java.lang.String) ref;
2174
+ }
2175
+ }
2176
+ /**
2177
+ * <code>optional string state = 7;</code>
2178
+ * @return The bytes for state.
2179
+ */
2180
+ public com.google.protobuf.ByteString
2181
+ getStateBytes() {
2182
+ java.lang.Object ref = state_;
2183
+ if (ref instanceof String) {
2184
+ com.google.protobuf.ByteString b =
2185
+ com.google.protobuf.ByteString.copyFromUtf8(
2186
+ (java.lang.String) ref);
2187
+ state_ = b;
2188
+ return b;
2189
+ } else {
2190
+ return (com.google.protobuf.ByteString) ref;
2191
+ }
2192
+ }
2193
+ /**
2194
+ * <code>optional string state = 7;</code>
2195
+ * @param value The state to set.
2196
+ * @return This builder for chaining.
2197
+ */
2198
+ public Builder setState(
2199
+ java.lang.String value) {
2200
+ if (value == null) { throw new NullPointerException(); }
2201
+ state_ = value;
2202
+ bitField0_ |= 0x00000040;
2203
+ onChanged();
2204
+ return this;
2205
+ }
2206
+ /**
2207
+ * <code>optional string state = 7;</code>
2208
+ * @return This builder for chaining.
2209
+ */
2210
+ public Builder clearState() {
2211
+ state_ = getDefaultInstance().getState();
2212
+ bitField0_ = (bitField0_ & ~0x00000040);
2213
+ onChanged();
2214
+ return this;
2215
+ }
2216
+ /**
2217
+ * <code>optional string state = 7;</code>
2218
+ * @param value The bytes for state to set.
2219
+ * @return This builder for chaining.
2220
+ */
2221
+ public Builder setStateBytes(
2222
+ com.google.protobuf.ByteString value) {
2223
+ if (value == null) { throw new NullPointerException(); }
2224
+ checkByteStringIsUtf8(value);
2225
+ state_ = value;
2226
+ bitField0_ |= 0x00000040;
2227
+ onChanged();
2228
+ return this;
2229
+ }
2230
+
2231
+ private java.lang.Object street_ = "";
2232
+ /**
2233
+ * <code>optional string street = 8;</code>
2234
+ * @return Whether the street field is set.
2235
+ */
2236
+ public boolean hasStreet() {
2237
+ return ((bitField0_ & 0x00000080) != 0);
2238
+ }
2239
+ /**
2240
+ * <code>optional string street = 8;</code>
2241
+ * @return The street.
2242
+ */
2243
+ public java.lang.String getStreet() {
2244
+ java.lang.Object ref = street_;
2245
+ if (!(ref instanceof java.lang.String)) {
2246
+ com.google.protobuf.ByteString bs =
2247
+ (com.google.protobuf.ByteString) ref;
2248
+ java.lang.String s = bs.toStringUtf8();
2249
+ street_ = s;
2250
+ return s;
2251
+ } else {
2252
+ return (java.lang.String) ref;
2253
+ }
2254
+ }
2255
+ /**
2256
+ * <code>optional string street = 8;</code>
2257
+ * @return The bytes for street.
2258
+ */
2259
+ public com.google.protobuf.ByteString
2260
+ getStreetBytes() {
2261
+ java.lang.Object ref = street_;
2262
+ if (ref instanceof String) {
2263
+ com.google.protobuf.ByteString b =
2264
+ com.google.protobuf.ByteString.copyFromUtf8(
2265
+ (java.lang.String) ref);
2266
+ street_ = b;
2267
+ return b;
2268
+ } else {
2269
+ return (com.google.protobuf.ByteString) ref;
2270
+ }
2271
+ }
2272
+ /**
2273
+ * <code>optional string street = 8;</code>
2274
+ * @param value The street to set.
2275
+ * @return This builder for chaining.
2276
+ */
2277
+ public Builder setStreet(
2278
+ java.lang.String value) {
2279
+ if (value == null) { throw new NullPointerException(); }
2280
+ street_ = value;
2281
+ bitField0_ |= 0x00000080;
2282
+ onChanged();
2283
+ return this;
2284
+ }
2285
+ /**
2286
+ * <code>optional string street = 8;</code>
2287
+ * @return This builder for chaining.
2288
+ */
2289
+ public Builder clearStreet() {
2290
+ street_ = getDefaultInstance().getStreet();
2291
+ bitField0_ = (bitField0_ & ~0x00000080);
2292
+ onChanged();
2293
+ return this;
2294
+ }
2295
+ /**
2296
+ * <code>optional string street = 8;</code>
2297
+ * @param value The bytes for street to set.
2298
+ * @return This builder for chaining.
2299
+ */
2300
+ public Builder setStreetBytes(
2301
+ com.google.protobuf.ByteString value) {
2302
+ if (value == null) { throw new NullPointerException(); }
2303
+ checkByteStringIsUtf8(value);
2304
+ street_ = value;
2305
+ bitField0_ |= 0x00000080;
2306
+ onChanged();
2307
+ return this;
2308
+ }
2309
+
2310
+ private java.lang.Object telephoneNumber_ = "";
2311
+ /**
2312
+ * <code>optional string telephone_number = 9;</code>
2313
+ * @return Whether the telephoneNumber field is set.
2314
+ */
2315
+ public boolean hasTelephoneNumber() {
2316
+ return ((bitField0_ & 0x00000100) != 0);
2317
+ }
2318
+ /**
2319
+ * <code>optional string telephone_number = 9;</code>
2320
+ * @return The telephoneNumber.
2321
+ */
2322
+ public java.lang.String getTelephoneNumber() {
2323
+ java.lang.Object ref = telephoneNumber_;
2324
+ if (!(ref instanceof java.lang.String)) {
2325
+ com.google.protobuf.ByteString bs =
2326
+ (com.google.protobuf.ByteString) ref;
2327
+ java.lang.String s = bs.toStringUtf8();
2328
+ telephoneNumber_ = s;
2329
+ return s;
2330
+ } else {
2331
+ return (java.lang.String) ref;
2332
+ }
2333
+ }
2334
+ /**
2335
+ * <code>optional string telephone_number = 9;</code>
2336
+ * @return The bytes for telephoneNumber.
2337
+ */
2338
+ public com.google.protobuf.ByteString
2339
+ getTelephoneNumberBytes() {
2340
+ java.lang.Object ref = telephoneNumber_;
2341
+ if (ref instanceof String) {
2342
+ com.google.protobuf.ByteString b =
2343
+ com.google.protobuf.ByteString.copyFromUtf8(
2344
+ (java.lang.String) ref);
2345
+ telephoneNumber_ = b;
2346
+ return b;
2347
+ } else {
2348
+ return (com.google.protobuf.ByteString) ref;
2349
+ }
2350
+ }
2351
+ /**
2352
+ * <code>optional string telephone_number = 9;</code>
2353
+ * @param value The telephoneNumber to set.
2354
+ * @return This builder for chaining.
2355
+ */
2356
+ public Builder setTelephoneNumber(
2357
+ java.lang.String value) {
2358
+ if (value == null) { throw new NullPointerException(); }
2359
+ telephoneNumber_ = value;
2360
+ bitField0_ |= 0x00000100;
2361
+ onChanged();
2362
+ return this;
2363
+ }
2364
+ /**
2365
+ * <code>optional string telephone_number = 9;</code>
2366
+ * @return This builder for chaining.
2367
+ */
2368
+ public Builder clearTelephoneNumber() {
2369
+ telephoneNumber_ = getDefaultInstance().getTelephoneNumber();
2370
+ bitField0_ = (bitField0_ & ~0x00000100);
2371
+ onChanged();
2372
+ return this;
2373
+ }
2374
+ /**
2375
+ * <code>optional string telephone_number = 9;</code>
2376
+ * @param value The bytes for telephoneNumber to set.
2377
+ * @return This builder for chaining.
2378
+ */
2379
+ public Builder setTelephoneNumberBytes(
2380
+ com.google.protobuf.ByteString value) {
2381
+ if (value == null) { throw new NullPointerException(); }
2382
+ checkByteStringIsUtf8(value);
2383
+ telephoneNumber_ = value;
2384
+ bitField0_ |= 0x00000100;
2385
+ onChanged();
2386
+ return this;
2387
+ }
2388
+
2389
+ private com.google.protobuf.Timestamp companyLastDirSyncTime_;
2390
+ private com.google.protobuf.SingleFieldBuilderV3<
2391
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> companyLastDirSyncTimeBuilder_;
2392
+ /**
2393
+ * <code>optional .google.protobuf.Timestamp company_last_dir_sync_time = 10;</code>
2394
+ * @return Whether the companyLastDirSyncTime field is set.
2395
+ */
2396
+ public boolean hasCompanyLastDirSyncTime() {
2397
+ return ((bitField0_ & 0x00000200) != 0);
2398
+ }
2399
+ /**
2400
+ * <code>optional .google.protobuf.Timestamp company_last_dir_sync_time = 10;</code>
2401
+ * @return The companyLastDirSyncTime.
2402
+ */
2403
+ public com.google.protobuf.Timestamp getCompanyLastDirSyncTime() {
2404
+ if (companyLastDirSyncTimeBuilder_ == null) {
2405
+ return companyLastDirSyncTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : companyLastDirSyncTime_;
2406
+ } else {
2407
+ return companyLastDirSyncTimeBuilder_.getMessage();
2408
+ }
2409
+ }
2410
+ /**
2411
+ * <code>optional .google.protobuf.Timestamp company_last_dir_sync_time = 10;</code>
2412
+ */
2413
+ public Builder setCompanyLastDirSyncTime(com.google.protobuf.Timestamp value) {
2414
+ if (companyLastDirSyncTimeBuilder_ == null) {
2415
+ if (value == null) {
2416
+ throw new NullPointerException();
2417
+ }
2418
+ companyLastDirSyncTime_ = value;
2419
+ } else {
2420
+ companyLastDirSyncTimeBuilder_.setMessage(value);
2421
+ }
2422
+ bitField0_ |= 0x00000200;
2423
+ onChanged();
2424
+ return this;
2425
+ }
2426
+ /**
2427
+ * <code>optional .google.protobuf.Timestamp company_last_dir_sync_time = 10;</code>
2428
+ */
2429
+ public Builder setCompanyLastDirSyncTime(
2430
+ com.google.protobuf.Timestamp.Builder builderForValue) {
2431
+ if (companyLastDirSyncTimeBuilder_ == null) {
2432
+ companyLastDirSyncTime_ = builderForValue.build();
2433
+ } else {
2434
+ companyLastDirSyncTimeBuilder_.setMessage(builderForValue.build());
2435
+ }
2436
+ bitField0_ |= 0x00000200;
2437
+ onChanged();
2438
+ return this;
2439
+ }
2440
+ /**
2441
+ * <code>optional .google.protobuf.Timestamp company_last_dir_sync_time = 10;</code>
2442
+ */
2443
+ public Builder mergeCompanyLastDirSyncTime(com.google.protobuf.Timestamp value) {
2444
+ if (companyLastDirSyncTimeBuilder_ == null) {
2445
+ if (((bitField0_ & 0x00000200) != 0) &&
2446
+ companyLastDirSyncTime_ != null &&
2447
+ companyLastDirSyncTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
2448
+ getCompanyLastDirSyncTimeBuilder().mergeFrom(value);
2449
+ } else {
2450
+ companyLastDirSyncTime_ = value;
2451
+ }
2452
+ } else {
2453
+ companyLastDirSyncTimeBuilder_.mergeFrom(value);
2454
+ }
2455
+ if (companyLastDirSyncTime_ != null) {
2456
+ bitField0_ |= 0x00000200;
2457
+ onChanged();
2458
+ }
2459
+ return this;
2460
+ }
2461
+ /**
2462
+ * <code>optional .google.protobuf.Timestamp company_last_dir_sync_time = 10;</code>
2463
+ */
2464
+ public Builder clearCompanyLastDirSyncTime() {
2465
+ bitField0_ = (bitField0_ & ~0x00000200);
2466
+ companyLastDirSyncTime_ = null;
2467
+ if (companyLastDirSyncTimeBuilder_ != null) {
2468
+ companyLastDirSyncTimeBuilder_.dispose();
2469
+ companyLastDirSyncTimeBuilder_ = null;
2470
+ }
2471
+ onChanged();
2472
+ return this;
2473
+ }
2474
+ /**
2475
+ * <code>optional .google.protobuf.Timestamp company_last_dir_sync_time = 10;</code>
2476
+ */
2477
+ public com.google.protobuf.Timestamp.Builder getCompanyLastDirSyncTimeBuilder() {
2478
+ bitField0_ |= 0x00000200;
2479
+ onChanged();
2480
+ return getCompanyLastDirSyncTimeFieldBuilder().getBuilder();
2481
+ }
2482
+ /**
2483
+ * <code>optional .google.protobuf.Timestamp company_last_dir_sync_time = 10;</code>
2484
+ */
2485
+ public com.google.protobuf.TimestampOrBuilder getCompanyLastDirSyncTimeOrBuilder() {
2486
+ if (companyLastDirSyncTimeBuilder_ != null) {
2487
+ return companyLastDirSyncTimeBuilder_.getMessageOrBuilder();
2488
+ } else {
2489
+ return companyLastDirSyncTime_ == null ?
2490
+ com.google.protobuf.Timestamp.getDefaultInstance() : companyLastDirSyncTime_;
2491
+ }
2492
+ }
2493
+ /**
2494
+ * <code>optional .google.protobuf.Timestamp company_last_dir_sync_time = 10;</code>
2495
+ */
2496
+ private com.google.protobuf.SingleFieldBuilderV3<
2497
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
2498
+ getCompanyLastDirSyncTimeFieldBuilder() {
2499
+ if (companyLastDirSyncTimeBuilder_ == null) {
2500
+ companyLastDirSyncTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
2501
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
2502
+ getCompanyLastDirSyncTime(),
2503
+ getParentForChildren(),
2504
+ isClean());
2505
+ companyLastDirSyncTime_ = null;
2506
+ }
2507
+ return companyLastDirSyncTimeBuilder_;
2508
+ }
2509
+
2510
+ private boolean dirSyncEnabled_ ;
2511
+ /**
2512
+ * <code>optional bool dir_sync_enabled = 11;</code>
2513
+ * @return Whether the dirSyncEnabled field is set.
2514
+ */
2515
+ @java.lang.Override
2516
+ public boolean hasDirSyncEnabled() {
2517
+ return ((bitField0_ & 0x00000400) != 0);
2518
+ }
2519
+ /**
2520
+ * <code>optional bool dir_sync_enabled = 11;</code>
2521
+ * @return The dirSyncEnabled.
2522
+ */
2523
+ @java.lang.Override
2524
+ public boolean getDirSyncEnabled() {
2525
+ return dirSyncEnabled_;
2526
+ }
2527
+ /**
2528
+ * <code>optional bool dir_sync_enabled = 11;</code>
2529
+ * @param value The dirSyncEnabled to set.
2530
+ * @return This builder for chaining.
2531
+ */
2532
+ public Builder setDirSyncEnabled(boolean value) {
2533
+
2534
+ dirSyncEnabled_ = value;
2535
+ bitField0_ |= 0x00000400;
2536
+ onChanged();
2537
+ return this;
2538
+ }
2539
+ /**
2540
+ * <code>optional bool dir_sync_enabled = 11;</code>
2541
+ * @return This builder for chaining.
2542
+ */
2543
+ public Builder clearDirSyncEnabled() {
2544
+ bitField0_ = (bitField0_ & ~0x00000400);
2545
+ dirSyncEnabled_ = false;
2546
+ onChanged();
2547
+ return this;
2548
+ }
2549
+
2550
+ private java.util.List<com.lansweeper.dp.outbound.v1.Office365Domain> domains_ =
2551
+ java.util.Collections.emptyList();
2552
+ private void ensureDomainsIsMutable() {
2553
+ if (!((bitField0_ & 0x00000800) != 0)) {
2554
+ domains_ = new java.util.ArrayList<com.lansweeper.dp.outbound.v1.Office365Domain>(domains_);
2555
+ bitField0_ |= 0x00000800;
2556
+ }
2557
+ }
2558
+
2559
+ private com.google.protobuf.RepeatedFieldBuilderV3<
2560
+ com.lansweeper.dp.outbound.v1.Office365Domain, com.lansweeper.dp.outbound.v1.Office365Domain.Builder, com.lansweeper.dp.outbound.v1.Office365DomainOrBuilder> domainsBuilder_;
2561
+
2562
+ /**
2563
+ * <pre>
2564
+ * Users and groups are standalone entities, so they are not included here
2565
+ * </pre>
2566
+ *
2567
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Domain domains = 12;</code>
2568
+ */
2569
+ public java.util.List<com.lansweeper.dp.outbound.v1.Office365Domain> getDomainsList() {
2570
+ if (domainsBuilder_ == null) {
2571
+ return java.util.Collections.unmodifiableList(domains_);
2572
+ } else {
2573
+ return domainsBuilder_.getMessageList();
2574
+ }
2575
+ }
2576
+ /**
2577
+ * <pre>
2578
+ * Users and groups are standalone entities, so they are not included here
2579
+ * </pre>
2580
+ *
2581
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Domain domains = 12;</code>
2582
+ */
2583
+ public int getDomainsCount() {
2584
+ if (domainsBuilder_ == null) {
2585
+ return domains_.size();
2586
+ } else {
2587
+ return domainsBuilder_.getCount();
2588
+ }
2589
+ }
2590
+ /**
2591
+ * <pre>
2592
+ * Users and groups are standalone entities, so they are not included here
2593
+ * </pre>
2594
+ *
2595
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Domain domains = 12;</code>
2596
+ */
2597
+ public com.lansweeper.dp.outbound.v1.Office365Domain getDomains(int index) {
2598
+ if (domainsBuilder_ == null) {
2599
+ return domains_.get(index);
2600
+ } else {
2601
+ return domainsBuilder_.getMessage(index);
2602
+ }
2603
+ }
2604
+ /**
2605
+ * <pre>
2606
+ * Users and groups are standalone entities, so they are not included here
2607
+ * </pre>
2608
+ *
2609
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Domain domains = 12;</code>
2610
+ */
2611
+ public Builder setDomains(
2612
+ int index, com.lansweeper.dp.outbound.v1.Office365Domain value) {
2613
+ if (domainsBuilder_ == null) {
2614
+ if (value == null) {
2615
+ throw new NullPointerException();
2616
+ }
2617
+ ensureDomainsIsMutable();
2618
+ domains_.set(index, value);
2619
+ onChanged();
2620
+ } else {
2621
+ domainsBuilder_.setMessage(index, value);
2622
+ }
2623
+ return this;
2624
+ }
2625
+ /**
2626
+ * <pre>
2627
+ * Users and groups are standalone entities, so they are not included here
2628
+ * </pre>
2629
+ *
2630
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Domain domains = 12;</code>
2631
+ */
2632
+ public Builder setDomains(
2633
+ int index, com.lansweeper.dp.outbound.v1.Office365Domain.Builder builderForValue) {
2634
+ if (domainsBuilder_ == null) {
2635
+ ensureDomainsIsMutable();
2636
+ domains_.set(index, builderForValue.build());
2637
+ onChanged();
2638
+ } else {
2639
+ domainsBuilder_.setMessage(index, builderForValue.build());
2640
+ }
2641
+ return this;
2642
+ }
2643
+ /**
2644
+ * <pre>
2645
+ * Users and groups are standalone entities, so they are not included here
2646
+ * </pre>
2647
+ *
2648
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Domain domains = 12;</code>
2649
+ */
2650
+ public Builder addDomains(com.lansweeper.dp.outbound.v1.Office365Domain value) {
2651
+ if (domainsBuilder_ == null) {
2652
+ if (value == null) {
2653
+ throw new NullPointerException();
2654
+ }
2655
+ ensureDomainsIsMutable();
2656
+ domains_.add(value);
2657
+ onChanged();
2658
+ } else {
2659
+ domainsBuilder_.addMessage(value);
2660
+ }
2661
+ return this;
2662
+ }
2663
+ /**
2664
+ * <pre>
2665
+ * Users and groups are standalone entities, so they are not included here
2666
+ * </pre>
2667
+ *
2668
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Domain domains = 12;</code>
2669
+ */
2670
+ public Builder addDomains(
2671
+ int index, com.lansweeper.dp.outbound.v1.Office365Domain value) {
2672
+ if (domainsBuilder_ == null) {
2673
+ if (value == null) {
2674
+ throw new NullPointerException();
2675
+ }
2676
+ ensureDomainsIsMutable();
2677
+ domains_.add(index, value);
2678
+ onChanged();
2679
+ } else {
2680
+ domainsBuilder_.addMessage(index, value);
2681
+ }
2682
+ return this;
2683
+ }
2684
+ /**
2685
+ * <pre>
2686
+ * Users and groups are standalone entities, so they are not included here
2687
+ * </pre>
2688
+ *
2689
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Domain domains = 12;</code>
2690
+ */
2691
+ public Builder addDomains(
2692
+ com.lansweeper.dp.outbound.v1.Office365Domain.Builder builderForValue) {
2693
+ if (domainsBuilder_ == null) {
2694
+ ensureDomainsIsMutable();
2695
+ domains_.add(builderForValue.build());
2696
+ onChanged();
2697
+ } else {
2698
+ domainsBuilder_.addMessage(builderForValue.build());
2699
+ }
2700
+ return this;
2701
+ }
2702
+ /**
2703
+ * <pre>
2704
+ * Users and groups are standalone entities, so they are not included here
2705
+ * </pre>
2706
+ *
2707
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Domain domains = 12;</code>
2708
+ */
2709
+ public Builder addDomains(
2710
+ int index, com.lansweeper.dp.outbound.v1.Office365Domain.Builder builderForValue) {
2711
+ if (domainsBuilder_ == null) {
2712
+ ensureDomainsIsMutable();
2713
+ domains_.add(index, builderForValue.build());
2714
+ onChanged();
2715
+ } else {
2716
+ domainsBuilder_.addMessage(index, builderForValue.build());
2717
+ }
2718
+ return this;
2719
+ }
2720
+ /**
2721
+ * <pre>
2722
+ * Users and groups are standalone entities, so they are not included here
2723
+ * </pre>
2724
+ *
2725
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Domain domains = 12;</code>
2726
+ */
2727
+ public Builder addAllDomains(
2728
+ java.lang.Iterable<? extends com.lansweeper.dp.outbound.v1.Office365Domain> values) {
2729
+ if (domainsBuilder_ == null) {
2730
+ ensureDomainsIsMutable();
2731
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
2732
+ values, domains_);
2733
+ onChanged();
2734
+ } else {
2735
+ domainsBuilder_.addAllMessages(values);
2736
+ }
2737
+ return this;
2738
+ }
2739
+ /**
2740
+ * <pre>
2741
+ * Users and groups are standalone entities, so they are not included here
2742
+ * </pre>
2743
+ *
2744
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Domain domains = 12;</code>
2745
+ */
2746
+ public Builder clearDomains() {
2747
+ if (domainsBuilder_ == null) {
2748
+ domains_ = java.util.Collections.emptyList();
2749
+ bitField0_ = (bitField0_ & ~0x00000800);
2750
+ onChanged();
2751
+ } else {
2752
+ domainsBuilder_.clear();
2753
+ }
2754
+ return this;
2755
+ }
2756
+ /**
2757
+ * <pre>
2758
+ * Users and groups are standalone entities, so they are not included here
2759
+ * </pre>
2760
+ *
2761
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Domain domains = 12;</code>
2762
+ */
2763
+ public Builder removeDomains(int index) {
2764
+ if (domainsBuilder_ == null) {
2765
+ ensureDomainsIsMutable();
2766
+ domains_.remove(index);
2767
+ onChanged();
2768
+ } else {
2769
+ domainsBuilder_.remove(index);
2770
+ }
2771
+ return this;
2772
+ }
2773
+ /**
2774
+ * <pre>
2775
+ * Users and groups are standalone entities, so they are not included here
2776
+ * </pre>
2777
+ *
2778
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Domain domains = 12;</code>
2779
+ */
2780
+ public com.lansweeper.dp.outbound.v1.Office365Domain.Builder getDomainsBuilder(
2781
+ int index) {
2782
+ return getDomainsFieldBuilder().getBuilder(index);
2783
+ }
2784
+ /**
2785
+ * <pre>
2786
+ * Users and groups are standalone entities, so they are not included here
2787
+ * </pre>
2788
+ *
2789
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Domain domains = 12;</code>
2790
+ */
2791
+ public com.lansweeper.dp.outbound.v1.Office365DomainOrBuilder getDomainsOrBuilder(
2792
+ int index) {
2793
+ if (domainsBuilder_ == null) {
2794
+ return domains_.get(index); } else {
2795
+ return domainsBuilder_.getMessageOrBuilder(index);
2796
+ }
2797
+ }
2798
+ /**
2799
+ * <pre>
2800
+ * Users and groups are standalone entities, so they are not included here
2801
+ * </pre>
2802
+ *
2803
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Domain domains = 12;</code>
2804
+ */
2805
+ public java.util.List<? extends com.lansweeper.dp.outbound.v1.Office365DomainOrBuilder>
2806
+ getDomainsOrBuilderList() {
2807
+ if (domainsBuilder_ != null) {
2808
+ return domainsBuilder_.getMessageOrBuilderList();
2809
+ } else {
2810
+ return java.util.Collections.unmodifiableList(domains_);
2811
+ }
2812
+ }
2813
+ /**
2814
+ * <pre>
2815
+ * Users and groups are standalone entities, so they are not included here
2816
+ * </pre>
2817
+ *
2818
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Domain domains = 12;</code>
2819
+ */
2820
+ public com.lansweeper.dp.outbound.v1.Office365Domain.Builder addDomainsBuilder() {
2821
+ return getDomainsFieldBuilder().addBuilder(
2822
+ com.lansweeper.dp.outbound.v1.Office365Domain.getDefaultInstance());
2823
+ }
2824
+ /**
2825
+ * <pre>
2826
+ * Users and groups are standalone entities, so they are not included here
2827
+ * </pre>
2828
+ *
2829
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Domain domains = 12;</code>
2830
+ */
2831
+ public com.lansweeper.dp.outbound.v1.Office365Domain.Builder addDomainsBuilder(
2832
+ int index) {
2833
+ return getDomainsFieldBuilder().addBuilder(
2834
+ index, com.lansweeper.dp.outbound.v1.Office365Domain.getDefaultInstance());
2835
+ }
2836
+ /**
2837
+ * <pre>
2838
+ * Users and groups are standalone entities, so they are not included here
2839
+ * </pre>
2840
+ *
2841
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Domain domains = 12;</code>
2842
+ */
2843
+ public java.util.List<com.lansweeper.dp.outbound.v1.Office365Domain.Builder>
2844
+ getDomainsBuilderList() {
2845
+ return getDomainsFieldBuilder().getBuilderList();
2846
+ }
2847
+ private com.google.protobuf.RepeatedFieldBuilderV3<
2848
+ com.lansweeper.dp.outbound.v1.Office365Domain, com.lansweeper.dp.outbound.v1.Office365Domain.Builder, com.lansweeper.dp.outbound.v1.Office365DomainOrBuilder>
2849
+ getDomainsFieldBuilder() {
2850
+ if (domainsBuilder_ == null) {
2851
+ domainsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
2852
+ com.lansweeper.dp.outbound.v1.Office365Domain, com.lansweeper.dp.outbound.v1.Office365Domain.Builder, com.lansweeper.dp.outbound.v1.Office365DomainOrBuilder>(
2853
+ domains_,
2854
+ ((bitField0_ & 0x00000800) != 0),
2855
+ getParentForChildren(),
2856
+ isClean());
2857
+ domains_ = null;
2858
+ }
2859
+ return domainsBuilder_;
2860
+ }
2861
+
2862
+ private java.util.List<com.lansweeper.dp.outbound.v1.Office365License> licenses_ =
2863
+ java.util.Collections.emptyList();
2864
+ private void ensureLicensesIsMutable() {
2865
+ if (!((bitField0_ & 0x00001000) != 0)) {
2866
+ licenses_ = new java.util.ArrayList<com.lansweeper.dp.outbound.v1.Office365License>(licenses_);
2867
+ bitField0_ |= 0x00001000;
2868
+ }
2869
+ }
2870
+
2871
+ private com.google.protobuf.RepeatedFieldBuilderV3<
2872
+ com.lansweeper.dp.outbound.v1.Office365License, com.lansweeper.dp.outbound.v1.Office365License.Builder, com.lansweeper.dp.outbound.v1.Office365LicenseOrBuilder> licensesBuilder_;
2873
+
2874
+ /**
2875
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365License licenses = 15;</code>
2876
+ */
2877
+ public java.util.List<com.lansweeper.dp.outbound.v1.Office365License> getLicensesList() {
2878
+ if (licensesBuilder_ == null) {
2879
+ return java.util.Collections.unmodifiableList(licenses_);
2880
+ } else {
2881
+ return licensesBuilder_.getMessageList();
2882
+ }
2883
+ }
2884
+ /**
2885
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365License licenses = 15;</code>
2886
+ */
2887
+ public int getLicensesCount() {
2888
+ if (licensesBuilder_ == null) {
2889
+ return licenses_.size();
2890
+ } else {
2891
+ return licensesBuilder_.getCount();
2892
+ }
2893
+ }
2894
+ /**
2895
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365License licenses = 15;</code>
2896
+ */
2897
+ public com.lansweeper.dp.outbound.v1.Office365License getLicenses(int index) {
2898
+ if (licensesBuilder_ == null) {
2899
+ return licenses_.get(index);
2900
+ } else {
2901
+ return licensesBuilder_.getMessage(index);
2902
+ }
2903
+ }
2904
+ /**
2905
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365License licenses = 15;</code>
2906
+ */
2907
+ public Builder setLicenses(
2908
+ int index, com.lansweeper.dp.outbound.v1.Office365License value) {
2909
+ if (licensesBuilder_ == null) {
2910
+ if (value == null) {
2911
+ throw new NullPointerException();
2912
+ }
2913
+ ensureLicensesIsMutable();
2914
+ licenses_.set(index, value);
2915
+ onChanged();
2916
+ } else {
2917
+ licensesBuilder_.setMessage(index, value);
2918
+ }
2919
+ return this;
2920
+ }
2921
+ /**
2922
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365License licenses = 15;</code>
2923
+ */
2924
+ public Builder setLicenses(
2925
+ int index, com.lansweeper.dp.outbound.v1.Office365License.Builder builderForValue) {
2926
+ if (licensesBuilder_ == null) {
2927
+ ensureLicensesIsMutable();
2928
+ licenses_.set(index, builderForValue.build());
2929
+ onChanged();
2930
+ } else {
2931
+ licensesBuilder_.setMessage(index, builderForValue.build());
2932
+ }
2933
+ return this;
2934
+ }
2935
+ /**
2936
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365License licenses = 15;</code>
2937
+ */
2938
+ public Builder addLicenses(com.lansweeper.dp.outbound.v1.Office365License value) {
2939
+ if (licensesBuilder_ == null) {
2940
+ if (value == null) {
2941
+ throw new NullPointerException();
2942
+ }
2943
+ ensureLicensesIsMutable();
2944
+ licenses_.add(value);
2945
+ onChanged();
2946
+ } else {
2947
+ licensesBuilder_.addMessage(value);
2948
+ }
2949
+ return this;
2950
+ }
2951
+ /**
2952
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365License licenses = 15;</code>
2953
+ */
2954
+ public Builder addLicenses(
2955
+ int index, com.lansweeper.dp.outbound.v1.Office365License value) {
2956
+ if (licensesBuilder_ == null) {
2957
+ if (value == null) {
2958
+ throw new NullPointerException();
2959
+ }
2960
+ ensureLicensesIsMutable();
2961
+ licenses_.add(index, value);
2962
+ onChanged();
2963
+ } else {
2964
+ licensesBuilder_.addMessage(index, value);
2965
+ }
2966
+ return this;
2967
+ }
2968
+ /**
2969
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365License licenses = 15;</code>
2970
+ */
2971
+ public Builder addLicenses(
2972
+ com.lansweeper.dp.outbound.v1.Office365License.Builder builderForValue) {
2973
+ if (licensesBuilder_ == null) {
2974
+ ensureLicensesIsMutable();
2975
+ licenses_.add(builderForValue.build());
2976
+ onChanged();
2977
+ } else {
2978
+ licensesBuilder_.addMessage(builderForValue.build());
2979
+ }
2980
+ return this;
2981
+ }
2982
+ /**
2983
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365License licenses = 15;</code>
2984
+ */
2985
+ public Builder addLicenses(
2986
+ int index, com.lansweeper.dp.outbound.v1.Office365License.Builder builderForValue) {
2987
+ if (licensesBuilder_ == null) {
2988
+ ensureLicensesIsMutable();
2989
+ licenses_.add(index, builderForValue.build());
2990
+ onChanged();
2991
+ } else {
2992
+ licensesBuilder_.addMessage(index, builderForValue.build());
2993
+ }
2994
+ return this;
2995
+ }
2996
+ /**
2997
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365License licenses = 15;</code>
2998
+ */
2999
+ public Builder addAllLicenses(
3000
+ java.lang.Iterable<? extends com.lansweeper.dp.outbound.v1.Office365License> values) {
3001
+ if (licensesBuilder_ == null) {
3002
+ ensureLicensesIsMutable();
3003
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
3004
+ values, licenses_);
3005
+ onChanged();
3006
+ } else {
3007
+ licensesBuilder_.addAllMessages(values);
3008
+ }
3009
+ return this;
3010
+ }
3011
+ /**
3012
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365License licenses = 15;</code>
3013
+ */
3014
+ public Builder clearLicenses() {
3015
+ if (licensesBuilder_ == null) {
3016
+ licenses_ = java.util.Collections.emptyList();
3017
+ bitField0_ = (bitField0_ & ~0x00001000);
3018
+ onChanged();
3019
+ } else {
3020
+ licensesBuilder_.clear();
3021
+ }
3022
+ return this;
3023
+ }
3024
+ /**
3025
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365License licenses = 15;</code>
3026
+ */
3027
+ public Builder removeLicenses(int index) {
3028
+ if (licensesBuilder_ == null) {
3029
+ ensureLicensesIsMutable();
3030
+ licenses_.remove(index);
3031
+ onChanged();
3032
+ } else {
3033
+ licensesBuilder_.remove(index);
3034
+ }
3035
+ return this;
3036
+ }
3037
+ /**
3038
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365License licenses = 15;</code>
3039
+ */
3040
+ public com.lansweeper.dp.outbound.v1.Office365License.Builder getLicensesBuilder(
3041
+ int index) {
3042
+ return getLicensesFieldBuilder().getBuilder(index);
3043
+ }
3044
+ /**
3045
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365License licenses = 15;</code>
3046
+ */
3047
+ public com.lansweeper.dp.outbound.v1.Office365LicenseOrBuilder getLicensesOrBuilder(
3048
+ int index) {
3049
+ if (licensesBuilder_ == null) {
3050
+ return licenses_.get(index); } else {
3051
+ return licensesBuilder_.getMessageOrBuilder(index);
3052
+ }
3053
+ }
3054
+ /**
3055
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365License licenses = 15;</code>
3056
+ */
3057
+ public java.util.List<? extends com.lansweeper.dp.outbound.v1.Office365LicenseOrBuilder>
3058
+ getLicensesOrBuilderList() {
3059
+ if (licensesBuilder_ != null) {
3060
+ return licensesBuilder_.getMessageOrBuilderList();
3061
+ } else {
3062
+ return java.util.Collections.unmodifiableList(licenses_);
3063
+ }
3064
+ }
3065
+ /**
3066
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365License licenses = 15;</code>
3067
+ */
3068
+ public com.lansweeper.dp.outbound.v1.Office365License.Builder addLicensesBuilder() {
3069
+ return getLicensesFieldBuilder().addBuilder(
3070
+ com.lansweeper.dp.outbound.v1.Office365License.getDefaultInstance());
3071
+ }
3072
+ /**
3073
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365License licenses = 15;</code>
3074
+ */
3075
+ public com.lansweeper.dp.outbound.v1.Office365License.Builder addLicensesBuilder(
3076
+ int index) {
3077
+ return getLicensesFieldBuilder().addBuilder(
3078
+ index, com.lansweeper.dp.outbound.v1.Office365License.getDefaultInstance());
3079
+ }
3080
+ /**
3081
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365License licenses = 15;</code>
3082
+ */
3083
+ public java.util.List<com.lansweeper.dp.outbound.v1.Office365License.Builder>
3084
+ getLicensesBuilderList() {
3085
+ return getLicensesFieldBuilder().getBuilderList();
3086
+ }
3087
+ private com.google.protobuf.RepeatedFieldBuilderV3<
3088
+ com.lansweeper.dp.outbound.v1.Office365License, com.lansweeper.dp.outbound.v1.Office365License.Builder, com.lansweeper.dp.outbound.v1.Office365LicenseOrBuilder>
3089
+ getLicensesFieldBuilder() {
3090
+ if (licensesBuilder_ == null) {
3091
+ licensesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
3092
+ com.lansweeper.dp.outbound.v1.Office365License, com.lansweeper.dp.outbound.v1.Office365License.Builder, com.lansweeper.dp.outbound.v1.Office365LicenseOrBuilder>(
3093
+ licenses_,
3094
+ ((bitField0_ & 0x00001000) != 0),
3095
+ getParentForChildren(),
3096
+ isClean());
3097
+ licenses_ = null;
3098
+ }
3099
+ return licensesBuilder_;
3100
+ }
3101
+
3102
+ private static final class AssignedPlansConverter implements com.google.protobuf.MapFieldBuilder.Converter<java.lang.String, com.lansweeper.dp.outbound.v1.Office365AssignedPlanOrBuilder, com.lansweeper.dp.outbound.v1.Office365AssignedPlan> {
3103
+ @java.lang.Override
3104
+ public com.lansweeper.dp.outbound.v1.Office365AssignedPlan build(com.lansweeper.dp.outbound.v1.Office365AssignedPlanOrBuilder val) {
3105
+ if (val instanceof com.lansweeper.dp.outbound.v1.Office365AssignedPlan) { return (com.lansweeper.dp.outbound.v1.Office365AssignedPlan) val; }
3106
+ return ((com.lansweeper.dp.outbound.v1.Office365AssignedPlan.Builder) val).build();
3107
+ }
3108
+
3109
+ @java.lang.Override
3110
+ public com.google.protobuf.MapEntry<java.lang.String, com.lansweeper.dp.outbound.v1.Office365AssignedPlan> defaultEntry() {
3111
+ return AssignedPlansDefaultEntryHolder.defaultEntry;
3112
+ }
3113
+ };
3114
+ private static final AssignedPlansConverter assignedPlansConverter = new AssignedPlansConverter();
3115
+
3116
+ private com.google.protobuf.MapFieldBuilder<
3117
+ java.lang.String, com.lansweeper.dp.outbound.v1.Office365AssignedPlanOrBuilder, com.lansweeper.dp.outbound.v1.Office365AssignedPlan, com.lansweeper.dp.outbound.v1.Office365AssignedPlan.Builder> assignedPlans_;
3118
+ private com.google.protobuf.MapFieldBuilder<java.lang.String, com.lansweeper.dp.outbound.v1.Office365AssignedPlanOrBuilder, com.lansweeper.dp.outbound.v1.Office365AssignedPlan, com.lansweeper.dp.outbound.v1.Office365AssignedPlan.Builder>
3119
+ internalGetAssignedPlans() {
3120
+ if (assignedPlans_ == null) {
3121
+ return new com.google.protobuf.MapFieldBuilder<>(assignedPlansConverter);
3122
+ }
3123
+ return assignedPlans_;
3124
+ }
3125
+ private com.google.protobuf.MapFieldBuilder<java.lang.String, com.lansweeper.dp.outbound.v1.Office365AssignedPlanOrBuilder, com.lansweeper.dp.outbound.v1.Office365AssignedPlan, com.lansweeper.dp.outbound.v1.Office365AssignedPlan.Builder>
3126
+ internalGetMutableAssignedPlans() {
3127
+ if (assignedPlans_ == null) {
3128
+ assignedPlans_ = new com.google.protobuf.MapFieldBuilder<>(assignedPlansConverter);
3129
+ }
3130
+ bitField0_ |= 0x00002000;
3131
+ onChanged();
3132
+ return assignedPlans_;
3133
+ }
3134
+ public int getAssignedPlansCount() {
3135
+ return internalGetAssignedPlans().ensureBuilderMap().size();
3136
+ }
3137
+ /**
3138
+ * <pre>
3139
+ * The key is the service plan id
3140
+ * </pre>
3141
+ *
3142
+ * <code>map&lt;string, .com.lansweeper.dp.outbound.v1.Office365AssignedPlan&gt; assigned_plans = 16;</code>
3143
+ */
3144
+ @java.lang.Override
3145
+ public boolean containsAssignedPlans(
3146
+ java.lang.String key) {
3147
+ if (key == null) { throw new NullPointerException("map key"); }
3148
+ return internalGetAssignedPlans().ensureBuilderMap().containsKey(key);
3149
+ }
3150
+ /**
3151
+ * Use {@link #getAssignedPlansMap()} instead.
3152
+ */
3153
+ @java.lang.Override
3154
+ @java.lang.Deprecated
3155
+ public java.util.Map<java.lang.String, com.lansweeper.dp.outbound.v1.Office365AssignedPlan> getAssignedPlans() {
3156
+ return getAssignedPlansMap();
3157
+ }
3158
+ /**
3159
+ * <pre>
3160
+ * The key is the service plan id
3161
+ * </pre>
3162
+ *
3163
+ * <code>map&lt;string, .com.lansweeper.dp.outbound.v1.Office365AssignedPlan&gt; assigned_plans = 16;</code>
3164
+ */
3165
+ @java.lang.Override
3166
+ public java.util.Map<java.lang.String, com.lansweeper.dp.outbound.v1.Office365AssignedPlan> getAssignedPlansMap() {
3167
+ return internalGetAssignedPlans().getImmutableMap();
3168
+ }
3169
+ /**
3170
+ * <pre>
3171
+ * The key is the service plan id
3172
+ * </pre>
3173
+ *
3174
+ * <code>map&lt;string, .com.lansweeper.dp.outbound.v1.Office365AssignedPlan&gt; assigned_plans = 16;</code>
3175
+ */
3176
+ @java.lang.Override
3177
+ public /* nullable */
3178
+ com.lansweeper.dp.outbound.v1.Office365AssignedPlan getAssignedPlansOrDefault(
3179
+ java.lang.String key,
3180
+ /* nullable */
3181
+ com.lansweeper.dp.outbound.v1.Office365AssignedPlan defaultValue) {
3182
+ if (key == null) { throw new NullPointerException("map key"); }
3183
+ java.util.Map<java.lang.String, com.lansweeper.dp.outbound.v1.Office365AssignedPlanOrBuilder> map = internalGetMutableAssignedPlans().ensureBuilderMap();
3184
+ return map.containsKey(key) ? assignedPlansConverter.build(map.get(key)) : defaultValue;
3185
+ }
3186
+ /**
3187
+ * <pre>
3188
+ * The key is the service plan id
3189
+ * </pre>
3190
+ *
3191
+ * <code>map&lt;string, .com.lansweeper.dp.outbound.v1.Office365AssignedPlan&gt; assigned_plans = 16;</code>
3192
+ */
3193
+ @java.lang.Override
3194
+ public com.lansweeper.dp.outbound.v1.Office365AssignedPlan getAssignedPlansOrThrow(
3195
+ java.lang.String key) {
3196
+ if (key == null) { throw new NullPointerException("map key"); }
3197
+ java.util.Map<java.lang.String, com.lansweeper.dp.outbound.v1.Office365AssignedPlanOrBuilder> map = internalGetMutableAssignedPlans().ensureBuilderMap();
3198
+ if (!map.containsKey(key)) {
3199
+ throw new java.lang.IllegalArgumentException();
3200
+ }
3201
+ return assignedPlansConverter.build(map.get(key));
3202
+ }
3203
+ public Builder clearAssignedPlans() {
3204
+ bitField0_ = (bitField0_ & ~0x00002000);
3205
+ internalGetMutableAssignedPlans().clear();
3206
+ return this;
3207
+ }
3208
+ /**
3209
+ * <pre>
3210
+ * The key is the service plan id
3211
+ * </pre>
3212
+ *
3213
+ * <code>map&lt;string, .com.lansweeper.dp.outbound.v1.Office365AssignedPlan&gt; assigned_plans = 16;</code>
3214
+ */
3215
+ public Builder removeAssignedPlans(
3216
+ java.lang.String key) {
3217
+ if (key == null) { throw new NullPointerException("map key"); }
3218
+ internalGetMutableAssignedPlans().ensureBuilderMap()
3219
+ .remove(key);
3220
+ return this;
3221
+ }
3222
+ /**
3223
+ * Use alternate mutation accessors instead.
3224
+ */
3225
+ @java.lang.Deprecated
3226
+ public java.util.Map<java.lang.String, com.lansweeper.dp.outbound.v1.Office365AssignedPlan>
3227
+ getMutableAssignedPlans() {
3228
+ bitField0_ |= 0x00002000;
3229
+ return internalGetMutableAssignedPlans().ensureMessageMap();
3230
+ }
3231
+ /**
3232
+ * <pre>
3233
+ * The key is the service plan id
3234
+ * </pre>
3235
+ *
3236
+ * <code>map&lt;string, .com.lansweeper.dp.outbound.v1.Office365AssignedPlan&gt; assigned_plans = 16;</code>
3237
+ */
3238
+ public Builder putAssignedPlans(
3239
+ java.lang.String key,
3240
+ com.lansweeper.dp.outbound.v1.Office365AssignedPlan value) {
3241
+ if (key == null) { throw new NullPointerException("map key"); }
3242
+ if (value == null) { throw new NullPointerException("map value"); }
3243
+ internalGetMutableAssignedPlans().ensureBuilderMap()
3244
+ .put(key, value);
3245
+ bitField0_ |= 0x00002000;
3246
+ return this;
3247
+ }
3248
+ /**
3249
+ * <pre>
3250
+ * The key is the service plan id
3251
+ * </pre>
3252
+ *
3253
+ * <code>map&lt;string, .com.lansweeper.dp.outbound.v1.Office365AssignedPlan&gt; assigned_plans = 16;</code>
3254
+ */
3255
+ public Builder putAllAssignedPlans(
3256
+ java.util.Map<java.lang.String, com.lansweeper.dp.outbound.v1.Office365AssignedPlan> values) {
3257
+ for (java.util.Map.Entry<java.lang.String, com.lansweeper.dp.outbound.v1.Office365AssignedPlan> e : values.entrySet()) {
3258
+ if (e.getKey() == null || e.getValue() == null) {
3259
+ throw new NullPointerException();
3260
+ }
3261
+ }
3262
+ internalGetMutableAssignedPlans().ensureBuilderMap()
3263
+ .putAll(values);
3264
+ bitField0_ |= 0x00002000;
3265
+ return this;
3266
+ }
3267
+ /**
3268
+ * <pre>
3269
+ * The key is the service plan id
3270
+ * </pre>
3271
+ *
3272
+ * <code>map&lt;string, .com.lansweeper.dp.outbound.v1.Office365AssignedPlan&gt; assigned_plans = 16;</code>
3273
+ */
3274
+ public com.lansweeper.dp.outbound.v1.Office365AssignedPlan.Builder putAssignedPlansBuilderIfAbsent(
3275
+ java.lang.String key) {
3276
+ java.util.Map<java.lang.String, com.lansweeper.dp.outbound.v1.Office365AssignedPlanOrBuilder> builderMap = internalGetMutableAssignedPlans().ensureBuilderMap();
3277
+ com.lansweeper.dp.outbound.v1.Office365AssignedPlanOrBuilder entry = builderMap.get(key);
3278
+ if (entry == null) {
3279
+ entry = com.lansweeper.dp.outbound.v1.Office365AssignedPlan.newBuilder();
3280
+ builderMap.put(key, entry);
3281
+ }
3282
+ if (entry instanceof com.lansweeper.dp.outbound.v1.Office365AssignedPlan) {
3283
+ entry = ((com.lansweeper.dp.outbound.v1.Office365AssignedPlan) entry).toBuilder();
3284
+ builderMap.put(key, entry);
3285
+ }
3286
+ return (com.lansweeper.dp.outbound.v1.Office365AssignedPlan.Builder) entry;
3287
+ }
3288
+
3289
+ private java.util.List<com.lansweeper.dp.outbound.v1.Office365Contact> contacts_ =
3290
+ java.util.Collections.emptyList();
3291
+ private void ensureContactsIsMutable() {
3292
+ if (!((bitField0_ & 0x00004000) != 0)) {
3293
+ contacts_ = new java.util.ArrayList<com.lansweeper.dp.outbound.v1.Office365Contact>(contacts_);
3294
+ bitField0_ |= 0x00004000;
3295
+ }
3296
+ }
3297
+
3298
+ private com.google.protobuf.RepeatedFieldBuilderV3<
3299
+ com.lansweeper.dp.outbound.v1.Office365Contact, com.lansweeper.dp.outbound.v1.Office365Contact.Builder, com.lansweeper.dp.outbound.v1.Office365ContactOrBuilder> contactsBuilder_;
3300
+
3301
+ /**
3302
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Contact contacts = 17;</code>
3303
+ */
3304
+ public java.util.List<com.lansweeper.dp.outbound.v1.Office365Contact> getContactsList() {
3305
+ if (contactsBuilder_ == null) {
3306
+ return java.util.Collections.unmodifiableList(contacts_);
3307
+ } else {
3308
+ return contactsBuilder_.getMessageList();
3309
+ }
3310
+ }
3311
+ /**
3312
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Contact contacts = 17;</code>
3313
+ */
3314
+ public int getContactsCount() {
3315
+ if (contactsBuilder_ == null) {
3316
+ return contacts_.size();
3317
+ } else {
3318
+ return contactsBuilder_.getCount();
3319
+ }
3320
+ }
3321
+ /**
3322
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Contact contacts = 17;</code>
3323
+ */
3324
+ public com.lansweeper.dp.outbound.v1.Office365Contact getContacts(int index) {
3325
+ if (contactsBuilder_ == null) {
3326
+ return contacts_.get(index);
3327
+ } else {
3328
+ return contactsBuilder_.getMessage(index);
3329
+ }
3330
+ }
3331
+ /**
3332
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Contact contacts = 17;</code>
3333
+ */
3334
+ public Builder setContacts(
3335
+ int index, com.lansweeper.dp.outbound.v1.Office365Contact value) {
3336
+ if (contactsBuilder_ == null) {
3337
+ if (value == null) {
3338
+ throw new NullPointerException();
3339
+ }
3340
+ ensureContactsIsMutable();
3341
+ contacts_.set(index, value);
3342
+ onChanged();
3343
+ } else {
3344
+ contactsBuilder_.setMessage(index, value);
3345
+ }
3346
+ return this;
3347
+ }
3348
+ /**
3349
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Contact contacts = 17;</code>
3350
+ */
3351
+ public Builder setContacts(
3352
+ int index, com.lansweeper.dp.outbound.v1.Office365Contact.Builder builderForValue) {
3353
+ if (contactsBuilder_ == null) {
3354
+ ensureContactsIsMutable();
3355
+ contacts_.set(index, builderForValue.build());
3356
+ onChanged();
3357
+ } else {
3358
+ contactsBuilder_.setMessage(index, builderForValue.build());
3359
+ }
3360
+ return this;
3361
+ }
3362
+ /**
3363
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Contact contacts = 17;</code>
3364
+ */
3365
+ public Builder addContacts(com.lansweeper.dp.outbound.v1.Office365Contact value) {
3366
+ if (contactsBuilder_ == null) {
3367
+ if (value == null) {
3368
+ throw new NullPointerException();
3369
+ }
3370
+ ensureContactsIsMutable();
3371
+ contacts_.add(value);
3372
+ onChanged();
3373
+ } else {
3374
+ contactsBuilder_.addMessage(value);
3375
+ }
3376
+ return this;
3377
+ }
3378
+ /**
3379
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Contact contacts = 17;</code>
3380
+ */
3381
+ public Builder addContacts(
3382
+ int index, com.lansweeper.dp.outbound.v1.Office365Contact value) {
3383
+ if (contactsBuilder_ == null) {
3384
+ if (value == null) {
3385
+ throw new NullPointerException();
3386
+ }
3387
+ ensureContactsIsMutable();
3388
+ contacts_.add(index, value);
3389
+ onChanged();
3390
+ } else {
3391
+ contactsBuilder_.addMessage(index, value);
3392
+ }
3393
+ return this;
3394
+ }
3395
+ /**
3396
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Contact contacts = 17;</code>
3397
+ */
3398
+ public Builder addContacts(
3399
+ com.lansweeper.dp.outbound.v1.Office365Contact.Builder builderForValue) {
3400
+ if (contactsBuilder_ == null) {
3401
+ ensureContactsIsMutable();
3402
+ contacts_.add(builderForValue.build());
3403
+ onChanged();
3404
+ } else {
3405
+ contactsBuilder_.addMessage(builderForValue.build());
3406
+ }
3407
+ return this;
3408
+ }
3409
+ /**
3410
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Contact contacts = 17;</code>
3411
+ */
3412
+ public Builder addContacts(
3413
+ int index, com.lansweeper.dp.outbound.v1.Office365Contact.Builder builderForValue) {
3414
+ if (contactsBuilder_ == null) {
3415
+ ensureContactsIsMutable();
3416
+ contacts_.add(index, builderForValue.build());
3417
+ onChanged();
3418
+ } else {
3419
+ contactsBuilder_.addMessage(index, builderForValue.build());
3420
+ }
3421
+ return this;
3422
+ }
3423
+ /**
3424
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Contact contacts = 17;</code>
3425
+ */
3426
+ public Builder addAllContacts(
3427
+ java.lang.Iterable<? extends com.lansweeper.dp.outbound.v1.Office365Contact> values) {
3428
+ if (contactsBuilder_ == null) {
3429
+ ensureContactsIsMutable();
3430
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
3431
+ values, contacts_);
3432
+ onChanged();
3433
+ } else {
3434
+ contactsBuilder_.addAllMessages(values);
3435
+ }
3436
+ return this;
3437
+ }
3438
+ /**
3439
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Contact contacts = 17;</code>
3440
+ */
3441
+ public Builder clearContacts() {
3442
+ if (contactsBuilder_ == null) {
3443
+ contacts_ = java.util.Collections.emptyList();
3444
+ bitField0_ = (bitField0_ & ~0x00004000);
3445
+ onChanged();
3446
+ } else {
3447
+ contactsBuilder_.clear();
3448
+ }
3449
+ return this;
3450
+ }
3451
+ /**
3452
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Contact contacts = 17;</code>
3453
+ */
3454
+ public Builder removeContacts(int index) {
3455
+ if (contactsBuilder_ == null) {
3456
+ ensureContactsIsMutable();
3457
+ contacts_.remove(index);
3458
+ onChanged();
3459
+ } else {
3460
+ contactsBuilder_.remove(index);
3461
+ }
3462
+ return this;
3463
+ }
3464
+ /**
3465
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Contact contacts = 17;</code>
3466
+ */
3467
+ public com.lansweeper.dp.outbound.v1.Office365Contact.Builder getContactsBuilder(
3468
+ int index) {
3469
+ return getContactsFieldBuilder().getBuilder(index);
3470
+ }
3471
+ /**
3472
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Contact contacts = 17;</code>
3473
+ */
3474
+ public com.lansweeper.dp.outbound.v1.Office365ContactOrBuilder getContactsOrBuilder(
3475
+ int index) {
3476
+ if (contactsBuilder_ == null) {
3477
+ return contacts_.get(index); } else {
3478
+ return contactsBuilder_.getMessageOrBuilder(index);
3479
+ }
3480
+ }
3481
+ /**
3482
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Contact contacts = 17;</code>
3483
+ */
3484
+ public java.util.List<? extends com.lansweeper.dp.outbound.v1.Office365ContactOrBuilder>
3485
+ getContactsOrBuilderList() {
3486
+ if (contactsBuilder_ != null) {
3487
+ return contactsBuilder_.getMessageOrBuilderList();
3488
+ } else {
3489
+ return java.util.Collections.unmodifiableList(contacts_);
3490
+ }
3491
+ }
3492
+ /**
3493
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Contact contacts = 17;</code>
3494
+ */
3495
+ public com.lansweeper.dp.outbound.v1.Office365Contact.Builder addContactsBuilder() {
3496
+ return getContactsFieldBuilder().addBuilder(
3497
+ com.lansweeper.dp.outbound.v1.Office365Contact.getDefaultInstance());
3498
+ }
3499
+ /**
3500
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Contact contacts = 17;</code>
3501
+ */
3502
+ public com.lansweeper.dp.outbound.v1.Office365Contact.Builder addContactsBuilder(
3503
+ int index) {
3504
+ return getContactsFieldBuilder().addBuilder(
3505
+ index, com.lansweeper.dp.outbound.v1.Office365Contact.getDefaultInstance());
3506
+ }
3507
+ /**
3508
+ * <code>repeated .com.lansweeper.dp.outbound.v1.Office365Contact contacts = 17;</code>
3509
+ */
3510
+ public java.util.List<com.lansweeper.dp.outbound.v1.Office365Contact.Builder>
3511
+ getContactsBuilderList() {
3512
+ return getContactsFieldBuilder().getBuilderList();
3513
+ }
3514
+ private com.google.protobuf.RepeatedFieldBuilderV3<
3515
+ com.lansweeper.dp.outbound.v1.Office365Contact, com.lansweeper.dp.outbound.v1.Office365Contact.Builder, com.lansweeper.dp.outbound.v1.Office365ContactOrBuilder>
3516
+ getContactsFieldBuilder() {
3517
+ if (contactsBuilder_ == null) {
3518
+ contactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
3519
+ com.lansweeper.dp.outbound.v1.Office365Contact, com.lansweeper.dp.outbound.v1.Office365Contact.Builder, com.lansweeper.dp.outbound.v1.Office365ContactOrBuilder>(
3520
+ contacts_,
3521
+ ((bitField0_ & 0x00004000) != 0),
3522
+ getParentForChildren(),
3523
+ isClean());
3524
+ contacts_ = null;
3525
+ }
3526
+ return contactsBuilder_;
3527
+ }
3528
+ @java.lang.Override
3529
+ public final Builder setUnknownFields(
3530
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
3531
+ return super.setUnknownFields(unknownFields);
3532
+ }
3533
+
3534
+ @java.lang.Override
3535
+ public final Builder mergeUnknownFields(
3536
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
3537
+ return super.mergeUnknownFields(unknownFields);
3538
+ }
3539
+
3540
+
3541
+ // @@protoc_insertion_point(builder_scope:com.lansweeper.dp.outbound.v1.Office365Organization)
3542
+ }
3543
+
3544
+ // @@protoc_insertion_point(class_scope:com.lansweeper.dp.outbound.v1.Office365Organization)
3545
+ private static final com.lansweeper.dp.outbound.v1.Office365Organization DEFAULT_INSTANCE;
3546
+ static {
3547
+ DEFAULT_INSTANCE = new com.lansweeper.dp.outbound.v1.Office365Organization();
3548
+ }
3549
+
3550
+ public static com.lansweeper.dp.outbound.v1.Office365Organization getDefaultInstance() {
3551
+ return DEFAULT_INSTANCE;
3552
+ }
3553
+
3554
+ private static final com.google.protobuf.Parser<Office365Organization>
3555
+ PARSER = new com.google.protobuf.AbstractParser<Office365Organization>() {
3556
+ @java.lang.Override
3557
+ public Office365Organization parsePartialFrom(
3558
+ com.google.protobuf.CodedInputStream input,
3559
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3560
+ throws com.google.protobuf.InvalidProtocolBufferException {
3561
+ Builder builder = newBuilder();
3562
+ try {
3563
+ builder.mergeFrom(input, extensionRegistry);
3564
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3565
+ throw e.setUnfinishedMessage(builder.buildPartial());
3566
+ } catch (com.google.protobuf.UninitializedMessageException e) {
3567
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
3568
+ } catch (java.io.IOException e) {
3569
+ throw new com.google.protobuf.InvalidProtocolBufferException(e)
3570
+ .setUnfinishedMessage(builder.buildPartial());
3571
+ }
3572
+ return builder.buildPartial();
3573
+ }
3574
+ };
3575
+
3576
+ public static com.google.protobuf.Parser<Office365Organization> parser() {
3577
+ return PARSER;
3578
+ }
3579
+
3580
+ @java.lang.Override
3581
+ public com.google.protobuf.Parser<Office365Organization> getParserForType() {
3582
+ return PARSER;
3583
+ }
3584
+
3585
+ @java.lang.Override
3586
+ public com.lansweeper.dp.outbound.v1.Office365Organization getDefaultInstanceForType() {
3587
+ return DEFAULT_INSTANCE;
3588
+ }
3589
+
3590
+ }
3591
+