Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
*
* .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;
}
/**
*
*
* 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 extends com.hedera.services.stream.proto.SidecarType> 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.
*
**
* 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;
}
}