com.hedera.services.stream.proto.SignatureFile Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: signature_file.proto
package com.hedera.services.stream.proto;
/**
*
**
* The record signature file which is created for each record stream file
* that signs the hash of the entire corresponding stream file.
*
*
* Protobuf type {@code proto.SignatureFile}
*/
public final class SignatureFile extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:proto.SignatureFile)
SignatureFileOrBuilder {
private static final long serialVersionUID = 0L;
// Use SignatureFile.newBuilder() to construct.
private SignatureFile(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SignatureFile() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SignatureFile();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SignatureFile(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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.SignatureObject.Builder subBuilder = null;
if (fileSignature_ != null) {
subBuilder = fileSignature_.toBuilder();
}
fileSignature_ = input.readMessage(com.hedera.services.stream.proto.SignatureObject.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(fileSignature_);
fileSignature_ = subBuilder.buildPartial();
}
break;
}
case 18: {
com.hedera.services.stream.proto.SignatureObject.Builder subBuilder = null;
if (metadataSignature_ != null) {
subBuilder = metadataSignature_.toBuilder();
}
metadataSignature_ = input.readMessage(com.hedera.services.stream.proto.SignatureObject.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(metadataSignature_);
metadataSignature_ = subBuilder.buildPartial();
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.services.stream.proto.SignatureFileOuterClass.internal_static_proto_SignatureFile_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.services.stream.proto.SignatureFileOuterClass.internal_static_proto_SignatureFile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.services.stream.proto.SignatureFile.class, com.hedera.services.stream.proto.SignatureFile.Builder.class);
}
public static final int FILE_SIGNATURE_FIELD_NUMBER = 1;
private com.hedera.services.stream.proto.SignatureObject fileSignature_;
/**
*
**
* Signature for the file
*
*
* .proto.SignatureObject file_signature = 1;
* @return Whether the fileSignature field is set.
*/
@java.lang.Override
public boolean hasFileSignature() {
return fileSignature_ != null;
}
/**
*
**
* Signature for the file
*
*
* .proto.SignatureObject file_signature = 1;
* @return The fileSignature.
*/
@java.lang.Override
public com.hedera.services.stream.proto.SignatureObject getFileSignature() {
return fileSignature_ == null ? com.hedera.services.stream.proto.SignatureObject.getDefaultInstance() : fileSignature_;
}
/**
*
**
* Signature for the file
*
*
* .proto.SignatureObject file_signature = 1;
*/
@java.lang.Override
public com.hedera.services.stream.proto.SignatureObjectOrBuilder getFileSignatureOrBuilder() {
return getFileSignature();
}
public static final int METADATA_SIGNATURE_FIELD_NUMBER = 2;
private com.hedera.services.stream.proto.SignatureObject metadataSignature_;
/**
*
**
* Metadata signature
*
*
* .proto.SignatureObject metadata_signature = 2;
* @return Whether the metadataSignature field is set.
*/
@java.lang.Override
public boolean hasMetadataSignature() {
return metadataSignature_ != null;
}
/**
*
**
* Metadata signature
*
*
* .proto.SignatureObject metadata_signature = 2;
* @return The metadataSignature.
*/
@java.lang.Override
public com.hedera.services.stream.proto.SignatureObject getMetadataSignature() {
return metadataSignature_ == null ? com.hedera.services.stream.proto.SignatureObject.getDefaultInstance() : metadataSignature_;
}
/**
*
**
* Metadata signature
*
*
* .proto.SignatureObject metadata_signature = 2;
*/
@java.lang.Override
public com.hedera.services.stream.proto.SignatureObjectOrBuilder getMetadataSignatureOrBuilder() {
return getMetadataSignature();
}
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 {
if (fileSignature_ != null) {
output.writeMessage(1, getFileSignature());
}
if (metadataSignature_ != null) {
output.writeMessage(2, getMetadataSignature());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (fileSignature_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getFileSignature());
}
if (metadataSignature_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMetadataSignature());
}
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.SignatureFile)) {
return super.equals(obj);
}
com.hedera.services.stream.proto.SignatureFile other = (com.hedera.services.stream.proto.SignatureFile) obj;
if (hasFileSignature() != other.hasFileSignature()) return false;
if (hasFileSignature()) {
if (!getFileSignature()
.equals(other.getFileSignature())) return false;
}
if (hasMetadataSignature() != other.hasMetadataSignature()) return false;
if (hasMetadataSignature()) {
if (!getMetadataSignature()
.equals(other.getMetadataSignature())) 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 (hasFileSignature()) {
hash = (37 * hash) + FILE_SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getFileSignature().hashCode();
}
if (hasMetadataSignature()) {
hash = (37 * hash) + METADATA_SIGNATURE_FIELD_NUMBER;
hash = (53 * hash) + getMetadataSignature().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.hedera.services.stream.proto.SignatureFile parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.services.stream.proto.SignatureFile 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.SignatureFile parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.services.stream.proto.SignatureFile 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.SignatureFile parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.hedera.services.stream.proto.SignatureFile 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.SignatureFile parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.hedera.services.stream.proto.SignatureFile 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.SignatureFile parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.hedera.services.stream.proto.SignatureFile 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.SignatureFile 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.SignatureFile 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.SignatureFile 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;
}
/**
*
**
* The record signature file which is created for each record stream file
* that signs the hash of the entire corresponding stream file.
*
*
* Protobuf type {@code proto.SignatureFile}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:proto.SignatureFile)
com.hedera.services.stream.proto.SignatureFileOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.hedera.services.stream.proto.SignatureFileOuterClass.internal_static_proto_SignatureFile_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.hedera.services.stream.proto.SignatureFileOuterClass.internal_static_proto_SignatureFile_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.hedera.services.stream.proto.SignatureFile.class, com.hedera.services.stream.proto.SignatureFile.Builder.class);
}
// Construct using com.hedera.services.stream.proto.SignatureFile.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 (fileSignatureBuilder_ == null) {
fileSignature_ = null;
} else {
fileSignature_ = null;
fileSignatureBuilder_ = null;
}
if (metadataSignatureBuilder_ == null) {
metadataSignature_ = null;
} else {
metadataSignature_ = null;
metadataSignatureBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.hedera.services.stream.proto.SignatureFileOuterClass.internal_static_proto_SignatureFile_descriptor;
}
@java.lang.Override
public com.hedera.services.stream.proto.SignatureFile getDefaultInstanceForType() {
return com.hedera.services.stream.proto.SignatureFile.getDefaultInstance();
}
@java.lang.Override
public com.hedera.services.stream.proto.SignatureFile build() {
com.hedera.services.stream.proto.SignatureFile result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.hedera.services.stream.proto.SignatureFile buildPartial() {
com.hedera.services.stream.proto.SignatureFile result = new com.hedera.services.stream.proto.SignatureFile(this);
if (fileSignatureBuilder_ == null) {
result.fileSignature_ = fileSignature_;
} else {
result.fileSignature_ = fileSignatureBuilder_.build();
}
if (metadataSignatureBuilder_ == null) {
result.metadataSignature_ = metadataSignature_;
} else {
result.metadataSignature_ = metadataSignatureBuilder_.build();
}
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.SignatureFile) {
return mergeFrom((com.hedera.services.stream.proto.SignatureFile)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.hedera.services.stream.proto.SignatureFile other) {
if (other == com.hedera.services.stream.proto.SignatureFile.getDefaultInstance()) return this;
if (other.hasFileSignature()) {
mergeFileSignature(other.getFileSignature());
}
if (other.hasMetadataSignature()) {
mergeMetadataSignature(other.getMetadataSignature());
}
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.SignatureFile parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.hedera.services.stream.proto.SignatureFile) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private com.hedera.services.stream.proto.SignatureObject fileSignature_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.services.stream.proto.SignatureObject, com.hedera.services.stream.proto.SignatureObject.Builder, com.hedera.services.stream.proto.SignatureObjectOrBuilder> fileSignatureBuilder_;
/**
*
**
* Signature for the file
*
*
* .proto.SignatureObject file_signature = 1;
* @return Whether the fileSignature field is set.
*/
public boolean hasFileSignature() {
return fileSignatureBuilder_ != null || fileSignature_ != null;
}
/**
*
**
* Signature for the file
*
*
* .proto.SignatureObject file_signature = 1;
* @return The fileSignature.
*/
public com.hedera.services.stream.proto.SignatureObject getFileSignature() {
if (fileSignatureBuilder_ == null) {
return fileSignature_ == null ? com.hedera.services.stream.proto.SignatureObject.getDefaultInstance() : fileSignature_;
} else {
return fileSignatureBuilder_.getMessage();
}
}
/**
*
**
* Signature for the file
*
*
* .proto.SignatureObject file_signature = 1;
*/
public Builder setFileSignature(com.hedera.services.stream.proto.SignatureObject value) {
if (fileSignatureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
fileSignature_ = value;
onChanged();
} else {
fileSignatureBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* Signature for the file
*
*
* .proto.SignatureObject file_signature = 1;
*/
public Builder setFileSignature(
com.hedera.services.stream.proto.SignatureObject.Builder builderForValue) {
if (fileSignatureBuilder_ == null) {
fileSignature_ = builderForValue.build();
onChanged();
} else {
fileSignatureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* Signature for the file
*
*
* .proto.SignatureObject file_signature = 1;
*/
public Builder mergeFileSignature(com.hedera.services.stream.proto.SignatureObject value) {
if (fileSignatureBuilder_ == null) {
if (fileSignature_ != null) {
fileSignature_ =
com.hedera.services.stream.proto.SignatureObject.newBuilder(fileSignature_).mergeFrom(value).buildPartial();
} else {
fileSignature_ = value;
}
onChanged();
} else {
fileSignatureBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* Signature for the file
*
*
* .proto.SignatureObject file_signature = 1;
*/
public Builder clearFileSignature() {
if (fileSignatureBuilder_ == null) {
fileSignature_ = null;
onChanged();
} else {
fileSignature_ = null;
fileSignatureBuilder_ = null;
}
return this;
}
/**
*
**
* Signature for the file
*
*
* .proto.SignatureObject file_signature = 1;
*/
public com.hedera.services.stream.proto.SignatureObject.Builder getFileSignatureBuilder() {
onChanged();
return getFileSignatureFieldBuilder().getBuilder();
}
/**
*
**
* Signature for the file
*
*
* .proto.SignatureObject file_signature = 1;
*/
public com.hedera.services.stream.proto.SignatureObjectOrBuilder getFileSignatureOrBuilder() {
if (fileSignatureBuilder_ != null) {
return fileSignatureBuilder_.getMessageOrBuilder();
} else {
return fileSignature_ == null ?
com.hedera.services.stream.proto.SignatureObject.getDefaultInstance() : fileSignature_;
}
}
/**
*
**
* Signature for the file
*
*
* .proto.SignatureObject file_signature = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.services.stream.proto.SignatureObject, com.hedera.services.stream.proto.SignatureObject.Builder, com.hedera.services.stream.proto.SignatureObjectOrBuilder>
getFileSignatureFieldBuilder() {
if (fileSignatureBuilder_ == null) {
fileSignatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.services.stream.proto.SignatureObject, com.hedera.services.stream.proto.SignatureObject.Builder, com.hedera.services.stream.proto.SignatureObjectOrBuilder>(
getFileSignature(),
getParentForChildren(),
isClean());
fileSignature_ = null;
}
return fileSignatureBuilder_;
}
private com.hedera.services.stream.proto.SignatureObject metadataSignature_;
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.services.stream.proto.SignatureObject, com.hedera.services.stream.proto.SignatureObject.Builder, com.hedera.services.stream.proto.SignatureObjectOrBuilder> metadataSignatureBuilder_;
/**
*
**
* Metadata signature
*
*
* .proto.SignatureObject metadata_signature = 2;
* @return Whether the metadataSignature field is set.
*/
public boolean hasMetadataSignature() {
return metadataSignatureBuilder_ != null || metadataSignature_ != null;
}
/**
*
**
* Metadata signature
*
*
* .proto.SignatureObject metadata_signature = 2;
* @return The metadataSignature.
*/
public com.hedera.services.stream.proto.SignatureObject getMetadataSignature() {
if (metadataSignatureBuilder_ == null) {
return metadataSignature_ == null ? com.hedera.services.stream.proto.SignatureObject.getDefaultInstance() : metadataSignature_;
} else {
return metadataSignatureBuilder_.getMessage();
}
}
/**
*
**
* Metadata signature
*
*
* .proto.SignatureObject metadata_signature = 2;
*/
public Builder setMetadataSignature(com.hedera.services.stream.proto.SignatureObject value) {
if (metadataSignatureBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadataSignature_ = value;
onChanged();
} else {
metadataSignatureBuilder_.setMessage(value);
}
return this;
}
/**
*
**
* Metadata signature
*
*
* .proto.SignatureObject metadata_signature = 2;
*/
public Builder setMetadataSignature(
com.hedera.services.stream.proto.SignatureObject.Builder builderForValue) {
if (metadataSignatureBuilder_ == null) {
metadataSignature_ = builderForValue.build();
onChanged();
} else {
metadataSignatureBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
**
* Metadata signature
*
*
* .proto.SignatureObject metadata_signature = 2;
*/
public Builder mergeMetadataSignature(com.hedera.services.stream.proto.SignatureObject value) {
if (metadataSignatureBuilder_ == null) {
if (metadataSignature_ != null) {
metadataSignature_ =
com.hedera.services.stream.proto.SignatureObject.newBuilder(metadataSignature_).mergeFrom(value).buildPartial();
} else {
metadataSignature_ = value;
}
onChanged();
} else {
metadataSignatureBuilder_.mergeFrom(value);
}
return this;
}
/**
*
**
* Metadata signature
*
*
* .proto.SignatureObject metadata_signature = 2;
*/
public Builder clearMetadataSignature() {
if (metadataSignatureBuilder_ == null) {
metadataSignature_ = null;
onChanged();
} else {
metadataSignature_ = null;
metadataSignatureBuilder_ = null;
}
return this;
}
/**
*
**
* Metadata signature
*
*
* .proto.SignatureObject metadata_signature = 2;
*/
public com.hedera.services.stream.proto.SignatureObject.Builder getMetadataSignatureBuilder() {
onChanged();
return getMetadataSignatureFieldBuilder().getBuilder();
}
/**
*
**
* Metadata signature
*
*
* .proto.SignatureObject metadata_signature = 2;
*/
public com.hedera.services.stream.proto.SignatureObjectOrBuilder getMetadataSignatureOrBuilder() {
if (metadataSignatureBuilder_ != null) {
return metadataSignatureBuilder_.getMessageOrBuilder();
} else {
return metadataSignature_ == null ?
com.hedera.services.stream.proto.SignatureObject.getDefaultInstance() : metadataSignature_;
}
}
/**
*
**
* Metadata signature
*
*
* .proto.SignatureObject metadata_signature = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.hedera.services.stream.proto.SignatureObject, com.hedera.services.stream.proto.SignatureObject.Builder, com.hedera.services.stream.proto.SignatureObjectOrBuilder>
getMetadataSignatureFieldBuilder() {
if (metadataSignatureBuilder_ == null) {
metadataSignatureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.hedera.services.stream.proto.SignatureObject, com.hedera.services.stream.proto.SignatureObject.Builder, com.hedera.services.stream.proto.SignatureObjectOrBuilder>(
getMetadataSignature(),
getParentForChildren(),
isClean());
metadataSignature_ = null;
}
return metadataSignatureBuilder_;
}
@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.SignatureFile)
}
// @@protoc_insertion_point(class_scope:proto.SignatureFile)
private static final com.hedera.services.stream.proto.SignatureFile DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.hedera.services.stream.proto.SignatureFile();
}
public static com.hedera.services.stream.proto.SignatureFile getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SignatureFile parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SignatureFile(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.SignatureFile getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy