org.hyperledger.fabric.protos.common.ImplicitMetaPolicy Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: common/policies.proto
// Protobuf Java Version: 4.28.2
package org.hyperledger.fabric.protos.common;
/**
*
* ImplicitMetaPolicy is a policy type which depends on the hierarchical nature of the configuration
* It is implicit because the rule is generate implicitly based on the number of sub policies
* It is meta because it depends only on the result of other policies
* When evaluated, this policy iterates over all immediate child sub-groups, retrieves the policy
* of name sub_policy, evaluates the collection and applies the rule.
* For example, with 4 sub-groups, and a policy name of "foo", ImplicitMetaPolicy retrieves
* each sub-group, retrieves policy "foo" for each subgroup, evaluates it, and, in the case of ANY
* 1 satisfied is sufficient, ALL would require 4 signatures, and MAJORITY would require 3 signatures.
*
*
* Protobuf type {@code common.ImplicitMetaPolicy}
*/
public final class ImplicitMetaPolicy extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:common.ImplicitMetaPolicy)
ImplicitMetaPolicyOrBuilder {
private static final long serialVersionUID = 0L;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
ImplicitMetaPolicy.class.getName());
}
// Use ImplicitMetaPolicy.newBuilder() to construct.
private ImplicitMetaPolicy(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private ImplicitMetaPolicy() {
subPolicy_ = "";
rule_ = 0;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.PoliciesProto.internal_static_common_ImplicitMetaPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.PoliciesProto.internal_static_common_ImplicitMetaPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.ImplicitMetaPolicy.class, org.hyperledger.fabric.protos.common.ImplicitMetaPolicy.Builder.class);
}
/**
* Protobuf enum {@code common.ImplicitMetaPolicy.Rule}
*/
public enum Rule
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Requires any of the sub-policies be satisfied, if no sub-policies exist, always returns true
*
*
* ANY = 0;
*/
ANY(0),
/**
*
* Requires all of the sub-policies be satisfied
*
*
* ALL = 1;
*/
ALL(1),
/**
*
* Requires a strict majority (greater than half) of the sub-policies be satisfied
*
*
* MAJORITY = 2;
*/
MAJORITY(2),
UNRECOGNIZED(-1),
;
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
Rule.class.getName());
}
/**
*
* Requires any of the sub-policies be satisfied, if no sub-policies exist, always returns true
*
*
* ANY = 0;
*/
public static final int ANY_VALUE = 0;
/**
*
* Requires all of the sub-policies be satisfied
*
*
* ALL = 1;
*/
public static final int ALL_VALUE = 1;
/**
*
* Requires a strict majority (greater than half) of the sub-policies be satisfied
*
*
* MAJORITY = 2;
*/
public static final int MAJORITY_VALUE = 2;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Rule valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Rule forNumber(int value) {
switch (value) {
case 0: return ANY;
case 1: return ALL;
case 2: return MAJORITY;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Rule> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Rule findValueByNumber(int number) {
return Rule.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.ImplicitMetaPolicy.getDescriptor().getEnumTypes().get(0);
}
private static final Rule[] VALUES = values();
public static Rule valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Rule(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:common.ImplicitMetaPolicy.Rule)
}
public static final int SUB_POLICY_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object subPolicy_ = "";
/**
* string sub_policy = 1 [json_name = "subPolicy"];
* @return The subPolicy.
*/
@java.lang.Override
public java.lang.String getSubPolicy() {
java.lang.Object ref = subPolicy_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
subPolicy_ = s;
return s;
}
}
/**
* string sub_policy = 1 [json_name = "subPolicy"];
* @return The bytes for subPolicy.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSubPolicyBytes() {
java.lang.Object ref = subPolicy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subPolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RULE_FIELD_NUMBER = 2;
private int rule_ = 0;
/**
* .common.ImplicitMetaPolicy.Rule rule = 2 [json_name = "rule"];
* @return The enum numeric value on the wire for rule.
*/
@java.lang.Override public int getRuleValue() {
return rule_;
}
/**
* .common.ImplicitMetaPolicy.Rule rule = 2 [json_name = "rule"];
* @return The rule.
*/
@java.lang.Override public org.hyperledger.fabric.protos.common.ImplicitMetaPolicy.Rule getRule() {
org.hyperledger.fabric.protos.common.ImplicitMetaPolicy.Rule result = org.hyperledger.fabric.protos.common.ImplicitMetaPolicy.Rule.forNumber(rule_);
return result == null ? org.hyperledger.fabric.protos.common.ImplicitMetaPolicy.Rule.UNRECOGNIZED : result;
}
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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(subPolicy_)) {
com.google.protobuf.GeneratedMessage.writeString(output, 1, subPolicy_);
}
if (rule_ != org.hyperledger.fabric.protos.common.ImplicitMetaPolicy.Rule.ANY.getNumber()) {
output.writeEnum(2, rule_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessage.isStringEmpty(subPolicy_)) {
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, subPolicy_);
}
if (rule_ != org.hyperledger.fabric.protos.common.ImplicitMetaPolicy.Rule.ANY.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, rule_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.hyperledger.fabric.protos.common.ImplicitMetaPolicy)) {
return super.equals(obj);
}
org.hyperledger.fabric.protos.common.ImplicitMetaPolicy other = (org.hyperledger.fabric.protos.common.ImplicitMetaPolicy) obj;
if (!getSubPolicy()
.equals(other.getSubPolicy())) return false;
if (rule_ != other.rule_) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + SUB_POLICY_FIELD_NUMBER;
hash = (53 * hash) + getSubPolicy().hashCode();
hash = (37 * hash) + RULE_FIELD_NUMBER;
hash = (53 * hash) + rule_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.hyperledger.fabric.protos.common.ImplicitMetaPolicy parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.ImplicitMetaPolicy parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.ImplicitMetaPolicy parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.ImplicitMetaPolicy parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.ImplicitMetaPolicy parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.hyperledger.fabric.protos.common.ImplicitMetaPolicy parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.ImplicitMetaPolicy parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.ImplicitMetaPolicy parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.ImplicitMetaPolicy parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.ImplicitMetaPolicy parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.hyperledger.fabric.protos.common.ImplicitMetaPolicy parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static org.hyperledger.fabric.protos.common.ImplicitMetaPolicy parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.hyperledger.fabric.protos.common.ImplicitMetaPolicy 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* ImplicitMetaPolicy is a policy type which depends on the hierarchical nature of the configuration
* It is implicit because the rule is generate implicitly based on the number of sub policies
* It is meta because it depends only on the result of other policies
* When evaluated, this policy iterates over all immediate child sub-groups, retrieves the policy
* of name sub_policy, evaluates the collection and applies the rule.
* For example, with 4 sub-groups, and a policy name of "foo", ImplicitMetaPolicy retrieves
* each sub-group, retrieves policy "foo" for each subgroup, evaluates it, and, in the case of ANY
* 1 satisfied is sufficient, ALL would require 4 signatures, and MAJORITY would require 3 signatures.
*
*
* Protobuf type {@code common.ImplicitMetaPolicy}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:common.ImplicitMetaPolicy)
org.hyperledger.fabric.protos.common.ImplicitMetaPolicyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.hyperledger.fabric.protos.common.PoliciesProto.internal_static_common_ImplicitMetaPolicy_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.hyperledger.fabric.protos.common.PoliciesProto.internal_static_common_ImplicitMetaPolicy_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.hyperledger.fabric.protos.common.ImplicitMetaPolicy.class, org.hyperledger.fabric.protos.common.ImplicitMetaPolicy.Builder.class);
}
// Construct using org.hyperledger.fabric.protos.common.ImplicitMetaPolicy.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
subPolicy_ = "";
rule_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.hyperledger.fabric.protos.common.PoliciesProto.internal_static_common_ImplicitMetaPolicy_descriptor;
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.ImplicitMetaPolicy getDefaultInstanceForType() {
return org.hyperledger.fabric.protos.common.ImplicitMetaPolicy.getDefaultInstance();
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.ImplicitMetaPolicy build() {
org.hyperledger.fabric.protos.common.ImplicitMetaPolicy result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.ImplicitMetaPolicy buildPartial() {
org.hyperledger.fabric.protos.common.ImplicitMetaPolicy result = new org.hyperledger.fabric.protos.common.ImplicitMetaPolicy(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(org.hyperledger.fabric.protos.common.ImplicitMetaPolicy result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.subPolicy_ = subPolicy_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.rule_ = rule_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.hyperledger.fabric.protos.common.ImplicitMetaPolicy) {
return mergeFrom((org.hyperledger.fabric.protos.common.ImplicitMetaPolicy)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.hyperledger.fabric.protos.common.ImplicitMetaPolicy other) {
if (other == org.hyperledger.fabric.protos.common.ImplicitMetaPolicy.getDefaultInstance()) return this;
if (!other.getSubPolicy().isEmpty()) {
subPolicy_ = other.subPolicy_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.rule_ != 0) {
setRuleValue(other.getRuleValue());
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
subPolicy_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16: {
rule_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object subPolicy_ = "";
/**
* string sub_policy = 1 [json_name = "subPolicy"];
* @return The subPolicy.
*/
public java.lang.String getSubPolicy() {
java.lang.Object ref = subPolicy_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
subPolicy_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string sub_policy = 1 [json_name = "subPolicy"];
* @return The bytes for subPolicy.
*/
public com.google.protobuf.ByteString
getSubPolicyBytes() {
java.lang.Object ref = subPolicy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
subPolicy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string sub_policy = 1 [json_name = "subPolicy"];
* @param value The subPolicy to set.
* @return This builder for chaining.
*/
public Builder setSubPolicy(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
subPolicy_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string sub_policy = 1 [json_name = "subPolicy"];
* @return This builder for chaining.
*/
public Builder clearSubPolicy() {
subPolicy_ = getDefaultInstance().getSubPolicy();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string sub_policy = 1 [json_name = "subPolicy"];
* @param value The bytes for subPolicy to set.
* @return This builder for chaining.
*/
public Builder setSubPolicyBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
subPolicy_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int rule_ = 0;
/**
* .common.ImplicitMetaPolicy.Rule rule = 2 [json_name = "rule"];
* @return The enum numeric value on the wire for rule.
*/
@java.lang.Override public int getRuleValue() {
return rule_;
}
/**
* .common.ImplicitMetaPolicy.Rule rule = 2 [json_name = "rule"];
* @param value The enum numeric value on the wire for rule to set.
* @return This builder for chaining.
*/
public Builder setRuleValue(int value) {
rule_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* .common.ImplicitMetaPolicy.Rule rule = 2 [json_name = "rule"];
* @return The rule.
*/
@java.lang.Override
public org.hyperledger.fabric.protos.common.ImplicitMetaPolicy.Rule getRule() {
org.hyperledger.fabric.protos.common.ImplicitMetaPolicy.Rule result = org.hyperledger.fabric.protos.common.ImplicitMetaPolicy.Rule.forNumber(rule_);
return result == null ? org.hyperledger.fabric.protos.common.ImplicitMetaPolicy.Rule.UNRECOGNIZED : result;
}
/**
* .common.ImplicitMetaPolicy.Rule rule = 2 [json_name = "rule"];
* @param value The rule to set.
* @return This builder for chaining.
*/
public Builder setRule(org.hyperledger.fabric.protos.common.ImplicitMetaPolicy.Rule value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
rule_ = value.getNumber();
onChanged();
return this;
}
/**
* .common.ImplicitMetaPolicy.Rule rule = 2 [json_name = "rule"];
* @return This builder for chaining.
*/
public Builder clearRule() {
bitField0_ = (bitField0_ & ~0x00000002);
rule_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:common.ImplicitMetaPolicy)
}
// @@protoc_insertion_point(class_scope:common.ImplicitMetaPolicy)
private static final org.hyperledger.fabric.protos.common.ImplicitMetaPolicy DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.hyperledger.fabric.protos.common.ImplicitMetaPolicy();
}
public static org.hyperledger.fabric.protos.common.ImplicitMetaPolicy getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ImplicitMetaPolicy parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.hyperledger.fabric.protos.common.ImplicitMetaPolicy getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy