diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..f812fbdf --- /dev/null +++ b/Makefile @@ -0,0 +1,3 @@ +# compile java protobuf +protoc-gen-all: + docker run -v ${PWD}:/defs namely/protoc-all -d src/main/proto -l java -o ./src/main/java \ No newline at end of file diff --git a/pom.xml b/pom.xml index 356bce8b..71028631 100644 --- a/pom.xml +++ b/pom.xml @@ -10,6 +10,14 @@ 3.0.0-alpha.1 + + + kr.motd.maven + os-maven-plugin + 1.7.1 + + + org.apache.maven.plugins @@ -92,6 +100,24 @@ + + org.xolstice.maven.plugins + protobuf-maven-plugin + 0.6.1 + + com.google.protobuf:protoc:3.25.3:exe:${os.detected.classifier} + grpc-java + io.grpc:protoc-gen-grpc-java:1.67.1:exe:${os.detected.classifier} + + + + + compile + compile-custom + + + + @@ -133,9 +159,33 @@ fastutil 8.5.13 + + + + io.grpc + grpc-netty-shaded + 1.67.1 + runtime + + + io.grpc + grpc-protobuf + 1.67.1 + + + io.grpc + grpc-stub + 1.67.1 + + + org.apache.tomcat + annotations-api + 6.0.53 + provided + 4.13.1 - + \ No newline at end of file diff --git a/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/AssignOp.java b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/AssignOp.java new file mode 100644 index 00000000..877697f5 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/AssignOp.java @@ -0,0 +1,754 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: graph.proto + +package gov.nist.csd.pm.pap.op.graph.proto; + +/** + * Protobuf type {@code AssignOp} + */ +public final class AssignOp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:AssignOp) + AssignOpOrBuilder { +private static final long serialVersionUID = 0L; + // Use AssignOp.newBuilder() to construct. + private AssignOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AssignOp() { + ascendant_ = ""; + descendants_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AssignOp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AssignOp( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + ascendant_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + descendants_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + descendants_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + descendants_ = descendants_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_AssignOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_AssignOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.graph.proto.AssignOp.class, gov.nist.csd.pm.pap.op.graph.proto.AssignOp.Builder.class); + } + + public static final int ASCENDANT_FIELD_NUMBER = 1; + private volatile java.lang.Object ascendant_; + /** + * string ascendant = 1; + * @return The ascendant. + */ + @java.lang.Override + public java.lang.String getAscendant() { + java.lang.Object ref = ascendant_; + 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(); + ascendant_ = s; + return s; + } + } + /** + * string ascendant = 1; + * @return The bytes for ascendant. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAscendantBytes() { + java.lang.Object ref = ascendant_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ascendant_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCENDANTS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList descendants_; + /** + * repeated string descendants = 2; + * @return A list containing the descendants. + */ + public com.google.protobuf.ProtocolStringList + getDescendantsList() { + return descendants_; + } + /** + * repeated string descendants = 2; + * @return The count of descendants. + */ + public int getDescendantsCount() { + return descendants_.size(); + } + /** + * repeated string descendants = 2; + * @param index The index of the element to return. + * @return The descendants at the given index. + */ + public java.lang.String getDescendants(int index) { + return descendants_.get(index); + } + /** + * repeated string descendants = 2; + * @param index The index of the value to return. + * @return The bytes of the descendants at the given index. + */ + public com.google.protobuf.ByteString + getDescendantsBytes(int index) { + return descendants_.getByteString(index); + } + + 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.GeneratedMessageV3.isStringEmpty(ascendant_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ascendant_); + } + for (int i = 0; i < descendants_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, descendants_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ascendant_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ascendant_); + } + { + int dataSize = 0; + for (int i = 0; i < descendants_.size(); i++) { + dataSize += computeStringSizeNoTag(descendants_.getRaw(i)); + } + size += dataSize; + size += 1 * getDescendantsList().size(); + } + 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 gov.nist.csd.pm.pap.op.graph.proto.AssignOp)) { + return super.equals(obj); + } + gov.nist.csd.pm.pap.op.graph.proto.AssignOp other = (gov.nist.csd.pm.pap.op.graph.proto.AssignOp) obj; + + if (!getAscendant() + .equals(other.getAscendant())) return false; + if (!getDescendantsList() + .equals(other.getDescendantsList())) 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(); + hash = (37 * hash) + ASCENDANT_FIELD_NUMBER; + hash = (53 * hash) + getAscendant().hashCode(); + if (getDescendantsCount() > 0) { + hash = (37 * hash) + DESCENDANTS_FIELD_NUMBER; + hash = (53 * hash) + getDescendantsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static gov.nist.csd.pm.pap.op.graph.proto.AssignOp parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.AssignOp parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.AssignOp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.AssignOp parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.AssignOp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.AssignOp parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.AssignOp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.AssignOp 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 gov.nist.csd.pm.pap.op.graph.proto.AssignOp parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.AssignOp 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 gov.nist.csd.pm.pap.op.graph.proto.AssignOp parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.AssignOp 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(gov.nist.csd.pm.pap.op.graph.proto.AssignOp 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; + } + /** + * Protobuf type {@code AssignOp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:AssignOp) + gov.nist.csd.pm.pap.op.graph.proto.AssignOpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_AssignOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_AssignOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.graph.proto.AssignOp.class, gov.nist.csd.pm.pap.op.graph.proto.AssignOp.Builder.class); + } + + // Construct using gov.nist.csd.pm.pap.op.graph.proto.AssignOp.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(); + ascendant_ = ""; + + descendants_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_AssignOp_descriptor; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.AssignOp getDefaultInstanceForType() { + return gov.nist.csd.pm.pap.op.graph.proto.AssignOp.getDefaultInstance(); + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.AssignOp build() { + gov.nist.csd.pm.pap.op.graph.proto.AssignOp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.AssignOp buildPartial() { + gov.nist.csd.pm.pap.op.graph.proto.AssignOp result = new gov.nist.csd.pm.pap.op.graph.proto.AssignOp(this); + int from_bitField0_ = bitField0_; + result.ascendant_ = ascendant_; + if (((bitField0_ & 0x00000001) != 0)) { + descendants_ = descendants_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.descendants_ = descendants_; + 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 gov.nist.csd.pm.pap.op.graph.proto.AssignOp) { + return mergeFrom((gov.nist.csd.pm.pap.op.graph.proto.AssignOp)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(gov.nist.csd.pm.pap.op.graph.proto.AssignOp other) { + if (other == gov.nist.csd.pm.pap.op.graph.proto.AssignOp.getDefaultInstance()) return this; + if (!other.getAscendant().isEmpty()) { + ascendant_ = other.ascendant_; + onChanged(); + } + if (!other.descendants_.isEmpty()) { + if (descendants_.isEmpty()) { + descendants_ = other.descendants_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDescendantsIsMutable(); + descendants_.addAll(other.descendants_); + } + 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 { + gov.nist.csd.pm.pap.op.graph.proto.AssignOp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (gov.nist.csd.pm.pap.op.graph.proto.AssignOp) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object ascendant_ = ""; + /** + * string ascendant = 1; + * @return The ascendant. + */ + public java.lang.String getAscendant() { + java.lang.Object ref = ascendant_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ascendant_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string ascendant = 1; + * @return The bytes for ascendant. + */ + public com.google.protobuf.ByteString + getAscendantBytes() { + java.lang.Object ref = ascendant_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ascendant_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string ascendant = 1; + * @param value The ascendant to set. + * @return This builder for chaining. + */ + public Builder setAscendant( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ascendant_ = value; + onChanged(); + return this; + } + /** + * string ascendant = 1; + * @return This builder for chaining. + */ + public Builder clearAscendant() { + + ascendant_ = getDefaultInstance().getAscendant(); + onChanged(); + return this; + } + /** + * string ascendant = 1; + * @param value The bytes for ascendant to set. + * @return This builder for chaining. + */ + public Builder setAscendantBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ascendant_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList descendants_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureDescendantsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + descendants_ = new com.google.protobuf.LazyStringArrayList(descendants_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string descendants = 2; + * @return A list containing the descendants. + */ + public com.google.protobuf.ProtocolStringList + getDescendantsList() { + return descendants_.getUnmodifiableView(); + } + /** + * repeated string descendants = 2; + * @return The count of descendants. + */ + public int getDescendantsCount() { + return descendants_.size(); + } + /** + * repeated string descendants = 2; + * @param index The index of the element to return. + * @return The descendants at the given index. + */ + public java.lang.String getDescendants(int index) { + return descendants_.get(index); + } + /** + * repeated string descendants = 2; + * @param index The index of the value to return. + * @return The bytes of the descendants at the given index. + */ + public com.google.protobuf.ByteString + getDescendantsBytes(int index) { + return descendants_.getByteString(index); + } + /** + * repeated string descendants = 2; + * @param index The index to set the value at. + * @param value The descendants to set. + * @return This builder for chaining. + */ + public Builder setDescendants( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDescendantsIsMutable(); + descendants_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string descendants = 2; + * @param value The descendants to add. + * @return This builder for chaining. + */ + public Builder addDescendants( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDescendantsIsMutable(); + descendants_.add(value); + onChanged(); + return this; + } + /** + * repeated string descendants = 2; + * @param values The descendants to add. + * @return This builder for chaining. + */ + public Builder addAllDescendants( + java.lang.Iterable values) { + ensureDescendantsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, descendants_); + onChanged(); + return this; + } + /** + * repeated string descendants = 2; + * @return This builder for chaining. + */ + public Builder clearDescendants() { + descendants_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string descendants = 2; + * @param value The bytes of the descendants to add. + * @return This builder for chaining. + */ + public Builder addDescendantsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDescendantsIsMutable(); + descendants_.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:AssignOp) + } + + // @@protoc_insertion_point(class_scope:AssignOp) + private static final gov.nist.csd.pm.pap.op.graph.proto.AssignOp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new gov.nist.csd.pm.pap.op.graph.proto.AssignOp(); + } + + public static gov.nist.csd.pm.pap.op.graph.proto.AssignOp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssignOp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AssignOp(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 gov.nist.csd.pm.pap.op.graph.proto.AssignOp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/AssignOpOrBuilder.java b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/AssignOpOrBuilder.java new file mode 100644 index 00000000..6296a155 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/AssignOpOrBuilder.java @@ -0,0 +1,46 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: graph.proto + +package gov.nist.csd.pm.pap.op.graph.proto; + +public interface AssignOpOrBuilder extends + // @@protoc_insertion_point(interface_extends:AssignOp) + com.google.protobuf.MessageOrBuilder { + + /** + * string ascendant = 1; + * @return The ascendant. + */ + java.lang.String getAscendant(); + /** + * string ascendant = 1; + * @return The bytes for ascendant. + */ + com.google.protobuf.ByteString + getAscendantBytes(); + + /** + * repeated string descendants = 2; + * @return A list containing the descendants. + */ + java.util.List + getDescendantsList(); + /** + * repeated string descendants = 2; + * @return The count of descendants. + */ + int getDescendantsCount(); + /** + * repeated string descendants = 2; + * @param index The index of the element to return. + * @return The descendants at the given index. + */ + java.lang.String getDescendants(int index); + /** + * repeated string descendants = 2; + * @param index The index of the value to return. + * @return The bytes of the descendants at the given index. + */ + com.google.protobuf.ByteString + getDescendantsBytes(int index); +} diff --git a/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/AssociateOp.java b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/AssociateOp.java new file mode 100644 index 00000000..c49574ef --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/AssociateOp.java @@ -0,0 +1,892 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: graph.proto + +package gov.nist.csd.pm.pap.op.graph.proto; + +/** + * Protobuf type {@code AssociateOp} + */ +public final class AssociateOp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:AssociateOp) + AssociateOpOrBuilder { +private static final long serialVersionUID = 0L; + // Use AssociateOp.newBuilder() to construct. + private AssociateOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AssociateOp() { + ua_ = ""; + target_ = ""; + arset_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AssociateOp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AssociateOp( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + ua_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + target_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + arset_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + arset_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + arset_ = arset_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_AssociateOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_AssociateOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.graph.proto.AssociateOp.class, gov.nist.csd.pm.pap.op.graph.proto.AssociateOp.Builder.class); + } + + public static final int UA_FIELD_NUMBER = 1; + private volatile java.lang.Object ua_; + /** + * string ua = 1; + * @return The ua. + */ + @java.lang.Override + public java.lang.String getUa() { + java.lang.Object ref = ua_; + 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(); + ua_ = s; + return s; + } + } + /** + * string ua = 1; + * @return The bytes for ua. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUaBytes() { + java.lang.Object ref = ua_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ua_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_FIELD_NUMBER = 2; + private volatile java.lang.Object target_; + /** + * string target = 2; + * @return The target. + */ + @java.lang.Override + public java.lang.String getTarget() { + java.lang.Object ref = target_; + 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(); + target_ = s; + return s; + } + } + /** + * string target = 2; + * @return The bytes for target. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ARSET_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList arset_; + /** + * repeated string arset = 3; + * @return A list containing the arset. + */ + public com.google.protobuf.ProtocolStringList + getArsetList() { + return arset_; + } + /** + * repeated string arset = 3; + * @return The count of arset. + */ + public int getArsetCount() { + return arset_.size(); + } + /** + * repeated string arset = 3; + * @param index The index of the element to return. + * @return The arset at the given index. + */ + public java.lang.String getArset(int index) { + return arset_.get(index); + } + /** + * repeated string arset = 3; + * @param index The index of the value to return. + * @return The bytes of the arset at the given index. + */ + public com.google.protobuf.ByteString + getArsetBytes(int index) { + return arset_.getByteString(index); + } + + 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.GeneratedMessageV3.isStringEmpty(ua_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ua_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, target_); + } + for (int i = 0; i < arset_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, arset_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ua_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ua_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, target_); + } + { + int dataSize = 0; + for (int i = 0; i < arset_.size(); i++) { + dataSize += computeStringSizeNoTag(arset_.getRaw(i)); + } + size += dataSize; + size += 1 * getArsetList().size(); + } + 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 gov.nist.csd.pm.pap.op.graph.proto.AssociateOp)) { + return super.equals(obj); + } + gov.nist.csd.pm.pap.op.graph.proto.AssociateOp other = (gov.nist.csd.pm.pap.op.graph.proto.AssociateOp) obj; + + if (!getUa() + .equals(other.getUa())) return false; + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getArsetList() + .equals(other.getArsetList())) 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(); + hash = (37 * hash) + UA_FIELD_NUMBER; + hash = (53 * hash) + getUa().hashCode(); + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + if (getArsetCount() > 0) { + hash = (37 * hash) + ARSET_FIELD_NUMBER; + hash = (53 * hash) + getArsetList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static gov.nist.csd.pm.pap.op.graph.proto.AssociateOp parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.AssociateOp parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.AssociateOp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.AssociateOp parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.AssociateOp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.AssociateOp parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.AssociateOp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.AssociateOp 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 gov.nist.csd.pm.pap.op.graph.proto.AssociateOp parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.AssociateOp 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 gov.nist.csd.pm.pap.op.graph.proto.AssociateOp parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.AssociateOp 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(gov.nist.csd.pm.pap.op.graph.proto.AssociateOp 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; + } + /** + * Protobuf type {@code AssociateOp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:AssociateOp) + gov.nist.csd.pm.pap.op.graph.proto.AssociateOpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_AssociateOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_AssociateOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.graph.proto.AssociateOp.class, gov.nist.csd.pm.pap.op.graph.proto.AssociateOp.Builder.class); + } + + // Construct using gov.nist.csd.pm.pap.op.graph.proto.AssociateOp.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(); + ua_ = ""; + + target_ = ""; + + arset_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_AssociateOp_descriptor; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.AssociateOp getDefaultInstanceForType() { + return gov.nist.csd.pm.pap.op.graph.proto.AssociateOp.getDefaultInstance(); + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.AssociateOp build() { + gov.nist.csd.pm.pap.op.graph.proto.AssociateOp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.AssociateOp buildPartial() { + gov.nist.csd.pm.pap.op.graph.proto.AssociateOp result = new gov.nist.csd.pm.pap.op.graph.proto.AssociateOp(this); + int from_bitField0_ = bitField0_; + result.ua_ = ua_; + result.target_ = target_; + if (((bitField0_ & 0x00000001) != 0)) { + arset_ = arset_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.arset_ = arset_; + 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 gov.nist.csd.pm.pap.op.graph.proto.AssociateOp) { + return mergeFrom((gov.nist.csd.pm.pap.op.graph.proto.AssociateOp)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(gov.nist.csd.pm.pap.op.graph.proto.AssociateOp other) { + if (other == gov.nist.csd.pm.pap.op.graph.proto.AssociateOp.getDefaultInstance()) return this; + if (!other.getUa().isEmpty()) { + ua_ = other.ua_; + onChanged(); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + onChanged(); + } + if (!other.arset_.isEmpty()) { + if (arset_.isEmpty()) { + arset_ = other.arset_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureArsetIsMutable(); + arset_.addAll(other.arset_); + } + 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 { + gov.nist.csd.pm.pap.op.graph.proto.AssociateOp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (gov.nist.csd.pm.pap.op.graph.proto.AssociateOp) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object ua_ = ""; + /** + * string ua = 1; + * @return The ua. + */ + public java.lang.String getUa() { + java.lang.Object ref = ua_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ua_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string ua = 1; + * @return The bytes for ua. + */ + public com.google.protobuf.ByteString + getUaBytes() { + java.lang.Object ref = ua_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ua_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string ua = 1; + * @param value The ua to set. + * @return This builder for chaining. + */ + public Builder setUa( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ua_ = value; + onChanged(); + return this; + } + /** + * string ua = 1; + * @return This builder for chaining. + */ + public Builder clearUa() { + + ua_ = getDefaultInstance().getUa(); + onChanged(); + return this; + } + /** + * string ua = 1; + * @param value The bytes for ua to set. + * @return This builder for chaining. + */ + public Builder setUaBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ua_ = value; + onChanged(); + return this; + } + + private java.lang.Object target_ = ""; + /** + * string target = 2; + * @return The target. + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string target = 2; + * @return The bytes for target. + */ + public com.google.protobuf.ByteString + getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string target = 2; + * @param value The target to set. + * @return This builder for chaining. + */ + public Builder setTarget( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + target_ = value; + onChanged(); + return this; + } + /** + * string target = 2; + * @return This builder for chaining. + */ + public Builder clearTarget() { + + target_ = getDefaultInstance().getTarget(); + onChanged(); + return this; + } + /** + * string target = 2; + * @param value The bytes for target to set. + * @return This builder for chaining. + */ + public Builder setTargetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + target_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList arset_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArsetIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + arset_ = new com.google.protobuf.LazyStringArrayList(arset_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string arset = 3; + * @return A list containing the arset. + */ + public com.google.protobuf.ProtocolStringList + getArsetList() { + return arset_.getUnmodifiableView(); + } + /** + * repeated string arset = 3; + * @return The count of arset. + */ + public int getArsetCount() { + return arset_.size(); + } + /** + * repeated string arset = 3; + * @param index The index of the element to return. + * @return The arset at the given index. + */ + public java.lang.String getArset(int index) { + return arset_.get(index); + } + /** + * repeated string arset = 3; + * @param index The index of the value to return. + * @return The bytes of the arset at the given index. + */ + public com.google.protobuf.ByteString + getArsetBytes(int index) { + return arset_.getByteString(index); + } + /** + * repeated string arset = 3; + * @param index The index to set the value at. + * @param value The arset to set. + * @return This builder for chaining. + */ + public Builder setArset( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArsetIsMutable(); + arset_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string arset = 3; + * @param value The arset to add. + * @return This builder for chaining. + */ + public Builder addArset( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArsetIsMutable(); + arset_.add(value); + onChanged(); + return this; + } + /** + * repeated string arset = 3; + * @param values The arset to add. + * @return This builder for chaining. + */ + public Builder addAllArset( + java.lang.Iterable values) { + ensureArsetIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, arset_); + onChanged(); + return this; + } + /** + * repeated string arset = 3; + * @return This builder for chaining. + */ + public Builder clearArset() { + arset_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string arset = 3; + * @param value The bytes of the arset to add. + * @return This builder for chaining. + */ + public Builder addArsetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureArsetIsMutable(); + arset_.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:AssociateOp) + } + + // @@protoc_insertion_point(class_scope:AssociateOp) + private static final gov.nist.csd.pm.pap.op.graph.proto.AssociateOp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new gov.nist.csd.pm.pap.op.graph.proto.AssociateOp(); + } + + public static gov.nist.csd.pm.pap.op.graph.proto.AssociateOp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssociateOp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AssociateOp(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 gov.nist.csd.pm.pap.op.graph.proto.AssociateOp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/AssociateOpOrBuilder.java b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/AssociateOpOrBuilder.java new file mode 100644 index 00000000..691f5ded --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/AssociateOpOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: graph.proto + +package gov.nist.csd.pm.pap.op.graph.proto; + +public interface AssociateOpOrBuilder extends + // @@protoc_insertion_point(interface_extends:AssociateOp) + com.google.protobuf.MessageOrBuilder { + + /** + * string ua = 1; + * @return The ua. + */ + java.lang.String getUa(); + /** + * string ua = 1; + * @return The bytes for ua. + */ + com.google.protobuf.ByteString + getUaBytes(); + + /** + * string target = 2; + * @return The target. + */ + java.lang.String getTarget(); + /** + * string target = 2; + * @return The bytes for target. + */ + com.google.protobuf.ByteString + getTargetBytes(); + + /** + * repeated string arset = 3; + * @return A list containing the arset. + */ + java.util.List + getArsetList(); + /** + * repeated string arset = 3; + * @return The count of arset. + */ + int getArsetCount(); + /** + * repeated string arset = 3; + * @param index The index of the element to return. + * @return The arset at the given index. + */ + java.lang.String getArset(int index); + /** + * repeated string arset = 3; + * @param index The index of the value to return. + * @return The bytes of the arset at the given index. + */ + com.google.protobuf.ByteString + getArsetBytes(int index); +} diff --git a/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreateObjectAttributeOp.java b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreateObjectAttributeOp.java new file mode 100644 index 00000000..f532bea4 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreateObjectAttributeOp.java @@ -0,0 +1,754 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: graph.proto + +package gov.nist.csd.pm.pap.op.graph.proto; + +/** + * Protobuf type {@code CreateObjectAttributeOp} + */ +public final class CreateObjectAttributeOp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:CreateObjectAttributeOp) + CreateObjectAttributeOpOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateObjectAttributeOp.newBuilder() to construct. + private CreateObjectAttributeOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateObjectAttributeOp() { + name_ = ""; + descendants_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateObjectAttributeOp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateObjectAttributeOp( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + descendants_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + descendants_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + descendants_ = descendants_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_CreateObjectAttributeOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_CreateObjectAttributeOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp.class, gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCENDANTS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList descendants_; + /** + * repeated string descendants = 2; + * @return A list containing the descendants. + */ + public com.google.protobuf.ProtocolStringList + getDescendantsList() { + return descendants_; + } + /** + * repeated string descendants = 2; + * @return The count of descendants. + */ + public int getDescendantsCount() { + return descendants_.size(); + } + /** + * repeated string descendants = 2; + * @param index The index of the element to return. + * @return The descendants at the given index. + */ + public java.lang.String getDescendants(int index) { + return descendants_.get(index); + } + /** + * repeated string descendants = 2; + * @param index The index of the value to return. + * @return The bytes of the descendants at the given index. + */ + public com.google.protobuf.ByteString + getDescendantsBytes(int index) { + return descendants_.getByteString(index); + } + + 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + for (int i = 0; i < descendants_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, descendants_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + { + int dataSize = 0; + for (int i = 0; i < descendants_.size(); i++) { + dataSize += computeStringSizeNoTag(descendants_.getRaw(i)); + } + size += dataSize; + size += 1 * getDescendantsList().size(); + } + 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 gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp)) { + return super.equals(obj); + } + gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp other = (gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDescendantsList() + .equals(other.getDescendantsList())) 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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getDescendantsCount() > 0) { + hash = (37 * hash) + DESCENDANTS_FIELD_NUMBER; + hash = (53 * hash) + getDescendantsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp 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 gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp 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 gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp 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(gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp 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; + } + /** + * Protobuf type {@code CreateObjectAttributeOp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:CreateObjectAttributeOp) + gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_CreateObjectAttributeOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_CreateObjectAttributeOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp.class, gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp.Builder.class); + } + + // Construct using gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp.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(); + name_ = ""; + + descendants_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_CreateObjectAttributeOp_descriptor; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp getDefaultInstanceForType() { + return gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp.getDefaultInstance(); + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp build() { + gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp buildPartial() { + gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp result = new gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (((bitField0_ & 0x00000001) != 0)) { + descendants_ = descendants_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.descendants_ = descendants_; + 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 gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp) { + return mergeFrom((gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp other) { + if (other == gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.descendants_.isEmpty()) { + if (descendants_.isEmpty()) { + descendants_ = other.descendants_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDescendantsIsMutable(); + descendants_.addAll(other.descendants_); + } + 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 { + gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList descendants_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureDescendantsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + descendants_ = new com.google.protobuf.LazyStringArrayList(descendants_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string descendants = 2; + * @return A list containing the descendants. + */ + public com.google.protobuf.ProtocolStringList + getDescendantsList() { + return descendants_.getUnmodifiableView(); + } + /** + * repeated string descendants = 2; + * @return The count of descendants. + */ + public int getDescendantsCount() { + return descendants_.size(); + } + /** + * repeated string descendants = 2; + * @param index The index of the element to return. + * @return The descendants at the given index. + */ + public java.lang.String getDescendants(int index) { + return descendants_.get(index); + } + /** + * repeated string descendants = 2; + * @param index The index of the value to return. + * @return The bytes of the descendants at the given index. + */ + public com.google.protobuf.ByteString + getDescendantsBytes(int index) { + return descendants_.getByteString(index); + } + /** + * repeated string descendants = 2; + * @param index The index to set the value at. + * @param value The descendants to set. + * @return This builder for chaining. + */ + public Builder setDescendants( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDescendantsIsMutable(); + descendants_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string descendants = 2; + * @param value The descendants to add. + * @return This builder for chaining. + */ + public Builder addDescendants( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDescendantsIsMutable(); + descendants_.add(value); + onChanged(); + return this; + } + /** + * repeated string descendants = 2; + * @param values The descendants to add. + * @return This builder for chaining. + */ + public Builder addAllDescendants( + java.lang.Iterable values) { + ensureDescendantsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, descendants_); + onChanged(); + return this; + } + /** + * repeated string descendants = 2; + * @return This builder for chaining. + */ + public Builder clearDescendants() { + descendants_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string descendants = 2; + * @param value The bytes of the descendants to add. + * @return This builder for chaining. + */ + public Builder addDescendantsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDescendantsIsMutable(); + descendants_.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:CreateObjectAttributeOp) + } + + // @@protoc_insertion_point(class_scope:CreateObjectAttributeOp) + private static final gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp(); + } + + public static gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateObjectAttributeOp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateObjectAttributeOp(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 gov.nist.csd.pm.pap.op.graph.proto.CreateObjectAttributeOp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreateObjectAttributeOpOrBuilder.java b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreateObjectAttributeOpOrBuilder.java new file mode 100644 index 00000000..006da765 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreateObjectAttributeOpOrBuilder.java @@ -0,0 +1,46 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: graph.proto + +package gov.nist.csd.pm.pap.op.graph.proto; + +public interface CreateObjectAttributeOpOrBuilder extends + // @@protoc_insertion_point(interface_extends:CreateObjectAttributeOp) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * repeated string descendants = 2; + * @return A list containing the descendants. + */ + java.util.List + getDescendantsList(); + /** + * repeated string descendants = 2; + * @return The count of descendants. + */ + int getDescendantsCount(); + /** + * repeated string descendants = 2; + * @param index The index of the element to return. + * @return The descendants at the given index. + */ + java.lang.String getDescendants(int index); + /** + * repeated string descendants = 2; + * @param index The index of the value to return. + * @return The bytes of the descendants at the given index. + */ + com.google.protobuf.ByteString + getDescendantsBytes(int index); +} diff --git a/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreateObjectOp.java b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreateObjectOp.java new file mode 100644 index 00000000..b941ce98 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreateObjectOp.java @@ -0,0 +1,754 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: graph.proto + +package gov.nist.csd.pm.pap.op.graph.proto; + +/** + * Protobuf type {@code CreateObjectOp} + */ +public final class CreateObjectOp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:CreateObjectOp) + CreateObjectOpOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateObjectOp.newBuilder() to construct. + private CreateObjectOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateObjectOp() { + name_ = ""; + descendants_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateObjectOp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateObjectOp( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + descendants_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + descendants_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + descendants_ = descendants_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_CreateObjectOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_CreateObjectOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp.class, gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCENDANTS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList descendants_; + /** + * repeated string descendants = 2; + * @return A list containing the descendants. + */ + public com.google.protobuf.ProtocolStringList + getDescendantsList() { + return descendants_; + } + /** + * repeated string descendants = 2; + * @return The count of descendants. + */ + public int getDescendantsCount() { + return descendants_.size(); + } + /** + * repeated string descendants = 2; + * @param index The index of the element to return. + * @return The descendants at the given index. + */ + public java.lang.String getDescendants(int index) { + return descendants_.get(index); + } + /** + * repeated string descendants = 2; + * @param index The index of the value to return. + * @return The bytes of the descendants at the given index. + */ + public com.google.protobuf.ByteString + getDescendantsBytes(int index) { + return descendants_.getByteString(index); + } + + 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + for (int i = 0; i < descendants_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, descendants_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + { + int dataSize = 0; + for (int i = 0; i < descendants_.size(); i++) { + dataSize += computeStringSizeNoTag(descendants_.getRaw(i)); + } + size += dataSize; + size += 1 * getDescendantsList().size(); + } + 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 gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp)) { + return super.equals(obj); + } + gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp other = (gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDescendantsList() + .equals(other.getDescendantsList())) 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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getDescendantsCount() > 0) { + hash = (37 * hash) + DESCENDANTS_FIELD_NUMBER; + hash = (53 * hash) + getDescendantsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp 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 gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp 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 gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp 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(gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp 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; + } + /** + * Protobuf type {@code CreateObjectOp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:CreateObjectOp) + gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_CreateObjectOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_CreateObjectOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp.class, gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp.Builder.class); + } + + // Construct using gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp.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(); + name_ = ""; + + descendants_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_CreateObjectOp_descriptor; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp getDefaultInstanceForType() { + return gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp.getDefaultInstance(); + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp build() { + gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp buildPartial() { + gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp result = new gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (((bitField0_ & 0x00000001) != 0)) { + descendants_ = descendants_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.descendants_ = descendants_; + 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 gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp) { + return mergeFrom((gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp other) { + if (other == gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.descendants_.isEmpty()) { + if (descendants_.isEmpty()) { + descendants_ = other.descendants_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDescendantsIsMutable(); + descendants_.addAll(other.descendants_); + } + 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 { + gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList descendants_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureDescendantsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + descendants_ = new com.google.protobuf.LazyStringArrayList(descendants_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string descendants = 2; + * @return A list containing the descendants. + */ + public com.google.protobuf.ProtocolStringList + getDescendantsList() { + return descendants_.getUnmodifiableView(); + } + /** + * repeated string descendants = 2; + * @return The count of descendants. + */ + public int getDescendantsCount() { + return descendants_.size(); + } + /** + * repeated string descendants = 2; + * @param index The index of the element to return. + * @return The descendants at the given index. + */ + public java.lang.String getDescendants(int index) { + return descendants_.get(index); + } + /** + * repeated string descendants = 2; + * @param index The index of the value to return. + * @return The bytes of the descendants at the given index. + */ + public com.google.protobuf.ByteString + getDescendantsBytes(int index) { + return descendants_.getByteString(index); + } + /** + * repeated string descendants = 2; + * @param index The index to set the value at. + * @param value The descendants to set. + * @return This builder for chaining. + */ + public Builder setDescendants( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDescendantsIsMutable(); + descendants_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string descendants = 2; + * @param value The descendants to add. + * @return This builder for chaining. + */ + public Builder addDescendants( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDescendantsIsMutable(); + descendants_.add(value); + onChanged(); + return this; + } + /** + * repeated string descendants = 2; + * @param values The descendants to add. + * @return This builder for chaining. + */ + public Builder addAllDescendants( + java.lang.Iterable values) { + ensureDescendantsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, descendants_); + onChanged(); + return this; + } + /** + * repeated string descendants = 2; + * @return This builder for chaining. + */ + public Builder clearDescendants() { + descendants_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string descendants = 2; + * @param value The bytes of the descendants to add. + * @return This builder for chaining. + */ + public Builder addDescendantsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDescendantsIsMutable(); + descendants_.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:CreateObjectOp) + } + + // @@protoc_insertion_point(class_scope:CreateObjectOp) + private static final gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp(); + } + + public static gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateObjectOp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateObjectOp(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 gov.nist.csd.pm.pap.op.graph.proto.CreateObjectOp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreateObjectOpOrBuilder.java b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreateObjectOpOrBuilder.java new file mode 100644 index 00000000..80cd79fa --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreateObjectOpOrBuilder.java @@ -0,0 +1,46 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: graph.proto + +package gov.nist.csd.pm.pap.op.graph.proto; + +public interface CreateObjectOpOrBuilder extends + // @@protoc_insertion_point(interface_extends:CreateObjectOp) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * repeated string descendants = 2; + * @return A list containing the descendants. + */ + java.util.List + getDescendantsList(); + /** + * repeated string descendants = 2; + * @return The count of descendants. + */ + int getDescendantsCount(); + /** + * repeated string descendants = 2; + * @param index The index of the element to return. + * @return The descendants at the given index. + */ + java.lang.String getDescendants(int index); + /** + * repeated string descendants = 2; + * @param index The index of the value to return. + * @return The bytes of the descendants at the given index. + */ + com.google.protobuf.ByteString + getDescendantsBytes(int index); +} diff --git a/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreatePolicyClassOp.java b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreatePolicyClassOp.java new file mode 100644 index 00000000..9af1cb85 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreatePolicyClassOp.java @@ -0,0 +1,559 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: graph.proto + +package gov.nist.csd.pm.pap.op.graph.proto; + +/** + * Protobuf type {@code CreatePolicyClassOp} + */ +public final class CreatePolicyClassOp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:CreatePolicyClassOp) + CreatePolicyClassOpOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreatePolicyClassOp.newBuilder() to construct. + private CreatePolicyClassOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreatePolicyClassOp() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreatePolicyClassOp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreatePolicyClassOp( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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 gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_CreatePolicyClassOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_CreatePolicyClassOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp.class, gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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 gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp)) { + return super.equals(obj); + } + gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp other = (gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp) obj; + + if (!getName() + .equals(other.getName())) 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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp 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 gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp 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 gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp 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(gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp 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; + } + /** + * Protobuf type {@code CreatePolicyClassOp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:CreatePolicyClassOp) + gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_CreatePolicyClassOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_CreatePolicyClassOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp.class, gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp.Builder.class); + } + + // Construct using gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp.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(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_CreatePolicyClassOp_descriptor; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp getDefaultInstanceForType() { + return gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp.getDefaultInstance(); + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp build() { + gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp buildPartial() { + gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp result = new gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp(this); + result.name_ = name_; + 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 gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp) { + return mergeFrom((gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp other) { + if (other == gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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 { + gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = 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:CreatePolicyClassOp) + } + + // @@protoc_insertion_point(class_scope:CreatePolicyClassOp) + private static final gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp(); + } + + public static gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePolicyClassOp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreatePolicyClassOp(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 gov.nist.csd.pm.pap.op.graph.proto.CreatePolicyClassOp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreatePolicyClassOpOrBuilder.java b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreatePolicyClassOpOrBuilder.java new file mode 100644 index 00000000..fd63044e --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreatePolicyClassOpOrBuilder.java @@ -0,0 +1,21 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: graph.proto + +package gov.nist.csd.pm.pap.op.graph.proto; + +public interface CreatePolicyClassOpOrBuilder extends + // @@protoc_insertion_point(interface_extends:CreatePolicyClassOp) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreateUserAttributeOp.java b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreateUserAttributeOp.java new file mode 100644 index 00000000..69ce3021 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreateUserAttributeOp.java @@ -0,0 +1,754 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: graph.proto + +package gov.nist.csd.pm.pap.op.graph.proto; + +/** + * Protobuf type {@code CreateUserAttributeOp} + */ +public final class CreateUserAttributeOp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:CreateUserAttributeOp) + CreateUserAttributeOpOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateUserAttributeOp.newBuilder() to construct. + private CreateUserAttributeOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateUserAttributeOp() { + name_ = ""; + descendants_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateUserAttributeOp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateUserAttributeOp( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + descendants_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + descendants_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + descendants_ = descendants_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_CreateUserAttributeOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_CreateUserAttributeOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp.class, gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCENDANTS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList descendants_; + /** + * repeated string descendants = 2; + * @return A list containing the descendants. + */ + public com.google.protobuf.ProtocolStringList + getDescendantsList() { + return descendants_; + } + /** + * repeated string descendants = 2; + * @return The count of descendants. + */ + public int getDescendantsCount() { + return descendants_.size(); + } + /** + * repeated string descendants = 2; + * @param index The index of the element to return. + * @return The descendants at the given index. + */ + public java.lang.String getDescendants(int index) { + return descendants_.get(index); + } + /** + * repeated string descendants = 2; + * @param index The index of the value to return. + * @return The bytes of the descendants at the given index. + */ + public com.google.protobuf.ByteString + getDescendantsBytes(int index) { + return descendants_.getByteString(index); + } + + 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + for (int i = 0; i < descendants_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, descendants_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + { + int dataSize = 0; + for (int i = 0; i < descendants_.size(); i++) { + dataSize += computeStringSizeNoTag(descendants_.getRaw(i)); + } + size += dataSize; + size += 1 * getDescendantsList().size(); + } + 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 gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp)) { + return super.equals(obj); + } + gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp other = (gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDescendantsList() + .equals(other.getDescendantsList())) 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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getDescendantsCount() > 0) { + hash = (37 * hash) + DESCENDANTS_FIELD_NUMBER; + hash = (53 * hash) + getDescendantsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp 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 gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp 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 gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp 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(gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp 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; + } + /** + * Protobuf type {@code CreateUserAttributeOp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:CreateUserAttributeOp) + gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_CreateUserAttributeOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_CreateUserAttributeOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp.class, gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp.Builder.class); + } + + // Construct using gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp.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(); + name_ = ""; + + descendants_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_CreateUserAttributeOp_descriptor; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp getDefaultInstanceForType() { + return gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp.getDefaultInstance(); + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp build() { + gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp buildPartial() { + gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp result = new gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (((bitField0_ & 0x00000001) != 0)) { + descendants_ = descendants_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.descendants_ = descendants_; + 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 gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp) { + return mergeFrom((gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp other) { + if (other == gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.descendants_.isEmpty()) { + if (descendants_.isEmpty()) { + descendants_ = other.descendants_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDescendantsIsMutable(); + descendants_.addAll(other.descendants_); + } + 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 { + gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList descendants_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureDescendantsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + descendants_ = new com.google.protobuf.LazyStringArrayList(descendants_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string descendants = 2; + * @return A list containing the descendants. + */ + public com.google.protobuf.ProtocolStringList + getDescendantsList() { + return descendants_.getUnmodifiableView(); + } + /** + * repeated string descendants = 2; + * @return The count of descendants. + */ + public int getDescendantsCount() { + return descendants_.size(); + } + /** + * repeated string descendants = 2; + * @param index The index of the element to return. + * @return The descendants at the given index. + */ + public java.lang.String getDescendants(int index) { + return descendants_.get(index); + } + /** + * repeated string descendants = 2; + * @param index The index of the value to return. + * @return The bytes of the descendants at the given index. + */ + public com.google.protobuf.ByteString + getDescendantsBytes(int index) { + return descendants_.getByteString(index); + } + /** + * repeated string descendants = 2; + * @param index The index to set the value at. + * @param value The descendants to set. + * @return This builder for chaining. + */ + public Builder setDescendants( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDescendantsIsMutable(); + descendants_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string descendants = 2; + * @param value The descendants to add. + * @return This builder for chaining. + */ + public Builder addDescendants( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDescendantsIsMutable(); + descendants_.add(value); + onChanged(); + return this; + } + /** + * repeated string descendants = 2; + * @param values The descendants to add. + * @return This builder for chaining. + */ + public Builder addAllDescendants( + java.lang.Iterable values) { + ensureDescendantsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, descendants_); + onChanged(); + return this; + } + /** + * repeated string descendants = 2; + * @return This builder for chaining. + */ + public Builder clearDescendants() { + descendants_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string descendants = 2; + * @param value The bytes of the descendants to add. + * @return This builder for chaining. + */ + public Builder addDescendantsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDescendantsIsMutable(); + descendants_.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:CreateUserAttributeOp) + } + + // @@protoc_insertion_point(class_scope:CreateUserAttributeOp) + private static final gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp(); + } + + public static gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateUserAttributeOp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateUserAttributeOp(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 gov.nist.csd.pm.pap.op.graph.proto.CreateUserAttributeOp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreateUserAttributeOpOrBuilder.java b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreateUserAttributeOpOrBuilder.java new file mode 100644 index 00000000..8837ec5b --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreateUserAttributeOpOrBuilder.java @@ -0,0 +1,46 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: graph.proto + +package gov.nist.csd.pm.pap.op.graph.proto; + +public interface CreateUserAttributeOpOrBuilder extends + // @@protoc_insertion_point(interface_extends:CreateUserAttributeOp) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * repeated string descendants = 2; + * @return A list containing the descendants. + */ + java.util.List + getDescendantsList(); + /** + * repeated string descendants = 2; + * @return The count of descendants. + */ + int getDescendantsCount(); + /** + * repeated string descendants = 2; + * @param index The index of the element to return. + * @return The descendants at the given index. + */ + java.lang.String getDescendants(int index); + /** + * repeated string descendants = 2; + * @param index The index of the value to return. + * @return The bytes of the descendants at the given index. + */ + com.google.protobuf.ByteString + getDescendantsBytes(int index); +} diff --git a/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreateUserOp.java b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreateUserOp.java new file mode 100644 index 00000000..72beef08 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreateUserOp.java @@ -0,0 +1,754 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: graph.proto + +package gov.nist.csd.pm.pap.op.graph.proto; + +/** + * Protobuf type {@code CreateUserOp} + */ +public final class CreateUserOp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:CreateUserOp) + CreateUserOpOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateUserOp.newBuilder() to construct. + private CreateUserOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateUserOp() { + name_ = ""; + descendants_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateUserOp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateUserOp( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + descendants_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + descendants_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + descendants_ = descendants_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_CreateUserOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_CreateUserOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp.class, gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCENDANTS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList descendants_; + /** + * repeated string descendants = 2; + * @return A list containing the descendants. + */ + public com.google.protobuf.ProtocolStringList + getDescendantsList() { + return descendants_; + } + /** + * repeated string descendants = 2; + * @return The count of descendants. + */ + public int getDescendantsCount() { + return descendants_.size(); + } + /** + * repeated string descendants = 2; + * @param index The index of the element to return. + * @return The descendants at the given index. + */ + public java.lang.String getDescendants(int index) { + return descendants_.get(index); + } + /** + * repeated string descendants = 2; + * @param index The index of the value to return. + * @return The bytes of the descendants at the given index. + */ + public com.google.protobuf.ByteString + getDescendantsBytes(int index) { + return descendants_.getByteString(index); + } + + 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + for (int i = 0; i < descendants_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, descendants_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + { + int dataSize = 0; + for (int i = 0; i < descendants_.size(); i++) { + dataSize += computeStringSizeNoTag(descendants_.getRaw(i)); + } + size += dataSize; + size += 1 * getDescendantsList().size(); + } + 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 gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp)) { + return super.equals(obj); + } + gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp other = (gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDescendantsList() + .equals(other.getDescendantsList())) 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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getDescendantsCount() > 0) { + hash = (37 * hash) + DESCENDANTS_FIELD_NUMBER; + hash = (53 * hash) + getDescendantsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp 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 gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp 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 gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp 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(gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp 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; + } + /** + * Protobuf type {@code CreateUserOp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:CreateUserOp) + gov.nist.csd.pm.pap.op.graph.proto.CreateUserOpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_CreateUserOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_CreateUserOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp.class, gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp.Builder.class); + } + + // Construct using gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp.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(); + name_ = ""; + + descendants_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_CreateUserOp_descriptor; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp getDefaultInstanceForType() { + return gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp.getDefaultInstance(); + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp build() { + gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp buildPartial() { + gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp result = new gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (((bitField0_ & 0x00000001) != 0)) { + descendants_ = descendants_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.descendants_ = descendants_; + 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 gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp) { + return mergeFrom((gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp other) { + if (other == gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.descendants_.isEmpty()) { + if (descendants_.isEmpty()) { + descendants_ = other.descendants_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDescendantsIsMutable(); + descendants_.addAll(other.descendants_); + } + 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 { + gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList descendants_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureDescendantsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + descendants_ = new com.google.protobuf.LazyStringArrayList(descendants_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string descendants = 2; + * @return A list containing the descendants. + */ + public com.google.protobuf.ProtocolStringList + getDescendantsList() { + return descendants_.getUnmodifiableView(); + } + /** + * repeated string descendants = 2; + * @return The count of descendants. + */ + public int getDescendantsCount() { + return descendants_.size(); + } + /** + * repeated string descendants = 2; + * @param index The index of the element to return. + * @return The descendants at the given index. + */ + public java.lang.String getDescendants(int index) { + return descendants_.get(index); + } + /** + * repeated string descendants = 2; + * @param index The index of the value to return. + * @return The bytes of the descendants at the given index. + */ + public com.google.protobuf.ByteString + getDescendantsBytes(int index) { + return descendants_.getByteString(index); + } + /** + * repeated string descendants = 2; + * @param index The index to set the value at. + * @param value The descendants to set. + * @return This builder for chaining. + */ + public Builder setDescendants( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDescendantsIsMutable(); + descendants_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string descendants = 2; + * @param value The descendants to add. + * @return This builder for chaining. + */ + public Builder addDescendants( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDescendantsIsMutable(); + descendants_.add(value); + onChanged(); + return this; + } + /** + * repeated string descendants = 2; + * @param values The descendants to add. + * @return This builder for chaining. + */ + public Builder addAllDescendants( + java.lang.Iterable values) { + ensureDescendantsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, descendants_); + onChanged(); + return this; + } + /** + * repeated string descendants = 2; + * @return This builder for chaining. + */ + public Builder clearDescendants() { + descendants_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string descendants = 2; + * @param value The bytes of the descendants to add. + * @return This builder for chaining. + */ + public Builder addDescendantsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDescendantsIsMutable(); + descendants_.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:CreateUserOp) + } + + // @@protoc_insertion_point(class_scope:CreateUserOp) + private static final gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp(); + } + + public static gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateUserOp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateUserOp(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 gov.nist.csd.pm.pap.op.graph.proto.CreateUserOp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreateUserOpOrBuilder.java b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreateUserOpOrBuilder.java new file mode 100644 index 00000000..3c970977 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/CreateUserOpOrBuilder.java @@ -0,0 +1,46 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: graph.proto + +package gov.nist.csd.pm.pap.op.graph.proto; + +public interface CreateUserOpOrBuilder extends + // @@protoc_insertion_point(interface_extends:CreateUserOp) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * repeated string descendants = 2; + * @return A list containing the descendants. + */ + java.util.List + getDescendantsList(); + /** + * repeated string descendants = 2; + * @return The count of descendants. + */ + int getDescendantsCount(); + /** + * repeated string descendants = 2; + * @param index The index of the element to return. + * @return The descendants at the given index. + */ + java.lang.String getDescendants(int index); + /** + * repeated string descendants = 2; + * @param index The index of the value to return. + * @return The bytes of the descendants at the given index. + */ + com.google.protobuf.ByteString + getDescendantsBytes(int index); +} diff --git a/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/DeassignOp.java b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/DeassignOp.java new file mode 100644 index 00000000..6a11f2d8 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/DeassignOp.java @@ -0,0 +1,754 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: graph.proto + +package gov.nist.csd.pm.pap.op.graph.proto; + +/** + * Protobuf type {@code DeassignOp} + */ +public final class DeassignOp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:DeassignOp) + DeassignOpOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeassignOp.newBuilder() to construct. + private DeassignOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeassignOp() { + ascendant_ = ""; + descendants_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeassignOp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeassignOp( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + ascendant_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + descendants_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + descendants_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + descendants_ = descendants_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_DeassignOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_DeassignOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.graph.proto.DeassignOp.class, gov.nist.csd.pm.pap.op.graph.proto.DeassignOp.Builder.class); + } + + public static final int ASCENDANT_FIELD_NUMBER = 1; + private volatile java.lang.Object ascendant_; + /** + * string ascendant = 1; + * @return The ascendant. + */ + @java.lang.Override + public java.lang.String getAscendant() { + java.lang.Object ref = ascendant_; + 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(); + ascendant_ = s; + return s; + } + } + /** + * string ascendant = 1; + * @return The bytes for ascendant. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAscendantBytes() { + java.lang.Object ref = ascendant_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ascendant_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCENDANTS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList descendants_; + /** + * repeated string descendants = 2; + * @return A list containing the descendants. + */ + public com.google.protobuf.ProtocolStringList + getDescendantsList() { + return descendants_; + } + /** + * repeated string descendants = 2; + * @return The count of descendants. + */ + public int getDescendantsCount() { + return descendants_.size(); + } + /** + * repeated string descendants = 2; + * @param index The index of the element to return. + * @return The descendants at the given index. + */ + public java.lang.String getDescendants(int index) { + return descendants_.get(index); + } + /** + * repeated string descendants = 2; + * @param index The index of the value to return. + * @return The bytes of the descendants at the given index. + */ + public com.google.protobuf.ByteString + getDescendantsBytes(int index) { + return descendants_.getByteString(index); + } + + 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.GeneratedMessageV3.isStringEmpty(ascendant_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ascendant_); + } + for (int i = 0; i < descendants_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, descendants_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ascendant_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, ascendant_); + } + { + int dataSize = 0; + for (int i = 0; i < descendants_.size(); i++) { + dataSize += computeStringSizeNoTag(descendants_.getRaw(i)); + } + size += dataSize; + size += 1 * getDescendantsList().size(); + } + 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 gov.nist.csd.pm.pap.op.graph.proto.DeassignOp)) { + return super.equals(obj); + } + gov.nist.csd.pm.pap.op.graph.proto.DeassignOp other = (gov.nist.csd.pm.pap.op.graph.proto.DeassignOp) obj; + + if (!getAscendant() + .equals(other.getAscendant())) return false; + if (!getDescendantsList() + .equals(other.getDescendantsList())) 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(); + hash = (37 * hash) + ASCENDANT_FIELD_NUMBER; + hash = (53 * hash) + getAscendant().hashCode(); + if (getDescendantsCount() > 0) { + hash = (37 * hash) + DESCENDANTS_FIELD_NUMBER; + hash = (53 * hash) + getDescendantsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static gov.nist.csd.pm.pap.op.graph.proto.DeassignOp parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.DeassignOp parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.DeassignOp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.DeassignOp parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.DeassignOp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.DeassignOp parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.DeassignOp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.DeassignOp 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 gov.nist.csd.pm.pap.op.graph.proto.DeassignOp parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.DeassignOp 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 gov.nist.csd.pm.pap.op.graph.proto.DeassignOp parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.DeassignOp 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(gov.nist.csd.pm.pap.op.graph.proto.DeassignOp 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; + } + /** + * Protobuf type {@code DeassignOp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:DeassignOp) + gov.nist.csd.pm.pap.op.graph.proto.DeassignOpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_DeassignOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_DeassignOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.graph.proto.DeassignOp.class, gov.nist.csd.pm.pap.op.graph.proto.DeassignOp.Builder.class); + } + + // Construct using gov.nist.csd.pm.pap.op.graph.proto.DeassignOp.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(); + ascendant_ = ""; + + descendants_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_DeassignOp_descriptor; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.DeassignOp getDefaultInstanceForType() { + return gov.nist.csd.pm.pap.op.graph.proto.DeassignOp.getDefaultInstance(); + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.DeassignOp build() { + gov.nist.csd.pm.pap.op.graph.proto.DeassignOp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.DeassignOp buildPartial() { + gov.nist.csd.pm.pap.op.graph.proto.DeassignOp result = new gov.nist.csd.pm.pap.op.graph.proto.DeassignOp(this); + int from_bitField0_ = bitField0_; + result.ascendant_ = ascendant_; + if (((bitField0_ & 0x00000001) != 0)) { + descendants_ = descendants_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.descendants_ = descendants_; + 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 gov.nist.csd.pm.pap.op.graph.proto.DeassignOp) { + return mergeFrom((gov.nist.csd.pm.pap.op.graph.proto.DeassignOp)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(gov.nist.csd.pm.pap.op.graph.proto.DeassignOp other) { + if (other == gov.nist.csd.pm.pap.op.graph.proto.DeassignOp.getDefaultInstance()) return this; + if (!other.getAscendant().isEmpty()) { + ascendant_ = other.ascendant_; + onChanged(); + } + if (!other.descendants_.isEmpty()) { + if (descendants_.isEmpty()) { + descendants_ = other.descendants_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDescendantsIsMutable(); + descendants_.addAll(other.descendants_); + } + 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 { + gov.nist.csd.pm.pap.op.graph.proto.DeassignOp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (gov.nist.csd.pm.pap.op.graph.proto.DeassignOp) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object ascendant_ = ""; + /** + * string ascendant = 1; + * @return The ascendant. + */ + public java.lang.String getAscendant() { + java.lang.Object ref = ascendant_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ascendant_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string ascendant = 1; + * @return The bytes for ascendant. + */ + public com.google.protobuf.ByteString + getAscendantBytes() { + java.lang.Object ref = ascendant_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + ascendant_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string ascendant = 1; + * @param value The ascendant to set. + * @return This builder for chaining. + */ + public Builder setAscendant( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ascendant_ = value; + onChanged(); + return this; + } + /** + * string ascendant = 1; + * @return This builder for chaining. + */ + public Builder clearAscendant() { + + ascendant_ = getDefaultInstance().getAscendant(); + onChanged(); + return this; + } + /** + * string ascendant = 1; + * @param value The bytes for ascendant to set. + * @return This builder for chaining. + */ + public Builder setAscendantBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ascendant_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList descendants_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureDescendantsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + descendants_ = new com.google.protobuf.LazyStringArrayList(descendants_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string descendants = 2; + * @return A list containing the descendants. + */ + public com.google.protobuf.ProtocolStringList + getDescendantsList() { + return descendants_.getUnmodifiableView(); + } + /** + * repeated string descendants = 2; + * @return The count of descendants. + */ + public int getDescendantsCount() { + return descendants_.size(); + } + /** + * repeated string descendants = 2; + * @param index The index of the element to return. + * @return The descendants at the given index. + */ + public java.lang.String getDescendants(int index) { + return descendants_.get(index); + } + /** + * repeated string descendants = 2; + * @param index The index of the value to return. + * @return The bytes of the descendants at the given index. + */ + public com.google.protobuf.ByteString + getDescendantsBytes(int index) { + return descendants_.getByteString(index); + } + /** + * repeated string descendants = 2; + * @param index The index to set the value at. + * @param value The descendants to set. + * @return This builder for chaining. + */ + public Builder setDescendants( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDescendantsIsMutable(); + descendants_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string descendants = 2; + * @param value The descendants to add. + * @return This builder for chaining. + */ + public Builder addDescendants( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDescendantsIsMutable(); + descendants_.add(value); + onChanged(); + return this; + } + /** + * repeated string descendants = 2; + * @param values The descendants to add. + * @return This builder for chaining. + */ + public Builder addAllDescendants( + java.lang.Iterable values) { + ensureDescendantsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, descendants_); + onChanged(); + return this; + } + /** + * repeated string descendants = 2; + * @return This builder for chaining. + */ + public Builder clearDescendants() { + descendants_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string descendants = 2; + * @param value The bytes of the descendants to add. + * @return This builder for chaining. + */ + public Builder addDescendantsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDescendantsIsMutable(); + descendants_.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:DeassignOp) + } + + // @@protoc_insertion_point(class_scope:DeassignOp) + private static final gov.nist.csd.pm.pap.op.graph.proto.DeassignOp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new gov.nist.csd.pm.pap.op.graph.proto.DeassignOp(); + } + + public static gov.nist.csd.pm.pap.op.graph.proto.DeassignOp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeassignOp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeassignOp(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 gov.nist.csd.pm.pap.op.graph.proto.DeassignOp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/DeassignOpOrBuilder.java b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/DeassignOpOrBuilder.java new file mode 100644 index 00000000..66333be5 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/DeassignOpOrBuilder.java @@ -0,0 +1,46 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: graph.proto + +package gov.nist.csd.pm.pap.op.graph.proto; + +public interface DeassignOpOrBuilder extends + // @@protoc_insertion_point(interface_extends:DeassignOp) + com.google.protobuf.MessageOrBuilder { + + /** + * string ascendant = 1; + * @return The ascendant. + */ + java.lang.String getAscendant(); + /** + * string ascendant = 1; + * @return The bytes for ascendant. + */ + com.google.protobuf.ByteString + getAscendantBytes(); + + /** + * repeated string descendants = 2; + * @return A list containing the descendants. + */ + java.util.List + getDescendantsList(); + /** + * repeated string descendants = 2; + * @return The count of descendants. + */ + int getDescendantsCount(); + /** + * repeated string descendants = 2; + * @param index The index of the element to return. + * @return The descendants at the given index. + */ + java.lang.String getDescendants(int index); + /** + * repeated string descendants = 2; + * @param index The index of the value to return. + * @return The bytes of the descendants at the given index. + */ + com.google.protobuf.ByteString + getDescendantsBytes(int index); +} diff --git a/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/DeleteNodeOp.java b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/DeleteNodeOp.java new file mode 100644 index 00000000..836c7224 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/DeleteNodeOp.java @@ -0,0 +1,559 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: graph.proto + +package gov.nist.csd.pm.pap.op.graph.proto; + +/** + * Protobuf type {@code DeleteNodeOp} + */ +public final class DeleteNodeOp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:DeleteNodeOp) + DeleteNodeOpOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteNodeOp.newBuilder() to construct. + private DeleteNodeOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteNodeOp() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteNodeOp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteNodeOp( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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 gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_DeleteNodeOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_DeleteNodeOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp.class, gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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 gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp)) { + return super.equals(obj); + } + gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp other = (gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp) obj; + + if (!getName() + .equals(other.getName())) 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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp 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 gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp 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 gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp 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(gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp 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; + } + /** + * Protobuf type {@code DeleteNodeOp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:DeleteNodeOp) + gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_DeleteNodeOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_DeleteNodeOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp.class, gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp.Builder.class); + } + + // Construct using gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp.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(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_DeleteNodeOp_descriptor; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp getDefaultInstanceForType() { + return gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp.getDefaultInstance(); + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp build() { + gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp buildPartial() { + gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp result = new gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp(this); + result.name_ = name_; + 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 gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp) { + return mergeFrom((gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp other) { + if (other == gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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 { + gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = 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:DeleteNodeOp) + } + + // @@protoc_insertion_point(class_scope:DeleteNodeOp) + private static final gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp(); + } + + public static gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteNodeOp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteNodeOp(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 gov.nist.csd.pm.pap.op.graph.proto.DeleteNodeOp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/DeleteNodeOpOrBuilder.java b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/DeleteNodeOpOrBuilder.java new file mode 100644 index 00000000..696e59a5 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/DeleteNodeOpOrBuilder.java @@ -0,0 +1,21 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: graph.proto + +package gov.nist.csd.pm.pap.op.graph.proto; + +public interface DeleteNodeOpOrBuilder extends + // @@protoc_insertion_point(interface_extends:DeleteNodeOp) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/GraphProto.java b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/GraphProto.java new file mode 100644 index 00000000..04887fde --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/GraphProto.java @@ -0,0 +1,172 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: graph.proto + +package gov.nist.csd.pm.pap.op.graph.proto; + +public final class GraphProto { + private GraphProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_AssignOp_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_AssignOp_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_AssociateOp_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_AssociateOp_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_CreatePolicyClassOp_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_CreatePolicyClassOp_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_CreateUserAttributeOp_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_CreateUserAttributeOp_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_CreateObjectAttributeOp_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_CreateObjectAttributeOp_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_CreateUserOp_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_CreateUserOp_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_CreateObjectOp_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_CreateObjectOp_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_DeassignOp_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_DeassignOp_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_DeleteNodeOp_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_DeleteNodeOp_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_SetNodePropertiesOp_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_SetNodePropertiesOp_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_SetNodePropertiesOp_PropertiesEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_SetNodePropertiesOp_PropertiesEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\013graph.proto\"2\n\010AssignOp\022\021\n\tascendant\030\001" + + " \001(\t\022\023\n\013descendants\030\002 \003(\t\"8\n\013AssociateOp" + + "\022\n\n\002ua\030\001 \001(\t\022\016\n\006target\030\002 \001(\t\022\r\n\005arset\030\003 " + + "\003(\t\"#\n\023CreatePolicyClassOp\022\014\n\004name\030\001 \001(\t" + + "\":\n\025CreateUserAttributeOp\022\014\n\004name\030\001 \001(\t\022" + + "\023\n\013descendants\030\002 \003(\t\"<\n\027CreateObjectAttr" + + "ibuteOp\022\014\n\004name\030\001 \001(\t\022\023\n\013descendants\030\002 \003" + + "(\t\"1\n\014CreateUserOp\022\014\n\004name\030\001 \001(\t\022\023\n\013desc" + + "endants\030\002 \003(\t\"3\n\016CreateObjectOp\022\014\n\004name\030" + + "\001 \001(\t\022\023\n\013descendants\030\002 \003(\t\"4\n\nDeassignOp" + + "\022\021\n\tascendant\030\001 \001(\t\022\023\n\013descendants\030\002 \003(\t" + + "\"\034\n\014DeleteNodeOp\022\014\n\004name\030\001 \001(\t\"\220\001\n\023SetNo" + + "dePropertiesOp\022\014\n\004name\030\001 \001(\t\0228\n\nproperti" + + "es\030\002 \003(\0132$.SetNodePropertiesOp.Propertie" + + "sEntry\0321\n\017PropertiesEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001B2\n\"gov.nist.csd.pm.pap" + + ".op.graph.protoB\nGraphProtoP\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_AssignOp_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_AssignOp_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_AssignOp_descriptor, + new java.lang.String[] { "Ascendant", "Descendants", }); + internal_static_AssociateOp_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_AssociateOp_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_AssociateOp_descriptor, + new java.lang.String[] { "Ua", "Target", "Arset", }); + internal_static_CreatePolicyClassOp_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_CreatePolicyClassOp_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CreatePolicyClassOp_descriptor, + new java.lang.String[] { "Name", }); + internal_static_CreateUserAttributeOp_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_CreateUserAttributeOp_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CreateUserAttributeOp_descriptor, + new java.lang.String[] { "Name", "Descendants", }); + internal_static_CreateObjectAttributeOp_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_CreateObjectAttributeOp_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CreateObjectAttributeOp_descriptor, + new java.lang.String[] { "Name", "Descendants", }); + internal_static_CreateUserOp_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_CreateUserOp_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CreateUserOp_descriptor, + new java.lang.String[] { "Name", "Descendants", }); + internal_static_CreateObjectOp_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_CreateObjectOp_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CreateObjectOp_descriptor, + new java.lang.String[] { "Name", "Descendants", }); + internal_static_DeassignOp_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_DeassignOp_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_DeassignOp_descriptor, + new java.lang.String[] { "Ascendant", "Descendants", }); + internal_static_DeleteNodeOp_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_DeleteNodeOp_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_DeleteNodeOp_descriptor, + new java.lang.String[] { "Name", }); + internal_static_SetNodePropertiesOp_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_SetNodePropertiesOp_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_SetNodePropertiesOp_descriptor, + new java.lang.String[] { "Name", "Properties", }); + internal_static_SetNodePropertiesOp_PropertiesEntry_descriptor = + internal_static_SetNodePropertiesOp_descriptor.getNestedTypes().get(0); + internal_static_SetNodePropertiesOp_PropertiesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_SetNodePropertiesOp_PropertiesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/SetNodePropertiesOp.java b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/SetNodePropertiesOp.java new file mode 100644 index 00000000..381be0e3 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/SetNodePropertiesOp.java @@ -0,0 +1,848 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: graph.proto + +package gov.nist.csd.pm.pap.op.graph.proto; + +/** + * Protobuf type {@code SetNodePropertiesOp} + */ +public final class SetNodePropertiesOp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:SetNodePropertiesOp) + SetNodePropertiesOpOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetNodePropertiesOp.newBuilder() to construct. + private SetNodePropertiesOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetNodePropertiesOp() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SetNodePropertiesOp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetNodePropertiesOp( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + properties_ = com.google.protobuf.MapField.newMapField( + PropertiesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + properties__ = input.readMessage( + PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + properties_.getMutableMap().put( + properties__.getKey(), properties__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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 gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_SetNodePropertiesOp_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetProperties(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_SetNodePropertiesOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp.class, gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPERTIES_FIELD_NUMBER = 2; + private static final class PropertiesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_SetNodePropertiesOp_PropertiesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> properties_; + private com.google.protobuf.MapField + internalGetProperties() { + if (properties_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PropertiesDefaultEntryHolder.defaultEntry); + } + return properties_; + } + + public int getPropertiesCount() { + return internalGetProperties().getMap().size(); + } + /** + * map<string, string> properties = 2; + */ + + @java.lang.Override + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetProperties().getMap().containsKey(key); + } + /** + * Use {@link #getPropertiesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getProperties() { + return getPropertiesMap(); + } + /** + * map<string, string> properties = 2; + */ + @java.lang.Override + + public java.util.Map getPropertiesMap() { + return internalGetProperties().getMap(); + } + /** + * map<string, string> properties = 2; + */ + @java.lang.Override + + public java.lang.String getPropertiesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> properties = 2; + */ + @java.lang.Override + + public java.lang.String getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetProperties(), + PropertiesDefaultEntryHolder.defaultEntry, + 2); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + for (java.util.Map.Entry entry + : internalGetProperties().getMap().entrySet()) { + com.google.protobuf.MapEntry + properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, properties__); + } + 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 gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp)) { + return super.equals(obj); + } + gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp other = (gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!internalGetProperties().equals( + other.internalGetProperties())) 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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (!internalGetProperties().getMap().isEmpty()) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + internalGetProperties().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp 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 gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp 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 gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp 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(gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp 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; + } + /** + * Protobuf type {@code SetNodePropertiesOp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:SetNodePropertiesOp) + gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_SetNodePropertiesOp_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetProperties(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 2: + return internalGetMutableProperties(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_SetNodePropertiesOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp.class, gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp.Builder.class); + } + + // Construct using gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp.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(); + name_ = ""; + + internalGetMutableProperties().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return gov.nist.csd.pm.pap.op.graph.proto.GraphProto.internal_static_SetNodePropertiesOp_descriptor; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp getDefaultInstanceForType() { + return gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp.getDefaultInstance(); + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp build() { + gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp buildPartial() { + gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp result = new gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.properties_ = internalGetProperties(); + result.properties_.makeImmutable(); + 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 gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp) { + return mergeFrom((gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp other) { + if (other == gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + internalGetMutableProperties().mergeFrom( + other.internalGetProperties()); + 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 { + gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> properties_; + private com.google.protobuf.MapField + internalGetProperties() { + if (properties_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PropertiesDefaultEntryHolder.defaultEntry); + } + return properties_; + } + private com.google.protobuf.MapField + internalGetMutableProperties() { + onChanged();; + if (properties_ == null) { + properties_ = com.google.protobuf.MapField.newMapField( + PropertiesDefaultEntryHolder.defaultEntry); + } + if (!properties_.isMutable()) { + properties_ = properties_.copy(); + } + return properties_; + } + + public int getPropertiesCount() { + return internalGetProperties().getMap().size(); + } + /** + * map<string, string> properties = 2; + */ + + @java.lang.Override + public boolean containsProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetProperties().getMap().containsKey(key); + } + /** + * Use {@link #getPropertiesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getProperties() { + return getPropertiesMap(); + } + /** + * map<string, string> properties = 2; + */ + @java.lang.Override + + public java.util.Map getPropertiesMap() { + return internalGetProperties().getMap(); + } + /** + * map<string, string> properties = 2; + */ + @java.lang.Override + + public java.lang.String getPropertiesOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> properties = 2; + */ + @java.lang.Override + + public java.lang.String getPropertiesOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetProperties().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearProperties() { + internalGetMutableProperties().getMutableMap() + .clear(); + return this; + } + /** + * map<string, string> properties = 2; + */ + + public Builder removeProperties( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableProperties().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableProperties() { + return internalGetMutableProperties().getMutableMap(); + } + /** + * map<string, string> properties = 2; + */ + public Builder putProperties( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableProperties().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, string> properties = 2; + */ + + public Builder putAllProperties( + java.util.Map values) { + internalGetMutableProperties().getMutableMap() + .putAll(values); + 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:SetNodePropertiesOp) + } + + // @@protoc_insertion_point(class_scope:SetNodePropertiesOp) + private static final gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp(); + } + + public static gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetNodePropertiesOp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetNodePropertiesOp(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 gov.nist.csd.pm.pap.op.graph.proto.SetNodePropertiesOp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/SetNodePropertiesOpOrBuilder.java b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/SetNodePropertiesOpOrBuilder.java new file mode 100644 index 00000000..e0188281 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/graph/proto/SetNodePropertiesOpOrBuilder.java @@ -0,0 +1,57 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: graph.proto + +package gov.nist.csd.pm.pap.op.graph.proto; + +public interface SetNodePropertiesOpOrBuilder extends + // @@protoc_insertion_point(interface_extends:SetNodePropertiesOp) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * map<string, string> properties = 2; + */ + int getPropertiesCount(); + /** + * map<string, string> properties = 2; + */ + boolean containsProperties( + java.lang.String key); + /** + * Use {@link #getPropertiesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getProperties(); + /** + * map<string, string> properties = 2; + */ + java.util.Map + getPropertiesMap(); + /** + * map<string, string> properties = 2; + */ + + /* nullable */ +java.lang.String getPropertiesOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + * map<string, string> properties = 2; + */ + + java.lang.String getPropertiesOrThrow( + java.lang.String key); +} diff --git a/src/main/java/gov/nist/csd/pm/pap/op/obligation/proto/CreateObligationOp.java b/src/main/java/gov/nist/csd/pm/pap/op/obligation/proto/CreateObligationOp.java new file mode 100644 index 00000000..4ed42b5e --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/obligation/proto/CreateObligationOp.java @@ -0,0 +1,835 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: obligation.proto + +package gov.nist.csd.pm.pap.op.obligation.proto; + +/** + * Protobuf type {@code CreateObligationOp} + */ +public final class CreateObligationOp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:CreateObligationOp) + CreateObligationOpOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateObligationOp.newBuilder() to construct. + private CreateObligationOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateObligationOp() { + name_ = ""; + author_ = ""; + pml_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateObligationOp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateObligationOp( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + author_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pml_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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 gov.nist.csd.pm.pap.op.obligation.proto.ObligationProto.internal_static_CreateObligationOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.obligation.proto.ObligationProto.internal_static_CreateObligationOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp.class, gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTHOR_FIELD_NUMBER = 2; + private volatile java.lang.Object author_; + /** + * string author = 2; + * @return The author. + */ + @java.lang.Override + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + 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(); + author_ = s; + return s; + } + } + /** + * string author = 2; + * @return The bytes for author. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PML_FIELD_NUMBER = 3; + private volatile java.lang.Object pml_; + /** + * string pml = 3; + * @return The pml. + */ + @java.lang.Override + public java.lang.String getPml() { + java.lang.Object ref = pml_; + 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(); + pml_ = s; + return s; + } + } + /** + * string pml = 3; + * @return The bytes for pml. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPmlBytes() { + java.lang.Object ref = pml_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pml_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(author_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, author_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pml_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pml_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(author_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, author_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pml_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pml_); + } + 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 gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp)) { + return super.equals(obj); + } + gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp other = (gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getAuthor() + .equals(other.getAuthor())) return false; + if (!getPml() + .equals(other.getPml())) 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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + AUTHOR_FIELD_NUMBER; + hash = (53 * hash) + getAuthor().hashCode(); + hash = (37 * hash) + PML_FIELD_NUMBER; + hash = (53 * hash) + getPml().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp 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 gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp 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 gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp 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(gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp 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; + } + /** + * Protobuf type {@code CreateObligationOp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:CreateObligationOp) + gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.obligation.proto.ObligationProto.internal_static_CreateObligationOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.obligation.proto.ObligationProto.internal_static_CreateObligationOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp.class, gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp.Builder.class); + } + + // Construct using gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp.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(); + name_ = ""; + + author_ = ""; + + pml_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return gov.nist.csd.pm.pap.op.obligation.proto.ObligationProto.internal_static_CreateObligationOp_descriptor; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp getDefaultInstanceForType() { + return gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp.getDefaultInstance(); + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp build() { + gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp buildPartial() { + gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp result = new gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp(this); + result.name_ = name_; + result.author_ = author_; + result.pml_ = pml_; + 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 gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp) { + return mergeFrom((gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp other) { + if (other == gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getAuthor().isEmpty()) { + author_ = other.author_; + onChanged(); + } + if (!other.getPml().isEmpty()) { + pml_ = other.pml_; + 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 { + gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object author_ = ""; + /** + * string author = 2; + * @return The author. + */ + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + author_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string author = 2; + * @return The bytes for author. + */ + public com.google.protobuf.ByteString + getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string author = 2; + * @param value The author to set. + * @return This builder for chaining. + */ + public Builder setAuthor( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + author_ = value; + onChanged(); + return this; + } + /** + * string author = 2; + * @return This builder for chaining. + */ + public Builder clearAuthor() { + + author_ = getDefaultInstance().getAuthor(); + onChanged(); + return this; + } + /** + * string author = 2; + * @param value The bytes for author to set. + * @return This builder for chaining. + */ + public Builder setAuthorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + author_ = value; + onChanged(); + return this; + } + + private java.lang.Object pml_ = ""; + /** + * string pml = 3; + * @return The pml. + */ + public java.lang.String getPml() { + java.lang.Object ref = pml_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pml_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string pml = 3; + * @return The bytes for pml. + */ + public com.google.protobuf.ByteString + getPmlBytes() { + java.lang.Object ref = pml_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pml_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string pml = 3; + * @param value The pml to set. + * @return This builder for chaining. + */ + public Builder setPml( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pml_ = value; + onChanged(); + return this; + } + /** + * string pml = 3; + * @return This builder for chaining. + */ + public Builder clearPml() { + + pml_ = getDefaultInstance().getPml(); + onChanged(); + return this; + } + /** + * string pml = 3; + * @param value The bytes for pml to set. + * @return This builder for chaining. + */ + public Builder setPmlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pml_ = 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:CreateObligationOp) + } + + // @@protoc_insertion_point(class_scope:CreateObligationOp) + private static final gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp(); + } + + public static gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateObligationOp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateObligationOp(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 gov.nist.csd.pm.pap.op.obligation.proto.CreateObligationOp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/gov/nist/csd/pm/pap/op/obligation/proto/CreateObligationOpOrBuilder.java b/src/main/java/gov/nist/csd/pm/pap/op/obligation/proto/CreateObligationOpOrBuilder.java new file mode 100644 index 00000000..fb9def26 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/obligation/proto/CreateObligationOpOrBuilder.java @@ -0,0 +1,45 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: obligation.proto + +package gov.nist.csd.pm.pap.op.obligation.proto; + +public interface CreateObligationOpOrBuilder extends + // @@protoc_insertion_point(interface_extends:CreateObligationOp) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string author = 2; + * @return The author. + */ + java.lang.String getAuthor(); + /** + * string author = 2; + * @return The bytes for author. + */ + com.google.protobuf.ByteString + getAuthorBytes(); + + /** + * string pml = 3; + * @return The pml. + */ + java.lang.String getPml(); + /** + * string pml = 3; + * @return The bytes for pml. + */ + com.google.protobuf.ByteString + getPmlBytes(); +} diff --git a/src/main/java/gov/nist/csd/pm/pap/op/obligation/proto/DeleteObligationOp.java b/src/main/java/gov/nist/csd/pm/pap/op/obligation/proto/DeleteObligationOp.java new file mode 100644 index 00000000..e2621067 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/obligation/proto/DeleteObligationOp.java @@ -0,0 +1,559 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: obligation.proto + +package gov.nist.csd.pm.pap.op.obligation.proto; + +/** + * Protobuf type {@code DeleteObligationOp} + */ +public final class DeleteObligationOp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:DeleteObligationOp) + DeleteObligationOpOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteObligationOp.newBuilder() to construct. + private DeleteObligationOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteObligationOp() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteObligationOp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteObligationOp( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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 gov.nist.csd.pm.pap.op.obligation.proto.ObligationProto.internal_static_DeleteObligationOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.obligation.proto.ObligationProto.internal_static_DeleteObligationOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp.class, gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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 gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp)) { + return super.equals(obj); + } + gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp other = (gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp) obj; + + if (!getName() + .equals(other.getName())) 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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp 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 gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp 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 gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp 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(gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp 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; + } + /** + * Protobuf type {@code DeleteObligationOp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:DeleteObligationOp) + gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.obligation.proto.ObligationProto.internal_static_DeleteObligationOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.obligation.proto.ObligationProto.internal_static_DeleteObligationOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp.class, gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp.Builder.class); + } + + // Construct using gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp.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(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return gov.nist.csd.pm.pap.op.obligation.proto.ObligationProto.internal_static_DeleteObligationOp_descriptor; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp getDefaultInstanceForType() { + return gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp.getDefaultInstance(); + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp build() { + gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp buildPartial() { + gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp result = new gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp(this); + result.name_ = name_; + 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 gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp) { + return mergeFrom((gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp other) { + if (other == gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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 { + gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = 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:DeleteObligationOp) + } + + // @@protoc_insertion_point(class_scope:DeleteObligationOp) + private static final gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp(); + } + + public static gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteObligationOp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteObligationOp(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 gov.nist.csd.pm.pap.op.obligation.proto.DeleteObligationOp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/gov/nist/csd/pm/pap/op/obligation/proto/DeleteObligationOpOrBuilder.java b/src/main/java/gov/nist/csd/pm/pap/op/obligation/proto/DeleteObligationOpOrBuilder.java new file mode 100644 index 00000000..14ed52bf --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/obligation/proto/DeleteObligationOpOrBuilder.java @@ -0,0 +1,21 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: obligation.proto + +package gov.nist.csd.pm.pap.op.obligation.proto; + +public interface DeleteObligationOpOrBuilder extends + // @@protoc_insertion_point(interface_extends:DeleteObligationOp) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/src/main/java/gov/nist/csd/pm/pap/op/obligation/proto/ObligationProto.java b/src/main/java/gov/nist/csd/pm/pap/op/obligation/proto/ObligationProto.java new file mode 100644 index 00000000..ff6d7ac9 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/obligation/proto/ObligationProto.java @@ -0,0 +1,61 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: obligation.proto + +package gov.nist.csd.pm.pap.op.obligation.proto; + +public final class ObligationProto { + private ObligationProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_CreateObligationOp_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_CreateObligationOp_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_DeleteObligationOp_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_DeleteObligationOp_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\020obligation.proto\"?\n\022CreateObligationOp" + + "\022\014\n\004name\030\001 \001(\t\022\016\n\006author\030\002 \001(\t\022\013\n\003pml\030\003 " + + "\001(\t\"\"\n\022DeleteObligationOp\022\014\n\004name\030\001 \001(\tB" + + "<\n\'gov.nist.csd.pm.pap.op.obligation.pro" + + "toB\017ObligationProtoP\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_CreateObligationOp_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_CreateObligationOp_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CreateObligationOp_descriptor, + new java.lang.String[] { "Name", "Author", "Pml", }); + internal_static_DeleteObligationOp_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_DeleteObligationOp_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_DeleteObligationOp_descriptor, + new java.lang.String[] { "Name", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/gov/nist/csd/pm/pap/op/operation/proto/CreateAdminOperationOp.java b/src/main/java/gov/nist/csd/pm/pap/op/operation/proto/CreateAdminOperationOp.java new file mode 100644 index 00000000..2072480c --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/operation/proto/CreateAdminOperationOp.java @@ -0,0 +1,559 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: operation.proto + +package gov.nist.csd.pm.pap.op.operation.proto; + +/** + * Protobuf type {@code CreateAdminOperationOp} + */ +public final class CreateAdminOperationOp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:CreateAdminOperationOp) + CreateAdminOperationOpOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateAdminOperationOp.newBuilder() to construct. + private CreateAdminOperationOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateAdminOperationOp() { + pml_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateAdminOperationOp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateAdminOperationOp( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + pml_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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 gov.nist.csd.pm.pap.op.operation.proto.OperationProto.internal_static_CreateAdminOperationOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.operation.proto.OperationProto.internal_static_CreateAdminOperationOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp.class, gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp.Builder.class); + } + + public static final int PML_FIELD_NUMBER = 1; + private volatile java.lang.Object pml_; + /** + * string pml = 1; + * @return The pml. + */ + @java.lang.Override + public java.lang.String getPml() { + java.lang.Object ref = pml_; + 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(); + pml_ = s; + return s; + } + } + /** + * string pml = 1; + * @return The bytes for pml. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPmlBytes() { + java.lang.Object ref = pml_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pml_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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.GeneratedMessageV3.isStringEmpty(pml_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pml_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pml_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pml_); + } + 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 gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp)) { + return super.equals(obj); + } + gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp other = (gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp) obj; + + if (!getPml() + .equals(other.getPml())) 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(); + hash = (37 * hash) + PML_FIELD_NUMBER; + hash = (53 * hash) + getPml().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp 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 gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp 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 gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp 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(gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp 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; + } + /** + * Protobuf type {@code CreateAdminOperationOp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:CreateAdminOperationOp) + gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.operation.proto.OperationProto.internal_static_CreateAdminOperationOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.operation.proto.OperationProto.internal_static_CreateAdminOperationOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp.class, gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp.Builder.class); + } + + // Construct using gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp.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(); + pml_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return gov.nist.csd.pm.pap.op.operation.proto.OperationProto.internal_static_CreateAdminOperationOp_descriptor; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp getDefaultInstanceForType() { + return gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp.getDefaultInstance(); + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp build() { + gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp buildPartial() { + gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp result = new gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp(this); + result.pml_ = pml_; + 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 gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp) { + return mergeFrom((gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp other) { + if (other == gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp.getDefaultInstance()) return this; + if (!other.getPml().isEmpty()) { + pml_ = other.pml_; + 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 { + gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object pml_ = ""; + /** + * string pml = 1; + * @return The pml. + */ + public java.lang.String getPml() { + java.lang.Object ref = pml_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pml_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string pml = 1; + * @return The bytes for pml. + */ + public com.google.protobuf.ByteString + getPmlBytes() { + java.lang.Object ref = pml_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pml_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string pml = 1; + * @param value The pml to set. + * @return This builder for chaining. + */ + public Builder setPml( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pml_ = value; + onChanged(); + return this; + } + /** + * string pml = 1; + * @return This builder for chaining. + */ + public Builder clearPml() { + + pml_ = getDefaultInstance().getPml(); + onChanged(); + return this; + } + /** + * string pml = 1; + * @param value The bytes for pml to set. + * @return This builder for chaining. + */ + public Builder setPmlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pml_ = 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:CreateAdminOperationOp) + } + + // @@protoc_insertion_point(class_scope:CreateAdminOperationOp) + private static final gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp(); + } + + public static gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAdminOperationOp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateAdminOperationOp(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 gov.nist.csd.pm.pap.op.operation.proto.CreateAdminOperationOp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/gov/nist/csd/pm/pap/op/operation/proto/CreateAdminOperationOpOrBuilder.java b/src/main/java/gov/nist/csd/pm/pap/op/operation/proto/CreateAdminOperationOpOrBuilder.java new file mode 100644 index 00000000..8ec6f70c --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/operation/proto/CreateAdminOperationOpOrBuilder.java @@ -0,0 +1,21 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: operation.proto + +package gov.nist.csd.pm.pap.op.operation.proto; + +public interface CreateAdminOperationOpOrBuilder extends + // @@protoc_insertion_point(interface_extends:CreateAdminOperationOp) + com.google.protobuf.MessageOrBuilder { + + /** + * string pml = 1; + * @return The pml. + */ + java.lang.String getPml(); + /** + * string pml = 1; + * @return The bytes for pml. + */ + com.google.protobuf.ByteString + getPmlBytes(); +} diff --git a/src/main/java/gov/nist/csd/pm/pap/op/operation/proto/DeleteAdminOperationOp.java b/src/main/java/gov/nist/csd/pm/pap/op/operation/proto/DeleteAdminOperationOp.java new file mode 100644 index 00000000..37e618eb --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/operation/proto/DeleteAdminOperationOp.java @@ -0,0 +1,559 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: operation.proto + +package gov.nist.csd.pm.pap.op.operation.proto; + +/** + * Protobuf type {@code DeleteAdminOperationOp} + */ +public final class DeleteAdminOperationOp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:DeleteAdminOperationOp) + DeleteAdminOperationOpOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteAdminOperationOp.newBuilder() to construct. + private DeleteAdminOperationOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteAdminOperationOp() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteAdminOperationOp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteAdminOperationOp( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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 gov.nist.csd.pm.pap.op.operation.proto.OperationProto.internal_static_DeleteAdminOperationOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.operation.proto.OperationProto.internal_static_DeleteAdminOperationOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp.class, gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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 gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp)) { + return super.equals(obj); + } + gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp other = (gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp) obj; + + if (!getName() + .equals(other.getName())) 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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp 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 gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp 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 gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp 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(gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp 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; + } + /** + * Protobuf type {@code DeleteAdminOperationOp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:DeleteAdminOperationOp) + gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.operation.proto.OperationProto.internal_static_DeleteAdminOperationOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.operation.proto.OperationProto.internal_static_DeleteAdminOperationOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp.class, gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp.Builder.class); + } + + // Construct using gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp.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(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return gov.nist.csd.pm.pap.op.operation.proto.OperationProto.internal_static_DeleteAdminOperationOp_descriptor; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp getDefaultInstanceForType() { + return gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp.getDefaultInstance(); + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp build() { + gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp buildPartial() { + gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp result = new gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp(this); + result.name_ = name_; + 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 gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp) { + return mergeFrom((gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp other) { + if (other == gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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 { + gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = 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:DeleteAdminOperationOp) + } + + // @@protoc_insertion_point(class_scope:DeleteAdminOperationOp) + private static final gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp(); + } + + public static gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAdminOperationOp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteAdminOperationOp(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 gov.nist.csd.pm.pap.op.operation.proto.DeleteAdminOperationOp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/gov/nist/csd/pm/pap/op/operation/proto/DeleteAdminOperationOpOrBuilder.java b/src/main/java/gov/nist/csd/pm/pap/op/operation/proto/DeleteAdminOperationOpOrBuilder.java new file mode 100644 index 00000000..94785631 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/operation/proto/DeleteAdminOperationOpOrBuilder.java @@ -0,0 +1,21 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: operation.proto + +package gov.nist.csd.pm.pap.op.operation.proto; + +public interface DeleteAdminOperationOpOrBuilder extends + // @@protoc_insertion_point(interface_extends:DeleteAdminOperationOp) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/src/main/java/gov/nist/csd/pm/pap/op/operation/proto/OperationProto.java b/src/main/java/gov/nist/csd/pm/pap/op/operation/proto/OperationProto.java new file mode 100644 index 00000000..4d5b575c --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/operation/proto/OperationProto.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: operation.proto + +package gov.nist.csd.pm.pap.op.operation.proto; + +public final class OperationProto { + private OperationProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_CreateAdminOperationOp_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_CreateAdminOperationOp_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_DeleteAdminOperationOp_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_DeleteAdminOperationOp_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_SetResourceOperationsOp_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_SetResourceOperationsOp_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\017operation.proto\"%\n\026CreateAdminOperatio" + + "nOp\022\013\n\003pml\030\001 \001(\t\"&\n\026DeleteAdminOperation" + + "Op\022\014\n\004name\030\001 \001(\t\"-\n\027SetResourceOperation" + + "sOp\022\022\n\noperations\030\001 \003(\tB:\n&gov.nist.csd." + + "pm.pap.op.operation.protoB\016OperationProt" + + "oP\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_CreateAdminOperationOp_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_CreateAdminOperationOp_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CreateAdminOperationOp_descriptor, + new java.lang.String[] { "Pml", }); + internal_static_DeleteAdminOperationOp_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_DeleteAdminOperationOp_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_DeleteAdminOperationOp_descriptor, + new java.lang.String[] { "Name", }); + internal_static_SetResourceOperationsOp_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_SetResourceOperationsOp_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_SetResourceOperationsOp_descriptor, + new java.lang.String[] { "Operations", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/gov/nist/csd/pm/pap/op/operation/proto/SetResourceOperationsOp.java b/src/main/java/gov/nist/csd/pm/pap/op/operation/proto/SetResourceOperationsOp.java new file mode 100644 index 00000000..75ba45b7 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/operation/proto/SetResourceOperationsOp.java @@ -0,0 +1,616 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: operation.proto + +package gov.nist.csd.pm.pap.op.operation.proto; + +/** + * Protobuf type {@code SetResourceOperationsOp} + */ +public final class SetResourceOperationsOp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:SetResourceOperationsOp) + SetResourceOperationsOpOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetResourceOperationsOp.newBuilder() to construct. + private SetResourceOperationsOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetResourceOperationsOp() { + operations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SetResourceOperationsOp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SetResourceOperationsOp( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + operations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + operations_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + operations_ = operations_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.operation.proto.OperationProto.internal_static_SetResourceOperationsOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.operation.proto.OperationProto.internal_static_SetResourceOperationsOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp.class, gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp.Builder.class); + } + + public static final int OPERATIONS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList operations_; + /** + * repeated string operations = 1; + * @return A list containing the operations. + */ + public com.google.protobuf.ProtocolStringList + getOperationsList() { + return operations_; + } + /** + * repeated string operations = 1; + * @return The count of operations. + */ + public int getOperationsCount() { + return operations_.size(); + } + /** + * repeated string operations = 1; + * @param index The index of the element to return. + * @return The operations at the given index. + */ + public java.lang.String getOperations(int index) { + return operations_.get(index); + } + /** + * repeated string operations = 1; + * @param index The index of the value to return. + * @return The bytes of the operations at the given index. + */ + public com.google.protobuf.ByteString + getOperationsBytes(int index) { + return operations_.getByteString(index); + } + + 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 { + for (int i = 0; i < operations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operations_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < operations_.size(); i++) { + dataSize += computeStringSizeNoTag(operations_.getRaw(i)); + } + size += dataSize; + size += 1 * getOperationsList().size(); + } + 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 gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp)) { + return super.equals(obj); + } + gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp other = (gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp) obj; + + if (!getOperationsList() + .equals(other.getOperationsList())) 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 (getOperationsCount() > 0) { + hash = (37 * hash) + OPERATIONS_FIELD_NUMBER; + hash = (53 * hash) + getOperationsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp 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 gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp 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 gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp 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(gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp 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; + } + /** + * Protobuf type {@code SetResourceOperationsOp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:SetResourceOperationsOp) + gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.operation.proto.OperationProto.internal_static_SetResourceOperationsOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.operation.proto.OperationProto.internal_static_SetResourceOperationsOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp.class, gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp.Builder.class); + } + + // Construct using gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp.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(); + operations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return gov.nist.csd.pm.pap.op.operation.proto.OperationProto.internal_static_SetResourceOperationsOp_descriptor; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp getDefaultInstanceForType() { + return gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp.getDefaultInstance(); + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp build() { + gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp buildPartial() { + gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp result = new gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + operations_ = operations_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.operations_ = operations_; + 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 gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp) { + return mergeFrom((gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp other) { + if (other == gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp.getDefaultInstance()) return this; + if (!other.operations_.isEmpty()) { + if (operations_.isEmpty()) { + operations_ = other.operations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOperationsIsMutable(); + operations_.addAll(other.operations_); + } + 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 { + gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList operations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureOperationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + operations_ = new com.google.protobuf.LazyStringArrayList(operations_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string operations = 1; + * @return A list containing the operations. + */ + public com.google.protobuf.ProtocolStringList + getOperationsList() { + return operations_.getUnmodifiableView(); + } + /** + * repeated string operations = 1; + * @return The count of operations. + */ + public int getOperationsCount() { + return operations_.size(); + } + /** + * repeated string operations = 1; + * @param index The index of the element to return. + * @return The operations at the given index. + */ + public java.lang.String getOperations(int index) { + return operations_.get(index); + } + /** + * repeated string operations = 1; + * @param index The index of the value to return. + * @return The bytes of the operations at the given index. + */ + public com.google.protobuf.ByteString + getOperationsBytes(int index) { + return operations_.getByteString(index); + } + /** + * repeated string operations = 1; + * @param index The index to set the value at. + * @param value The operations to set. + * @return This builder for chaining. + */ + public Builder setOperations( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperationsIsMutable(); + operations_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string operations = 1; + * @param value The operations to add. + * @return This builder for chaining. + */ + public Builder addOperations( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureOperationsIsMutable(); + operations_.add(value); + onChanged(); + return this; + } + /** + * repeated string operations = 1; + * @param values The operations to add. + * @return This builder for chaining. + */ + public Builder addAllOperations( + java.lang.Iterable values) { + ensureOperationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, operations_); + onChanged(); + return this; + } + /** + * repeated string operations = 1; + * @return This builder for chaining. + */ + public Builder clearOperations() { + operations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string operations = 1; + * @param value The bytes of the operations to add. + * @return This builder for chaining. + */ + public Builder addOperationsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureOperationsIsMutable(); + operations_.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:SetResourceOperationsOp) + } + + // @@protoc_insertion_point(class_scope:SetResourceOperationsOp) + private static final gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp(); + } + + public static gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetResourceOperationsOp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SetResourceOperationsOp(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 gov.nist.csd.pm.pap.op.operation.proto.SetResourceOperationsOp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/gov/nist/csd/pm/pap/op/operation/proto/SetResourceOperationsOpOrBuilder.java b/src/main/java/gov/nist/csd/pm/pap/op/operation/proto/SetResourceOperationsOpOrBuilder.java new file mode 100644 index 00000000..d8a15814 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/operation/proto/SetResourceOperationsOpOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: operation.proto + +package gov.nist.csd.pm.pap.op.operation.proto; + +public interface SetResourceOperationsOpOrBuilder extends + // @@protoc_insertion_point(interface_extends:SetResourceOperationsOp) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string operations = 1; + * @return A list containing the operations. + */ + java.util.List + getOperationsList(); + /** + * repeated string operations = 1; + * @return The count of operations. + */ + int getOperationsCount(); + /** + * repeated string operations = 1; + * @param index The index of the element to return. + * @return The operations at the given index. + */ + java.lang.String getOperations(int index); + /** + * repeated string operations = 1; + * @param index The index of the value to return. + * @return The bytes of the operations at the given index. + */ + com.google.protobuf.ByteString + getOperationsBytes(int index); +} diff --git a/src/main/java/gov/nist/csd/pm/pap/op/prohibition/proto/CreateProhibitionOp.java b/src/main/java/gov/nist/csd/pm/pap/op/prohibition/proto/CreateProhibitionOp.java new file mode 100644 index 00000000..574308e3 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/prohibition/proto/CreateProhibitionOp.java @@ -0,0 +1,1378 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: prohibitions.proto + +package gov.nist.csd.pm.pap.op.prohibition.proto; + +/** + * Protobuf type {@code CreateProhibitionOp} + */ +public final class CreateProhibitionOp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:CreateProhibitionOp) + CreateProhibitionOpOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateProhibitionOp.newBuilder() to construct. + private CreateProhibitionOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateProhibitionOp() { + name_ = ""; + subject_ = ""; + subjectType_ = ""; + arset_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateProhibitionOp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateProhibitionOp( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + subject_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + subjectType_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + arset_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + arset_.add(s); + break; + } + case 40: { + + intersection_ = input.readBool(); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + containerConditions_ = com.google.protobuf.MapField.newMapField( + ContainerConditionsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry + containerConditions__ = input.readMessage( + ContainerConditionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + containerConditions_.getMutableMap().put( + containerConditions__.getKey(), containerConditions__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + arset_ = arset_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.prohibition.proto.ProhibitionProto.internal_static_CreateProhibitionOp_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 6: + return internalGetContainerConditions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.prohibition.proto.ProhibitionProto.internal_static_CreateProhibitionOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp.class, gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBJECT_FIELD_NUMBER = 2; + private volatile java.lang.Object subject_; + /** + * string subject = 2; + * @return The subject. + */ + @java.lang.Override + public java.lang.String getSubject() { + java.lang.Object ref = subject_; + 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(); + subject_ = s; + return s; + } + } + /** + * string subject = 2; + * @return The bytes for subject. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSubjectBytes() { + java.lang.Object ref = subject_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBJECT_TYPE_FIELD_NUMBER = 3; + private volatile java.lang.Object subjectType_; + /** + * string subject_type = 3; + * @return The subjectType. + */ + @java.lang.Override + public java.lang.String getSubjectType() { + java.lang.Object ref = subjectType_; + 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(); + subjectType_ = s; + return s; + } + } + /** + * string subject_type = 3; + * @return The bytes for subjectType. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSubjectTypeBytes() { + java.lang.Object ref = subjectType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subjectType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ARSET_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList arset_; + /** + * repeated string arset = 4; + * @return A list containing the arset. + */ + public com.google.protobuf.ProtocolStringList + getArsetList() { + return arset_; + } + /** + * repeated string arset = 4; + * @return The count of arset. + */ + public int getArsetCount() { + return arset_.size(); + } + /** + * repeated string arset = 4; + * @param index The index of the element to return. + * @return The arset at the given index. + */ + public java.lang.String getArset(int index) { + return arset_.get(index); + } + /** + * repeated string arset = 4; + * @param index The index of the value to return. + * @return The bytes of the arset at the given index. + */ + public com.google.protobuf.ByteString + getArsetBytes(int index) { + return arset_.getByteString(index); + } + + public static final int INTERSECTION_FIELD_NUMBER = 5; + private boolean intersection_; + /** + * bool intersection = 5; + * @return The intersection. + */ + @java.lang.Override + public boolean getIntersection() { + return intersection_; + } + + public static final int CONTAINER_CONDITIONS_FIELD_NUMBER = 6; + private static final class ContainerConditionsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.Boolean> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + gov.nist.csd.pm.pap.op.prohibition.proto.ProhibitionProto.internal_static_CreateProhibitionOp_ContainerConditionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.BOOL, + false); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.Boolean> containerConditions_; + private com.google.protobuf.MapField + internalGetContainerConditions() { + if (containerConditions_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ContainerConditionsDefaultEntryHolder.defaultEntry); + } + return containerConditions_; + } + + public int getContainerConditionsCount() { + return internalGetContainerConditions().getMap().size(); + } + /** + * map<string, bool> container_conditions = 6; + */ + + @java.lang.Override + public boolean containsContainerConditions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetContainerConditions().getMap().containsKey(key); + } + /** + * Use {@link #getContainerConditionsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getContainerConditions() { + return getContainerConditionsMap(); + } + /** + * map<string, bool> container_conditions = 6; + */ + @java.lang.Override + + public java.util.Map getContainerConditionsMap() { + return internalGetContainerConditions().getMap(); + } + /** + * map<string, bool> container_conditions = 6; + */ + @java.lang.Override + + public boolean getContainerConditionsOrDefault( + java.lang.String key, + boolean defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetContainerConditions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, bool> container_conditions = 6; + */ + @java.lang.Override + + public boolean getContainerConditionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetContainerConditions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subject_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subject_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subjectType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subjectType_); + } + for (int i = 0; i < arset_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, arset_.getRaw(i)); + } + if (intersection_ != false) { + output.writeBool(5, intersection_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetContainerConditions(), + ContainerConditionsDefaultEntryHolder.defaultEntry, + 6); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subject_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subject_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subjectType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subjectType_); + } + { + int dataSize = 0; + for (int i = 0; i < arset_.size(); i++) { + dataSize += computeStringSizeNoTag(arset_.getRaw(i)); + } + size += dataSize; + size += 1 * getArsetList().size(); + } + if (intersection_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, intersection_); + } + for (java.util.Map.Entry entry + : internalGetContainerConditions().getMap().entrySet()) { + com.google.protobuf.MapEntry + containerConditions__ = ContainerConditionsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, containerConditions__); + } + 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 gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp)) { + return super.equals(obj); + } + gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp other = (gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getSubject() + .equals(other.getSubject())) return false; + if (!getSubjectType() + .equals(other.getSubjectType())) return false; + if (!getArsetList() + .equals(other.getArsetList())) return false; + if (getIntersection() + != other.getIntersection()) return false; + if (!internalGetContainerConditions().equals( + other.internalGetContainerConditions())) 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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + SUBJECT_FIELD_NUMBER; + hash = (53 * hash) + getSubject().hashCode(); + hash = (37 * hash) + SUBJECT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getSubjectType().hashCode(); + if (getArsetCount() > 0) { + hash = (37 * hash) + ARSET_FIELD_NUMBER; + hash = (53 * hash) + getArsetList().hashCode(); + } + hash = (37 * hash) + INTERSECTION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIntersection()); + if (!internalGetContainerConditions().getMap().isEmpty()) { + hash = (37 * hash) + CONTAINER_CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetContainerConditions().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp 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 gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp 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 gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp 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(gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp 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; + } + /** + * Protobuf type {@code CreateProhibitionOp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:CreateProhibitionOp) + gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.prohibition.proto.ProhibitionProto.internal_static_CreateProhibitionOp_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 6: + return internalGetContainerConditions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 6: + return internalGetMutableContainerConditions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.prohibition.proto.ProhibitionProto.internal_static_CreateProhibitionOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp.class, gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp.Builder.class); + } + + // Construct using gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp.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(); + name_ = ""; + + subject_ = ""; + + subjectType_ = ""; + + arset_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + intersection_ = false; + + internalGetMutableContainerConditions().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return gov.nist.csd.pm.pap.op.prohibition.proto.ProhibitionProto.internal_static_CreateProhibitionOp_descriptor; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp getDefaultInstanceForType() { + return gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp.getDefaultInstance(); + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp build() { + gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp buildPartial() { + gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp result = new gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.subject_ = subject_; + result.subjectType_ = subjectType_; + if (((bitField0_ & 0x00000001) != 0)) { + arset_ = arset_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.arset_ = arset_; + result.intersection_ = intersection_; + result.containerConditions_ = internalGetContainerConditions(); + result.containerConditions_.makeImmutable(); + 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 gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp) { + return mergeFrom((gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp other) { + if (other == gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getSubject().isEmpty()) { + subject_ = other.subject_; + onChanged(); + } + if (!other.getSubjectType().isEmpty()) { + subjectType_ = other.subjectType_; + onChanged(); + } + if (!other.arset_.isEmpty()) { + if (arset_.isEmpty()) { + arset_ = other.arset_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureArsetIsMutable(); + arset_.addAll(other.arset_); + } + onChanged(); + } + if (other.getIntersection() != false) { + setIntersection(other.getIntersection()); + } + internalGetMutableContainerConditions().mergeFrom( + other.internalGetContainerConditions()); + 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 { + gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object subject_ = ""; + /** + * string subject = 2; + * @return The subject. + */ + public java.lang.String getSubject() { + java.lang.Object ref = subject_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subject_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string subject = 2; + * @return The bytes for subject. + */ + public com.google.protobuf.ByteString + getSubjectBytes() { + java.lang.Object ref = subject_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string subject = 2; + * @param value The subject to set. + * @return This builder for chaining. + */ + public Builder setSubject( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subject_ = value; + onChanged(); + return this; + } + /** + * string subject = 2; + * @return This builder for chaining. + */ + public Builder clearSubject() { + + subject_ = getDefaultInstance().getSubject(); + onChanged(); + return this; + } + /** + * string subject = 2; + * @param value The bytes for subject to set. + * @return This builder for chaining. + */ + public Builder setSubjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subject_ = value; + onChanged(); + return this; + } + + private java.lang.Object subjectType_ = ""; + /** + * string subject_type = 3; + * @return The subjectType. + */ + public java.lang.String getSubjectType() { + java.lang.Object ref = subjectType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subjectType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string subject_type = 3; + * @return The bytes for subjectType. + */ + public com.google.protobuf.ByteString + getSubjectTypeBytes() { + java.lang.Object ref = subjectType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subjectType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string subject_type = 3; + * @param value The subjectType to set. + * @return This builder for chaining. + */ + public Builder setSubjectType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subjectType_ = value; + onChanged(); + return this; + } + /** + * string subject_type = 3; + * @return This builder for chaining. + */ + public Builder clearSubjectType() { + + subjectType_ = getDefaultInstance().getSubjectType(); + onChanged(); + return this; + } + /** + * string subject_type = 3; + * @param value The bytes for subjectType to set. + * @return This builder for chaining. + */ + public Builder setSubjectTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subjectType_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList arset_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureArsetIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + arset_ = new com.google.protobuf.LazyStringArrayList(arset_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string arset = 4; + * @return A list containing the arset. + */ + public com.google.protobuf.ProtocolStringList + getArsetList() { + return arset_.getUnmodifiableView(); + } + /** + * repeated string arset = 4; + * @return The count of arset. + */ + public int getArsetCount() { + return arset_.size(); + } + /** + * repeated string arset = 4; + * @param index The index of the element to return. + * @return The arset at the given index. + */ + public java.lang.String getArset(int index) { + return arset_.get(index); + } + /** + * repeated string arset = 4; + * @param index The index of the value to return. + * @return The bytes of the arset at the given index. + */ + public com.google.protobuf.ByteString + getArsetBytes(int index) { + return arset_.getByteString(index); + } + /** + * repeated string arset = 4; + * @param index The index to set the value at. + * @param value The arset to set. + * @return This builder for chaining. + */ + public Builder setArset( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArsetIsMutable(); + arset_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string arset = 4; + * @param value The arset to add. + * @return This builder for chaining. + */ + public Builder addArset( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureArsetIsMutable(); + arset_.add(value); + onChanged(); + return this; + } + /** + * repeated string arset = 4; + * @param values The arset to add. + * @return This builder for chaining. + */ + public Builder addAllArset( + java.lang.Iterable values) { + ensureArsetIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, arset_); + onChanged(); + return this; + } + /** + * repeated string arset = 4; + * @return This builder for chaining. + */ + public Builder clearArset() { + arset_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string arset = 4; + * @param value The bytes of the arset to add. + * @return This builder for chaining. + */ + public Builder addArsetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureArsetIsMutable(); + arset_.add(value); + onChanged(); + return this; + } + + private boolean intersection_ ; + /** + * bool intersection = 5; + * @return The intersection. + */ + @java.lang.Override + public boolean getIntersection() { + return intersection_; + } + /** + * bool intersection = 5; + * @param value The intersection to set. + * @return This builder for chaining. + */ + public Builder setIntersection(boolean value) { + + intersection_ = value; + onChanged(); + return this; + } + /** + * bool intersection = 5; + * @return This builder for chaining. + */ + public Builder clearIntersection() { + + intersection_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.Boolean> containerConditions_; + private com.google.protobuf.MapField + internalGetContainerConditions() { + if (containerConditions_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ContainerConditionsDefaultEntryHolder.defaultEntry); + } + return containerConditions_; + } + private com.google.protobuf.MapField + internalGetMutableContainerConditions() { + onChanged();; + if (containerConditions_ == null) { + containerConditions_ = com.google.protobuf.MapField.newMapField( + ContainerConditionsDefaultEntryHolder.defaultEntry); + } + if (!containerConditions_.isMutable()) { + containerConditions_ = containerConditions_.copy(); + } + return containerConditions_; + } + + public int getContainerConditionsCount() { + return internalGetContainerConditions().getMap().size(); + } + /** + * map<string, bool> container_conditions = 6; + */ + + @java.lang.Override + public boolean containsContainerConditions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetContainerConditions().getMap().containsKey(key); + } + /** + * Use {@link #getContainerConditionsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getContainerConditions() { + return getContainerConditionsMap(); + } + /** + * map<string, bool> container_conditions = 6; + */ + @java.lang.Override + + public java.util.Map getContainerConditionsMap() { + return internalGetContainerConditions().getMap(); + } + /** + * map<string, bool> container_conditions = 6; + */ + @java.lang.Override + + public boolean getContainerConditionsOrDefault( + java.lang.String key, + boolean defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetContainerConditions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, bool> container_conditions = 6; + */ + @java.lang.Override + + public boolean getContainerConditionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetContainerConditions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearContainerConditions() { + internalGetMutableContainerConditions().getMutableMap() + .clear(); + return this; + } + /** + * map<string, bool> container_conditions = 6; + */ + + public Builder removeContainerConditions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableContainerConditions().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableContainerConditions() { + return internalGetMutableContainerConditions().getMutableMap(); + } + /** + * map<string, bool> container_conditions = 6; + */ + public Builder putContainerConditions( + java.lang.String key, + boolean value) { + if (key == null) { throw new NullPointerException("map key"); } + + internalGetMutableContainerConditions().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, bool> container_conditions = 6; + */ + + public Builder putAllContainerConditions( + java.util.Map values) { + internalGetMutableContainerConditions().getMutableMap() + .putAll(values); + 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:CreateProhibitionOp) + } + + // @@protoc_insertion_point(class_scope:CreateProhibitionOp) + private static final gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp(); + } + + public static gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateProhibitionOp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateProhibitionOp(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 gov.nist.csd.pm.pap.op.prohibition.proto.CreateProhibitionOp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/gov/nist/csd/pm/pap/op/prohibition/proto/CreateProhibitionOpOrBuilder.java b/src/main/java/gov/nist/csd/pm/pap/op/prohibition/proto/CreateProhibitionOpOrBuilder.java new file mode 100644 index 00000000..92157cc1 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/prohibition/proto/CreateProhibitionOpOrBuilder.java @@ -0,0 +1,110 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: prohibitions.proto + +package gov.nist.csd.pm.pap.op.prohibition.proto; + +public interface CreateProhibitionOpOrBuilder extends + // @@protoc_insertion_point(interface_extends:CreateProhibitionOp) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * string subject = 2; + * @return The subject. + */ + java.lang.String getSubject(); + /** + * string subject = 2; + * @return The bytes for subject. + */ + com.google.protobuf.ByteString + getSubjectBytes(); + + /** + * string subject_type = 3; + * @return The subjectType. + */ + java.lang.String getSubjectType(); + /** + * string subject_type = 3; + * @return The bytes for subjectType. + */ + com.google.protobuf.ByteString + getSubjectTypeBytes(); + + /** + * repeated string arset = 4; + * @return A list containing the arset. + */ + java.util.List + getArsetList(); + /** + * repeated string arset = 4; + * @return The count of arset. + */ + int getArsetCount(); + /** + * repeated string arset = 4; + * @param index The index of the element to return. + * @return The arset at the given index. + */ + java.lang.String getArset(int index); + /** + * repeated string arset = 4; + * @param index The index of the value to return. + * @return The bytes of the arset at the given index. + */ + com.google.protobuf.ByteString + getArsetBytes(int index); + + /** + * bool intersection = 5; + * @return The intersection. + */ + boolean getIntersection(); + + /** + * map<string, bool> container_conditions = 6; + */ + int getContainerConditionsCount(); + /** + * map<string, bool> container_conditions = 6; + */ + boolean containsContainerConditions( + java.lang.String key); + /** + * Use {@link #getContainerConditionsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getContainerConditions(); + /** + * map<string, bool> container_conditions = 6; + */ + java.util.Map + getContainerConditionsMap(); + /** + * map<string, bool> container_conditions = 6; + */ + + boolean getContainerConditionsOrDefault( + java.lang.String key, + boolean defaultValue); + /** + * map<string, bool> container_conditions = 6; + */ + + boolean getContainerConditionsOrThrow( + java.lang.String key); +} diff --git a/src/main/java/gov/nist/csd/pm/pap/op/prohibition/proto/DeleteProhibitionOp.java b/src/main/java/gov/nist/csd/pm/pap/op/prohibition/proto/DeleteProhibitionOp.java new file mode 100644 index 00000000..3d338304 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/prohibition/proto/DeleteProhibitionOp.java @@ -0,0 +1,559 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: prohibitions.proto + +package gov.nist.csd.pm.pap.op.prohibition.proto; + +/** + * Protobuf type {@code DeleteProhibitionOp} + */ +public final class DeleteProhibitionOp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:DeleteProhibitionOp) + DeleteProhibitionOpOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteProhibitionOp.newBuilder() to construct. + private DeleteProhibitionOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteProhibitionOp() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteProhibitionOp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteProhibitionOp( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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 gov.nist.csd.pm.pap.op.prohibition.proto.ProhibitionProto.internal_static_DeleteProhibitionOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.prohibition.proto.ProhibitionProto.internal_static_DeleteProhibitionOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp.class, gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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 gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp)) { + return super.equals(obj); + } + gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp other = (gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp) obj; + + if (!getName() + .equals(other.getName())) 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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp 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 gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp 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 gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp 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(gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp 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; + } + /** + * Protobuf type {@code DeleteProhibitionOp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:DeleteProhibitionOp) + gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.prohibition.proto.ProhibitionProto.internal_static_DeleteProhibitionOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.prohibition.proto.ProhibitionProto.internal_static_DeleteProhibitionOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp.class, gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp.Builder.class); + } + + // Construct using gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp.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(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return gov.nist.csd.pm.pap.op.prohibition.proto.ProhibitionProto.internal_static_DeleteProhibitionOp_descriptor; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp getDefaultInstanceForType() { + return gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp.getDefaultInstance(); + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp build() { + gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp buildPartial() { + gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp result = new gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp(this); + result.name_ = name_; + 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 gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp) { + return mergeFrom((gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp other) { + if (other == gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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 { + gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = 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:DeleteProhibitionOp) + } + + // @@protoc_insertion_point(class_scope:DeleteProhibitionOp) + private static final gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp(); + } + + public static gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteProhibitionOp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteProhibitionOp(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 gov.nist.csd.pm.pap.op.prohibition.proto.DeleteProhibitionOp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/gov/nist/csd/pm/pap/op/prohibition/proto/DeleteProhibitionOpOrBuilder.java b/src/main/java/gov/nist/csd/pm/pap/op/prohibition/proto/DeleteProhibitionOpOrBuilder.java new file mode 100644 index 00000000..477f63a1 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/prohibition/proto/DeleteProhibitionOpOrBuilder.java @@ -0,0 +1,21 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: prohibitions.proto + +package gov.nist.csd.pm.pap.op.prohibition.proto; + +public interface DeleteProhibitionOpOrBuilder extends + // @@protoc_insertion_point(interface_extends:DeleteProhibitionOp) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/src/main/java/gov/nist/csd/pm/pap/op/prohibition/proto/ProhibitionProto.java b/src/main/java/gov/nist/csd/pm/pap/op/prohibition/proto/ProhibitionProto.java new file mode 100644 index 00000000..54785307 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/prohibition/proto/ProhibitionProto.java @@ -0,0 +1,77 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: prohibitions.proto + +package gov.nist.csd.pm.pap.op.prohibition.proto; + +public final class ProhibitionProto { + private ProhibitionProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_CreateProhibitionOp_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_CreateProhibitionOp_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_CreateProhibitionOp_ContainerConditionsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_CreateProhibitionOp_ContainerConditionsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_DeleteProhibitionOp_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_DeleteProhibitionOp_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\022prohibitions.proto\"\370\001\n\023CreateProhibiti" + + "onOp\022\014\n\004name\030\001 \001(\t\022\017\n\007subject\030\002 \001(\t\022\024\n\014s" + + "ubject_type\030\003 \001(\t\022\r\n\005arset\030\004 \003(\t\022\024\n\014inte" + + "rsection\030\005 \001(\010\022K\n\024container_conditions\030\006" + + " \003(\0132-.CreateProhibitionOp.ContainerCond" + + "itionsEntry\032:\n\030ContainerConditionsEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\010:\0028\001\"#\n\023Delet" + + "eProhibitionOp\022\014\n\004name\030\001 \001(\tB>\n(gov.nist" + + ".csd.pm.pap.op.prohibition.protoB\020Prohib" + + "itionProtoP\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_CreateProhibitionOp_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_CreateProhibitionOp_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CreateProhibitionOp_descriptor, + new java.lang.String[] { "Name", "Subject", "SubjectType", "Arset", "Intersection", "ContainerConditions", }); + internal_static_CreateProhibitionOp_ContainerConditionsEntry_descriptor = + internal_static_CreateProhibitionOp_descriptor.getNestedTypes().get(0); + internal_static_CreateProhibitionOp_ContainerConditionsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CreateProhibitionOp_ContainerConditionsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_DeleteProhibitionOp_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_DeleteProhibitionOp_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_DeleteProhibitionOp_descriptor, + new java.lang.String[] { "Name", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/gov/nist/csd/pm/pap/op/routine/proto/CreateAdminRoutineOp.java b/src/main/java/gov/nist/csd/pm/pap/op/routine/proto/CreateAdminRoutineOp.java new file mode 100644 index 00000000..efbbec6e --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/routine/proto/CreateAdminRoutineOp.java @@ -0,0 +1,559 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: routine.proto + +package gov.nist.csd.pm.pap.op.routine.proto; + +/** + * Protobuf type {@code CreateAdminRoutineOp} + */ +public final class CreateAdminRoutineOp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:CreateAdminRoutineOp) + CreateAdminRoutineOpOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateAdminRoutineOp.newBuilder() to construct. + private CreateAdminRoutineOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateAdminRoutineOp() { + pml_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateAdminRoutineOp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateAdminRoutineOp( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + pml_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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 gov.nist.csd.pm.pap.op.routine.proto.RoutineProto.internal_static_CreateAdminRoutineOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.routine.proto.RoutineProto.internal_static_CreateAdminRoutineOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp.class, gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp.Builder.class); + } + + public static final int PML_FIELD_NUMBER = 1; + private volatile java.lang.Object pml_; + /** + * string pml = 1; + * @return The pml. + */ + @java.lang.Override + public java.lang.String getPml() { + java.lang.Object ref = pml_; + 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(); + pml_ = s; + return s; + } + } + /** + * string pml = 1; + * @return The bytes for pml. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPmlBytes() { + java.lang.Object ref = pml_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pml_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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.GeneratedMessageV3.isStringEmpty(pml_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pml_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pml_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pml_); + } + 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 gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp)) { + return super.equals(obj); + } + gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp other = (gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp) obj; + + if (!getPml() + .equals(other.getPml())) 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(); + hash = (37 * hash) + PML_FIELD_NUMBER; + hash = (53 * hash) + getPml().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp 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 gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp 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 gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp 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(gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp 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; + } + /** + * Protobuf type {@code CreateAdminRoutineOp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:CreateAdminRoutineOp) + gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.routine.proto.RoutineProto.internal_static_CreateAdminRoutineOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.routine.proto.RoutineProto.internal_static_CreateAdminRoutineOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp.class, gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp.Builder.class); + } + + // Construct using gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp.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(); + pml_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return gov.nist.csd.pm.pap.op.routine.proto.RoutineProto.internal_static_CreateAdminRoutineOp_descriptor; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp getDefaultInstanceForType() { + return gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp.getDefaultInstance(); + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp build() { + gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp buildPartial() { + gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp result = new gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp(this); + result.pml_ = pml_; + 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 gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp) { + return mergeFrom((gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp other) { + if (other == gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp.getDefaultInstance()) return this; + if (!other.getPml().isEmpty()) { + pml_ = other.pml_; + 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 { + gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object pml_ = ""; + /** + * string pml = 1; + * @return The pml. + */ + public java.lang.String getPml() { + java.lang.Object ref = pml_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pml_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string pml = 1; + * @return The bytes for pml. + */ + public com.google.protobuf.ByteString + getPmlBytes() { + java.lang.Object ref = pml_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pml_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string pml = 1; + * @param value The pml to set. + * @return This builder for chaining. + */ + public Builder setPml( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pml_ = value; + onChanged(); + return this; + } + /** + * string pml = 1; + * @return This builder for chaining. + */ + public Builder clearPml() { + + pml_ = getDefaultInstance().getPml(); + onChanged(); + return this; + } + /** + * string pml = 1; + * @param value The bytes for pml to set. + * @return This builder for chaining. + */ + public Builder setPmlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pml_ = 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:CreateAdminRoutineOp) + } + + // @@protoc_insertion_point(class_scope:CreateAdminRoutineOp) + private static final gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp(); + } + + public static gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAdminRoutineOp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateAdminRoutineOp(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 gov.nist.csd.pm.pap.op.routine.proto.CreateAdminRoutineOp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/gov/nist/csd/pm/pap/op/routine/proto/CreateAdminRoutineOpOrBuilder.java b/src/main/java/gov/nist/csd/pm/pap/op/routine/proto/CreateAdminRoutineOpOrBuilder.java new file mode 100644 index 00000000..9eb27409 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/routine/proto/CreateAdminRoutineOpOrBuilder.java @@ -0,0 +1,21 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: routine.proto + +package gov.nist.csd.pm.pap.op.routine.proto; + +public interface CreateAdminRoutineOpOrBuilder extends + // @@protoc_insertion_point(interface_extends:CreateAdminRoutineOp) + com.google.protobuf.MessageOrBuilder { + + /** + * string pml = 1; + * @return The pml. + */ + java.lang.String getPml(); + /** + * string pml = 1; + * @return The bytes for pml. + */ + com.google.protobuf.ByteString + getPmlBytes(); +} diff --git a/src/main/java/gov/nist/csd/pm/pap/op/routine/proto/DeleteAdminRoutineOp.java b/src/main/java/gov/nist/csd/pm/pap/op/routine/proto/DeleteAdminRoutineOp.java new file mode 100644 index 00000000..2ee59d9a --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/routine/proto/DeleteAdminRoutineOp.java @@ -0,0 +1,559 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: routine.proto + +package gov.nist.csd.pm.pap.op.routine.proto; + +/** + * Protobuf type {@code DeleteAdminRoutineOp} + */ +public final class DeleteAdminRoutineOp extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:DeleteAdminRoutineOp) + DeleteAdminRoutineOpOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteAdminRoutineOp.newBuilder() to construct. + private DeleteAdminRoutineOp(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteAdminRoutineOp() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteAdminRoutineOp(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteAdminRoutineOp( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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 gov.nist.csd.pm.pap.op.routine.proto.RoutineProto.internal_static_DeleteAdminRoutineOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.routine.proto.RoutineProto.internal_static_DeleteAdminRoutineOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp.class, gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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 gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp)) { + return super.equals(obj); + } + gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp other = (gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp) obj; + + if (!getName() + .equals(other.getName())) 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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp 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 gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp 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 gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp 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(gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp 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; + } + /** + * Protobuf type {@code DeleteAdminRoutineOp} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:DeleteAdminRoutineOp) + gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOpOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return gov.nist.csd.pm.pap.op.routine.proto.RoutineProto.internal_static_DeleteAdminRoutineOp_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return gov.nist.csd.pm.pap.op.routine.proto.RoutineProto.internal_static_DeleteAdminRoutineOp_fieldAccessorTable + .ensureFieldAccessorsInitialized( + gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp.class, gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp.Builder.class); + } + + // Construct using gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp.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(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return gov.nist.csd.pm.pap.op.routine.proto.RoutineProto.internal_static_DeleteAdminRoutineOp_descriptor; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp getDefaultInstanceForType() { + return gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp.getDefaultInstance(); + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp build() { + gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp buildPartial() { + gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp result = new gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp(this); + result.name_ = name_; + 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 gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp) { + return mergeFrom((gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp other) { + if (other == gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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 { + gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = 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:DeleteAdminRoutineOp) + } + + // @@protoc_insertion_point(class_scope:DeleteAdminRoutineOp) + private static final gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp(); + } + + public static gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAdminRoutineOp parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteAdminRoutineOp(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 gov.nist.csd.pm.pap.op.routine.proto.DeleteAdminRoutineOp getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/gov/nist/csd/pm/pap/op/routine/proto/DeleteAdminRoutineOpOrBuilder.java b/src/main/java/gov/nist/csd/pm/pap/op/routine/proto/DeleteAdminRoutineOpOrBuilder.java new file mode 100644 index 00000000..24de6ab7 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/routine/proto/DeleteAdminRoutineOpOrBuilder.java @@ -0,0 +1,21 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: routine.proto + +package gov.nist.csd.pm.pap.op.routine.proto; + +public interface DeleteAdminRoutineOpOrBuilder extends + // @@protoc_insertion_point(interface_extends:DeleteAdminRoutineOp) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/src/main/java/gov/nist/csd/pm/pap/op/routine/proto/RoutineProto.java b/src/main/java/gov/nist/csd/pm/pap/op/routine/proto/RoutineProto.java new file mode 100644 index 00000000..0ec455b1 --- /dev/null +++ b/src/main/java/gov/nist/csd/pm/pap/op/routine/proto/RoutineProto.java @@ -0,0 +1,60 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: routine.proto + +package gov.nist.csd.pm.pap.op.routine.proto; + +public final class RoutineProto { + private RoutineProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_CreateAdminRoutineOp_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_CreateAdminRoutineOp_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_DeleteAdminRoutineOp_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_DeleteAdminRoutineOp_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\rroutine.proto\"#\n\024CreateAdminRoutineOp\022" + + "\013\n\003pml\030\001 \001(\t\"$\n\024DeleteAdminRoutineOp\022\014\n\004" + + "name\030\001 \001(\tB6\n$gov.nist.csd.pm.pap.op.rou" + + "tine.protoB\014RoutineProtoP\001b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_CreateAdminRoutineOp_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_CreateAdminRoutineOp_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_CreateAdminRoutineOp_descriptor, + new java.lang.String[] { "Pml", }); + internal_static_DeleteAdminRoutineOp_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_DeleteAdminRoutineOp_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_DeleteAdminRoutineOp_descriptor, + new java.lang.String[] { "Name", }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/proto/graph.proto b/src/main/proto/graph.proto new file mode 100644 index 00000000..33dfccb2 --- /dev/null +++ b/src/main/proto/graph.proto @@ -0,0 +1,54 @@ +syntax = "proto3"; + +option java_multiple_files = true; +option java_package = "gov.nist.csd.pm.pap.op.graph.proto"; +option java_outer_classname = "GraphProto"; + +message AssignOp { + string ascendant = 1; + repeated string descendants = 2; +} + +message AssociateOp { + string ua = 1; + string target = 2; + repeated string arset = 3; +} + +message CreatePolicyClassOp { + string name = 1; +} + +message CreateUserAttributeOp { + string name = 1; + repeated string descendants = 2; +} + +message CreateObjectAttributeOp { + string name = 1; + repeated string descendants = 2; +} + +message CreateUserOp { + string name = 1; + repeated string descendants = 2; +} + +message CreateObjectOp { + string name = 1; + repeated string descendants = 2; +} + +message DeassignOp { + string ascendant = 1; + repeated string descendants = 2; +} + +message DeleteNodeOp { + string name = 1; +} + +message SetNodePropertiesOp { + string name = 1; + map properties = 2; +} \ No newline at end of file diff --git a/src/main/proto/obligation.proto b/src/main/proto/obligation.proto new file mode 100644 index 00000000..67cf9718 --- /dev/null +++ b/src/main/proto/obligation.proto @@ -0,0 +1,15 @@ +syntax = "proto3"; + +option java_multiple_files = true; +option java_package = "gov.nist.csd.pm.pap.op.obligation.proto"; +option java_outer_classname = "ObligationProto"; + +message CreateObligationOp { + string name = 1; + string author = 2; + string pml = 3; +} + +message DeleteObligationOp { + string name = 1; +} \ No newline at end of file diff --git a/src/main/proto/operation.proto b/src/main/proto/operation.proto new file mode 100644 index 00000000..820f7237 --- /dev/null +++ b/src/main/proto/operation.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +option java_multiple_files = true; +option java_package = "gov.nist.csd.pm.pap.op.operation.proto"; +option java_outer_classname = "OperationProto"; + +message CreateAdminOperationOp { + string pml = 1; +} + +message DeleteAdminOperationOp { + string name = 1; +} + +message SetResourceOperationsOp { + repeated string operations = 1; +} \ No newline at end of file diff --git a/src/main/proto/prohibitions.proto b/src/main/proto/prohibitions.proto new file mode 100644 index 00000000..79aa696c --- /dev/null +++ b/src/main/proto/prohibitions.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; + +option java_multiple_files = true; +option java_package = "gov.nist.csd.pm.pap.op.prohibition.proto"; +option java_outer_classname = "ProhibitionProto"; + +message CreateProhibitionOp { + string name = 1; + string subject = 2; + string subject_type = 3; + repeated string arset = 4; + bool intersection = 5; + map container_conditions = 6; +} + +message DeleteProhibitionOp { + string name = 1; +} \ No newline at end of file diff --git a/src/main/proto/routine.proto b/src/main/proto/routine.proto new file mode 100644 index 00000000..420e7d50 --- /dev/null +++ b/src/main/proto/routine.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +option java_multiple_files = true; +option java_package = "gov.nist.csd.pm.pap.op.routine.proto"; +option java_outer_classname = "RoutineProto"; + +message CreateAdminRoutineOp { + string pml = 1; +} + +message DeleteAdminRoutineOp { + string name = 1; +} \ No newline at end of file