com.hedera.hashgraph.sdk.proto.FileID Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-jdk7 Show documentation
Show all versions of sdk-jdk7 Show documentation
Hedera™ Hashgraph SDK for Java
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: basic_types.proto
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* The ID for a file
*
*
* Protobuf type {@code proto.FileID}
*/
public final class FileID extends
com.google.protobuf.GeneratedMessageLite<
FileID, FileID.Builder> implements
// @@protoc_insertion_point(message_implements:proto.FileID)
FileIDOrBuilder {
private FileID() {
}
public static final int SHARDNUM_FIELD_NUMBER = 1;
private long shardNum_;
/**
*
**
* The shard number (nonnegative)
*
*
* int64 shardNum = 1;
* @return The shardNum.
*/
@java.lang.Override
public long getShardNum() {
return shardNum_;
}
/**
*
**
* The shard number (nonnegative)
*
*
* int64 shardNum = 1;
* @param value The shardNum to set.
*/
private void setShardNum(long value) {
shardNum_ = value;
}
/**
*
**
* The shard number (nonnegative)
*
*
* int64 shardNum = 1;
*/
private void clearShardNum() {
shardNum_ = 0L;
}
public static final int REALMNUM_FIELD_NUMBER = 2;
private long realmNum_;
/**
*
**
* The realm number (nonnegative)
*
*
* int64 realmNum = 2;
* @return The realmNum.
*/
@java.lang.Override
public long getRealmNum() {
return realmNum_;
}
/**
*
**
* The realm number (nonnegative)
*
*
* int64 realmNum = 2;
* @param value The realmNum to set.
*/
private void setRealmNum(long value) {
realmNum_ = value;
}
/**
*
**
* The realm number (nonnegative)
*
*
* int64 realmNum = 2;
*/
private void clearRealmNum() {
realmNum_ = 0L;
}
public static final int FILENUM_FIELD_NUMBER = 3;
private long fileNum_;
/**
*
**
* A nonnegative File number unique within its realm
*
*
* int64 fileNum = 3;
* @return The fileNum.
*/
@java.lang.Override
public long getFileNum() {
return fileNum_;
}
/**
*
**
* A nonnegative File number unique within its realm
*
*
* int64 fileNum = 3;
* @param value The fileNum to set.
*/
private void setFileNum(long value) {
fileNum_ = value;
}
/**
*
**
* A nonnegative File number unique within its realm
*
*
* int64 fileNum = 3;
*/
private void clearFileNum() {
fileNum_ = 0L;
}
public static com.hedera.hashgraph.sdk.proto.FileID parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.FileID parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.FileID parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.FileID parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.FileID parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.hedera.hashgraph.sdk.proto.FileID parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.FileID parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.FileID parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.FileID parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.FileID parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.hedera.hashgraph.sdk.proto.FileID parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.hedera.hashgraph.sdk.proto.FileID parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.FileID prototype) {
return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
**
* The ID for a file
*
*
* Protobuf type {@code proto.FileID}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.hedera.hashgraph.sdk.proto.FileID, Builder> implements
// @@protoc_insertion_point(builder_implements:proto.FileID)
com.hedera.hashgraph.sdk.proto.FileIDOrBuilder {
// Construct using com.hedera.hashgraph.sdk.proto.FileID.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
**
* The shard number (nonnegative)
*
*
* int64 shardNum = 1;
* @return The shardNum.
*/
@java.lang.Override
public long getShardNum() {
return instance.getShardNum();
}
/**
*
**
* The shard number (nonnegative)
*
*
* int64 shardNum = 1;
* @param value The shardNum to set.
* @return This builder for chaining.
*/
public Builder setShardNum(long value) {
copyOnWrite();
instance.setShardNum(value);
return this;
}
/**
*
**
* The shard number (nonnegative)
*
*
* int64 shardNum = 1;
* @return This builder for chaining.
*/
public Builder clearShardNum() {
copyOnWrite();
instance.clearShardNum();
return this;
}
/**
*
**
* The realm number (nonnegative)
*
*
* int64 realmNum = 2;
* @return The realmNum.
*/
@java.lang.Override
public long getRealmNum() {
return instance.getRealmNum();
}
/**
*
**
* The realm number (nonnegative)
*
*
* int64 realmNum = 2;
* @param value The realmNum to set.
* @return This builder for chaining.
*/
public Builder setRealmNum(long value) {
copyOnWrite();
instance.setRealmNum(value);
return this;
}
/**
*
**
* The realm number (nonnegative)
*
*
* int64 realmNum = 2;
* @return This builder for chaining.
*/
public Builder clearRealmNum() {
copyOnWrite();
instance.clearRealmNum();
return this;
}
/**
*
**
* A nonnegative File number unique within its realm
*
*
* int64 fileNum = 3;
* @return The fileNum.
*/
@java.lang.Override
public long getFileNum() {
return instance.getFileNum();
}
/**
*
**
* A nonnegative File number unique within its realm
*
*
* int64 fileNum = 3;
* @param value The fileNum to set.
* @return This builder for chaining.
*/
public Builder setFileNum(long value) {
copyOnWrite();
instance.setFileNum(value);
return this;
}
/**
*
**
* A nonnegative File number unique within its realm
*
*
* int64 fileNum = 3;
* @return This builder for chaining.
*/
public Builder clearFileNum() {
copyOnWrite();
instance.clearFileNum();
return this;
}
// @@protoc_insertion_point(builder_scope:proto.FileID)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.hedera.hashgraph.sdk.proto.FileID();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"shardNum_",
"realmNum_",
"fileNum_",
};
java.lang.String info =
"\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u0002\u0002\u0002" +
"\u0003\u0002";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.hedera.hashgraph.sdk.proto.FileID.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:proto.FileID)
private static final com.hedera.hashgraph.sdk.proto.FileID DEFAULT_INSTANCE;
static {
FileID defaultInstance = new FileID();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
FileID.class, defaultInstance);
}
public static com.hedera.hashgraph.sdk.proto.FileID getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy