All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hedera.services.stream.proto.SidecarMetadata Maven / Gradle / Ivy

There is a newer version: 0.57.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: record_stream_file.proto

package com.hedera.services.stream.proto;

/**
 * 
 **
 * Information about a single sidecar file.
 * 
* * Protobuf type {@code proto.SidecarMetadata} */ public final class SidecarMetadata extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:proto.SidecarMetadata) SidecarMetadataOrBuilder { private static final long serialVersionUID = 0L; // Use SidecarMetadata.newBuilder() to construct. private SidecarMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SidecarMetadata() { types_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SidecarMetadata(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SidecarMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.hedera.services.stream.proto.HashObject.Builder subBuilder = null; if (hash_ != null) { subBuilder = hash_.toBuilder(); } hash_ = input.readMessage(com.hedera.services.stream.proto.HashObject.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(hash_); hash_ = subBuilder.buildPartial(); } break; } case 16: { id_ = input.readInt32(); break; } case 24: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { types_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } types_.add(rawValue); break; } case 26: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { types_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } types_.add(rawValue); } input.popLimit(oldLimit); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { types_ = java.util.Collections.unmodifiableList(types_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.services.stream.proto.RecordStreamFileOuterClass.internal_static_proto_SidecarMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.services.stream.proto.RecordStreamFileOuterClass.internal_static_proto_SidecarMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.services.stream.proto.SidecarMetadata.class, com.hedera.services.stream.proto.SidecarMetadata.Builder.class); } public static final int HASH_FIELD_NUMBER = 1; private com.hedera.services.stream.proto.HashObject hash_; /** *
   **
   * The hash of the entire file.
   * 
* * .proto.HashObject hash = 1; * @return Whether the hash field is set. */ @java.lang.Override public boolean hasHash() { return hash_ != null; } /** *
   **
   * The hash of the entire file.
   * 
* * .proto.HashObject hash = 1; * @return The hash. */ @java.lang.Override public com.hedera.services.stream.proto.HashObject getHash() { return hash_ == null ? com.hedera.services.stream.proto.HashObject.getDefaultInstance() : hash_; } /** *
   **
   * The hash of the entire file.
   * 
* * .proto.HashObject hash = 1; */ @java.lang.Override public com.hedera.services.stream.proto.HashObjectOrBuilder getHashOrBuilder() { return getHash(); } public static final int ID_FIELD_NUMBER = 2; private int id_; /** *
   **
   * The id of the sidecar record file
   * 
* * int32 id = 2; * @return The id. */ @java.lang.Override public int getId() { return id_; } public static final int TYPES_FIELD_NUMBER = 3; private java.util.List types_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.hedera.services.stream.proto.SidecarType> types_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.hedera.services.stream.proto.SidecarType>() { public com.hedera.services.stream.proto.SidecarType convert(java.lang.Integer from) { @SuppressWarnings("deprecation") com.hedera.services.stream.proto.SidecarType result = com.hedera.services.stream.proto.SidecarType.valueOf(from); return result == null ? com.hedera.services.stream.proto.SidecarType.UNRECOGNIZED : result; } }; /** *
   **
   * The types of sidecar records that will be included in the file.
   * 
* * repeated .proto.SidecarType types = 3; * @return A list containing the types. */ @java.lang.Override public java.util.List getTypesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.hedera.services.stream.proto.SidecarType>(types_, types_converter_); } /** *
   **
   * The types of sidecar records that will be included in the file.
   * 
* * repeated .proto.SidecarType types = 3; * @return The count of types. */ @java.lang.Override public int getTypesCount() { return types_.size(); } /** *
   **
   * The types of sidecar records that will be included in the file.
   * 
* * repeated .proto.SidecarType types = 3; * @param index The index of the element to return. * @return The types at the given index. */ @java.lang.Override public com.hedera.services.stream.proto.SidecarType getTypes(int index) { return types_converter_.convert(types_.get(index)); } /** *
   **
   * The types of sidecar records that will be included in the file.
   * 
* * repeated .proto.SidecarType types = 3; * @return A list containing the enum numeric values on the wire for types. */ @java.lang.Override public java.util.List getTypesValueList() { return types_; } /** *
   **
   * The types of sidecar records that will be included in the file.
   * 
* * repeated .proto.SidecarType types = 3; * @param index The index of the value to return. * @return The enum numeric value on the wire of types at the given index. */ @java.lang.Override public int getTypesValue(int index) { return types_.get(index); } private int typesMemoizedSerializedSize; private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (hash_ != null) { output.writeMessage(1, getHash()); } if (id_ != 0) { output.writeInt32(2, id_); } if (getTypesList().size() > 0) { output.writeUInt32NoTag(26); output.writeUInt32NoTag(typesMemoizedSerializedSize); } for (int i = 0; i < types_.size(); i++) { output.writeEnumNoTag(types_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (hash_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getHash()); } if (id_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, id_); } { int dataSize = 0; for (int i = 0; i < types_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(types_.get(i)); } size += dataSize; if (!getTypesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(dataSize); }typesMemoizedSerializedSize = dataSize; } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.hedera.services.stream.proto.SidecarMetadata)) { return super.equals(obj); } com.hedera.services.stream.proto.SidecarMetadata other = (com.hedera.services.stream.proto.SidecarMetadata) obj; if (hasHash() != other.hasHash()) return false; if (hasHash()) { if (!getHash() .equals(other.getHash())) return false; } if (getId() != other.getId()) return false; if (!types_.equals(other.types_)) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasHash()) { hash = (37 * hash) + HASH_FIELD_NUMBER; hash = (53 * hash) + getHash().hashCode(); } hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId(); if (getTypesCount() > 0) { hash = (37 * hash) + TYPES_FIELD_NUMBER; hash = (53 * hash) + types_.hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.hedera.services.stream.proto.SidecarMetadata parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.services.stream.proto.SidecarMetadata parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.services.stream.proto.SidecarMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.services.stream.proto.SidecarMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.services.stream.proto.SidecarMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.hedera.services.stream.proto.SidecarMetadata parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.hedera.services.stream.proto.SidecarMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.services.stream.proto.SidecarMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.services.stream.proto.SidecarMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.hedera.services.stream.proto.SidecarMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static com.hedera.services.stream.proto.SidecarMetadata parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.hedera.services.stream.proto.SidecarMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.hedera.services.stream.proto.SidecarMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   **
   * Information about a single sidecar file.
   * 
* * Protobuf type {@code proto.SidecarMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:proto.SidecarMetadata) com.hedera.services.stream.proto.SidecarMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.hedera.services.stream.proto.RecordStreamFileOuterClass.internal_static_proto_SidecarMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.hedera.services.stream.proto.RecordStreamFileOuterClass.internal_static_proto_SidecarMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.hedera.services.stream.proto.SidecarMetadata.class, com.hedera.services.stream.proto.SidecarMetadata.Builder.class); } // Construct using com.hedera.services.stream.proto.SidecarMetadata.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (hashBuilder_ == null) { hash_ = null; } else { hash_ = null; hashBuilder_ = null; } id_ = 0; types_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.hedera.services.stream.proto.RecordStreamFileOuterClass.internal_static_proto_SidecarMetadata_descriptor; } @java.lang.Override public com.hedera.services.stream.proto.SidecarMetadata getDefaultInstanceForType() { return com.hedera.services.stream.proto.SidecarMetadata.getDefaultInstance(); } @java.lang.Override public com.hedera.services.stream.proto.SidecarMetadata build() { com.hedera.services.stream.proto.SidecarMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.hedera.services.stream.proto.SidecarMetadata buildPartial() { com.hedera.services.stream.proto.SidecarMetadata result = new com.hedera.services.stream.proto.SidecarMetadata(this); int from_bitField0_ = bitField0_; if (hashBuilder_ == null) { result.hash_ = hash_; } else { result.hash_ = hashBuilder_.build(); } result.id_ = id_; if (((bitField0_ & 0x00000001) != 0)) { types_ = java.util.Collections.unmodifiableList(types_); bitField0_ = (bitField0_ & ~0x00000001); } result.types_ = types_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.hedera.services.stream.proto.SidecarMetadata) { return mergeFrom((com.hedera.services.stream.proto.SidecarMetadata)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.hedera.services.stream.proto.SidecarMetadata other) { if (other == com.hedera.services.stream.proto.SidecarMetadata.getDefaultInstance()) return this; if (other.hasHash()) { mergeHash(other.getHash()); } if (other.getId() != 0) { setId(other.getId()); } if (!other.types_.isEmpty()) { if (types_.isEmpty()) { types_ = other.types_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTypesIsMutable(); types_.addAll(other.types_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.hedera.services.stream.proto.SidecarMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.hedera.services.stream.proto.SidecarMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.hedera.services.stream.proto.HashObject hash_; private com.google.protobuf.SingleFieldBuilderV3< com.hedera.services.stream.proto.HashObject, com.hedera.services.stream.proto.HashObject.Builder, com.hedera.services.stream.proto.HashObjectOrBuilder> hashBuilder_; /** *
     **
     * The hash of the entire file.
     * 
