001// Generated by the protocol buffer compiler. DO NOT EDIT! 002// NO CHECKED-IN PROTOBUF GENCODE 003// source: java/dev/enola/core/enola_core.proto 004// Protobuf Java Version: 4.32.0 005 006package dev.enola.core.proto; 007 008/** 009 * Protobuf type {@code dev.enola.core.GetThingsRequest} 010 */ 011@com.google.protobuf.Generated 012public final class GetThingsRequest extends 013 com.google.protobuf.GeneratedMessage implements 014 // @@protoc_insertion_point(message_implements:dev.enola.core.GetThingsRequest) 015 GetThingsRequestOrBuilder { 016private static final long serialVersionUID = 0L; 017 static { 018 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( 019 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, 020 /* major= */ 4, 021 /* minor= */ 32, 022 /* patch= */ 0, 023 /* suffix= */ "", 024 GetThingsRequest.class.getName()); 025 } 026 // Use GetThingsRequest.newBuilder() to construct. 027 private GetThingsRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) { 028 super(builder); 029 } 030 private GetThingsRequest() { 031 iri_ = ""; 032 } 033 034 public static final com.google.protobuf.Descriptors.Descriptor 035 getDescriptor() { 036 return dev.enola.core.proto.EnolaCore.internal_static_dev_enola_core_GetThingsRequest_descriptor; 037 } 038 039 @java.lang.Override 040 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 041 internalGetFieldAccessorTable() { 042 return dev.enola.core.proto.EnolaCore.internal_static_dev_enola_core_GetThingsRequest_fieldAccessorTable 043 .ensureFieldAccessorsInitialized( 044 dev.enola.core.proto.GetThingsRequest.class, dev.enola.core.proto.GetThingsRequest.Builder.class); 045 } 046 047 public static final int IRI_FIELD_NUMBER = 1; 048 @SuppressWarnings("serial") 049 private volatile java.lang.Object iri_ = ""; 050 /** 051 * <pre> 052 * IRI of a Thing to get, or query for Things; e.g. 053 * https://enola.dev/query/all?inline=true&limit=7, or sparql: or sql: 054 * something else like that. 055 * </pre> 056 * 057 * <code>string iri = 1;</code> 058 * @return The iri. 059 */ 060 @java.lang.Override 061 public java.lang.String getIri() { 062 java.lang.Object ref = iri_; 063 if (ref instanceof java.lang.String) { 064 return (java.lang.String) ref; 065 } else { 066 com.google.protobuf.ByteString bs = 067 (com.google.protobuf.ByteString) ref; 068 java.lang.String s = bs.toStringUtf8(); 069 iri_ = s; 070 return s; 071 } 072 } 073 /** 074 * <pre> 075 * IRI of a Thing to get, or query for Things; e.g. 076 * https://enola.dev/query/all?inline=true&limit=7, or sparql: or sql: 077 * something else like that. 078 * </pre> 079 * 080 * <code>string iri = 1;</code> 081 * @return The bytes for iri. 082 */ 083 @java.lang.Override 084 public com.google.protobuf.ByteString 085 getIriBytes() { 086 java.lang.Object ref = iri_; 087 if (ref instanceof java.lang.String) { 088 com.google.protobuf.ByteString b = 089 com.google.protobuf.ByteString.copyFromUtf8( 090 (java.lang.String) ref); 091 iri_ = b; 092 return b; 093 } else { 094 return (com.google.protobuf.ByteString) ref; 095 } 096 } 097 098 private byte memoizedIsInitialized = -1; 099 @java.lang.Override 100 public final boolean isInitialized() { 101 byte isInitialized = memoizedIsInitialized; 102 if (isInitialized == 1) return true; 103 if (isInitialized == 0) return false; 104 105 memoizedIsInitialized = 1; 106 return true; 107 } 108 109 @java.lang.Override 110 public void writeTo(com.google.protobuf.CodedOutputStream output) 111 throws java.io.IOException { 112 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(iri_)) { 113 com.google.protobuf.GeneratedMessage.writeString(output, 1, iri_); 114 } 115 getUnknownFields().writeTo(output); 116 } 117 118 @java.lang.Override 119 public int getSerializedSize() { 120 int size = memoizedSize; 121 if (size != -1) return size; 122 123 size = 0; 124 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(iri_)) { 125 size += com.google.protobuf.GeneratedMessage.computeStringSize(1, iri_); 126 } 127 size += getUnknownFields().getSerializedSize(); 128 memoizedSize = size; 129 return size; 130 } 131 132 @java.lang.Override 133 public boolean equals(final java.lang.Object obj) { 134 if (obj == this) { 135 return true; 136 } 137 if (!(obj instanceof dev.enola.core.proto.GetThingsRequest)) { 138 return super.equals(obj); 139 } 140 dev.enola.core.proto.GetThingsRequest other = (dev.enola.core.proto.GetThingsRequest) obj; 141 142 if (!getIri() 143 .equals(other.getIri())) return false; 144 if (!getUnknownFields().equals(other.getUnknownFields())) return false; 145 return true; 146 } 147 148 @java.lang.Override 149 public int hashCode() { 150 if (memoizedHashCode != 0) { 151 return memoizedHashCode; 152 } 153 int hash = 41; 154 hash = (19 * hash) + getDescriptor().hashCode(); 155 hash = (37 * hash) + IRI_FIELD_NUMBER; 156 hash = (53 * hash) + getIri().hashCode(); 157 hash = (29 * hash) + getUnknownFields().hashCode(); 158 memoizedHashCode = hash; 159 return hash; 160 } 161 162 public static dev.enola.core.proto.GetThingsRequest parseFrom( 163 java.nio.ByteBuffer data) 164 throws com.google.protobuf.InvalidProtocolBufferException { 165 return PARSER.parseFrom(data); 166 } 167 public static dev.enola.core.proto.GetThingsRequest parseFrom( 168 java.nio.ByteBuffer data, 169 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 170 throws com.google.protobuf.InvalidProtocolBufferException { 171 return PARSER.parseFrom(data, extensionRegistry); 172 } 173 public static dev.enola.core.proto.GetThingsRequest parseFrom( 174 com.google.protobuf.ByteString data) 175 throws com.google.protobuf.InvalidProtocolBufferException { 176 return PARSER.parseFrom(data); 177 } 178 public static dev.enola.core.proto.GetThingsRequest parseFrom( 179 com.google.protobuf.ByteString data, 180 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 181 throws com.google.protobuf.InvalidProtocolBufferException { 182 return PARSER.parseFrom(data, extensionRegistry); 183 } 184 public static dev.enola.core.proto.GetThingsRequest parseFrom(byte[] data) 185 throws com.google.protobuf.InvalidProtocolBufferException { 186 return PARSER.parseFrom(data); 187 } 188 public static dev.enola.core.proto.GetThingsRequest parseFrom( 189 byte[] data, 190 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 191 throws com.google.protobuf.InvalidProtocolBufferException { 192 return PARSER.parseFrom(data, extensionRegistry); 193 } 194 public static dev.enola.core.proto.GetThingsRequest parseFrom(java.io.InputStream input) 195 throws java.io.IOException { 196 return com.google.protobuf.GeneratedMessage 197 .parseWithIOException(PARSER, input); 198 } 199 public static dev.enola.core.proto.GetThingsRequest parseFrom( 200 java.io.InputStream input, 201 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 202 throws java.io.IOException { 203 return com.google.protobuf.GeneratedMessage 204 .parseWithIOException(PARSER, input, extensionRegistry); 205 } 206 207 public static dev.enola.core.proto.GetThingsRequest parseDelimitedFrom(java.io.InputStream input) 208 throws java.io.IOException { 209 return com.google.protobuf.GeneratedMessage 210 .parseDelimitedWithIOException(PARSER, input); 211 } 212 213 public static dev.enola.core.proto.GetThingsRequest parseDelimitedFrom( 214 java.io.InputStream input, 215 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 216 throws java.io.IOException { 217 return com.google.protobuf.GeneratedMessage 218 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); 219 } 220 public static dev.enola.core.proto.GetThingsRequest parseFrom( 221 com.google.protobuf.CodedInputStream input) 222 throws java.io.IOException { 223 return com.google.protobuf.GeneratedMessage 224 .parseWithIOException(PARSER, input); 225 } 226 public static dev.enola.core.proto.GetThingsRequest parseFrom( 227 com.google.protobuf.CodedInputStream input, 228 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 229 throws java.io.IOException { 230 return com.google.protobuf.GeneratedMessage 231 .parseWithIOException(PARSER, input, extensionRegistry); 232 } 233 234 @java.lang.Override 235 public Builder newBuilderForType() { return newBuilder(); } 236 public static Builder newBuilder() { 237 return DEFAULT_INSTANCE.toBuilder(); 238 } 239 public static Builder newBuilder(dev.enola.core.proto.GetThingsRequest prototype) { 240 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); 241 } 242 @java.lang.Override 243 public Builder toBuilder() { 244 return this == DEFAULT_INSTANCE 245 ? new Builder() : new Builder().mergeFrom(this); 246 } 247 248 @java.lang.Override 249 protected Builder newBuilderForType( 250 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 251 Builder builder = new Builder(parent); 252 return builder; 253 } 254 /** 255 * Protobuf type {@code dev.enola.core.GetThingsRequest} 256 */ 257 public static final class Builder extends 258 com.google.protobuf.GeneratedMessage.Builder<Builder> implements 259 // @@protoc_insertion_point(builder_implements:dev.enola.core.GetThingsRequest) 260 dev.enola.core.proto.GetThingsRequestOrBuilder { 261 public static final com.google.protobuf.Descriptors.Descriptor 262 getDescriptor() { 263 return dev.enola.core.proto.EnolaCore.internal_static_dev_enola_core_GetThingsRequest_descriptor; 264 } 265 266 @java.lang.Override 267 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable 268 internalGetFieldAccessorTable() { 269 return dev.enola.core.proto.EnolaCore.internal_static_dev_enola_core_GetThingsRequest_fieldAccessorTable 270 .ensureFieldAccessorsInitialized( 271 dev.enola.core.proto.GetThingsRequest.class, dev.enola.core.proto.GetThingsRequest.Builder.class); 272 } 273 274 // Construct using dev.enola.core.proto.GetThingsRequest.newBuilder() 275 private Builder() { 276 277 } 278 279 private Builder( 280 com.google.protobuf.GeneratedMessage.BuilderParent parent) { 281 super(parent); 282 283 } 284 @java.lang.Override 285 public Builder clear() { 286 super.clear(); 287 bitField0_ = 0; 288 iri_ = ""; 289 return this; 290 } 291 292 @java.lang.Override 293 public com.google.protobuf.Descriptors.Descriptor 294 getDescriptorForType() { 295 return dev.enola.core.proto.EnolaCore.internal_static_dev_enola_core_GetThingsRequest_descriptor; 296 } 297 298 @java.lang.Override 299 public dev.enola.core.proto.GetThingsRequest getDefaultInstanceForType() { 300 return dev.enola.core.proto.GetThingsRequest.getDefaultInstance(); 301 } 302 303 @java.lang.Override 304 public dev.enola.core.proto.GetThingsRequest build() { 305 dev.enola.core.proto.GetThingsRequest result = buildPartial(); 306 if (!result.isInitialized()) { 307 throw newUninitializedMessageException(result); 308 } 309 return result; 310 } 311 312 @java.lang.Override 313 public dev.enola.core.proto.GetThingsRequest buildPartial() { 314 dev.enola.core.proto.GetThingsRequest result = new dev.enola.core.proto.GetThingsRequest(this); 315 if (bitField0_ != 0) { buildPartial0(result); } 316 onBuilt(); 317 return result; 318 } 319 320 private void buildPartial0(dev.enola.core.proto.GetThingsRequest result) { 321 int from_bitField0_ = bitField0_; 322 if (((from_bitField0_ & 0x00000001) != 0)) { 323 result.iri_ = iri_; 324 } 325 } 326 327 @java.lang.Override 328 public Builder mergeFrom(com.google.protobuf.Message other) { 329 if (other instanceof dev.enola.core.proto.GetThingsRequest) { 330 return mergeFrom((dev.enola.core.proto.GetThingsRequest)other); 331 } else { 332 super.mergeFrom(other); 333 return this; 334 } 335 } 336 337 public Builder mergeFrom(dev.enola.core.proto.GetThingsRequest other) { 338 if (other == dev.enola.core.proto.GetThingsRequest.getDefaultInstance()) return this; 339 if (!other.getIri().isEmpty()) { 340 iri_ = other.iri_; 341 bitField0_ |= 0x00000001; 342 onChanged(); 343 } 344 this.mergeUnknownFields(other.getUnknownFields()); 345 onChanged(); 346 return this; 347 } 348 349 @java.lang.Override 350 public final boolean isInitialized() { 351 return true; 352 } 353 354 @java.lang.Override 355 public Builder mergeFrom( 356 com.google.protobuf.CodedInputStream input, 357 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 358 throws java.io.IOException { 359 if (extensionRegistry == null) { 360 throw new java.lang.NullPointerException(); 361 } 362 try { 363 boolean done = false; 364 while (!done) { 365 int tag = input.readTag(); 366 switch (tag) { 367 case 0: 368 done = true; 369 break; 370 case 10: { 371 iri_ = input.readStringRequireUtf8(); 372 bitField0_ |= 0x00000001; 373 break; 374 } // case 10 375 default: { 376 if (!super.parseUnknownField(input, extensionRegistry, tag)) { 377 done = true; // was an endgroup tag 378 } 379 break; 380 } // default: 381 } // switch (tag) 382 } // while (!done) 383 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 384 throw e.unwrapIOException(); 385 } finally { 386 onChanged(); 387 } // finally 388 return this; 389 } 390 private int bitField0_; 391 392 private java.lang.Object iri_ = ""; 393 /** 394 * <pre> 395 * IRI of a Thing to get, or query for Things; e.g. 396 * https://enola.dev/query/all?inline=true&limit=7, or sparql: or sql: 397 * something else like that. 398 * </pre> 399 * 400 * <code>string iri = 1;</code> 401 * @return The iri. 402 */ 403 public java.lang.String getIri() { 404 java.lang.Object ref = iri_; 405 if (!(ref instanceof java.lang.String)) { 406 com.google.protobuf.ByteString bs = 407 (com.google.protobuf.ByteString) ref; 408 java.lang.String s = bs.toStringUtf8(); 409 iri_ = s; 410 return s; 411 } else { 412 return (java.lang.String) ref; 413 } 414 } 415 /** 416 * <pre> 417 * IRI of a Thing to get, or query for Things; e.g. 418 * https://enola.dev/query/all?inline=true&limit=7, or sparql: or sql: 419 * something else like that. 420 * </pre> 421 * 422 * <code>string iri = 1;</code> 423 * @return The bytes for iri. 424 */ 425 public com.google.protobuf.ByteString 426 getIriBytes() { 427 java.lang.Object ref = iri_; 428 if (ref instanceof String) { 429 com.google.protobuf.ByteString b = 430 com.google.protobuf.ByteString.copyFromUtf8( 431 (java.lang.String) ref); 432 iri_ = b; 433 return b; 434 } else { 435 return (com.google.protobuf.ByteString) ref; 436 } 437 } 438 /** 439 * <pre> 440 * IRI of a Thing to get, or query for Things; e.g. 441 * https://enola.dev/query/all?inline=true&limit=7, or sparql: or sql: 442 * something else like that. 443 * </pre> 444 * 445 * <code>string iri = 1;</code> 446 * @param value The iri to set. 447 * @return This builder for chaining. 448 */ 449 public Builder setIri( 450 java.lang.String value) { 451 if (value == null) { throw new NullPointerException(); } 452 iri_ = value; 453 bitField0_ |= 0x00000001; 454 onChanged(); 455 return this; 456 } 457 /** 458 * <pre> 459 * IRI of a Thing to get, or query for Things; e.g. 460 * https://enola.dev/query/all?inline=true&limit=7, or sparql: or sql: 461 * something else like that. 462 * </pre> 463 * 464 * <code>string iri = 1;</code> 465 * @return This builder for chaining. 466 */ 467 public Builder clearIri() { 468 iri_ = getDefaultInstance().getIri(); 469 bitField0_ = (bitField0_ & ~0x00000001); 470 onChanged(); 471 return this; 472 } 473 /** 474 * <pre> 475 * IRI of a Thing to get, or query for Things; e.g. 476 * https://enola.dev/query/all?inline=true&limit=7, or sparql: or sql: 477 * something else like that. 478 * </pre> 479 * 480 * <code>string iri = 1;</code> 481 * @param value The bytes for iri to set. 482 * @return This builder for chaining. 483 */ 484 public Builder setIriBytes( 485 com.google.protobuf.ByteString value) { 486 if (value == null) { throw new NullPointerException(); } 487 checkByteStringIsUtf8(value); 488 iri_ = value; 489 bitField0_ |= 0x00000001; 490 onChanged(); 491 return this; 492 } 493 494 // @@protoc_insertion_point(builder_scope:dev.enola.core.GetThingsRequest) 495 } 496 497 // @@protoc_insertion_point(class_scope:dev.enola.core.GetThingsRequest) 498 private static final dev.enola.core.proto.GetThingsRequest DEFAULT_INSTANCE; 499 static { 500 DEFAULT_INSTANCE = new dev.enola.core.proto.GetThingsRequest(); 501 } 502 503 public static dev.enola.core.proto.GetThingsRequest getDefaultInstance() { 504 return DEFAULT_INSTANCE; 505 } 506 507 private static final com.google.protobuf.Parser<GetThingsRequest> 508 PARSER = new com.google.protobuf.AbstractParser<GetThingsRequest>() { 509 @java.lang.Override 510 public GetThingsRequest parsePartialFrom( 511 com.google.protobuf.CodedInputStream input, 512 com.google.protobuf.ExtensionRegistryLite extensionRegistry) 513 throws com.google.protobuf.InvalidProtocolBufferException { 514 Builder builder = newBuilder(); 515 try { 516 builder.mergeFrom(input, extensionRegistry); 517 } catch (com.google.protobuf.InvalidProtocolBufferException e) { 518 throw e.setUnfinishedMessage(builder.buildPartial()); 519 } catch (com.google.protobuf.UninitializedMessageException e) { 520 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); 521 } catch (java.io.IOException e) { 522 throw new com.google.protobuf.InvalidProtocolBufferException(e) 523 .setUnfinishedMessage(builder.buildPartial()); 524 } 525 return builder.buildPartial(); 526 } 527 }; 528 529 public static com.google.protobuf.Parser<GetThingsRequest> parser() { 530 return PARSER; 531 } 532 533 @java.lang.Override 534 public com.google.protobuf.Parser<GetThingsRequest> getParserForType() { 535 return PARSER; 536 } 537 538 @java.lang.Override 539 public dev.enola.core.proto.GetThingsRequest getDefaultInstanceForType() { 540 return DEFAULT_INSTANCE; 541 } 542 543} 544