00001 /* Auto-generated by genmsg_cpp for file /opt/ros/diamondback/stacks/ros_comm/clients/cpp/roscpp/srv/GetLoggers.srv */ 00002 00003 package ros.pkg.roscpp.srv; 00004 00005 import java.nio.ByteBuffer; 00006 00007 00008 public class GetLoggers extends ros.communication.Service<GetLoggers.Request, GetLoggers.Response> { 00009 00010 public static java.lang.String __s_getDataType() { return "roscpp/GetLoggers"; } 00011 public static java.lang.String __s_getMD5Sum() { return "32e97e85527d4678a8f9279894bb64b0"; } 00012 00013 public java.lang.String getDataType() { return GetLoggers.__s_getDataType(); } 00014 public java.lang.String getMD5Sum() { return GetLoggers.__s_getMD5Sum(); } 00015 00016 public GetLoggers.Request createRequest() { 00017 return new GetLoggers.Request(); 00018 } 00019 00020 public GetLoggers.Response createResponse() { 00021 return new GetLoggers.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 "roscpp/GetLoggersRequest"; } 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 "32e97e85527d4678a8f9279894bb64b0"; } 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<ros.pkg.roscpp.msg.Logger> loggers = new java.util.ArrayList<ros.pkg.roscpp.msg.Logger>(); 00082 00083 public Response() { 00084 } 00085 00086 public static java.lang.String __s_getDataType() { return "roscpp/GetLoggersResponse"; } 00087 public java.lang.String getDataType() { return __s_getDataType(); } 00088 public static java.lang.String __s_getMD5Sum() { return "32e97e85527d4678a8f9279894bb64b0"; } 00089 public java.lang.String getMD5Sum() { return __s_getMD5Sum(); } 00090 public static java.lang.String __s_getServerMD5Sum() { return "32e97e85527d4678a8f9279894bb64b0"; } 00091 public java.lang.String getServerMD5Sum() { return __s_getServerMD5Sum(); } 00092 public static java.lang.String __s_getMessageDefinition() { return "Logger[] loggers\n" + 00093 "\n" + 00094 "================================================================================\n" + 00095 "MSG: roscpp/Logger\n" + 00096 "string name\n" + 00097 "string level\n" + 00098 "\n" + 00099 ""; } 00100 public java.lang.String getMessageDefinition() { return __s_getMessageDefinition(); } 00101 00102 public Response clone() { 00103 Response c = new Response(); 00104 c.deserialize(serialize(0)); 00105 return c; 00106 } 00107 00108 public void setTo(ros.communication.Message m) { 00109 deserialize(m.serialize(0)); 00110 } 00111 00112 public int serializationLength() { 00113 int __l = 0; 00114 __l += 4; 00115 for(ros.pkg.roscpp.msg.Logger val : loggers) { 00116 __l += val.serializationLength(); 00117 } 00118 return __l; 00119 } 00120 00121 public void serialize(ByteBuffer bb, int seq) { 00122 bb.putInt(loggers.size()); 00123 for(ros.pkg.roscpp.msg.Logger val : loggers) { 00124 val.serialize(bb, seq); 00125 } 00126 } 00127 00128 public void deserialize(ByteBuffer bb) { 00129 00130 int __loggers_len = bb.getInt(); 00131 loggers = new java.util.ArrayList<ros.pkg.roscpp.msg.Logger>(__loggers_len); 00132 for(int __i=0; __i<__loggers_len; __i++) { 00133 ros.pkg.roscpp.msg.Logger __tmp = new ros.pkg.roscpp.msg.Logger(); 00134 __tmp.deserialize(bb); 00135 loggers.add(__tmp);; 00136 } 00137 } 00138 00139 @SuppressWarnings("all") 00140 public boolean equals(Object o) { 00141 if(!(o instanceof Response)) 00142 return false; 00143 Response other = (Response) o; 00144 return 00145 loggers.equals(other.loggers) && 00146 true; 00147 } 00148 00149 @SuppressWarnings("all") 00150 public int hashCode() { 00151 final int prime = 31; 00152 int result = 1; 00153 long tmp; 00154 result = prime * result + (this.loggers == null ? 0 : this.loggers.hashCode()); 00155 return result; 00156 } 00157 } // class Response 00158 00159 } //class 00160