* * .proto.HashObject hash = 1; * @return Whether the hash field is set. */ public boolean hasHash() { return hashBuilder_ != null || hash_ != null; } /** *
     **
     * The hash of the entire file.
     * 
* * .proto.HashObject hash = 1; * @return The hash. */ public com.hedera.services.stream.proto.HashObject getHash() { if (hashBuilder_ == null) { return hash_ == null ? com.hedera.services.stream.proto.HashObject.getDefaultInstance() : hash_; } else { return hashBuilder_.getMessage(); } } /** *
     **
     * The hash of the entire file.
     * 
* * .proto.HashObject hash = 1; */ public Builder setHash(com.hedera.services.stream.proto.HashObject value) { if (hashBuilder_ == null) { if (value == null) { throw new NullPointerException(); } hash_ = value; onChanged(); } else { hashBuilder_.setMessage(value); } return this; } /** *
     **
     * The hash of the entire file.
     * 
* * .proto.HashObject hash = 1; */ public Builder setHash( com.hedera.services.stream.proto.HashObject.Builder builderForValue) { if (hashBuilder_ == null) { hash_ = builderForValue.build(); onChanged(); } else { hashBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     **
     * The hash of the entire file.
     * 
* * .proto.HashObject hash = 1; */ public Builder mergeHash(com.hedera.services.stream.proto.HashObject value) { if (hashBuilder_ == null) { if (hash_ != null) { hash_ = com.hedera.services.stream.proto.HashObject.newBuilder(hash_).mergeFrom(value).buildPartial(); } else { hash_ = value; } onChanged(); } else { hashBuilder_.mergeFrom(value); } return this; } /** *
     **
     * The hash of the entire file.
     * 
* * .proto.HashObject hash = 1; */ public Builder clearHash() { if (hashBuilder_ == null) { hash_ = null; onChanged(); } else { hash_ = null; hashBuilder_ = null; } return this; } /** *
     **
     * The hash of the entire file.
     * 
* * .proto.HashObject hash = 1; */ public com.hedera.services.stream.proto.HashObject.Builder getHashBuilder() { onChanged(); return getHashFieldBuilder().getBuilder(); } /** *
     **
     * The hash of the entire file.
     * 
* * .proto.HashObject hash = 1; */ public com.hedera.services.stream.proto.HashObjectOrBuilder getHashOrBuilder() { if (hashBuilder_ != null) { return hashBuilder_.getMessageOrBuilder(); } else { return hash_ == null ? com.hedera.services.stream.proto.HashObject.getDefaultInstance() : hash_; } } /** *
     **
     * The hash of the entire file.
     * 
* * .proto.HashObject hash = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.hedera.services.stream.proto.HashObject, com.hedera.services.stream.proto.HashObject.Builder, com.hedera.services.stream.proto.HashObjectOrBuilder> getHashFieldBuilder() { if (hashBuilder_ == null) { hashBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.hedera.services.stream.proto.HashObject, com.hedera.services.stream.proto.HashObject.Builder, com.hedera.services.stream.proto.HashObjectOrBuilder>( getHash(), getParentForChildren(), isClean()); hash_ = null; } return hashBuilder_; } private int id_ ; /** *
     **
     * The id of the sidecar record file
     * 
* * int32 id = 2; * @return The id. */ @java.lang.Override public int getId() { return id_; } /** *
     **
     * The id of the sidecar record file
     * 
* * int32 id = 2; * @param value The id to set. * @return This builder for chaining. */ public Builder setId(int value) { id_ = value; onChanged(); return this; } /** *
     **
     * The id of the sidecar record file
     * 
* * int32 id = 2; * @return This builder for chaining. */ public Builder clearId() { id_ = 0; onChanged(); return this; } private java.util.List types_ = java.util.Collections.emptyList(); private void ensureTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { types_ = new java.util.ArrayList(types_); bitField0_ |= 0x00000001; } } /** *
     **
     * The types of sidecar records that will be included in the file.
     * 
* * repeated .proto.SidecarType types = 3; * @return A list containing the types. */ public java.util.List getTypesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.hedera.services.stream.proto.SidecarType>(types_, types_converter_); } /** *
     **
     * The types of sidecar records that will be included in the file.
     * 
* * repeated .proto.SidecarType types = 3; * @return The count of types. */ public int getTypesCount() { return types_.size(); } /** *
     **
     * The types of sidecar records that will be included in the file.
     * 
* * repeated .proto.SidecarType types = 3; * @param index The index of the element to return. * @return The types at the given index. */ public com.hedera.services.stream.proto.SidecarType getTypes(int index) { return types_converter_.convert(types_.get(index)); } /** *
     **
     * The types of sidecar records that will be included in the file.
     * 
* * repeated .proto.SidecarType types = 3; * @param index The index to set the value at. * @param value The types to set. * @return This builder for chaining. */ public Builder setTypes( int index, com.hedera.services.stream.proto.SidecarType value) { if (value == null) { throw new NullPointerException(); } ensureTypesIsMutable(); types_.set(index, value.getNumber()); onChanged(); return this; } /** *
     **
     * The types of sidecar records that will be included in the file.
     * 
* * repeated .proto.SidecarType types = 3; * @param value The types to add. * @return This builder for chaining. */ public Builder addTypes(com.hedera.services.stream.proto.SidecarType value) { if (value == null) { throw new NullPointerException(); } ensureTypesIsMutable(); types_.add(value.getNumber()); onChanged(); return this; } /** *
     **
     * The types of sidecar records that will be included in the file.
     * 
* * repeated .proto.SidecarType types = 3; * @param values The types to add. * @return This builder for chaining. */ public Builder addAllTypes( java.lang.Iterable values) { ensureTypesIsMutable(); for (com.hedera.services.stream.proto.SidecarType value : values) { types_.add(value.getNumber()); } onChanged(); return this; } /** *
     **
     * The types of sidecar records that will be included in the file.
     * 
* * repeated .proto.SidecarType types = 3; * @return This builder for chaining. */ public Builder clearTypes() { types_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     **
     * The types of sidecar records that will be included in the file.
     * 
* * repeated .proto.SidecarType types = 3; * @return A list containing the enum numeric values on the wire for types. */ public java.util.List getTypesValueList() { return java.util.Collections.unmodifiableList(types_); } /** *
     **
     * The types of sidecar records that will be included in the file.
     * 
* * repeated .proto.SidecarType types = 3; * @param index The index of the value to return. * @return The enum numeric value on the wire of types at the given index. */ public int getTypesValue(int index) { return types_.get(index); } /** *
     **
     * The types of sidecar records that will be included in the file.
     * 
* * repeated .proto.SidecarType types = 3; * @param index The index of the value to return. * @return The enum numeric value on the wire of types at the given index. * @return This builder for chaining. */ public Builder setTypesValue( int index, int value) { ensureTypesIsMutable(); types_.set(index, value); onChanged(); return this; } /** *
     **
     * The types of sidecar records that will be included in the file.
     * 
* * repeated .proto.SidecarType types = 3; * @param value The enum numeric value on the wire for types to add. * @return This builder for chaining. */ public Builder addTypesValue(int value) { ensureTypesIsMutable(); types_.add(value); onChanged(); return this; } /** *
     **
     * The types of sidecar records that will be included in the file.
     * 
* * repeated .proto.SidecarType types = 3; * @param values The enum numeric values on the wire for types to add. * @return This builder for chaining. */ public Builder addAllTypesValue( java.lang.Iterable values) { ensureTypesIsMutable(); for (int value : values) { types_.add(value); } onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:proto.SidecarMetadata) } // @@protoc_insertion_point(class_scope:proto.SidecarMetadata) private static final com.hedera.services.stream.proto.SidecarMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.hedera.services.stream.proto.SidecarMetadata(); } public static com.hedera.services.stream.proto.SidecarMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SidecarMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SidecarMetadata(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.hedera.services.stream.proto.SidecarMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy