00001 /* Auto-generated by genmsg_cpp for file /opt/ros/diamondback/stacks/ros_comm/tools/topic_tools/srv/MuxList.srv */ 00002 00003 package ros.pkg.topic_tools.srv; 00004 00005 import java.nio.ByteBuffer; 00006 00007 00008 public class MuxList extends ros.communication.Service<MuxList.Request, MuxList.Response> { 00009 00010 public static java.lang.String __s_getDataType() { return "topic_tools/MuxList"; } 00011 public static java.lang.String __s_getMD5Sum() { return "b0eef9a05d4e829092fc2f2c3c2aad3d"; } 00012 00013 public java.lang.String getDataType() { return MuxList.__s_getDataType(); } 00014 public java.lang.String getMD5Sum() { return MuxList.__s_getMD5Sum(); } 00015 00016 public MuxList.Request createRequest() { 00017 return new MuxList.Request(); 00018 } 00019 00020 public MuxList.Response createResponse() { 00021 return new MuxList.Response(); 00022 } 00023 00024 static public class Request extends ros.communication.Message { 00025 00026 00027 public Request() { 00028 } 00029 00030 public static java.lang.String __s_getDataType() { return "topic_tools/MuxListRequest"; } 00031 public java.lang.String getDataType() { return __s_getDataType(); } 00032 public static java.lang.String __s_getMD5Sum() { return "d41d8cd98f00b204e9800998ecf8427e"; } 00033 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00034 public static java.lang.String __s_getServerMD5Sum() { return "b0eef9a05d4e829092fc2f2c3c2aad3d"; } 00035 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00036 public static java.lang.String __s_getMessageDefinition() { return "\n" + 00037 ""; } 00038 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00039 00040 public Request clone() { 00041 Request c = new Request(); 00042 c.deserialize(serialize(0)); 00043 return c; 00044 } 00045 00046 public void setTo(ros.communication.Message m) { 00047 deserialize(m.serialize(0)); 00048 } 00049 00050 public int serializationLength() { 00051 int __l = 0; 00052 return __l; 00053 } 00054 00055 public void serialize(ByteBuffer bb, int seq) { 00056 } 00057 00058 public void deserialize(ByteBuffer bb) { 00059 } 00060 00061 @SuppressWarnings("all") 00062 public boolean equals(Object o) { 00063 if(!(o instanceof Request)) 00064 return false; 00065 Request other = (Request) o; 00066 return 00067 true; 00068 } 00069 00070 @SuppressWarnings("all") 00071 public int hashCode() { 00072 final int prime = 31; 00073 int result = 1; 00074 long tmp; 00075 return result; 00076 } 00077 } // class Request 00078 00079 static public class Response extends ros.communication.Message { 00080 00081 public java.util.ArrayList<java.lang.String> topics = new java.util.ArrayList<java.lang.String>(); 00082 00083 public Response() { 00084 } 00085 00086 public static java.lang.String __s_getDataType() { return "topic_tools/MuxListResponse"; } 00087 public java.lang.String getDataType() { return __s_getDataType(); } 00088 public static java.lang.String __s_getMD5Sum() { return "b0eef9a05d4e829092fc2f2c3c2aad3d"; } 00089 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00090 public static java.lang.String __s_getServerMD5Sum() { return "b0eef9a05d4e829092fc2f2c3c2aad3d"; } 00091 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00092 public static java.lang.String __s_getMessageDefinition() { return "string[] topics\n" + 00093 "\n" + 00094 "\n" + 00095 ""; } 00096 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00097 00098 public Response clone() { 00099 Response c = new Response(); 00100 c.deserialize(serialize(0)); 00101 return c; 00102 } 00103 00104 public void setTo(ros.communication.Message m) { 00105 deserialize(m.serialize(0)); 00106 } 00107 00108 public int serializationLength() { 00109 int __l = 0; 00110 __l += 4; 00111 for(java.lang.String val : topics) { 00112 __l += 4 + val.length(); 00113 } 00114 return __l; 00115 } 00116 00117 public void serialize(ByteBuffer bb, int seq) { 00118 bb.putInt(topics.size()); 00119 for(java.lang.String val : topics) { 00120 Serialization.writeString(bb, val); 00121 } 00122 } 00123 00124 public void deserialize(ByteBuffer bb) { 00125 00126 int __topics_len = bb.getInt(); 00127 topics = new java.util.ArrayList<java.lang.String>(__topics_len); 00128 for(int __i=0; __i<__topics_len; __i++) { 00129 topics.add(Serialization.readString(bb)); 00130 } 00131 } 00132 00133 @SuppressWarnings("all") 00134 public boolean equals(Object o) { 00135 if(!(o instanceof Response)) 00136 return false; 00137 Response other = (Response) o; 00138 return 00139 topics.equals(other.topics) && 00140 true; 00141 } 00142 00143 @SuppressWarnings("all") 00144 public int hashCode() { 00145 final int prime = 31; 00146 int result = 1; 00147 long tmp; 00148 result = prime * result + (this.topics == null ? 0 : this.topics.hashCode()); 00149 return result; 00150 } 00151 } // class Response 00152 00153 } //class 00154