Builder clearExtension(
- com.google.protobuf.GeneratedMessage.GeneratedExtension<
- com.cdptech.cdpclient.proto.StudioAPI.Info, ?> extension) {
- return super.clearExtension(extension);
- }
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.cdptech.cdpclient.proto.StudioAPI.Info) {
- return mergeFrom((com.cdptech.cdpclient.proto.StudioAPI.Info)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.cdptech.cdpclient.proto.StudioAPI.Info other) {
- if (other == com.cdptech.cdpclient.proto.StudioAPI.Info.getDefaultInstance()) return this;
- if (other.hasNodeId()) {
- setNodeId(other.getNodeId());
- }
- if (other.hasName()) {
- bitField0_ |= 0x00000002;
- name_ = other.name_;
- onChanged();
- }
- if (other.hasNodeType()) {
- setNodeType(other.getNodeType());
- }
- if (other.hasValueType()) {
- setValueType(other.getValueType());
- }
- if (other.hasTypeName()) {
- bitField0_ |= 0x00000010;
- typeName_ = other.typeName_;
- onChanged();
- }
- if (other.hasServerAddr()) {
- bitField0_ |= 0x00000020;
- serverAddr_ = other.serverAddr_;
- onChanged();
- }
- if (other.hasServerPort()) {
- setServerPort(other.getServerPort());
- }
- if (other.hasIsLocal()) {
- setIsLocal(other.getIsLocal());
- }
- if (other.hasFlags()) {
- setFlags(other.getFlags());
- }
- this.mergeExtensionFields(other);
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasNodeId()) {
- return false;
- }
- if (!hasName()) {
- return false;
- }
- if (!hasNodeType()) {
- return false;
- }
- if (!extensionsAreInitialized()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.cdptech.cdpclient.proto.StudioAPI.Info parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.cdptech.cdpclient.proto.StudioAPI.Info) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private int nodeId_ ;
- /**
- *
- * Application wide unique ID for each instance in CDP structure
- *
- *
- * required uint32 node_id = 1;
- * @return Whether the nodeId field is set.
- */
- @java.lang.Override
- public boolean hasNodeId() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- *
- * Application wide unique ID for each instance in CDP structure
- *
- *
- * required uint32 node_id = 1;
- * @return The nodeId.
- */
- @java.lang.Override
- public int getNodeId() {
- return nodeId_;
- }
- /**
- *
- * Application wide unique ID for each instance in CDP structure
- *
- *
- * required uint32 node_id = 1;
- * @param value The nodeId to set.
- * @return This builder for chaining.
- */
- public Builder setNodeId(int value) {
- bitField0_ |= 0x00000001;
- nodeId_ = value;
- onChanged();
- return this;
- }
- /**
- *
- * Application wide unique ID for each instance in CDP structure
- *
- *
- * required uint32 node_id = 1;
- * @return This builder for chaining.
- */
- public Builder clearNodeId() {
- bitField0_ = (bitField0_ & ~0x00000001);
- nodeId_ = 0;
- onChanged();
- return this;
- }
-
- private java.lang.Object name_ = "";
- /**
- *
- * Local short name
- *
- *
- * required string name = 2;
- * @return Whether the name field is set.
- */
- public boolean hasName() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- *
- * Local short name
- *
- *
- * required string name = 2;
- * @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();
- if (bs.isValidUtf8()) {
- name_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- * Local short name
- *
- *
- * required string name = 2;
- * @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;
- }
- }
- /**
- *
- * Local short name
- *
- *
- * required string name = 2;
- * @param value The name to set.
- * @return This builder for chaining.
- */
- public Builder setName(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- name_ = value;
- onChanged();
- return this;
- }
- /**
- *
- * Local short name
- *
- *
- * required string name = 2;
- * @return This builder for chaining.
- */
- public Builder clearName() {
- bitField0_ = (bitField0_ & ~0x00000002);
- name_ = getDefaultInstance().getName();
- onChanged();
- return this;
- }
- /**
- *
- * Local short name
- *
- *
- * required string name = 2;
- * @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();
- }
- bitField0_ |= 0x00000002;
- name_ = value;
- onChanged();
- return this;
- }
-
- private int nodeType_ = -1;
- /**
- *
- * Direct base type, type of the class
- *
- *
- * required .StudioAPI.Proto.CDPNodeType node_type = 3;
- * @return Whether the nodeType field is set.
- */
- @java.lang.Override public boolean hasNodeType() {
- return ((bitField0_ & 0x00000004) != 0);
- }
- /**
- *
- * Direct base type, type of the class
- *
- *
- * required .StudioAPI.Proto.CDPNodeType node_type = 3;
- * @return The nodeType.
- */
- @java.lang.Override
- public com.cdptech.cdpclient.proto.StudioAPI.CDPNodeType getNodeType() {
- @SuppressWarnings("deprecation")
- com.cdptech.cdpclient.proto.StudioAPI.CDPNodeType result = com.cdptech.cdpclient.proto.StudioAPI.CDPNodeType.valueOf(nodeType_);
- return result == null ? com.cdptech.cdpclient.proto.StudioAPI.CDPNodeType.CDP_UNDEFINED : result;
- }
- /**
- *
- * Direct base type, type of the class
- *
- *
- * required .StudioAPI.Proto.CDPNodeType node_type = 3;
- * @param value The nodeType to set.
- * @return This builder for chaining.
- */
- public Builder setNodeType(com.cdptech.cdpclient.proto.StudioAPI.CDPNodeType value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- nodeType_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- *
- * Direct base type, type of the class
- *
- *
- * required .StudioAPI.Proto.CDPNodeType node_type = 3;
- * @return This builder for chaining.
- */
- public Builder clearNodeType() {
- bitField0_ = (bitField0_ & ~0x00000004);
- nodeType_ = -1;
- onChanged();
- return this;
- }
-
- private int valueType_ = 0;
- /**
- *
- * Value primitive type the node holds if node may hold a value
- *
- *
- * optional .StudioAPI.Proto.CDPValueType value_type = 4;
- * @return Whether the valueType field is set.
- */
- @java.lang.Override public boolean hasValueType() {
- return ((bitField0_ & 0x00000008) != 0);
- }
- /**
- *
- * Value primitive type the node holds if node may hold a value
- *
- *
- * optional .StudioAPI.Proto.CDPValueType value_type = 4;
- * @return The valueType.
- */
- @java.lang.Override
- public com.cdptech.cdpclient.proto.StudioAPI.CDPValueType getValueType() {
- @SuppressWarnings("deprecation")
- com.cdptech.cdpclient.proto.StudioAPI.CDPValueType result = com.cdptech.cdpclient.proto.StudioAPI.CDPValueType.valueOf(valueType_);
- return result == null ? com.cdptech.cdpclient.proto.StudioAPI.CDPValueType.eUNDEFINED : result;
- }
- /**
- *
- * Value primitive type the node holds if node may hold a value
- *
- *
- * optional .StudioAPI.Proto.CDPValueType value_type = 4;
- * @param value The valueType to set.
- * @return This builder for chaining.
- */
- public Builder setValueType(com.cdptech.cdpclient.proto.StudioAPI.CDPValueType value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000008;
- valueType_ = value.getNumber();
- onChanged();
- return this;
- }
- /**
- *
- * Value primitive type the node holds if node may hold a value
- *
- *
- * optional .StudioAPI.Proto.CDPValueType value_type = 4;
- * @return This builder for chaining.
- */
- public Builder clearValueType() {
- bitField0_ = (bitField0_ & ~0x00000008);
- valueType_ = 0;
- onChanged();
- return this;
- }
-
- private java.lang.Object typeName_ = "";
- /**
- *
- * Real class name
- *
- *
- * optional string type_name = 5;
- * @return Whether the typeName field is set.
- */
- public boolean hasTypeName() {
- return ((bitField0_ & 0x00000010) != 0);
- }
- /**
- *
- * Real class name
- *
- *
- * optional string type_name = 5;
- * @return The typeName.
- */
- public java.lang.String getTypeName() {
- java.lang.Object ref = typeName_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- typeName_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- * Real class name
- *
- *
- * optional string type_name = 5;
- * @return The bytes for typeName.
- */
- public com.google.protobuf.ByteString
- getTypeNameBytes() {
- java.lang.Object ref = typeName_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- typeName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- * Real class name
- *
- *
- * optional string type_name = 5;
- * @param value The typeName to set.
- * @return This builder for chaining.
- */
- public Builder setTypeName(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000010;
- typeName_ = value;
- onChanged();
- return this;
- }
- /**
- *
- * Real class name
- *
- *
- * optional string type_name = 5;
- * @return This builder for chaining.
- */
- public Builder clearTypeName() {
- bitField0_ = (bitField0_ & ~0x00000010);
- typeName_ = getDefaultInstance().getTypeName();
- onChanged();
- return this;
- }
- /**
- *
- * Real class name
- *
- *
- * optional string type_name = 5;
- * @param value The bytes for typeName to set.
- * @return This builder for chaining.
- */
- public Builder setTypeNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000010;
- typeName_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object serverAddr_ = "";
- /**
- *
- * If this node signifies another CDP application,
- *
- *
- * optional string server_addr = 6;
- * @return Whether the serverAddr field is set.
- */
- public boolean hasServerAddr() {
- return ((bitField0_ & 0x00000020) != 0);
- }
- /**
- *
- * If this node signifies another CDP application,
- *
- *
- * optional string server_addr = 6;
- * @return The serverAddr.
- */
- public java.lang.String getServerAddr() {
- java.lang.Object ref = serverAddr_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- serverAddr_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- * If this node signifies another CDP application,
- *
- *
- * optional string server_addr = 6;
- * @return The bytes for serverAddr.
- */
- public com.google.protobuf.ByteString
- getServerAddrBytes() {
- java.lang.Object ref = serverAddr_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- serverAddr_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- * If this node signifies another CDP application,
- *
- *
- * optional string server_addr = 6;
- * @param value The serverAddr to set.
- * @return This builder for chaining.
- */
- public Builder setServerAddr(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000020;
- serverAddr_ = value;
- onChanged();
- return this;
- }
- /**
- *
- * If this node signifies another CDP application,
- *
- *
- * optional string server_addr = 6;
- * @return This builder for chaining.
- */
- public Builder clearServerAddr() {
- bitField0_ = (bitField0_ & ~0x00000020);
- serverAddr_ = getDefaultInstance().getServerAddr();
- onChanged();
- return this;
- }
- /**
- *
- * If this node signifies another CDP application,
- *
- *
- * optional string server_addr = 6;
- * @param value The bytes for serverAddr to set.
- * @return This builder for chaining.
- */
- public Builder setServerAddrBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000020;
- serverAddr_ = value;
- onChanged();
- return this;
- }
-
- private int serverPort_ ;
- /**
- *
- * this field will be the IP of said application's StudioAPIServer
- *
- *
- * optional uint32 server_port = 7;
- * @return Whether the serverPort field is set.
- */
- @java.lang.Override
- public boolean hasServerPort() {
- return ((bitField0_ & 0x00000040) != 0);
- }
- /**
- *
- * this field will be the IP of said application's StudioAPIServer
- *
- *
- * optional uint32 server_port = 7;
- * @return The serverPort.
- */
- @java.lang.Override
- public int getServerPort() {
- return serverPort_;
- }
- /**
- *
- * this field will be the IP of said application's StudioAPIServer
- *
- *
- * optional uint32 server_port = 7;
- * @param value The serverPort to set.
- * @return This builder for chaining.
- */
- public Builder setServerPort(int value) {
- bitField0_ |= 0x00000040;
- serverPort_ = value;
- onChanged();
- return this;
- }
- /**
- *
- * this field will be the IP of said application's StudioAPIServer
- *
- *
- * optional uint32 server_port = 7;
- * @return This builder for chaining.
- */
- public Builder clearServerPort() {
- bitField0_ = (bitField0_ & ~0x00000040);
- serverPort_ = 0;
- onChanged();
- return this;
- }
-
- private boolean isLocal_ ;
- /**
- *
- * if multiple applications are sent back from the server,
- *
- *
- * optional bool is_local = 8;
- * @return Whether the isLocal field is set.
- */
- @java.lang.Override
- public boolean hasIsLocal() {
- return ((bitField0_ & 0x00000080) != 0);
- }
- /**
- *
- * if multiple applications are sent back from the server,
- *
- *
- * optional bool is_local = 8;
- * @return The isLocal.
- */
- @java.lang.Override
- public boolean getIsLocal() {
- return isLocal_;
- }
- /**
- *
- * if multiple applications are sent back from the server,
- *
- *
- * optional bool is_local = 8;
- * @param value The isLocal to set.
- * @return This builder for chaining.
- */
- public Builder setIsLocal(boolean value) {
- bitField0_ |= 0x00000080;
- isLocal_ = value;
- onChanged();
- return this;
- }
- /**
- *
- * if multiple applications are sent back from the server,
- *
- *
- * optional bool is_local = 8;
- * @return This builder for chaining.
- */
- public Builder clearIsLocal() {
- bitField0_ = (bitField0_ & ~0x00000080);
- isLocal_ = false;
- onChanged();
- return this;
- }
-
- private int flags_ ;
- /**
- *
- * this flag is set to true for the app that the data was requested from
- *
- *
- * optional uint32 flags = 9;
- * @return Whether the flags field is set.
- */
- @java.lang.Override
- public boolean hasFlags() {
- return ((bitField0_ & 0x00000100) != 0);
- }
- /**
- *
- * this flag is set to true for the app that the data was requested from
- *
- *
- * optional uint32 flags = 9;
- * @return The flags.
- */
- @java.lang.Override
- public int getFlags() {
- return flags_;
- }
- /**
- *
- * this flag is set to true for the app that the data was requested from
- *
- *
- * optional uint32 flags = 9;
- * @param value The flags to set.
- * @return This builder for chaining.
- */
- public Builder setFlags(int value) {
- bitField0_ |= 0x00000100;
- flags_ = value;
- onChanged();
- return this;
- }
- /**
- *
- * this flag is set to true for the app that the data was requested from
- *
- *
- * optional uint32 flags = 9;
- * @return This builder for chaining.
- */
- public Builder clearFlags() {
- bitField0_ = (bitField0_ & ~0x00000100);
- flags_ = 0;
- 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:StudioAPI.Proto.Info)
- }
-
- // @@protoc_insertion_point(class_scope:StudioAPI.Proto.Info)
- private static final com.cdptech.cdpclient.proto.StudioAPI.Info DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.cdptech.cdpclient.proto.StudioAPI.Info();
- }
-
- public static com.cdptech.cdpclient.proto.StudioAPI.Info getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public Info parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Info(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.cdptech.cdpclient.proto.StudioAPI.Info getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface NodeOrBuilder extends
- // @@protoc_insertion_point(interface_extends:StudioAPI.Proto.Node)
- com.google.protobuf.GeneratedMessageV3.
- ExtendableMessageOrBuilder {
-
- /**
- * required .StudioAPI.Proto.Info info = 1;
- * @return Whether the info field is set.
- */
- boolean hasInfo();
- /**
- * required .StudioAPI.Proto.Info info = 1;
- * @return The info.
- */
- com.cdptech.cdpclient.proto.StudioAPI.Info getInfo();
- /**
- * required .StudioAPI.Proto.Info info = 1;
- */
- com.cdptech.cdpclient.proto.StudioAPI.InfoOrBuilder getInfoOrBuilder();
-
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- java.util.List
- getNodeList();
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- com.cdptech.cdpclient.proto.StudioAPI.Node getNode(int index);
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- int getNodeCount();
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- java.util.List extends com.cdptech.cdpclient.proto.StudioAPI.NodeOrBuilder>
- getNodeOrBuilderList();
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- com.cdptech.cdpclient.proto.StudioAPI.NodeOrBuilder getNodeOrBuilder(
- int index);
- }
- /**
- *
- ** CDP structure response data structure, a tree of Info properties.
- *
- *
- * Protobuf type {@code StudioAPI.Proto.Node}
- */
- public static final class Node extends
- com.google.protobuf.GeneratedMessageV3.ExtendableMessage<
- Node> implements
- // @@protoc_insertion_point(message_implements:StudioAPI.Proto.Node)
- NodeOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use Node.newBuilder() to construct.
- private Node(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) {
- super(builder);
- }
- private Node() {
- node_ = java.util.Collections.emptyList();
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new Node();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private Node(
- 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: {
- com.cdptech.cdpclient.proto.StudioAPI.Info.Builder subBuilder = null;
- if (((bitField0_ & 0x00000001) != 0)) {
- subBuilder = info_.toBuilder();
- }
- info_ = input.readMessage(com.cdptech.cdpclient.proto.StudioAPI.Info.PARSER, extensionRegistry);
- if (subBuilder != null) {
- subBuilder.mergeFrom(info_);
- info_ = subBuilder.buildPartial();
- }
- bitField0_ |= 0x00000001;
- break;
- }
- case 18: {
- if (!((mutable_bitField0_ & 0x00000002) != 0)) {
- node_ = new java.util.ArrayList();
- mutable_bitField0_ |= 0x00000002;
- }
- node_.add(
- input.readMessage(com.cdptech.cdpclient.proto.StudioAPI.Node.PARSER, extensionRegistry));
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- if (((mutable_bitField0_ & 0x00000002) != 0)) {
- node_ = java.util.Collections.unmodifiableList(node_);
- }
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.cdptech.cdpclient.proto.StudioAPI.internal_static_StudioAPI_Proto_Node_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.cdptech.cdpclient.proto.StudioAPI.internal_static_StudioAPI_Proto_Node_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.cdptech.cdpclient.proto.StudioAPI.Node.class, com.cdptech.cdpclient.proto.StudioAPI.Node.Builder.class);
- }
-
- private int bitField0_;
- public static final int INFO_FIELD_NUMBER = 1;
- private com.cdptech.cdpclient.proto.StudioAPI.Info info_;
- /**
- * required .StudioAPI.Proto.Info info = 1;
- * @return Whether the info field is set.
- */
- @java.lang.Override
- public boolean hasInfo() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * required .StudioAPI.Proto.Info info = 1;
- * @return The info.
- */
- @java.lang.Override
- public com.cdptech.cdpclient.proto.StudioAPI.Info getInfo() {
- return info_ == null ? com.cdptech.cdpclient.proto.StudioAPI.Info.getDefaultInstance() : info_;
- }
- /**
- * required .StudioAPI.Proto.Info info = 1;
- */
- @java.lang.Override
- public com.cdptech.cdpclient.proto.StudioAPI.InfoOrBuilder getInfoOrBuilder() {
- return info_ == null ? com.cdptech.cdpclient.proto.StudioAPI.Info.getDefaultInstance() : info_;
- }
-
- public static final int NODE_FIELD_NUMBER = 2;
- private java.util.List node_;
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- @java.lang.Override
- public java.util.List getNodeList() {
- return node_;
- }
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- @java.lang.Override
- public java.util.List extends com.cdptech.cdpclient.proto.StudioAPI.NodeOrBuilder>
- getNodeOrBuilderList() {
- return node_;
- }
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- @java.lang.Override
- public int getNodeCount() {
- return node_.size();
- }
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- @java.lang.Override
- public com.cdptech.cdpclient.proto.StudioAPI.Node getNode(int index) {
- return node_.get(index);
- }
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- @java.lang.Override
- public com.cdptech.cdpclient.proto.StudioAPI.NodeOrBuilder getNodeOrBuilder(
- int index) {
- return node_.get(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;
-
- if (!hasInfo()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!getInfo().isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- for (int i = 0; i < getNodeCount(); i++) {
- if (!getNode(i).isInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- }
- if (!extensionsAreInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- com.google.protobuf.GeneratedMessageV3
- .ExtendableMessage.ExtensionWriter
- extensionWriter = newExtensionWriter();
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeMessage(1, getInfo());
- }
- for (int i = 0; i < node_.size(); i++) {
- output.writeMessage(2, node_.get(i));
- }
- extensionWriter.writeUntil(536870912, output);
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(1, getInfo());
- }
- for (int i = 0; i < node_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream
- .computeMessageSize(2, node_.get(i));
- }
- size += extensionsSerializedSize();
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.cdptech.cdpclient.proto.StudioAPI.Node)) {
- return super.equals(obj);
- }
- com.cdptech.cdpclient.proto.StudioAPI.Node other = (com.cdptech.cdpclient.proto.StudioAPI.Node) obj;
-
- if (hasInfo() != other.hasInfo()) return false;
- if (hasInfo()) {
- if (!getInfo()
- .equals(other.getInfo())) return false;
- }
- if (!getNodeList()
- .equals(other.getNodeList())) return false;
- if (!unknownFields.equals(other.unknownFields)) return false;
- if (!getExtensionFields().equals(other.getExtensionFields()))
- return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasInfo()) {
- hash = (37 * hash) + INFO_FIELD_NUMBER;
- hash = (53 * hash) + getInfo().hashCode();
- }
- if (getNodeCount() > 0) {
- hash = (37 * hash) + NODE_FIELD_NUMBER;
- hash = (53 * hash) + getNodeList().hashCode();
- }
- hash = hashFields(hash, getExtensionFields());
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.cdptech.cdpclient.proto.StudioAPI.Node parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.Node parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.Node parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.Node parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.Node parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.Node parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.Node parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.Node parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.Node parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.Node parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.Node parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.Node parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.cdptech.cdpclient.proto.StudioAPI.Node 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;
- }
- /**
- *
- ** CDP structure response data structure, a tree of Info properties.
- *
- *
- * Protobuf type {@code StudioAPI.Proto.Node}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<
- com.cdptech.cdpclient.proto.StudioAPI.Node, Builder> implements
- // @@protoc_insertion_point(builder_implements:StudioAPI.Proto.Node)
- com.cdptech.cdpclient.proto.StudioAPI.NodeOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.cdptech.cdpclient.proto.StudioAPI.internal_static_StudioAPI_Proto_Node_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.cdptech.cdpclient.proto.StudioAPI.internal_static_StudioAPI_Proto_Node_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.cdptech.cdpclient.proto.StudioAPI.Node.class, com.cdptech.cdpclient.proto.StudioAPI.Node.Builder.class);
- }
-
- // Construct using com.cdptech.cdpclient.proto.StudioAPI.Node.newBuilder()
- private Builder() {
- maybeForceBuilderInitialization();
- }
-
- private Builder(
- com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- super(parent);
- maybeForceBuilderInitialization();
- }
- private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3
- .alwaysUseFieldBuilders) {
- getInfoFieldBuilder();
- getNodeFieldBuilder();
- }
- }
- @java.lang.Override
- public Builder clear() {
- super.clear();
- if (infoBuilder_ == null) {
- info_ = null;
- } else {
- infoBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- if (nodeBuilder_ == null) {
- node_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- } else {
- nodeBuilder_.clear();
- }
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.cdptech.cdpclient.proto.StudioAPI.internal_static_StudioAPI_Proto_Node_descriptor;
- }
-
- @java.lang.Override
- public com.cdptech.cdpclient.proto.StudioAPI.Node getDefaultInstanceForType() {
- return com.cdptech.cdpclient.proto.StudioAPI.Node.getDefaultInstance();
- }
-
- @java.lang.Override
- public com.cdptech.cdpclient.proto.StudioAPI.Node build() {
- com.cdptech.cdpclient.proto.StudioAPI.Node result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public com.cdptech.cdpclient.proto.StudioAPI.Node buildPartial() {
- com.cdptech.cdpclient.proto.StudioAPI.Node result = new com.cdptech.cdpclient.proto.StudioAPI.Node(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- if (infoBuilder_ == null) {
- result.info_ = info_;
- } else {
- result.info_ = infoBuilder_.build();
- }
- to_bitField0_ |= 0x00000001;
- }
- if (nodeBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)) {
- node_ = java.util.Collections.unmodifiableList(node_);
- bitField0_ = (bitField0_ & ~0x00000002);
- }
- result.node_ = node_;
- } else {
- result.node_ = nodeBuilder_.build();
- }
- result.bitField0_ = to_bitField0_;
- 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 setExtension(
- com.google.protobuf.GeneratedMessage.GeneratedExtension<
- com.cdptech.cdpclient.proto.StudioAPI.Node, Type> extension,
- Type value) {
- return super.setExtension(extension, value);
- }
- @java.lang.Override
- public Builder setExtension(
- com.google.protobuf.GeneratedMessage.GeneratedExtension<
- com.cdptech.cdpclient.proto.StudioAPI.Node, java.util.List> extension,
- int index, Type value) {
- return super.setExtension(extension, index, value);
- }
- @java.lang.Override
- public Builder addExtension(
- com.google.protobuf.GeneratedMessage.GeneratedExtension<
- com.cdptech.cdpclient.proto.StudioAPI.Node, java.util.List> extension,
- Type value) {
- return super.addExtension(extension, value);
- }
- @java.lang.Override
- public Builder clearExtension(
- com.google.protobuf.GeneratedMessage.GeneratedExtension<
- com.cdptech.cdpclient.proto.StudioAPI.Node, ?> extension) {
- return super.clearExtension(extension);
- }
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.cdptech.cdpclient.proto.StudioAPI.Node) {
- return mergeFrom((com.cdptech.cdpclient.proto.StudioAPI.Node)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.cdptech.cdpclient.proto.StudioAPI.Node other) {
- if (other == com.cdptech.cdpclient.proto.StudioAPI.Node.getDefaultInstance()) return this;
- if (other.hasInfo()) {
- mergeInfo(other.getInfo());
- }
- if (nodeBuilder_ == null) {
- if (!other.node_.isEmpty()) {
- if (node_.isEmpty()) {
- node_ = other.node_;
- bitField0_ = (bitField0_ & ~0x00000002);
- } else {
- ensureNodeIsMutable();
- node_.addAll(other.node_);
- }
- onChanged();
- }
- } else {
- if (!other.node_.isEmpty()) {
- if (nodeBuilder_.isEmpty()) {
- nodeBuilder_.dispose();
- nodeBuilder_ = null;
- node_ = other.node_;
- bitField0_ = (bitField0_ & ~0x00000002);
- nodeBuilder_ =
- com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
- getNodeFieldBuilder() : null;
- } else {
- nodeBuilder_.addAllMessages(other.node_);
- }
- }
- }
- this.mergeExtensionFields(other);
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasInfo()) {
- return false;
- }
- if (!getInfo().isInitialized()) {
- return false;
- }
- for (int i = 0; i < getNodeCount(); i++) {
- if (!getNode(i).isInitialized()) {
- return false;
- }
- }
- if (!extensionsAreInitialized()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.cdptech.cdpclient.proto.StudioAPI.Node parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.cdptech.cdpclient.proto.StudioAPI.Node) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private com.cdptech.cdpclient.proto.StudioAPI.Info info_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.cdptech.cdpclient.proto.StudioAPI.Info, com.cdptech.cdpclient.proto.StudioAPI.Info.Builder, com.cdptech.cdpclient.proto.StudioAPI.InfoOrBuilder> infoBuilder_;
- /**
- * required .StudioAPI.Proto.Info info = 1;
- * @return Whether the info field is set.
- */
- public boolean hasInfo() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * required .StudioAPI.Proto.Info info = 1;
- * @return The info.
- */
- public com.cdptech.cdpclient.proto.StudioAPI.Info getInfo() {
- if (infoBuilder_ == null) {
- return info_ == null ? com.cdptech.cdpclient.proto.StudioAPI.Info.getDefaultInstance() : info_;
- } else {
- return infoBuilder_.getMessage();
- }
- }
- /**
- * required .StudioAPI.Proto.Info info = 1;
- */
- public Builder setInfo(com.cdptech.cdpclient.proto.StudioAPI.Info value) {
- if (infoBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- info_ = value;
- onChanged();
- } else {
- infoBuilder_.setMessage(value);
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * required .StudioAPI.Proto.Info info = 1;
- */
- public Builder setInfo(
- com.cdptech.cdpclient.proto.StudioAPI.Info.Builder builderForValue) {
- if (infoBuilder_ == null) {
- info_ = builderForValue.build();
- onChanged();
- } else {
- infoBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * required .StudioAPI.Proto.Info info = 1;
- */
- public Builder mergeInfo(com.cdptech.cdpclient.proto.StudioAPI.Info value) {
- if (infoBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0) &&
- info_ != null &&
- info_ != com.cdptech.cdpclient.proto.StudioAPI.Info.getDefaultInstance()) {
- info_ =
- com.cdptech.cdpclient.proto.StudioAPI.Info.newBuilder(info_).mergeFrom(value).buildPartial();
- } else {
- info_ = value;
- }
- onChanged();
- } else {
- infoBuilder_.mergeFrom(value);
- }
- bitField0_ |= 0x00000001;
- return this;
- }
- /**
- * required .StudioAPI.Proto.Info info = 1;
- */
- public Builder clearInfo() {
- if (infoBuilder_ == null) {
- info_ = null;
- onChanged();
- } else {
- infoBuilder_.clear();
- }
- bitField0_ = (bitField0_ & ~0x00000001);
- return this;
- }
- /**
- * required .StudioAPI.Proto.Info info = 1;
- */
- public com.cdptech.cdpclient.proto.StudioAPI.Info.Builder getInfoBuilder() {
- bitField0_ |= 0x00000001;
- onChanged();
- return getInfoFieldBuilder().getBuilder();
- }
- /**
- * required .StudioAPI.Proto.Info info = 1;
- */
- public com.cdptech.cdpclient.proto.StudioAPI.InfoOrBuilder getInfoOrBuilder() {
- if (infoBuilder_ != null) {
- return infoBuilder_.getMessageOrBuilder();
- } else {
- return info_ == null ?
- com.cdptech.cdpclient.proto.StudioAPI.Info.getDefaultInstance() : info_;
- }
- }
- /**
- * required .StudioAPI.Proto.Info info = 1;
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.cdptech.cdpclient.proto.StudioAPI.Info, com.cdptech.cdpclient.proto.StudioAPI.Info.Builder, com.cdptech.cdpclient.proto.StudioAPI.InfoOrBuilder>
- getInfoFieldBuilder() {
- if (infoBuilder_ == null) {
- infoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
- com.cdptech.cdpclient.proto.StudioAPI.Info, com.cdptech.cdpclient.proto.StudioAPI.Info.Builder, com.cdptech.cdpclient.proto.StudioAPI.InfoOrBuilder>(
- getInfo(),
- getParentForChildren(),
- isClean());
- info_ = null;
- }
- return infoBuilder_;
- }
-
- private java.util.List node_ =
- java.util.Collections.emptyList();
- private void ensureNodeIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
- node_ = new java.util.ArrayList(node_);
- bitField0_ |= 0x00000002;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilderV3<
- com.cdptech.cdpclient.proto.StudioAPI.Node, com.cdptech.cdpclient.proto.StudioAPI.Node.Builder, com.cdptech.cdpclient.proto.StudioAPI.NodeOrBuilder> nodeBuilder_;
-
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- public java.util.List getNodeList() {
- if (nodeBuilder_ == null) {
- return java.util.Collections.unmodifiableList(node_);
- } else {
- return nodeBuilder_.getMessageList();
- }
- }
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- public int getNodeCount() {
- if (nodeBuilder_ == null) {
- return node_.size();
- } else {
- return nodeBuilder_.getCount();
- }
- }
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- public com.cdptech.cdpclient.proto.StudioAPI.Node getNode(int index) {
- if (nodeBuilder_ == null) {
- return node_.get(index);
- } else {
- return nodeBuilder_.getMessage(index);
- }
- }
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- public Builder setNode(
- int index, com.cdptech.cdpclient.proto.StudioAPI.Node value) {
- if (nodeBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureNodeIsMutable();
- node_.set(index, value);
- onChanged();
- } else {
- nodeBuilder_.setMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- public Builder setNode(
- int index, com.cdptech.cdpclient.proto.StudioAPI.Node.Builder builderForValue) {
- if (nodeBuilder_ == null) {
- ensureNodeIsMutable();
- node_.set(index, builderForValue.build());
- onChanged();
- } else {
- nodeBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- public Builder addNode(com.cdptech.cdpclient.proto.StudioAPI.Node value) {
- if (nodeBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureNodeIsMutable();
- node_.add(value);
- onChanged();
- } else {
- nodeBuilder_.addMessage(value);
- }
- return this;
- }
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- public Builder addNode(
- int index, com.cdptech.cdpclient.proto.StudioAPI.Node value) {
- if (nodeBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureNodeIsMutable();
- node_.add(index, value);
- onChanged();
- } else {
- nodeBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- public Builder addNode(
- com.cdptech.cdpclient.proto.StudioAPI.Node.Builder builderForValue) {
- if (nodeBuilder_ == null) {
- ensureNodeIsMutable();
- node_.add(builderForValue.build());
- onChanged();
- } else {
- nodeBuilder_.addMessage(builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- public Builder addNode(
- int index, com.cdptech.cdpclient.proto.StudioAPI.Node.Builder builderForValue) {
- if (nodeBuilder_ == null) {
- ensureNodeIsMutable();
- node_.add(index, builderForValue.build());
- onChanged();
- } else {
- nodeBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- public Builder addAllNode(
- java.lang.Iterable extends com.cdptech.cdpclient.proto.StudioAPI.Node> values) {
- if (nodeBuilder_ == null) {
- ensureNodeIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(
- values, node_);
- onChanged();
- } else {
- nodeBuilder_.addAllMessages(values);
- }
- return this;
- }
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- public Builder clearNode() {
- if (nodeBuilder_ == null) {
- node_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
- onChanged();
- } else {
- nodeBuilder_.clear();
- }
- return this;
- }
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- public Builder removeNode(int index) {
- if (nodeBuilder_ == null) {
- ensureNodeIsMutable();
- node_.remove(index);
- onChanged();
- } else {
- nodeBuilder_.remove(index);
- }
- return this;
- }
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- public com.cdptech.cdpclient.proto.StudioAPI.Node.Builder getNodeBuilder(
- int index) {
- return getNodeFieldBuilder().getBuilder(index);
- }
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- public com.cdptech.cdpclient.proto.StudioAPI.NodeOrBuilder getNodeOrBuilder(
- int index) {
- if (nodeBuilder_ == null) {
- return node_.get(index); } else {
- return nodeBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- public java.util.List extends com.cdptech.cdpclient.proto.StudioAPI.NodeOrBuilder>
- getNodeOrBuilderList() {
- if (nodeBuilder_ != null) {
- return nodeBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(node_);
- }
- }
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- public com.cdptech.cdpclient.proto.StudioAPI.Node.Builder addNodeBuilder() {
- return getNodeFieldBuilder().addBuilder(
- com.cdptech.cdpclient.proto.StudioAPI.Node.getDefaultInstance());
- }
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- public com.cdptech.cdpclient.proto.StudioAPI.Node.Builder addNodeBuilder(
- int index) {
- return getNodeFieldBuilder().addBuilder(
- index, com.cdptech.cdpclient.proto.StudioAPI.Node.getDefaultInstance());
- }
- /**
- * repeated .StudioAPI.Proto.Node node = 2;
- */
- public java.util.List
- getNodeBuilderList() {
- return getNodeFieldBuilder().getBuilderList();
- }
- private com.google.protobuf.RepeatedFieldBuilderV3<
- com.cdptech.cdpclient.proto.StudioAPI.Node, com.cdptech.cdpclient.proto.StudioAPI.Node.Builder, com.cdptech.cdpclient.proto.StudioAPI.NodeOrBuilder>
- getNodeFieldBuilder() {
- if (nodeBuilder_ == null) {
- nodeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
- com.cdptech.cdpclient.proto.StudioAPI.Node, com.cdptech.cdpclient.proto.StudioAPI.Node.Builder, com.cdptech.cdpclient.proto.StudioAPI.NodeOrBuilder>(
- node_,
- ((bitField0_ & 0x00000002) != 0),
- getParentForChildren(),
- isClean());
- node_ = null;
- }
- return nodeBuilder_;
- }
- @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:StudioAPI.Proto.Node)
- }
-
- // @@protoc_insertion_point(class_scope:StudioAPI.Proto.Node)
- private static final com.cdptech.cdpclient.proto.StudioAPI.Node DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.cdptech.cdpclient.proto.StudioAPI.Node();
- }
-
- public static com.cdptech.cdpclient.proto.StudioAPI.Node getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public Node parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new Node(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.cdptech.cdpclient.proto.StudioAPI.Node getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface ChildAddOrBuilder extends
- // @@protoc_insertion_point(interface_extends:StudioAPI.Proto.ChildAdd)
- com.google.protobuf.GeneratedMessageV3.
- ExtendableMessageOrBuilder {
-
- /**
- *
- * parent to add the node into
- *
- *
- * required uint32 parent_node_id = 1;
- * @return Whether the parentNodeId field is set.
- */
- boolean hasParentNodeId();
- /**
- *
- * parent to add the node into
- *
- *
- * required uint32 parent_node_id = 1;
- * @return The parentNodeId.
- */
- int getParentNodeId();
-
- /**
- *
- * child name to be added
- *
- *
- * required string child_name = 2;
- * @return Whether the childName field is set.
- */
- boolean hasChildName();
- /**
- *
- * child name to be added
- *
- *
- * required string child_name = 2;
- * @return The childName.
- */
- java.lang.String getChildName();
- /**
- *
- * child name to be added
- *
- *
- * required string child_name = 2;
- * @return The bytes for childName.
- */
- com.google.protobuf.ByteString
- getChildNameBytes();
-
- /**
- *
- * child class name
- *
- *
- * required string child_type_name = 3;
- * @return Whether the childTypeName field is set.
- */
- boolean hasChildTypeName();
- /**
- *
- * child class name
- *
- *
- * required string child_type_name = 3;
- * @return The childTypeName.
- */
- java.lang.String getChildTypeName();
- /**
- *
- * child class name
- *
- *
- * required string child_type_name = 3;
- * @return The bytes for childTypeName.
- */
- com.google.protobuf.ByteString
- getChildTypeNameBytes();
- }
- /**
- *
- ** ChildAdd Request input structure
- *
- *
- * Protobuf type {@code StudioAPI.Proto.ChildAdd}
- */
- public static final class ChildAdd extends
- com.google.protobuf.GeneratedMessageV3.ExtendableMessage<
- ChildAdd> implements
- // @@protoc_insertion_point(message_implements:StudioAPI.Proto.ChildAdd)
- ChildAddOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use ChildAdd.newBuilder() to construct.
- private ChildAdd(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) {
- super(builder);
- }
- private ChildAdd() {
- childName_ = "";
- childTypeName_ = "";
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new ChildAdd();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private ChildAdd(
- 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 8: {
- bitField0_ |= 0x00000001;
- parentNodeId_ = input.readUInt32();
- break;
- }
- case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- childName_ = bs;
- break;
- }
- case 26: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000004;
- childTypeName_ = bs;
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.cdptech.cdpclient.proto.StudioAPI.internal_static_StudioAPI_Proto_ChildAdd_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.cdptech.cdpclient.proto.StudioAPI.internal_static_StudioAPI_Proto_ChildAdd_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.cdptech.cdpclient.proto.StudioAPI.ChildAdd.class, com.cdptech.cdpclient.proto.StudioAPI.ChildAdd.Builder.class);
- }
-
- private int bitField0_;
- public static final int PARENT_NODE_ID_FIELD_NUMBER = 1;
- private int parentNodeId_;
- /**
- *
- * parent to add the node into
- *
- *
- * required uint32 parent_node_id = 1;
- * @return Whether the parentNodeId field is set.
- */
- @java.lang.Override
- public boolean hasParentNodeId() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- *
- * parent to add the node into
- *
- *
- * required uint32 parent_node_id = 1;
- * @return The parentNodeId.
- */
- @java.lang.Override
- public int getParentNodeId() {
- return parentNodeId_;
- }
-
- public static final int CHILD_NAME_FIELD_NUMBER = 2;
- private volatile java.lang.Object childName_;
- /**
- *
- * child name to be added
- *
- *
- * required string child_name = 2;
- * @return Whether the childName field is set.
- */
- @java.lang.Override
- public boolean hasChildName() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- *
- * child name to be added
- *
- *
- * required string child_name = 2;
- * @return The childName.
- */
- @java.lang.Override
- public java.lang.String getChildName() {
- java.lang.Object ref = childName_;
- 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();
- if (bs.isValidUtf8()) {
- childName_ = s;
- }
- return s;
- }
- }
- /**
- *
- * child name to be added
- *
- *
- * required string child_name = 2;
- * @return The bytes for childName.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getChildNameBytes() {
- java.lang.Object ref = childName_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- childName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int CHILD_TYPE_NAME_FIELD_NUMBER = 3;
- private volatile java.lang.Object childTypeName_;
- /**
- *
- * child class name
- *
- *
- * required string child_type_name = 3;
- * @return Whether the childTypeName field is set.
- */
- @java.lang.Override
- public boolean hasChildTypeName() {
- return ((bitField0_ & 0x00000004) != 0);
- }
- /**
- *
- * child class name
- *
- *
- * required string child_type_name = 3;
- * @return The childTypeName.
- */
- @java.lang.Override
- public java.lang.String getChildTypeName() {
- java.lang.Object ref = childTypeName_;
- 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();
- if (bs.isValidUtf8()) {
- childTypeName_ = s;
- }
- return s;
- }
- }
- /**
- *
- * child class name
- *
- *
- * required string child_type_name = 3;
- * @return The bytes for childTypeName.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getChildTypeNameBytes() {
- java.lang.Object ref = childTypeName_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- childTypeName_ = 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;
-
- if (!hasParentNodeId()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasChildName()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasChildTypeName()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!extensionsAreInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- com.google.protobuf.GeneratedMessageV3
- .ExtendableMessage.ExtensionWriter
- extensionWriter = newExtensionWriter();
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeUInt32(1, parentNodeId_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, childName_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 3, childTypeName_);
- }
- extensionWriter.writeUntil(536870912, output);
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(1, parentNodeId_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, childName_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, childTypeName_);
- }
- size += extensionsSerializedSize();
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.cdptech.cdpclient.proto.StudioAPI.ChildAdd)) {
- return super.equals(obj);
- }
- com.cdptech.cdpclient.proto.StudioAPI.ChildAdd other = (com.cdptech.cdpclient.proto.StudioAPI.ChildAdd) obj;
-
- if (hasParentNodeId() != other.hasParentNodeId()) return false;
- if (hasParentNodeId()) {
- if (getParentNodeId()
- != other.getParentNodeId()) return false;
- }
- if (hasChildName() != other.hasChildName()) return false;
- if (hasChildName()) {
- if (!getChildName()
- .equals(other.getChildName())) return false;
- }
- if (hasChildTypeName() != other.hasChildTypeName()) return false;
- if (hasChildTypeName()) {
- if (!getChildTypeName()
- .equals(other.getChildTypeName())) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- if (!getExtensionFields().equals(other.getExtensionFields()))
- return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasParentNodeId()) {
- hash = (37 * hash) + PARENT_NODE_ID_FIELD_NUMBER;
- hash = (53 * hash) + getParentNodeId();
- }
- if (hasChildName()) {
- hash = (37 * hash) + CHILD_NAME_FIELD_NUMBER;
- hash = (53 * hash) + getChildName().hashCode();
- }
- if (hasChildTypeName()) {
- hash = (37 * hash) + CHILD_TYPE_NAME_FIELD_NUMBER;
- hash = (53 * hash) + getChildTypeName().hashCode();
- }
- hash = hashFields(hash, getExtensionFields());
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.cdptech.cdpclient.proto.StudioAPI.ChildAdd parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.ChildAdd parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.ChildAdd parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.ChildAdd parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.ChildAdd parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.ChildAdd parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.ChildAdd parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.ChildAdd parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.ChildAdd parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.ChildAdd parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.ChildAdd parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.ChildAdd parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.cdptech.cdpclient.proto.StudioAPI.ChildAdd 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;
- }
- /**
- *
- ** ChildAdd Request input structure
- *
- *
- * Protobuf type {@code StudioAPI.Proto.ChildAdd}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<
- com.cdptech.cdpclient.proto.StudioAPI.ChildAdd, Builder> implements
- // @@protoc_insertion_point(builder_implements:StudioAPI.Proto.ChildAdd)
- com.cdptech.cdpclient.proto.StudioAPI.ChildAddOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.cdptech.cdpclient.proto.StudioAPI.internal_static_StudioAPI_Proto_ChildAdd_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.cdptech.cdpclient.proto.StudioAPI.internal_static_StudioAPI_Proto_ChildAdd_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.cdptech.cdpclient.proto.StudioAPI.ChildAdd.class, com.cdptech.cdpclient.proto.StudioAPI.ChildAdd.Builder.class);
- }
-
- // Construct using com.cdptech.cdpclient.proto.StudioAPI.ChildAdd.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();
- parentNodeId_ = 0;
- bitField0_ = (bitField0_ & ~0x00000001);
- childName_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
- childTypeName_ = "";
- bitField0_ = (bitField0_ & ~0x00000004);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.cdptech.cdpclient.proto.StudioAPI.internal_static_StudioAPI_Proto_ChildAdd_descriptor;
- }
-
- @java.lang.Override
- public com.cdptech.cdpclient.proto.StudioAPI.ChildAdd getDefaultInstanceForType() {
- return com.cdptech.cdpclient.proto.StudioAPI.ChildAdd.getDefaultInstance();
- }
-
- @java.lang.Override
- public com.cdptech.cdpclient.proto.StudioAPI.ChildAdd build() {
- com.cdptech.cdpclient.proto.StudioAPI.ChildAdd result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public com.cdptech.cdpclient.proto.StudioAPI.ChildAdd buildPartial() {
- com.cdptech.cdpclient.proto.StudioAPI.ChildAdd result = new com.cdptech.cdpclient.proto.StudioAPI.ChildAdd(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.parentNodeId_ = parentNodeId_;
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- to_bitField0_ |= 0x00000002;
- }
- result.childName_ = childName_;
- if (((from_bitField0_ & 0x00000004) != 0)) {
- to_bitField0_ |= 0x00000004;
- }
- result.childTypeName_ = childTypeName_;
- result.bitField0_ = to_bitField0_;
- 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 setExtension(
- com.google.protobuf.GeneratedMessage.GeneratedExtension<
- com.cdptech.cdpclient.proto.StudioAPI.ChildAdd, Type> extension,
- Type value) {
- return super.setExtension(extension, value);
- }
- @java.lang.Override
- public Builder setExtension(
- com.google.protobuf.GeneratedMessage.GeneratedExtension<
- com.cdptech.cdpclient.proto.StudioAPI.ChildAdd, java.util.List> extension,
- int index, Type value) {
- return super.setExtension(extension, index, value);
- }
- @java.lang.Override
- public Builder addExtension(
- com.google.protobuf.GeneratedMessage.GeneratedExtension<
- com.cdptech.cdpclient.proto.StudioAPI.ChildAdd, java.util.List> extension,
- Type value) {
- return super.addExtension(extension, value);
- }
- @java.lang.Override
- public Builder clearExtension(
- com.google.protobuf.GeneratedMessage.GeneratedExtension<
- com.cdptech.cdpclient.proto.StudioAPI.ChildAdd, ?> extension) {
- return super.clearExtension(extension);
- }
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.cdptech.cdpclient.proto.StudioAPI.ChildAdd) {
- return mergeFrom((com.cdptech.cdpclient.proto.StudioAPI.ChildAdd)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.cdptech.cdpclient.proto.StudioAPI.ChildAdd other) {
- if (other == com.cdptech.cdpclient.proto.StudioAPI.ChildAdd.getDefaultInstance()) return this;
- if (other.hasParentNodeId()) {
- setParentNodeId(other.getParentNodeId());
- }
- if (other.hasChildName()) {
- bitField0_ |= 0x00000002;
- childName_ = other.childName_;
- onChanged();
- }
- if (other.hasChildTypeName()) {
- bitField0_ |= 0x00000004;
- childTypeName_ = other.childTypeName_;
- onChanged();
- }
- this.mergeExtensionFields(other);
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasParentNodeId()) {
- return false;
- }
- if (!hasChildName()) {
- return false;
- }
- if (!hasChildTypeName()) {
- return false;
- }
- if (!extensionsAreInitialized()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.cdptech.cdpclient.proto.StudioAPI.ChildAdd parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.cdptech.cdpclient.proto.StudioAPI.ChildAdd) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private int parentNodeId_ ;
- /**
- *
- * parent to add the node into
- *
- *
- * required uint32 parent_node_id = 1;
- * @return Whether the parentNodeId field is set.
- */
- @java.lang.Override
- public boolean hasParentNodeId() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- *
- * parent to add the node into
- *
- *
- * required uint32 parent_node_id = 1;
- * @return The parentNodeId.
- */
- @java.lang.Override
- public int getParentNodeId() {
- return parentNodeId_;
- }
- /**
- *
- * parent to add the node into
- *
- *
- * required uint32 parent_node_id = 1;
- * @param value The parentNodeId to set.
- * @return This builder for chaining.
- */
- public Builder setParentNodeId(int value) {
- bitField0_ |= 0x00000001;
- parentNodeId_ = value;
- onChanged();
- return this;
- }
- /**
- *
- * parent to add the node into
- *
- *
- * required uint32 parent_node_id = 1;
- * @return This builder for chaining.
- */
- public Builder clearParentNodeId() {
- bitField0_ = (bitField0_ & ~0x00000001);
- parentNodeId_ = 0;
- onChanged();
- return this;
- }
-
- private java.lang.Object childName_ = "";
- /**
- *
- * child name to be added
- *
- *
- * required string child_name = 2;
- * @return Whether the childName field is set.
- */
- public boolean hasChildName() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- *
- * child name to be added
- *
- *
- * required string child_name = 2;
- * @return The childName.
- */
- public java.lang.String getChildName() {
- java.lang.Object ref = childName_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- childName_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- * child name to be added
- *
- *
- * required string child_name = 2;
- * @return The bytes for childName.
- */
- public com.google.protobuf.ByteString
- getChildNameBytes() {
- java.lang.Object ref = childName_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- childName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- * child name to be added
- *
- *
- * required string child_name = 2;
- * @param value The childName to set.
- * @return This builder for chaining.
- */
- public Builder setChildName(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- childName_ = value;
- onChanged();
- return this;
- }
- /**
- *
- * child name to be added
- *
- *
- * required string child_name = 2;
- * @return This builder for chaining.
- */
- public Builder clearChildName() {
- bitField0_ = (bitField0_ & ~0x00000002);
- childName_ = getDefaultInstance().getChildName();
- onChanged();
- return this;
- }
- /**
- *
- * child name to be added
- *
- *
- * required string child_name = 2;
- * @param value The bytes for childName to set.
- * @return This builder for chaining.
- */
- public Builder setChildNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- childName_ = value;
- onChanged();
- return this;
- }
-
- private java.lang.Object childTypeName_ = "";
- /**
- *
- * child class name
- *
- *
- * required string child_type_name = 3;
- * @return Whether the childTypeName field is set.
- */
- public boolean hasChildTypeName() {
- return ((bitField0_ & 0x00000004) != 0);
- }
- /**
- *
- * child class name
- *
- *
- * required string child_type_name = 3;
- * @return The childTypeName.
- */
- public java.lang.String getChildTypeName() {
- java.lang.Object ref = childTypeName_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- childTypeName_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- * child class name
- *
- *
- * required string child_type_name = 3;
- * @return The bytes for childTypeName.
- */
- public com.google.protobuf.ByteString
- getChildTypeNameBytes() {
- java.lang.Object ref = childTypeName_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- childTypeName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- * child class name
- *
- *
- * required string child_type_name = 3;
- * @param value The childTypeName to set.
- * @return This builder for chaining.
- */
- public Builder setChildTypeName(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- childTypeName_ = value;
- onChanged();
- return this;
- }
- /**
- *
- * child class name
- *
- *
- * required string child_type_name = 3;
- * @return This builder for chaining.
- */
- public Builder clearChildTypeName() {
- bitField0_ = (bitField0_ & ~0x00000004);
- childTypeName_ = getDefaultInstance().getChildTypeName();
- onChanged();
- return this;
- }
- /**
- *
- * child class name
- *
- *
- * required string child_type_name = 3;
- * @param value The bytes for childTypeName to set.
- * @return This builder for chaining.
- */
- public Builder setChildTypeNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000004;
- childTypeName_ = 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:StudioAPI.Proto.ChildAdd)
- }
-
- // @@protoc_insertion_point(class_scope:StudioAPI.Proto.ChildAdd)
- private static final com.cdptech.cdpclient.proto.StudioAPI.ChildAdd DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.cdptech.cdpclient.proto.StudioAPI.ChildAdd();
- }
-
- public static com.cdptech.cdpclient.proto.StudioAPI.ChildAdd getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public ChildAdd parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new ChildAdd(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.cdptech.cdpclient.proto.StudioAPI.ChildAdd getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface ChildRemoveOrBuilder extends
- // @@protoc_insertion_point(interface_extends:StudioAPI.Proto.ChildRemove)
- com.google.protobuf.GeneratedMessageV3.
- ExtendableMessageOrBuilder {
-
- /**
- *
- * parent to remove the node from
- *
- *
- * required uint32 parent_node_id = 1;
- * @return Whether the parentNodeId field is set.
- */
- boolean hasParentNodeId();
- /**
- *
- * parent to remove the node from
- *
- *
- * required uint32 parent_node_id = 1;
- * @return The parentNodeId.
- */
- int getParentNodeId();
-
- /**
- *
- * child to be removed
- *
- *
- * required string child_name = 2;
- * @return Whether the childName field is set.
- */
- boolean hasChildName();
- /**
- *
- * child to be removed
- *
- *
- * required string child_name = 2;
- * @return The childName.
- */
- java.lang.String getChildName();
- /**
- *
- * child to be removed
- *
- *
- * required string child_name = 2;
- * @return The bytes for childName.
- */
- com.google.protobuf.ByteString
- getChildNameBytes();
- }
- /**
- *
- ** ChildRemove Request input structure
- *
- *
- * Protobuf type {@code StudioAPI.Proto.ChildRemove}
- */
- public static final class ChildRemove extends
- com.google.protobuf.GeneratedMessageV3.ExtendableMessage<
- ChildRemove> implements
- // @@protoc_insertion_point(message_implements:StudioAPI.Proto.ChildRemove)
- ChildRemoveOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use ChildRemove.newBuilder() to construct.
- private ChildRemove(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) {
- super(builder);
- }
- private ChildRemove() {
- childName_ = "";
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new ChildRemove();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private ChildRemove(
- 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 8: {
- bitField0_ |= 0x00000001;
- parentNodeId_ = input.readUInt32();
- break;
- }
- case 18: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00000002;
- childName_ = bs;
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.cdptech.cdpclient.proto.StudioAPI.internal_static_StudioAPI_Proto_ChildRemove_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.cdptech.cdpclient.proto.StudioAPI.internal_static_StudioAPI_Proto_ChildRemove_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.cdptech.cdpclient.proto.StudioAPI.ChildRemove.class, com.cdptech.cdpclient.proto.StudioAPI.ChildRemove.Builder.class);
- }
-
- private int bitField0_;
- public static final int PARENT_NODE_ID_FIELD_NUMBER = 1;
- private int parentNodeId_;
- /**
- *
- * parent to remove the node from
- *
- *
- * required uint32 parent_node_id = 1;
- * @return Whether the parentNodeId field is set.
- */
- @java.lang.Override
- public boolean hasParentNodeId() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- *
- * parent to remove the node from
- *
- *
- * required uint32 parent_node_id = 1;
- * @return The parentNodeId.
- */
- @java.lang.Override
- public int getParentNodeId() {
- return parentNodeId_;
- }
-
- public static final int CHILD_NAME_FIELD_NUMBER = 2;
- private volatile java.lang.Object childName_;
- /**
- *
- * child to be removed
- *
- *
- * required string child_name = 2;
- * @return Whether the childName field is set.
- */
- @java.lang.Override
- public boolean hasChildName() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- *
- * child to be removed
- *
- *
- * required string child_name = 2;
- * @return The childName.
- */
- @java.lang.Override
- public java.lang.String getChildName() {
- java.lang.Object ref = childName_;
- 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();
- if (bs.isValidUtf8()) {
- childName_ = s;
- }
- return s;
- }
- }
- /**
- *
- * child to be removed
- *
- *
- * required string child_name = 2;
- * @return The bytes for childName.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getChildNameBytes() {
- java.lang.Object ref = childName_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- childName_ = 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;
-
- if (!hasParentNodeId()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!hasChildName()) {
- memoizedIsInitialized = 0;
- return false;
- }
- if (!extensionsAreInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- com.google.protobuf.GeneratedMessageV3
- .ExtendableMessage.ExtensionWriter
- extensionWriter = newExtensionWriter();
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeUInt32(1, parentNodeId_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, childName_);
- }
- extensionWriter.writeUntil(536870912, output);
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(1, parentNodeId_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, childName_);
- }
- size += extensionsSerializedSize();
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.cdptech.cdpclient.proto.StudioAPI.ChildRemove)) {
- return super.equals(obj);
- }
- com.cdptech.cdpclient.proto.StudioAPI.ChildRemove other = (com.cdptech.cdpclient.proto.StudioAPI.ChildRemove) obj;
-
- if (hasParentNodeId() != other.hasParentNodeId()) return false;
- if (hasParentNodeId()) {
- if (getParentNodeId()
- != other.getParentNodeId()) return false;
- }
- if (hasChildName() != other.hasChildName()) return false;
- if (hasChildName()) {
- if (!getChildName()
- .equals(other.getChildName())) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- if (!getExtensionFields().equals(other.getExtensionFields()))
- return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasParentNodeId()) {
- hash = (37 * hash) + PARENT_NODE_ID_FIELD_NUMBER;
- hash = (53 * hash) + getParentNodeId();
- }
- if (hasChildName()) {
- hash = (37 * hash) + CHILD_NAME_FIELD_NUMBER;
- hash = (53 * hash) + getChildName().hashCode();
- }
- hash = hashFields(hash, getExtensionFields());
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.cdptech.cdpclient.proto.StudioAPI.ChildRemove parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.ChildRemove parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.ChildRemove parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.ChildRemove parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.ChildRemove parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.ChildRemove parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.ChildRemove parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.ChildRemove parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.ChildRemove parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.ChildRemove parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.ChildRemove parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.ChildRemove parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.cdptech.cdpclient.proto.StudioAPI.ChildRemove 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;
- }
- /**
- *
- ** ChildRemove Request input structure
- *
- *
- * Protobuf type {@code StudioAPI.Proto.ChildRemove}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<
- com.cdptech.cdpclient.proto.StudioAPI.ChildRemove, Builder> implements
- // @@protoc_insertion_point(builder_implements:StudioAPI.Proto.ChildRemove)
- com.cdptech.cdpclient.proto.StudioAPI.ChildRemoveOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.cdptech.cdpclient.proto.StudioAPI.internal_static_StudioAPI_Proto_ChildRemove_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.cdptech.cdpclient.proto.StudioAPI.internal_static_StudioAPI_Proto_ChildRemove_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.cdptech.cdpclient.proto.StudioAPI.ChildRemove.class, com.cdptech.cdpclient.proto.StudioAPI.ChildRemove.Builder.class);
- }
-
- // Construct using com.cdptech.cdpclient.proto.StudioAPI.ChildRemove.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();
- parentNodeId_ = 0;
- bitField0_ = (bitField0_ & ~0x00000001);
- childName_ = "";
- bitField0_ = (bitField0_ & ~0x00000002);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.cdptech.cdpclient.proto.StudioAPI.internal_static_StudioAPI_Proto_ChildRemove_descriptor;
- }
-
- @java.lang.Override
- public com.cdptech.cdpclient.proto.StudioAPI.ChildRemove getDefaultInstanceForType() {
- return com.cdptech.cdpclient.proto.StudioAPI.ChildRemove.getDefaultInstance();
- }
-
- @java.lang.Override
- public com.cdptech.cdpclient.proto.StudioAPI.ChildRemove build() {
- com.cdptech.cdpclient.proto.StudioAPI.ChildRemove result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public com.cdptech.cdpclient.proto.StudioAPI.ChildRemove buildPartial() {
- com.cdptech.cdpclient.proto.StudioAPI.ChildRemove result = new com.cdptech.cdpclient.proto.StudioAPI.ChildRemove(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.parentNodeId_ = parentNodeId_;
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- to_bitField0_ |= 0x00000002;
- }
- result.childName_ = childName_;
- result.bitField0_ = to_bitField0_;
- 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 setExtension(
- com.google.protobuf.GeneratedMessage.GeneratedExtension<
- com.cdptech.cdpclient.proto.StudioAPI.ChildRemove, Type> extension,
- Type value) {
- return super.setExtension(extension, value);
- }
- @java.lang.Override
- public Builder setExtension(
- com.google.protobuf.GeneratedMessage.GeneratedExtension<
- com.cdptech.cdpclient.proto.StudioAPI.ChildRemove, java.util.List> extension,
- int index, Type value) {
- return super.setExtension(extension, index, value);
- }
- @java.lang.Override
- public Builder addExtension(
- com.google.protobuf.GeneratedMessage.GeneratedExtension<
- com.cdptech.cdpclient.proto.StudioAPI.ChildRemove, java.util.List> extension,
- Type value) {
- return super.addExtension(extension, value);
- }
- @java.lang.Override
- public Builder clearExtension(
- com.google.protobuf.GeneratedMessage.GeneratedExtension<
- com.cdptech.cdpclient.proto.StudioAPI.ChildRemove, ?> extension) {
- return super.clearExtension(extension);
- }
- @java.lang.Override
- public Builder mergeFrom(com.google.protobuf.Message other) {
- if (other instanceof com.cdptech.cdpclient.proto.StudioAPI.ChildRemove) {
- return mergeFrom((com.cdptech.cdpclient.proto.StudioAPI.ChildRemove)other);
- } else {
- super.mergeFrom(other);
- return this;
- }
- }
-
- public Builder mergeFrom(com.cdptech.cdpclient.proto.StudioAPI.ChildRemove other) {
- if (other == com.cdptech.cdpclient.proto.StudioAPI.ChildRemove.getDefaultInstance()) return this;
- if (other.hasParentNodeId()) {
- setParentNodeId(other.getParentNodeId());
- }
- if (other.hasChildName()) {
- bitField0_ |= 0x00000002;
- childName_ = other.childName_;
- onChanged();
- }
- this.mergeExtensionFields(other);
- this.mergeUnknownFields(other.unknownFields);
- onChanged();
- return this;
- }
-
- @java.lang.Override
- public final boolean isInitialized() {
- if (!hasParentNodeId()) {
- return false;
- }
- if (!hasChildName()) {
- return false;
- }
- if (!extensionsAreInitialized()) {
- return false;
- }
- return true;
- }
-
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.cdptech.cdpclient.proto.StudioAPI.ChildRemove parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.cdptech.cdpclient.proto.StudioAPI.ChildRemove) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
- return this;
- }
- private int bitField0_;
-
- private int parentNodeId_ ;
- /**
- *
- * parent to remove the node from
- *
- *
- * required uint32 parent_node_id = 1;
- * @return Whether the parentNodeId field is set.
- */
- @java.lang.Override
- public boolean hasParentNodeId() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- *
- * parent to remove the node from
- *
- *
- * required uint32 parent_node_id = 1;
- * @return The parentNodeId.
- */
- @java.lang.Override
- public int getParentNodeId() {
- return parentNodeId_;
- }
- /**
- *
- * parent to remove the node from
- *
- *
- * required uint32 parent_node_id = 1;
- * @param value The parentNodeId to set.
- * @return This builder for chaining.
- */
- public Builder setParentNodeId(int value) {
- bitField0_ |= 0x00000001;
- parentNodeId_ = value;
- onChanged();
- return this;
- }
- /**
- *
- * parent to remove the node from
- *
- *
- * required uint32 parent_node_id = 1;
- * @return This builder for chaining.
- */
- public Builder clearParentNodeId() {
- bitField0_ = (bitField0_ & ~0x00000001);
- parentNodeId_ = 0;
- onChanged();
- return this;
- }
-
- private java.lang.Object childName_ = "";
- /**
- *
- * child to be removed
- *
- *
- * required string child_name = 2;
- * @return Whether the childName field is set.
- */
- public boolean hasChildName() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- *
- * child to be removed
- *
- *
- * required string child_name = 2;
- * @return The childName.
- */
- public java.lang.String getChildName() {
- java.lang.Object ref = childName_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs =
- (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- if (bs.isValidUtf8()) {
- childName_ = s;
- }
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- * child to be removed
- *
- *
- * required string child_name = 2;
- * @return The bytes for childName.
- */
- public com.google.protobuf.ByteString
- getChildNameBytes() {
- java.lang.Object ref = childName_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- childName_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- * child to be removed
- *
- *
- * required string child_name = 2;
- * @param value The childName to set.
- * @return This builder for chaining.
- */
- public Builder setChildName(
- java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- childName_ = value;
- onChanged();
- return this;
- }
- /**
- *
- * child to be removed
- *
- *
- * required string child_name = 2;
- * @return This builder for chaining.
- */
- public Builder clearChildName() {
- bitField0_ = (bitField0_ & ~0x00000002);
- childName_ = getDefaultInstance().getChildName();
- onChanged();
- return this;
- }
- /**
- *
- * child to be removed
- *
- *
- * required string child_name = 2;
- * @param value The bytes for childName to set.
- * @return This builder for chaining.
- */
- public Builder setChildNameBytes(
- com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- bitField0_ |= 0x00000002;
- childName_ = 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:StudioAPI.Proto.ChildRemove)
- }
-
- // @@protoc_insertion_point(class_scope:StudioAPI.Proto.ChildRemove)
- private static final com.cdptech.cdpclient.proto.StudioAPI.ChildRemove DEFAULT_INSTANCE;
- static {
- DEFAULT_INSTANCE = new com.cdptech.cdpclient.proto.StudioAPI.ChildRemove();
- }
-
- public static com.cdptech.cdpclient.proto.StudioAPI.ChildRemove getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- @java.lang.Deprecated public static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser() {
- @java.lang.Override
- public ChildRemove parsePartialFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return new ChildRemove(input, extensionRegistry);
- }
- };
-
- public static com.google.protobuf.Parser parser() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.google.protobuf.Parser getParserForType() {
- return PARSER;
- }
-
- @java.lang.Override
- public com.cdptech.cdpclient.proto.StudioAPI.ChildRemove getDefaultInstanceForType() {
- return DEFAULT_INSTANCE;
- }
-
- }
-
- public interface VariantValueOrBuilder extends
- // @@protoc_insertion_point(interface_extends:StudioAPI.Proto.VariantValue)
- com.google.protobuf.GeneratedMessageV3.
- ExtendableMessageOrBuilder {
-
- /**
- * optional uint32 node_id = 1;
- * @return Whether the nodeId field is set.
- */
- boolean hasNodeId();
- /**
- * optional uint32 node_id = 1;
- * @return The nodeId.
- */
- int getNodeId();
-
- /**
- * optional double d_value = 2;
- * @return Whether the dValue field is set.
- */
- boolean hasDValue();
- /**
- * optional double d_value = 2;
- * @return The dValue.
- */
- double getDValue();
-
- /**
- * optional float f_value = 3;
- * @return Whether the fValue field is set.
- */
- boolean hasFValue();
- /**
- * optional float f_value = 3;
- * @return The fValue.
- */
- float getFValue();
-
- /**
- * optional uint64 ui64_value = 4;
- * @return Whether the ui64Value field is set.
- */
- boolean hasUi64Value();
- /**
- * optional uint64 ui64_value = 4;
- * @return The ui64Value.
- */
- long getUi64Value();
-
- /**
- * optional sint64 i64_value = 5;
- * @return Whether the i64Value field is set.
- */
- boolean hasI64Value();
- /**
- * optional sint64 i64_value = 5;
- * @return The i64Value.
- */
- long getI64Value();
-
- /**
- * optional uint32 ui_value = 6;
- * @return Whether the uiValue field is set.
- */
- boolean hasUiValue();
- /**
- * optional uint32 ui_value = 6;
- * @return The uiValue.
- */
- int getUiValue();
-
- /**
- * optional sint32 i_value = 7;
- * @return Whether the iValue field is set.
- */
- boolean hasIValue();
- /**
- * optional sint32 i_value = 7;
- * @return The iValue.
- */
- int getIValue();
-
- /**
- *
- * uint used as ushort (which protobuf doesnt have)
- *
- *
- * optional uint32 us_value = 8;
- * @return Whether the usValue field is set.
- */
- boolean hasUsValue();
- /**
- *
- * uint used as ushort (which protobuf doesnt have)
- *
- *
- * optional uint32 us_value = 8;
- * @return The usValue.
- */
- int getUsValue();
-
- /**
- *
- * int used as short
- *
- *
- * optional sint32 s_value = 9;
- * @return Whether the sValue field is set.
- */
- boolean hasSValue();
- /**
- *
- * int used as short
- *
- *
- * optional sint32 s_value = 9;
- * @return The sValue.
- */
- int getSValue();
-
- /**
- *
- * uint used as uchar
- *
- *
- * optional uint32 uc_value = 10;
- * @return Whether the ucValue field is set.
- */
- boolean hasUcValue();
- /**
- *
- * uint used as uchar
- *
- *
- * optional uint32 uc_value = 10;
- * @return The ucValue.
- */
- int getUcValue();
-
- /**
- *
- * int used as char
- *
- *
- * optional sint32 c_value = 11;
- * @return Whether the cValue field is set.
- */
- boolean hasCValue();
- /**
- *
- * int used as char
- *
- *
- * optional sint32 c_value = 11;
- * @return The cValue.
- */
- int getCValue();
-
- /**
- * optional bool b_value = 12;
- * @return Whether the bValue field is set.
- */
- boolean hasBValue();
- /**
- * optional bool b_value = 12;
- * @return The bValue.
- */
- boolean getBValue();
-
- /**
- * optional string str_value = 13;
- * @return Whether the strValue field is set.
- */
- boolean hasStrValue();
- /**
- * optional string str_value = 13;
- * @return The strValue.
- */
- java.lang.String getStrValue();
- /**
- * optional string str_value = 13;
- * @return The bytes for strValue.
- */
- com.google.protobuf.ByteString
- getStrValueBytes();
-
- /**
- *
- * Source may provide timestamp for sent value
- *
- *
- * optional uint64 timestamp = 14;
- * @return Whether the timestamp field is set.
- */
- boolean hasTimestamp();
- /**
- *
- * Source may provide timestamp for sent value
- *
- *
- * optional uint64 timestamp = 14;
- * @return The timestamp.
- */
- long getTimestamp();
- }
- /**
- *
- ** Common Variant value type for a remote node.
- *
- *
- * Protobuf type {@code StudioAPI.Proto.VariantValue}
- */
- public static final class VariantValue extends
- com.google.protobuf.GeneratedMessageV3.ExtendableMessage<
- VariantValue> implements
- // @@protoc_insertion_point(message_implements:StudioAPI.Proto.VariantValue)
- VariantValueOrBuilder {
- private static final long serialVersionUID = 0L;
- // Use VariantValue.newBuilder() to construct.
- private VariantValue(com.google.protobuf.GeneratedMessageV3.ExtendableBuilder builder) {
- super(builder);
- }
- private VariantValue() {
- strValue_ = "";
- }
-
- @java.lang.Override
- @SuppressWarnings({"unused"})
- protected java.lang.Object newInstance(
- UnusedPrivateParameter unused) {
- return new VariantValue();
- }
-
- @java.lang.Override
- public final com.google.protobuf.UnknownFieldSet
- getUnknownFields() {
- return this.unknownFields;
- }
- private VariantValue(
- 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 8: {
- bitField0_ |= 0x00000001;
- nodeId_ = input.readUInt32();
- break;
- }
- case 17: {
- bitField0_ |= 0x00000002;
- dValue_ = input.readDouble();
- break;
- }
- case 29: {
- bitField0_ |= 0x00000004;
- fValue_ = input.readFloat();
- break;
- }
- case 32: {
- bitField0_ |= 0x00000008;
- ui64Value_ = input.readUInt64();
- break;
- }
- case 40: {
- bitField0_ |= 0x00000010;
- i64Value_ = input.readSInt64();
- break;
- }
- case 48: {
- bitField0_ |= 0x00000020;
- uiValue_ = input.readUInt32();
- break;
- }
- case 56: {
- bitField0_ |= 0x00000040;
- iValue_ = input.readSInt32();
- break;
- }
- case 64: {
- bitField0_ |= 0x00000080;
- usValue_ = input.readUInt32();
- break;
- }
- case 72: {
- bitField0_ |= 0x00000100;
- sValue_ = input.readSInt32();
- break;
- }
- case 80: {
- bitField0_ |= 0x00000200;
- ucValue_ = input.readUInt32();
- break;
- }
- case 88: {
- bitField0_ |= 0x00000400;
- cValue_ = input.readSInt32();
- break;
- }
- case 96: {
- bitField0_ |= 0x00000800;
- bValue_ = input.readBool();
- break;
- }
- case 106: {
- com.google.protobuf.ByteString bs = input.readBytes();
- bitField0_ |= 0x00001000;
- strValue_ = bs;
- break;
- }
- case 112: {
- bitField0_ |= 0x00002000;
- timestamp_ = input.readUInt64();
- break;
- }
- default: {
- if (!parseUnknownField(
- input, unknownFields, extensionRegistry, tag)) {
- done = true;
- }
- break;
- }
- }
- }
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- throw e.setUnfinishedMessage(this);
- } catch (java.io.IOException e) {
- throw new com.google.protobuf.InvalidProtocolBufferException(
- e).setUnfinishedMessage(this);
- } finally {
- this.unknownFields = unknownFields.build();
- makeExtensionsImmutable();
- }
- }
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.cdptech.cdpclient.proto.StudioAPI.internal_static_StudioAPI_Proto_VariantValue_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.cdptech.cdpclient.proto.StudioAPI.internal_static_StudioAPI_Proto_VariantValue_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.cdptech.cdpclient.proto.StudioAPI.VariantValue.class, com.cdptech.cdpclient.proto.StudioAPI.VariantValue.Builder.class);
- }
-
- private int bitField0_;
- public static final int NODE_ID_FIELD_NUMBER = 1;
- private int nodeId_;
- /**
- * optional uint32 node_id = 1;
- * @return Whether the nodeId field is set.
- */
- @java.lang.Override
- public boolean hasNodeId() {
- return ((bitField0_ & 0x00000001) != 0);
- }
- /**
- * optional uint32 node_id = 1;
- * @return The nodeId.
- */
- @java.lang.Override
- public int getNodeId() {
- return nodeId_;
- }
-
- public static final int D_VALUE_FIELD_NUMBER = 2;
- private double dValue_;
- /**
- * optional double d_value = 2;
- * @return Whether the dValue field is set.
- */
- @java.lang.Override
- public boolean hasDValue() {
- return ((bitField0_ & 0x00000002) != 0);
- }
- /**
- * optional double d_value = 2;
- * @return The dValue.
- */
- @java.lang.Override
- public double getDValue() {
- return dValue_;
- }
-
- public static final int F_VALUE_FIELD_NUMBER = 3;
- private float fValue_;
- /**
- * optional float f_value = 3;
- * @return Whether the fValue field is set.
- */
- @java.lang.Override
- public boolean hasFValue() {
- return ((bitField0_ & 0x00000004) != 0);
- }
- /**
- * optional float f_value = 3;
- * @return The fValue.
- */
- @java.lang.Override
- public float getFValue() {
- return fValue_;
- }
-
- public static final int UI64_VALUE_FIELD_NUMBER = 4;
- private long ui64Value_;
- /**
- * optional uint64 ui64_value = 4;
- * @return Whether the ui64Value field is set.
- */
- @java.lang.Override
- public boolean hasUi64Value() {
- return ((bitField0_ & 0x00000008) != 0);
- }
- /**
- * optional uint64 ui64_value = 4;
- * @return The ui64Value.
- */
- @java.lang.Override
- public long getUi64Value() {
- return ui64Value_;
- }
-
- public static final int I64_VALUE_FIELD_NUMBER = 5;
- private long i64Value_;
- /**
- * optional sint64 i64_value = 5;
- * @return Whether the i64Value field is set.
- */
- @java.lang.Override
- public boolean hasI64Value() {
- return ((bitField0_ & 0x00000010) != 0);
- }
- /**
- * optional sint64 i64_value = 5;
- * @return The i64Value.
- */
- @java.lang.Override
- public long getI64Value() {
- return i64Value_;
- }
-
- public static final int UI_VALUE_FIELD_NUMBER = 6;
- private int uiValue_;
- /**
- * optional uint32 ui_value = 6;
- * @return Whether the uiValue field is set.
- */
- @java.lang.Override
- public boolean hasUiValue() {
- return ((bitField0_ & 0x00000020) != 0);
- }
- /**
- * optional uint32 ui_value = 6;
- * @return The uiValue.
- */
- @java.lang.Override
- public int getUiValue() {
- return uiValue_;
- }
-
- public static final int I_VALUE_FIELD_NUMBER = 7;
- private int iValue_;
- /**
- * optional sint32 i_value = 7;
- * @return Whether the iValue field is set.
- */
- @java.lang.Override
- public boolean hasIValue() {
- return ((bitField0_ & 0x00000040) != 0);
- }
- /**
- * optional sint32 i_value = 7;
- * @return The iValue.
- */
- @java.lang.Override
- public int getIValue() {
- return iValue_;
- }
-
- public static final int US_VALUE_FIELD_NUMBER = 8;
- private int usValue_;
- /**
- *
- * uint used as ushort (which protobuf doesnt have)
- *
- *
- * optional uint32 us_value = 8;
- * @return Whether the usValue field is set.
- */
- @java.lang.Override
- public boolean hasUsValue() {
- return ((bitField0_ & 0x00000080) != 0);
- }
- /**
- *
- * uint used as ushort (which protobuf doesnt have)
- *
- *
- * optional uint32 us_value = 8;
- * @return The usValue.
- */
- @java.lang.Override
- public int getUsValue() {
- return usValue_;
- }
-
- public static final int S_VALUE_FIELD_NUMBER = 9;
- private int sValue_;
- /**
- *
- * int used as short
- *
- *
- * optional sint32 s_value = 9;
- * @return Whether the sValue field is set.
- */
- @java.lang.Override
- public boolean hasSValue() {
- return ((bitField0_ & 0x00000100) != 0);
- }
- /**
- *
- * int used as short
- *
- *
- * optional sint32 s_value = 9;
- * @return The sValue.
- */
- @java.lang.Override
- public int getSValue() {
- return sValue_;
- }
-
- public static final int UC_VALUE_FIELD_NUMBER = 10;
- private int ucValue_;
- /**
- *
- * uint used as uchar
- *
- *
- * optional uint32 uc_value = 10;
- * @return Whether the ucValue field is set.
- */
- @java.lang.Override
- public boolean hasUcValue() {
- return ((bitField0_ & 0x00000200) != 0);
- }
- /**
- *
- * uint used as uchar
- *
- *
- * optional uint32 uc_value = 10;
- * @return The ucValue.
- */
- @java.lang.Override
- public int getUcValue() {
- return ucValue_;
- }
-
- public static final int C_VALUE_FIELD_NUMBER = 11;
- private int cValue_;
- /**
- *
- * int used as char
- *
- *
- * optional sint32 c_value = 11;
- * @return Whether the cValue field is set.
- */
- @java.lang.Override
- public boolean hasCValue() {
- return ((bitField0_ & 0x00000400) != 0);
- }
- /**
- *
- * int used as char
- *
- *
- * optional sint32 c_value = 11;
- * @return The cValue.
- */
- @java.lang.Override
- public int getCValue() {
- return cValue_;
- }
-
- public static final int B_VALUE_FIELD_NUMBER = 12;
- private boolean bValue_;
- /**
- * optional bool b_value = 12;
- * @return Whether the bValue field is set.
- */
- @java.lang.Override
- public boolean hasBValue() {
- return ((bitField0_ & 0x00000800) != 0);
- }
- /**
- * optional bool b_value = 12;
- * @return The bValue.
- */
- @java.lang.Override
- public boolean getBValue() {
- return bValue_;
- }
-
- public static final int STR_VALUE_FIELD_NUMBER = 13;
- private volatile java.lang.Object strValue_;
- /**
- * optional string str_value = 13;
- * @return Whether the strValue field is set.
- */
- @java.lang.Override
- public boolean hasStrValue() {
- return ((bitField0_ & 0x00001000) != 0);
- }
- /**
- * optional string str_value = 13;
- * @return The strValue.
- */
- @java.lang.Override
- public java.lang.String getStrValue() {
- java.lang.Object ref = strValue_;
- 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();
- if (bs.isValidUtf8()) {
- strValue_ = s;
- }
- return s;
- }
- }
- /**
- * optional string str_value = 13;
- * @return The bytes for strValue.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getStrValueBytes() {
- java.lang.Object ref = strValue_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8(
- (java.lang.String) ref);
- strValue_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
-
- public static final int TIMESTAMP_FIELD_NUMBER = 14;
- private long timestamp_;
- /**
- *
- * Source may provide timestamp for sent value
- *
- *
- * optional uint64 timestamp = 14;
- * @return Whether the timestamp field is set.
- */
- @java.lang.Override
- public boolean hasTimestamp() {
- return ((bitField0_ & 0x00002000) != 0);
- }
- /**
- *
- * Source may provide timestamp for sent value
- *
- *
- * optional uint64 timestamp = 14;
- * @return The timestamp.
- */
- @java.lang.Override
- public long getTimestamp() {
- return timestamp_;
- }
-
- private byte memoizedIsInitialized = -1;
- @java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- if (!extensionsAreInitialized()) {
- memoizedIsInitialized = 0;
- return false;
- }
- memoizedIsInitialized = 1;
- return true;
- }
-
- @java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output)
- throws java.io.IOException {
- com.google.protobuf.GeneratedMessageV3
- .ExtendableMessage.ExtensionWriter
- extensionWriter = newExtensionWriter();
- if (((bitField0_ & 0x00000001) != 0)) {
- output.writeUInt32(1, nodeId_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- output.writeDouble(2, dValue_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- output.writeFloat(3, fValue_);
- }
- if (((bitField0_ & 0x00000008) != 0)) {
- output.writeUInt64(4, ui64Value_);
- }
- if (((bitField0_ & 0x00000010) != 0)) {
- output.writeSInt64(5, i64Value_);
- }
- if (((bitField0_ & 0x00000020) != 0)) {
- output.writeUInt32(6, uiValue_);
- }
- if (((bitField0_ & 0x00000040) != 0)) {
- output.writeSInt32(7, iValue_);
- }
- if (((bitField0_ & 0x00000080) != 0)) {
- output.writeUInt32(8, usValue_);
- }
- if (((bitField0_ & 0x00000100) != 0)) {
- output.writeSInt32(9, sValue_);
- }
- if (((bitField0_ & 0x00000200) != 0)) {
- output.writeUInt32(10, ucValue_);
- }
- if (((bitField0_ & 0x00000400) != 0)) {
- output.writeSInt32(11, cValue_);
- }
- if (((bitField0_ & 0x00000800) != 0)) {
- output.writeBool(12, bValue_);
- }
- if (((bitField0_ & 0x00001000) != 0)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 13, strValue_);
- }
- if (((bitField0_ & 0x00002000) != 0)) {
- output.writeUInt64(14, timestamp_);
- }
- extensionWriter.writeUntil(536870912, output);
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (((bitField0_ & 0x00000001) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(1, nodeId_);
- }
- if (((bitField0_ & 0x00000002) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeDoubleSize(2, dValue_);
- }
- if (((bitField0_ & 0x00000004) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeFloatSize(3, fValue_);
- }
- if (((bitField0_ & 0x00000008) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt64Size(4, ui64Value_);
- }
- if (((bitField0_ & 0x00000010) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeSInt64Size(5, i64Value_);
- }
- if (((bitField0_ & 0x00000020) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(6, uiValue_);
- }
- if (((bitField0_ & 0x00000040) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeSInt32Size(7, iValue_);
- }
- if (((bitField0_ & 0x00000080) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(8, usValue_);
- }
- if (((bitField0_ & 0x00000100) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeSInt32Size(9, sValue_);
- }
- if (((bitField0_ & 0x00000200) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt32Size(10, ucValue_);
- }
- if (((bitField0_ & 0x00000400) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeSInt32Size(11, cValue_);
- }
- if (((bitField0_ & 0x00000800) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeBoolSize(12, bValue_);
- }
- if (((bitField0_ & 0x00001000) != 0)) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, strValue_);
- }
- if (((bitField0_ & 0x00002000) != 0)) {
- size += com.google.protobuf.CodedOutputStream
- .computeUInt64Size(14, timestamp_);
- }
- size += extensionsSerializedSize();
- size += unknownFields.getSerializedSize();
- memoizedSize = size;
- return size;
- }
-
- @java.lang.Override
- public boolean equals(final java.lang.Object obj) {
- if (obj == this) {
- return true;
- }
- if (!(obj instanceof com.cdptech.cdpclient.proto.StudioAPI.VariantValue)) {
- return super.equals(obj);
- }
- com.cdptech.cdpclient.proto.StudioAPI.VariantValue other = (com.cdptech.cdpclient.proto.StudioAPI.VariantValue) obj;
-
- if (hasNodeId() != other.hasNodeId()) return false;
- if (hasNodeId()) {
- if (getNodeId()
- != other.getNodeId()) return false;
- }
- if (hasDValue() != other.hasDValue()) return false;
- if (hasDValue()) {
- if (java.lang.Double.doubleToLongBits(getDValue())
- != java.lang.Double.doubleToLongBits(
- other.getDValue())) return false;
- }
- if (hasFValue() != other.hasFValue()) return false;
- if (hasFValue()) {
- if (java.lang.Float.floatToIntBits(getFValue())
- != java.lang.Float.floatToIntBits(
- other.getFValue())) return false;
- }
- if (hasUi64Value() != other.hasUi64Value()) return false;
- if (hasUi64Value()) {
- if (getUi64Value()
- != other.getUi64Value()) return false;
- }
- if (hasI64Value() != other.hasI64Value()) return false;
- if (hasI64Value()) {
- if (getI64Value()
- != other.getI64Value()) return false;
- }
- if (hasUiValue() != other.hasUiValue()) return false;
- if (hasUiValue()) {
- if (getUiValue()
- != other.getUiValue()) return false;
- }
- if (hasIValue() != other.hasIValue()) return false;
- if (hasIValue()) {
- if (getIValue()
- != other.getIValue()) return false;
- }
- if (hasUsValue() != other.hasUsValue()) return false;
- if (hasUsValue()) {
- if (getUsValue()
- != other.getUsValue()) return false;
- }
- if (hasSValue() != other.hasSValue()) return false;
- if (hasSValue()) {
- if (getSValue()
- != other.getSValue()) return false;
- }
- if (hasUcValue() != other.hasUcValue()) return false;
- if (hasUcValue()) {
- if (getUcValue()
- != other.getUcValue()) return false;
- }
- if (hasCValue() != other.hasCValue()) return false;
- if (hasCValue()) {
- if (getCValue()
- != other.getCValue()) return false;
- }
- if (hasBValue() != other.hasBValue()) return false;
- if (hasBValue()) {
- if (getBValue()
- != other.getBValue()) return false;
- }
- if (hasStrValue() != other.hasStrValue()) return false;
- if (hasStrValue()) {
- if (!getStrValue()
- .equals(other.getStrValue())) return false;
- }
- if (hasTimestamp() != other.hasTimestamp()) return false;
- if (hasTimestamp()) {
- if (getTimestamp()
- != other.getTimestamp()) return false;
- }
- if (!unknownFields.equals(other.unknownFields)) return false;
- if (!getExtensionFields().equals(other.getExtensionFields()))
- return false;
- return true;
- }
-
- @java.lang.Override
- public int hashCode() {
- if (memoizedHashCode != 0) {
- return memoizedHashCode;
- }
- int hash = 41;
- hash = (19 * hash) + getDescriptor().hashCode();
- if (hasNodeId()) {
- hash = (37 * hash) + NODE_ID_FIELD_NUMBER;
- hash = (53 * hash) + getNodeId();
- }
- if (hasDValue()) {
- hash = (37 * hash) + D_VALUE_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- java.lang.Double.doubleToLongBits(getDValue()));
- }
- if (hasFValue()) {
- hash = (37 * hash) + F_VALUE_FIELD_NUMBER;
- hash = (53 * hash) + java.lang.Float.floatToIntBits(
- getFValue());
- }
- if (hasUi64Value()) {
- hash = (37 * hash) + UI64_VALUE_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getUi64Value());
- }
- if (hasI64Value()) {
- hash = (37 * hash) + I64_VALUE_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getI64Value());
- }
- if (hasUiValue()) {
- hash = (37 * hash) + UI_VALUE_FIELD_NUMBER;
- hash = (53 * hash) + getUiValue();
- }
- if (hasIValue()) {
- hash = (37 * hash) + I_VALUE_FIELD_NUMBER;
- hash = (53 * hash) + getIValue();
- }
- if (hasUsValue()) {
- hash = (37 * hash) + US_VALUE_FIELD_NUMBER;
- hash = (53 * hash) + getUsValue();
- }
- if (hasSValue()) {
- hash = (37 * hash) + S_VALUE_FIELD_NUMBER;
- hash = (53 * hash) + getSValue();
- }
- if (hasUcValue()) {
- hash = (37 * hash) + UC_VALUE_FIELD_NUMBER;
- hash = (53 * hash) + getUcValue();
- }
- if (hasCValue()) {
- hash = (37 * hash) + C_VALUE_FIELD_NUMBER;
- hash = (53 * hash) + getCValue();
- }
- if (hasBValue()) {
- hash = (37 * hash) + B_VALUE_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
- getBValue());
- }
- if (hasStrValue()) {
- hash = (37 * hash) + STR_VALUE_FIELD_NUMBER;
- hash = (53 * hash) + getStrValue().hashCode();
- }
- if (hasTimestamp()) {
- hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
- getTimestamp());
- }
- hash = hashFields(hash, getExtensionFields());
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.cdptech.cdpclient.proto.StudioAPI.VariantValue parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.VariantValue parseFrom(
- java.nio.ByteBuffer data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.VariantValue parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.VariantValue parseFrom(
- com.google.protobuf.ByteString data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.VariantValue parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.VariantValue parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.VariantValue parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.VariantValue parseFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.VariantValue parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.VariantValue parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.VariantValue parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input);
- }
- public static com.cdptech.cdpclient.proto.StudioAPI.VariantValue parseFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3
- .parseWithIOException(PARSER, input, extensionRegistry);
- }
-
- @java.lang.Override
- public Builder newBuilderForType() { return newBuilder(); }
- public static Builder newBuilder() {
- return DEFAULT_INSTANCE.toBuilder();
- }
- public static Builder newBuilder(com.cdptech.cdpclient.proto.StudioAPI.VariantValue 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;
- }
- /**
- *
- ** Common Variant value type for a remote node.
- *
- *
- * Protobuf type {@code StudioAPI.Proto.VariantValue}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<
- com.cdptech.cdpclient.proto.StudioAPI.VariantValue, Builder> implements
- // @@protoc_insertion_point(builder_implements:StudioAPI.Proto.VariantValue)
- com.cdptech.cdpclient.proto.StudioAPI.VariantValueOrBuilder {
- public static final com.google.protobuf.Descriptors.Descriptor
- getDescriptor() {
- return com.cdptech.cdpclient.proto.StudioAPI.internal_static_StudioAPI_Proto_VariantValue_descriptor;
- }
-
- @java.lang.Override
- protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internalGetFieldAccessorTable() {
- return com.cdptech.cdpclient.proto.StudioAPI.internal_static_StudioAPI_Proto_VariantValue_fieldAccessorTable
- .ensureFieldAccessorsInitialized(
- com.cdptech.cdpclient.proto.StudioAPI.VariantValue.class, com.cdptech.cdpclient.proto.StudioAPI.VariantValue.Builder.class);
- }
-
- // Construct using com.cdptech.cdpclient.proto.StudioAPI.VariantValue.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();
- nodeId_ = 0;
- bitField0_ = (bitField0_ & ~0x00000001);
- dValue_ = 0D;
- bitField0_ = (bitField0_ & ~0x00000002);
- fValue_ = 0F;
- bitField0_ = (bitField0_ & ~0x00000004);
- ui64Value_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000008);
- i64Value_ = 0L;
- bitField0_ = (bitField0_ & ~0x00000010);
- uiValue_ = 0;
- bitField0_ = (bitField0_ & ~0x00000020);
- iValue_ = 0;
- bitField0_ = (bitField0_ & ~0x00000040);
- usValue_ = 0;
- bitField0_ = (bitField0_ & ~0x00000080);
- sValue_ = 0;
- bitField0_ = (bitField0_ & ~0x00000100);
- ucValue_ = 0;
- bitField0_ = (bitField0_ & ~0x00000200);
- cValue_ = 0;
- bitField0_ = (bitField0_ & ~0x00000400);
- bValue_ = false;
- bitField0_ = (bitField0_ & ~0x00000800);
- strValue_ = "";
- bitField0_ = (bitField0_ & ~0x00001000);
- timestamp_ = 0L;
- bitField0_ = (bitField0_ & ~0x00002000);
- return this;
- }
-
- @java.lang.Override
- public com.google.protobuf.Descriptors.Descriptor
- getDescriptorForType() {
- return com.cdptech.cdpclient.proto.StudioAPI.internal_static_StudioAPI_Proto_VariantValue_descriptor;
- }
-
- @java.lang.Override
- public com.cdptech.cdpclient.proto.StudioAPI.VariantValue getDefaultInstanceForType() {
- return com.cdptech.cdpclient.proto.StudioAPI.VariantValue.getDefaultInstance();
- }
-
- @java.lang.Override
- public com.cdptech.cdpclient.proto.StudioAPI.VariantValue build() {
- com.cdptech.cdpclient.proto.StudioAPI.VariantValue result = buildPartial();
- if (!result.isInitialized()) {
- throw newUninitializedMessageException(result);
- }
- return result;
- }
-
- @java.lang.Override
- public com.cdptech.cdpclient.proto.StudioAPI.VariantValue buildPartial() {
- com.cdptech.cdpclient.proto.StudioAPI.VariantValue result = new com.cdptech.cdpclient.proto.StudioAPI.VariantValue(this);
- int from_bitField0_ = bitField0_;
- int to_bitField0_ = 0;
- if (((from_bitField0_ & 0x00000001) != 0)) {
- result.nodeId_ = nodeId_;
- to_bitField0_ |= 0x00000001;
- }
- if (((from_bitField0_ & 0x00000002) != 0)) {
- result.dValue_ = dValue_;
- to_bitField0_ |= 0x00000002;
- }
- if (((from_bitField0_ & 0x00000004) != 0)) {
- result.fValue_ = fValue_;
- to_bitField0_ |= 0x00000004;
- }
- if (((from_bitField0_ & 0x00000008) != 0)) {
- result.ui64Value_ = ui64Value_;
- to_bitField0_ |= 0x00000008;
- }
- if (((from_bitField0_ & 0x00000010) != 0)) {
- result.i64Value_ = i64Value_;
- to_bitField0_ |= 0x00000010;
- }
- if (((from_bitField0_ & 0x00000020) != 0)) {
- result.uiValue_ = uiValue_;
- to_bitField0_ |= 0x00000020;
- }
- if (((from_bitField0_ & 0x00000040) != 0)) {
- result.iValue_ = iValue_;
- to_bitField0_ |= 0x00000040;
- }
- if (((from_bitField0_ & 0x00000080) != 0)) {
- result.usValue_ = usValue_;
- to_bitField0_ |= 0x00000080;
- }
- if (((from_bitField0_ & 0x00000100) != 0)) {
- result.sValue_ = sValue_;
- to_bitField0_ |= 0x00000100;
- }
- if (((from_bitField0_ & 0x00000200) != 0)) {
- result.ucValue_ = ucValue_;
- to_bitField0_ |= 0x00000200;
- }
- if (((from_bitField0_ & 0x00000400) != 0)) {
- result.cValue_ = cValue_;
- to_bitField0_ |= 0x00000400;
- }
- if (((from_bitField0_ & 0x00000800) != 0)) {
- result.bValue_ = bValue_;
- to_bitField0_ |= 0x00000800;
- }
- if (((from_bitField0_ & 0x00001000) != 0)) {
- to_bitField0_ |= 0x00001000;
- }
- result.strValue_ = strValue_;
- if (((from_bitField0_ & 0x00002000) != 0)) {
- result.timestamp_ = timestamp_;
- to_bitField0_ |= 0x00002000;
- }
- result.bitField0_ = to_bitField0_;
- 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 setExtension(
- com.google.protobuf.GeneratedMessage.GeneratedExtension<
- com.cdptech.cdpclient.proto.StudioAPI.VariantValue, Type> extension,
- Type value) {
- return super.setExtension(extension, value);
- }
- @java.lang.Override
- public Builder setExtension(
- com.google.protobuf.GeneratedMessage.GeneratedExtension<
- com.cdptech.cdpclient.proto.StudioAPI.VariantValue, java.util.List