| // Generated by the protocol buffer compiler. DO NOT EDIT! |
| // source: SliderClusterMessages.proto |
| |
| package org.apache.slider.api.proto; |
| |
| public final class Messages { |
| private Messages() {} |
| public static void registerAllExtensions( |
| com.google.protobuf.ExtensionRegistry registry) { |
| } |
| public interface RoleInstanceStateOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required string name = 1; |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| boolean hasName(); |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| java.lang.String getName(); |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| com.google.protobuf.ByteString |
| getNameBytes(); |
| |
| // optional string role = 2; |
| /** |
| * <code>optional string role = 2;</code> |
| */ |
| boolean hasRole(); |
| /** |
| * <code>optional string role = 2;</code> |
| */ |
| java.lang.String getRole(); |
| /** |
| * <code>optional string role = 2;</code> |
| */ |
| com.google.protobuf.ByteString |
| getRoleBytes(); |
| |
| // required uint32 state = 4; |
| /** |
| * <code>required uint32 state = 4;</code> |
| */ |
| boolean hasState(); |
| /** |
| * <code>required uint32 state = 4;</code> |
| */ |
| int getState(); |
| |
| // required uint32 exitCode = 5; |
| /** |
| * <code>required uint32 exitCode = 5;</code> |
| */ |
| boolean hasExitCode(); |
| /** |
| * <code>required uint32 exitCode = 5;</code> |
| */ |
| int getExitCode(); |
| |
| // optional string command = 6; |
| /** |
| * <code>optional string command = 6;</code> |
| */ |
| boolean hasCommand(); |
| /** |
| * <code>optional string command = 6;</code> |
| */ |
| java.lang.String getCommand(); |
| /** |
| * <code>optional string command = 6;</code> |
| */ |
| com.google.protobuf.ByteString |
| getCommandBytes(); |
| |
| // optional string diagnostics = 7; |
| /** |
| * <code>optional string diagnostics = 7;</code> |
| */ |
| boolean hasDiagnostics(); |
| /** |
| * <code>optional string diagnostics = 7;</code> |
| */ |
| java.lang.String getDiagnostics(); |
| /** |
| * <code>optional string diagnostics = 7;</code> |
| */ |
| com.google.protobuf.ByteString |
| getDiagnosticsBytes(); |
| |
| // repeated string output = 8; |
| /** |
| * <code>repeated string output = 8;</code> |
| */ |
| java.util.List<java.lang.String> |
| getOutputList(); |
| /** |
| * <code>repeated string output = 8;</code> |
| */ |
| int getOutputCount(); |
| /** |
| * <code>repeated string output = 8;</code> |
| */ |
| java.lang.String getOutput(int index); |
| /** |
| * <code>repeated string output = 8;</code> |
| */ |
| com.google.protobuf.ByteString |
| getOutputBytes(int index); |
| |
| // repeated string environment = 9; |
| /** |
| * <code>repeated string environment = 9;</code> |
| */ |
| java.util.List<java.lang.String> |
| getEnvironmentList(); |
| /** |
| * <code>repeated string environment = 9;</code> |
| */ |
| int getEnvironmentCount(); |
| /** |
| * <code>repeated string environment = 9;</code> |
| */ |
| java.lang.String getEnvironment(int index); |
| /** |
| * <code>repeated string environment = 9;</code> |
| */ |
| com.google.protobuf.ByteString |
| getEnvironmentBytes(int index); |
| |
| // required uint32 roleId = 10; |
| /** |
| * <code>required uint32 roleId = 10;</code> |
| */ |
| boolean hasRoleId(); |
| /** |
| * <code>required uint32 roleId = 10;</code> |
| */ |
| int getRoleId(); |
| |
| // required bool released = 11; |
| /** |
| * <code>required bool released = 11;</code> |
| */ |
| boolean hasReleased(); |
| /** |
| * <code>required bool released = 11;</code> |
| */ |
| boolean getReleased(); |
| |
| // required int64 createTime = 12; |
| /** |
| * <code>required int64 createTime = 12;</code> |
| */ |
| boolean hasCreateTime(); |
| /** |
| * <code>required int64 createTime = 12;</code> |
| */ |
| long getCreateTime(); |
| |
| // required int64 startTime = 13; |
| /** |
| * <code>required int64 startTime = 13;</code> |
| */ |
| boolean hasStartTime(); |
| /** |
| * <code>required int64 startTime = 13;</code> |
| */ |
| long getStartTime(); |
| |
| // required string host = 14; |
| /** |
| * <code>required string host = 14;</code> |
| */ |
| boolean hasHost(); |
| /** |
| * <code>required string host = 14;</code> |
| */ |
| java.lang.String getHost(); |
| /** |
| * <code>required string host = 14;</code> |
| */ |
| com.google.protobuf.ByteString |
| getHostBytes(); |
| |
| // required string hostURL = 15; |
| /** |
| * <code>required string hostURL = 15;</code> |
| */ |
| boolean hasHostURL(); |
| /** |
| * <code>required string hostURL = 15;</code> |
| */ |
| java.lang.String getHostURL(); |
| /** |
| * <code>required string hostURL = 15;</code> |
| */ |
| com.google.protobuf.ByteString |
| getHostURLBytes(); |
| |
| // optional string appVersion = 16; |
| /** |
| * <code>optional string appVersion = 16;</code> |
| */ |
| boolean hasAppVersion(); |
| /** |
| * <code>optional string appVersion = 16;</code> |
| */ |
| java.lang.String getAppVersion(); |
| /** |
| * <code>optional string appVersion = 16;</code> |
| */ |
| com.google.protobuf.ByteString |
| getAppVersionBytes(); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.RoleInstanceState} |
| */ |
| public static final class RoleInstanceState extends |
| com.google.protobuf.GeneratedMessage |
| implements RoleInstanceStateOrBuilder { |
| // Use RoleInstanceState.newBuilder() to construct. |
| private RoleInstanceState(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private RoleInstanceState(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final RoleInstanceState defaultInstance; |
| public static RoleInstanceState getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public RoleInstanceState getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private RoleInstanceState( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| name_ = input.readBytes(); |
| break; |
| } |
| case 18: { |
| bitField0_ |= 0x00000002; |
| role_ = input.readBytes(); |
| break; |
| } |
| case 32: { |
| bitField0_ |= 0x00000004; |
| state_ = input.readUInt32(); |
| break; |
| } |
| case 40: { |
| bitField0_ |= 0x00000008; |
| exitCode_ = input.readUInt32(); |
| break; |
| } |
| case 50: { |
| bitField0_ |= 0x00000010; |
| command_ = input.readBytes(); |
| break; |
| } |
| case 58: { |
| bitField0_ |= 0x00000020; |
| diagnostics_ = input.readBytes(); |
| break; |
| } |
| case 66: { |
| if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { |
| output_ = new com.google.protobuf.LazyStringArrayList(); |
| mutable_bitField0_ |= 0x00000040; |
| } |
| output_.add(input.readBytes()); |
| break; |
| } |
| case 74: { |
| if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { |
| environment_ = new com.google.protobuf.LazyStringArrayList(); |
| mutable_bitField0_ |= 0x00000080; |
| } |
| environment_.add(input.readBytes()); |
| break; |
| } |
| case 80: { |
| bitField0_ |= 0x00000040; |
| roleId_ = input.readUInt32(); |
| break; |
| } |
| case 88: { |
| bitField0_ |= 0x00000080; |
| released_ = input.readBool(); |
| break; |
| } |
| case 96: { |
| bitField0_ |= 0x00000100; |
| createTime_ = input.readInt64(); |
| break; |
| } |
| case 104: { |
| bitField0_ |= 0x00000200; |
| startTime_ = input.readInt64(); |
| break; |
| } |
| case 114: { |
| bitField0_ |= 0x00000400; |
| host_ = input.readBytes(); |
| break; |
| } |
| case 122: { |
| bitField0_ |= 0x00000800; |
| hostURL_ = input.readBytes(); |
| break; |
| } |
| case 130: { |
| bitField0_ |= 0x00001000; |
| appVersion_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { |
| output_ = new com.google.protobuf.UnmodifiableLazyStringList(output_); |
| } |
| if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { |
| environment_ = new com.google.protobuf.UnmodifiableLazyStringList(environment_); |
| } |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_RoleInstanceState_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_RoleInstanceState_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.RoleInstanceState.class, org.apache.slider.api.proto.Messages.RoleInstanceState.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<RoleInstanceState> PARSER = |
| new com.google.protobuf.AbstractParser<RoleInstanceState>() { |
| public RoleInstanceState parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new RoleInstanceState(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<RoleInstanceState> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required string name = 1; |
| public static final int NAME_FIELD_NUMBER = 1; |
| private java.lang.Object name_; |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| public boolean hasName() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| public java.lang.String getName() { |
| java.lang.Object ref = name_; |
| if (ref instanceof java.lang.String) { |
| return (java.lang.String) ref; |
| } else { |
| com.google.protobuf.ByteString bs = |
| (com.google.protobuf.ByteString) ref; |
| java.lang.String s = bs.toStringUtf8(); |
| if (bs.isValidUtf8()) { |
| name_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getNameBytes() { |
| java.lang.Object ref = name_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| name_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional string role = 2; |
| public static final int ROLE_FIELD_NUMBER = 2; |
| private java.lang.Object role_; |
| /** |
| * <code>optional string role = 2;</code> |
| */ |
| public boolean hasRole() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>optional string role = 2;</code> |
| */ |
| public java.lang.String getRole() { |
| java.lang.Object ref = role_; |
| 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()) { |
| role_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>optional string role = 2;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getRoleBytes() { |
| java.lang.Object ref = role_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| role_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // required uint32 state = 4; |
| public static final int STATE_FIELD_NUMBER = 4; |
| private int state_; |
| /** |
| * <code>required uint32 state = 4;</code> |
| */ |
| public boolean hasState() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>required uint32 state = 4;</code> |
| */ |
| public int getState() { |
| return state_; |
| } |
| |
| // required uint32 exitCode = 5; |
| public static final int EXITCODE_FIELD_NUMBER = 5; |
| private int exitCode_; |
| /** |
| * <code>required uint32 exitCode = 5;</code> |
| */ |
| public boolean hasExitCode() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| /** |
| * <code>required uint32 exitCode = 5;</code> |
| */ |
| public int getExitCode() { |
| return exitCode_; |
| } |
| |
| // optional string command = 6; |
| public static final int COMMAND_FIELD_NUMBER = 6; |
| private java.lang.Object command_; |
| /** |
| * <code>optional string command = 6;</code> |
| */ |
| public boolean hasCommand() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| /** |
| * <code>optional string command = 6;</code> |
| */ |
| public java.lang.String getCommand() { |
| java.lang.Object ref = command_; |
| 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()) { |
| command_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>optional string command = 6;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getCommandBytes() { |
| java.lang.Object ref = command_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| command_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional string diagnostics = 7; |
| public static final int DIAGNOSTICS_FIELD_NUMBER = 7; |
| private java.lang.Object diagnostics_; |
| /** |
| * <code>optional string diagnostics = 7;</code> |
| */ |
| public boolean hasDiagnostics() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| /** |
| * <code>optional string diagnostics = 7;</code> |
| */ |
| public java.lang.String getDiagnostics() { |
| java.lang.Object ref = diagnostics_; |
| 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()) { |
| diagnostics_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>optional string diagnostics = 7;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getDiagnosticsBytes() { |
| java.lang.Object ref = diagnostics_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| diagnostics_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // repeated string output = 8; |
| public static final int OUTPUT_FIELD_NUMBER = 8; |
| private com.google.protobuf.LazyStringList output_; |
| /** |
| * <code>repeated string output = 8;</code> |
| */ |
| public java.util.List<java.lang.String> |
| getOutputList() { |
| return output_; |
| } |
| /** |
| * <code>repeated string output = 8;</code> |
| */ |
| public int getOutputCount() { |
| return output_.size(); |
| } |
| /** |
| * <code>repeated string output = 8;</code> |
| */ |
| public java.lang.String getOutput(int index) { |
| return output_.get(index); |
| } |
| /** |
| * <code>repeated string output = 8;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getOutputBytes(int index) { |
| return output_.getByteString(index); |
| } |
| |
| // repeated string environment = 9; |
| public static final int ENVIRONMENT_FIELD_NUMBER = 9; |
| private com.google.protobuf.LazyStringList environment_; |
| /** |
| * <code>repeated string environment = 9;</code> |
| */ |
| public java.util.List<java.lang.String> |
| getEnvironmentList() { |
| return environment_; |
| } |
| /** |
| * <code>repeated string environment = 9;</code> |
| */ |
| public int getEnvironmentCount() { |
| return environment_.size(); |
| } |
| /** |
| * <code>repeated string environment = 9;</code> |
| */ |
| public java.lang.String getEnvironment(int index) { |
| return environment_.get(index); |
| } |
| /** |
| * <code>repeated string environment = 9;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getEnvironmentBytes(int index) { |
| return environment_.getByteString(index); |
| } |
| |
| // required uint32 roleId = 10; |
| public static final int ROLEID_FIELD_NUMBER = 10; |
| private int roleId_; |
| /** |
| * <code>required uint32 roleId = 10;</code> |
| */ |
| public boolean hasRoleId() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| /** |
| * <code>required uint32 roleId = 10;</code> |
| */ |
| public int getRoleId() { |
| return roleId_; |
| } |
| |
| // required bool released = 11; |
| public static final int RELEASED_FIELD_NUMBER = 11; |
| private boolean released_; |
| /** |
| * <code>required bool released = 11;</code> |
| */ |
| public boolean hasReleased() { |
| return ((bitField0_ & 0x00000080) == 0x00000080); |
| } |
| /** |
| * <code>required bool released = 11;</code> |
| */ |
| public boolean getReleased() { |
| return released_; |
| } |
| |
| // required int64 createTime = 12; |
| public static final int CREATETIME_FIELD_NUMBER = 12; |
| private long createTime_; |
| /** |
| * <code>required int64 createTime = 12;</code> |
| */ |
| public boolean hasCreateTime() { |
| return ((bitField0_ & 0x00000100) == 0x00000100); |
| } |
| /** |
| * <code>required int64 createTime = 12;</code> |
| */ |
| public long getCreateTime() { |
| return createTime_; |
| } |
| |
| // required int64 startTime = 13; |
| public static final int STARTTIME_FIELD_NUMBER = 13; |
| private long startTime_; |
| /** |
| * <code>required int64 startTime = 13;</code> |
| */ |
| public boolean hasStartTime() { |
| return ((bitField0_ & 0x00000200) == 0x00000200); |
| } |
| /** |
| * <code>required int64 startTime = 13;</code> |
| */ |
| public long getStartTime() { |
| return startTime_; |
| } |
| |
| // required string host = 14; |
| public static final int HOST_FIELD_NUMBER = 14; |
| private java.lang.Object host_; |
| /** |
| * <code>required string host = 14;</code> |
| */ |
| public boolean hasHost() { |
| return ((bitField0_ & 0x00000400) == 0x00000400); |
| } |
| /** |
| * <code>required string host = 14;</code> |
| */ |
| public java.lang.String getHost() { |
| java.lang.Object ref = host_; |
| 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()) { |
| host_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string host = 14;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getHostBytes() { |
| java.lang.Object ref = host_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| host_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // required string hostURL = 15; |
| public static final int HOSTURL_FIELD_NUMBER = 15; |
| private java.lang.Object hostURL_; |
| /** |
| * <code>required string hostURL = 15;</code> |
| */ |
| public boolean hasHostURL() { |
| return ((bitField0_ & 0x00000800) == 0x00000800); |
| } |
| /** |
| * <code>required string hostURL = 15;</code> |
| */ |
| public java.lang.String getHostURL() { |
| java.lang.Object ref = hostURL_; |
| 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()) { |
| hostURL_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string hostURL = 15;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getHostURLBytes() { |
| java.lang.Object ref = hostURL_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| hostURL_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional string appVersion = 16; |
| public static final int APPVERSION_FIELD_NUMBER = 16; |
| private java.lang.Object appVersion_; |
| /** |
| * <code>optional string appVersion = 16;</code> |
| */ |
| public boolean hasAppVersion() { |
| return ((bitField0_ & 0x00001000) == 0x00001000); |
| } |
| /** |
| * <code>optional string appVersion = 16;</code> |
| */ |
| public java.lang.String getAppVersion() { |
| java.lang.Object ref = appVersion_; |
| 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()) { |
| appVersion_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>optional string appVersion = 16;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getAppVersionBytes() { |
| java.lang.Object ref = appVersion_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| appVersion_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| private void initFields() { |
| name_ = ""; |
| role_ = ""; |
| state_ = 0; |
| exitCode_ = 0; |
| command_ = ""; |
| diagnostics_ = ""; |
| output_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| environment_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| roleId_ = 0; |
| released_ = false; |
| createTime_ = 0L; |
| startTime_ = 0L; |
| host_ = ""; |
| hostURL_ = ""; |
| appVersion_ = ""; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasName()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasState()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasExitCode()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasRoleId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasReleased()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasCreateTime()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasStartTime()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasHost()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasHostURL()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getNameBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeBytes(2, getRoleBytes()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeUInt32(4, state_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeUInt32(5, exitCode_); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| output.writeBytes(6, getCommandBytes()); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| output.writeBytes(7, getDiagnosticsBytes()); |
| } |
| for (int i = 0; i < output_.size(); i++) { |
| output.writeBytes(8, output_.getByteString(i)); |
| } |
| for (int i = 0; i < environment_.size(); i++) { |
| output.writeBytes(9, environment_.getByteString(i)); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| output.writeUInt32(10, roleId_); |
| } |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| output.writeBool(11, released_); |
| } |
| if (((bitField0_ & 0x00000100) == 0x00000100)) { |
| output.writeInt64(12, createTime_); |
| } |
| if (((bitField0_ & 0x00000200) == 0x00000200)) { |
| output.writeInt64(13, startTime_); |
| } |
| if (((bitField0_ & 0x00000400) == 0x00000400)) { |
| output.writeBytes(14, getHostBytes()); |
| } |
| if (((bitField0_ & 0x00000800) == 0x00000800)) { |
| output.writeBytes(15, getHostURLBytes()); |
| } |
| if (((bitField0_ & 0x00001000) == 0x00001000)) { |
| output.writeBytes(16, getAppVersionBytes()); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, getNameBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(2, getRoleBytes()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt32Size(4, state_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt32Size(5, exitCode_); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(6, getCommandBytes()); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(7, getDiagnosticsBytes()); |
| } |
| { |
| int dataSize = 0; |
| for (int i = 0; i < output_.size(); i++) { |
| dataSize += com.google.protobuf.CodedOutputStream |
| .computeBytesSizeNoTag(output_.getByteString(i)); |
| } |
| size += dataSize; |
| size += 1 * getOutputList().size(); |
| } |
| { |
| int dataSize = 0; |
| for (int i = 0; i < environment_.size(); i++) { |
| dataSize += com.google.protobuf.CodedOutputStream |
| .computeBytesSizeNoTag(environment_.getByteString(i)); |
| } |
| size += dataSize; |
| size += 1 * getEnvironmentList().size(); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeUInt32Size(10, roleId_); |
| } |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBoolSize(11, released_); |
| } |
| if (((bitField0_ & 0x00000100) == 0x00000100)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt64Size(12, createTime_); |
| } |
| if (((bitField0_ & 0x00000200) == 0x00000200)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt64Size(13, startTime_); |
| } |
| if (((bitField0_ & 0x00000400) == 0x00000400)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(14, getHostBytes()); |
| } |
| if (((bitField0_ & 0x00000800) == 0x00000800)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(15, getHostURLBytes()); |
| } |
| if (((bitField0_ & 0x00001000) == 0x00001000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(16, getAppVersionBytes()); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.RoleInstanceState)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.RoleInstanceState other = (org.apache.slider.api.proto.Messages.RoleInstanceState) obj; |
| |
| boolean result = true; |
| result = result && (hasName() == other.hasName()); |
| if (hasName()) { |
| result = result && getName() |
| .equals(other.getName()); |
| } |
| result = result && (hasRole() == other.hasRole()); |
| if (hasRole()) { |
| result = result && getRole() |
| .equals(other.getRole()); |
| } |
| result = result && (hasState() == other.hasState()); |
| if (hasState()) { |
| result = result && (getState() |
| == other.getState()); |
| } |
| result = result && (hasExitCode() == other.hasExitCode()); |
| if (hasExitCode()) { |
| result = result && (getExitCode() |
| == other.getExitCode()); |
| } |
| result = result && (hasCommand() == other.hasCommand()); |
| if (hasCommand()) { |
| result = result && getCommand() |
| .equals(other.getCommand()); |
| } |
| result = result && (hasDiagnostics() == other.hasDiagnostics()); |
| if (hasDiagnostics()) { |
| result = result && getDiagnostics() |
| .equals(other.getDiagnostics()); |
| } |
| result = result && getOutputList() |
| .equals(other.getOutputList()); |
| result = result && getEnvironmentList() |
| .equals(other.getEnvironmentList()); |
| result = result && (hasRoleId() == other.hasRoleId()); |
| if (hasRoleId()) { |
| result = result && (getRoleId() |
| == other.getRoleId()); |
| } |
| result = result && (hasReleased() == other.hasReleased()); |
| if (hasReleased()) { |
| result = result && (getReleased() |
| == other.getReleased()); |
| } |
| result = result && (hasCreateTime() == other.hasCreateTime()); |
| if (hasCreateTime()) { |
| result = result && (getCreateTime() |
| == other.getCreateTime()); |
| } |
| result = result && (hasStartTime() == other.hasStartTime()); |
| if (hasStartTime()) { |
| result = result && (getStartTime() |
| == other.getStartTime()); |
| } |
| result = result && (hasHost() == other.hasHost()); |
| if (hasHost()) { |
| result = result && getHost() |
| .equals(other.getHost()); |
| } |
| result = result && (hasHostURL() == other.hasHostURL()); |
| if (hasHostURL()) { |
| result = result && getHostURL() |
| .equals(other.getHostURL()); |
| } |
| result = result && (hasAppVersion() == other.hasAppVersion()); |
| if (hasAppVersion()) { |
| result = result && getAppVersion() |
| .equals(other.getAppVersion()); |
| } |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasName()) { |
| hash = (37 * hash) + NAME_FIELD_NUMBER; |
| hash = (53 * hash) + getName().hashCode(); |
| } |
| if (hasRole()) { |
| hash = (37 * hash) + ROLE_FIELD_NUMBER; |
| hash = (53 * hash) + getRole().hashCode(); |
| } |
| if (hasState()) { |
| hash = (37 * hash) + STATE_FIELD_NUMBER; |
| hash = (53 * hash) + getState(); |
| } |
| if (hasExitCode()) { |
| hash = (37 * hash) + EXITCODE_FIELD_NUMBER; |
| hash = (53 * hash) + getExitCode(); |
| } |
| if (hasCommand()) { |
| hash = (37 * hash) + COMMAND_FIELD_NUMBER; |
| hash = (53 * hash) + getCommand().hashCode(); |
| } |
| if (hasDiagnostics()) { |
| hash = (37 * hash) + DIAGNOSTICS_FIELD_NUMBER; |
| hash = (53 * hash) + getDiagnostics().hashCode(); |
| } |
| if (getOutputCount() > 0) { |
| hash = (37 * hash) + OUTPUT_FIELD_NUMBER; |
| hash = (53 * hash) + getOutputList().hashCode(); |
| } |
| if (getEnvironmentCount() > 0) { |
| hash = (37 * hash) + ENVIRONMENT_FIELD_NUMBER; |
| hash = (53 * hash) + getEnvironmentList().hashCode(); |
| } |
| if (hasRoleId()) { |
| hash = (37 * hash) + ROLEID_FIELD_NUMBER; |
| hash = (53 * hash) + getRoleId(); |
| } |
| if (hasReleased()) { |
| hash = (37 * hash) + RELEASED_FIELD_NUMBER; |
| hash = (53 * hash) + hashBoolean(getReleased()); |
| } |
| if (hasCreateTime()) { |
| hash = (37 * hash) + CREATETIME_FIELD_NUMBER; |
| hash = (53 * hash) + hashLong(getCreateTime()); |
| } |
| if (hasStartTime()) { |
| hash = (37 * hash) + STARTTIME_FIELD_NUMBER; |
| hash = (53 * hash) + hashLong(getStartTime()); |
| } |
| if (hasHost()) { |
| hash = (37 * hash) + HOST_FIELD_NUMBER; |
| hash = (53 * hash) + getHost().hashCode(); |
| } |
| if (hasHostURL()) { |
| hash = (37 * hash) + HOSTURL_FIELD_NUMBER; |
| hash = (53 * hash) + getHostURL().hashCode(); |
| } |
| if (hasAppVersion()) { |
| hash = (37 * hash) + APPVERSION_FIELD_NUMBER; |
| hash = (53 * hash) + getAppVersion().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.RoleInstanceState parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.RoleInstanceState parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.RoleInstanceState parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.RoleInstanceState parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.RoleInstanceState parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.RoleInstanceState parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.RoleInstanceState parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.RoleInstanceState parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.RoleInstanceState parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.RoleInstanceState parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.RoleInstanceState prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.RoleInstanceState} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_RoleInstanceState_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_RoleInstanceState_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.RoleInstanceState.class, org.apache.slider.api.proto.Messages.RoleInstanceState.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.RoleInstanceState.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| name_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| role_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| state_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| exitCode_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000008); |
| command_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000010); |
| diagnostics_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000020); |
| output_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000040); |
| environment_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000080); |
| roleId_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000100); |
| released_ = false; |
| bitField0_ = (bitField0_ & ~0x00000200); |
| createTime_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000400); |
| startTime_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000800); |
| host_ = ""; |
| bitField0_ = (bitField0_ & ~0x00001000); |
| hostURL_ = ""; |
| bitField0_ = (bitField0_ & ~0x00002000); |
| appVersion_ = ""; |
| bitField0_ = (bitField0_ & ~0x00004000); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_RoleInstanceState_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.RoleInstanceState getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.RoleInstanceState.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.RoleInstanceState build() { |
| org.apache.slider.api.proto.Messages.RoleInstanceState result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.RoleInstanceState buildPartial() { |
| org.apache.slider.api.proto.Messages.RoleInstanceState result = new org.apache.slider.api.proto.Messages.RoleInstanceState(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.name_ = name_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.role_ = role_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.state_ = state_; |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| result.exitCode_ = exitCode_; |
| if (((from_bitField0_ & 0x00000010) == 0x00000010)) { |
| to_bitField0_ |= 0x00000010; |
| } |
| result.command_ = command_; |
| if (((from_bitField0_ & 0x00000020) == 0x00000020)) { |
| to_bitField0_ |= 0x00000020; |
| } |
| result.diagnostics_ = diagnostics_; |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| output_ = new com.google.protobuf.UnmodifiableLazyStringList( |
| output_); |
| bitField0_ = (bitField0_ & ~0x00000040); |
| } |
| result.output_ = output_; |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| environment_ = new com.google.protobuf.UnmodifiableLazyStringList( |
| environment_); |
| bitField0_ = (bitField0_ & ~0x00000080); |
| } |
| result.environment_ = environment_; |
| if (((from_bitField0_ & 0x00000100) == 0x00000100)) { |
| to_bitField0_ |= 0x00000040; |
| } |
| result.roleId_ = roleId_; |
| if (((from_bitField0_ & 0x00000200) == 0x00000200)) { |
| to_bitField0_ |= 0x00000080; |
| } |
| result.released_ = released_; |
| if (((from_bitField0_ & 0x00000400) == 0x00000400)) { |
| to_bitField0_ |= 0x00000100; |
| } |
| result.createTime_ = createTime_; |
| if (((from_bitField0_ & 0x00000800) == 0x00000800)) { |
| to_bitField0_ |= 0x00000200; |
| } |
| result.startTime_ = startTime_; |
| if (((from_bitField0_ & 0x00001000) == 0x00001000)) { |
| to_bitField0_ |= 0x00000400; |
| } |
| result.host_ = host_; |
| if (((from_bitField0_ & 0x00002000) == 0x00002000)) { |
| to_bitField0_ |= 0x00000800; |
| } |
| result.hostURL_ = hostURL_; |
| if (((from_bitField0_ & 0x00004000) == 0x00004000)) { |
| to_bitField0_ |= 0x00001000; |
| } |
| result.appVersion_ = appVersion_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.RoleInstanceState) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.RoleInstanceState)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.RoleInstanceState other) { |
| if (other == org.apache.slider.api.proto.Messages.RoleInstanceState.getDefaultInstance()) return this; |
| if (other.hasName()) { |
| bitField0_ |= 0x00000001; |
| name_ = other.name_; |
| onChanged(); |
| } |
| if (other.hasRole()) { |
| bitField0_ |= 0x00000002; |
| role_ = other.role_; |
| onChanged(); |
| } |
| if (other.hasState()) { |
| setState(other.getState()); |
| } |
| if (other.hasExitCode()) { |
| setExitCode(other.getExitCode()); |
| } |
| if (other.hasCommand()) { |
| bitField0_ |= 0x00000010; |
| command_ = other.command_; |
| onChanged(); |
| } |
| if (other.hasDiagnostics()) { |
| bitField0_ |= 0x00000020; |
| diagnostics_ = other.diagnostics_; |
| onChanged(); |
| } |
| if (!other.output_.isEmpty()) { |
| if (output_.isEmpty()) { |
| output_ = other.output_; |
| bitField0_ = (bitField0_ & ~0x00000040); |
| } else { |
| ensureOutputIsMutable(); |
| output_.addAll(other.output_); |
| } |
| onChanged(); |
| } |
| if (!other.environment_.isEmpty()) { |
| if (environment_.isEmpty()) { |
| environment_ = other.environment_; |
| bitField0_ = (bitField0_ & ~0x00000080); |
| } else { |
| ensureEnvironmentIsMutable(); |
| environment_.addAll(other.environment_); |
| } |
| onChanged(); |
| } |
| if (other.hasRoleId()) { |
| setRoleId(other.getRoleId()); |
| } |
| if (other.hasReleased()) { |
| setReleased(other.getReleased()); |
| } |
| if (other.hasCreateTime()) { |
| setCreateTime(other.getCreateTime()); |
| } |
| if (other.hasStartTime()) { |
| setStartTime(other.getStartTime()); |
| } |
| if (other.hasHost()) { |
| bitField0_ |= 0x00001000; |
| host_ = other.host_; |
| onChanged(); |
| } |
| if (other.hasHostURL()) { |
| bitField0_ |= 0x00002000; |
| hostURL_ = other.hostURL_; |
| onChanged(); |
| } |
| if (other.hasAppVersion()) { |
| bitField0_ |= 0x00004000; |
| appVersion_ = other.appVersion_; |
| onChanged(); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasName()) { |
| |
| return false; |
| } |
| if (!hasState()) { |
| |
| return false; |
| } |
| if (!hasExitCode()) { |
| |
| return false; |
| } |
| if (!hasRoleId()) { |
| |
| return false; |
| } |
| if (!hasReleased()) { |
| |
| return false; |
| } |
| if (!hasCreateTime()) { |
| |
| return false; |
| } |
| if (!hasStartTime()) { |
| |
| return false; |
| } |
| if (!hasHost()) { |
| |
| return false; |
| } |
| if (!hasHostURL()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.RoleInstanceState parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.RoleInstanceState) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // required string name = 1; |
| private java.lang.Object name_ = ""; |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| public boolean hasName() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| public java.lang.String getName() { |
| java.lang.Object ref = name_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| name_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| 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; |
| } |
| } |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| public Builder setName( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| name_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| public Builder clearName() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| name_ = getDefaultInstance().getName(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| public Builder setNameBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| name_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // optional string role = 2; |
| private java.lang.Object role_ = ""; |
| /** |
| * <code>optional string role = 2;</code> |
| */ |
| public boolean hasRole() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>optional string role = 2;</code> |
| */ |
| public java.lang.String getRole() { |
| java.lang.Object ref = role_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| role_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>optional string role = 2;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getRoleBytes() { |
| java.lang.Object ref = role_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| role_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>optional string role = 2;</code> |
| */ |
| public Builder setRole( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| role_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string role = 2;</code> |
| */ |
| public Builder clearRole() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| role_ = getDefaultInstance().getRole(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string role = 2;</code> |
| */ |
| public Builder setRoleBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| role_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // required uint32 state = 4; |
| private int state_ ; |
| /** |
| * <code>required uint32 state = 4;</code> |
| */ |
| public boolean hasState() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>required uint32 state = 4;</code> |
| */ |
| public int getState() { |
| return state_; |
| } |
| /** |
| * <code>required uint32 state = 4;</code> |
| */ |
| public Builder setState(int value) { |
| bitField0_ |= 0x00000004; |
| state_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required uint32 state = 4;</code> |
| */ |
| public Builder clearState() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| state_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // required uint32 exitCode = 5; |
| private int exitCode_ ; |
| /** |
| * <code>required uint32 exitCode = 5;</code> |
| */ |
| public boolean hasExitCode() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| /** |
| * <code>required uint32 exitCode = 5;</code> |
| */ |
| public int getExitCode() { |
| return exitCode_; |
| } |
| /** |
| * <code>required uint32 exitCode = 5;</code> |
| */ |
| public Builder setExitCode(int value) { |
| bitField0_ |= 0x00000008; |
| exitCode_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required uint32 exitCode = 5;</code> |
| */ |
| public Builder clearExitCode() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| exitCode_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // optional string command = 6; |
| private java.lang.Object command_ = ""; |
| /** |
| * <code>optional string command = 6;</code> |
| */ |
| public boolean hasCommand() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| /** |
| * <code>optional string command = 6;</code> |
| */ |
| public java.lang.String getCommand() { |
| java.lang.Object ref = command_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| command_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>optional string command = 6;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getCommandBytes() { |
| java.lang.Object ref = command_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| command_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>optional string command = 6;</code> |
| */ |
| public Builder setCommand( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000010; |
| command_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string command = 6;</code> |
| */ |
| public Builder clearCommand() { |
| bitField0_ = (bitField0_ & ~0x00000010); |
| command_ = getDefaultInstance().getCommand(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string command = 6;</code> |
| */ |
| public Builder setCommandBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000010; |
| command_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // optional string diagnostics = 7; |
| private java.lang.Object diagnostics_ = ""; |
| /** |
| * <code>optional string diagnostics = 7;</code> |
| */ |
| public boolean hasDiagnostics() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| /** |
| * <code>optional string diagnostics = 7;</code> |
| */ |
| public java.lang.String getDiagnostics() { |
| java.lang.Object ref = diagnostics_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| diagnostics_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>optional string diagnostics = 7;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getDiagnosticsBytes() { |
| java.lang.Object ref = diagnostics_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| diagnostics_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>optional string diagnostics = 7;</code> |
| */ |
| public Builder setDiagnostics( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000020; |
| diagnostics_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string diagnostics = 7;</code> |
| */ |
| public Builder clearDiagnostics() { |
| bitField0_ = (bitField0_ & ~0x00000020); |
| diagnostics_ = getDefaultInstance().getDiagnostics(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string diagnostics = 7;</code> |
| */ |
| public Builder setDiagnosticsBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000020; |
| diagnostics_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // repeated string output = 8; |
| private com.google.protobuf.LazyStringList output_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| private void ensureOutputIsMutable() { |
| if (!((bitField0_ & 0x00000040) == 0x00000040)) { |
| output_ = new com.google.protobuf.LazyStringArrayList(output_); |
| bitField0_ |= 0x00000040; |
| } |
| } |
| /** |
| * <code>repeated string output = 8;</code> |
| */ |
| public java.util.List<java.lang.String> |
| getOutputList() { |
| return java.util.Collections.unmodifiableList(output_); |
| } |
| /** |
| * <code>repeated string output = 8;</code> |
| */ |
| public int getOutputCount() { |
| return output_.size(); |
| } |
| /** |
| * <code>repeated string output = 8;</code> |
| */ |
| public java.lang.String getOutput(int index) { |
| return output_.get(index); |
| } |
| /** |
| * <code>repeated string output = 8;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getOutputBytes(int index) { |
| return output_.getByteString(index); |
| } |
| /** |
| * <code>repeated string output = 8;</code> |
| */ |
| public Builder setOutput( |
| int index, java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureOutputIsMutable(); |
| output_.set(index, value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string output = 8;</code> |
| */ |
| public Builder addOutput( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureOutputIsMutable(); |
| output_.add(value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string output = 8;</code> |
| */ |
| public Builder addAllOutput( |
| java.lang.Iterable<java.lang.String> values) { |
| ensureOutputIsMutable(); |
| super.addAll(values, output_); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string output = 8;</code> |
| */ |
| public Builder clearOutput() { |
| output_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000040); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string output = 8;</code> |
| */ |
| public Builder addOutputBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureOutputIsMutable(); |
| output_.add(value); |
| onChanged(); |
| return this; |
| } |
| |
| // repeated string environment = 9; |
| private com.google.protobuf.LazyStringList environment_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| private void ensureEnvironmentIsMutable() { |
| if (!((bitField0_ & 0x00000080) == 0x00000080)) { |
| environment_ = new com.google.protobuf.LazyStringArrayList(environment_); |
| bitField0_ |= 0x00000080; |
| } |
| } |
| /** |
| * <code>repeated string environment = 9;</code> |
| */ |
| public java.util.List<java.lang.String> |
| getEnvironmentList() { |
| return java.util.Collections.unmodifiableList(environment_); |
| } |
| /** |
| * <code>repeated string environment = 9;</code> |
| */ |
| public int getEnvironmentCount() { |
| return environment_.size(); |
| } |
| /** |
| * <code>repeated string environment = 9;</code> |
| */ |
| public java.lang.String getEnvironment(int index) { |
| return environment_.get(index); |
| } |
| /** |
| * <code>repeated string environment = 9;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getEnvironmentBytes(int index) { |
| return environment_.getByteString(index); |
| } |
| /** |
| * <code>repeated string environment = 9;</code> |
| */ |
| public Builder setEnvironment( |
| int index, java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureEnvironmentIsMutable(); |
| environment_.set(index, value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string environment = 9;</code> |
| */ |
| public Builder addEnvironment( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureEnvironmentIsMutable(); |
| environment_.add(value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string environment = 9;</code> |
| */ |
| public Builder addAllEnvironment( |
| java.lang.Iterable<java.lang.String> values) { |
| ensureEnvironmentIsMutable(); |
| super.addAll(values, environment_); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string environment = 9;</code> |
| */ |
| public Builder clearEnvironment() { |
| environment_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000080); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string environment = 9;</code> |
| */ |
| public Builder addEnvironmentBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureEnvironmentIsMutable(); |
| environment_.add(value); |
| onChanged(); |
| return this; |
| } |
| |
| // required uint32 roleId = 10; |
| private int roleId_ ; |
| /** |
| * <code>required uint32 roleId = 10;</code> |
| */ |
| public boolean hasRoleId() { |
| return ((bitField0_ & 0x00000100) == 0x00000100); |
| } |
| /** |
| * <code>required uint32 roleId = 10;</code> |
| */ |
| public int getRoleId() { |
| return roleId_; |
| } |
| /** |
| * <code>required uint32 roleId = 10;</code> |
| */ |
| public Builder setRoleId(int value) { |
| bitField0_ |= 0x00000100; |
| roleId_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required uint32 roleId = 10;</code> |
| */ |
| public Builder clearRoleId() { |
| bitField0_ = (bitField0_ & ~0x00000100); |
| roleId_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // required bool released = 11; |
| private boolean released_ ; |
| /** |
| * <code>required bool released = 11;</code> |
| */ |
| public boolean hasReleased() { |
| return ((bitField0_ & 0x00000200) == 0x00000200); |
| } |
| /** |
| * <code>required bool released = 11;</code> |
| */ |
| public boolean getReleased() { |
| return released_; |
| } |
| /** |
| * <code>required bool released = 11;</code> |
| */ |
| public Builder setReleased(boolean value) { |
| bitField0_ |= 0x00000200; |
| released_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required bool released = 11;</code> |
| */ |
| public Builder clearReleased() { |
| bitField0_ = (bitField0_ & ~0x00000200); |
| released_ = false; |
| onChanged(); |
| return this; |
| } |
| |
| // required int64 createTime = 12; |
| private long createTime_ ; |
| /** |
| * <code>required int64 createTime = 12;</code> |
| */ |
| public boolean hasCreateTime() { |
| return ((bitField0_ & 0x00000400) == 0x00000400); |
| } |
| /** |
| * <code>required int64 createTime = 12;</code> |
| */ |
| public long getCreateTime() { |
| return createTime_; |
| } |
| /** |
| * <code>required int64 createTime = 12;</code> |
| */ |
| public Builder setCreateTime(long value) { |
| bitField0_ |= 0x00000400; |
| createTime_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required int64 createTime = 12;</code> |
| */ |
| public Builder clearCreateTime() { |
| bitField0_ = (bitField0_ & ~0x00000400); |
| createTime_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| // required int64 startTime = 13; |
| private long startTime_ ; |
| /** |
| * <code>required int64 startTime = 13;</code> |
| */ |
| public boolean hasStartTime() { |
| return ((bitField0_ & 0x00000800) == 0x00000800); |
| } |
| /** |
| * <code>required int64 startTime = 13;</code> |
| */ |
| public long getStartTime() { |
| return startTime_; |
| } |
| /** |
| * <code>required int64 startTime = 13;</code> |
| */ |
| public Builder setStartTime(long value) { |
| bitField0_ |= 0x00000800; |
| startTime_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required int64 startTime = 13;</code> |
| */ |
| public Builder clearStartTime() { |
| bitField0_ = (bitField0_ & ~0x00000800); |
| startTime_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| // required string host = 14; |
| private java.lang.Object host_ = ""; |
| /** |
| * <code>required string host = 14;</code> |
| */ |
| public boolean hasHost() { |
| return ((bitField0_ & 0x00001000) == 0x00001000); |
| } |
| /** |
| * <code>required string host = 14;</code> |
| */ |
| public java.lang.String getHost() { |
| java.lang.Object ref = host_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| host_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string host = 14;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getHostBytes() { |
| java.lang.Object ref = host_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| host_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>required string host = 14;</code> |
| */ |
| public Builder setHost( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00001000; |
| host_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string host = 14;</code> |
| */ |
| public Builder clearHost() { |
| bitField0_ = (bitField0_ & ~0x00001000); |
| host_ = getDefaultInstance().getHost(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string host = 14;</code> |
| */ |
| public Builder setHostBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00001000; |
| host_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // required string hostURL = 15; |
| private java.lang.Object hostURL_ = ""; |
| /** |
| * <code>required string hostURL = 15;</code> |
| */ |
| public boolean hasHostURL() { |
| return ((bitField0_ & 0x00002000) == 0x00002000); |
| } |
| /** |
| * <code>required string hostURL = 15;</code> |
| */ |
| public java.lang.String getHostURL() { |
| java.lang.Object ref = hostURL_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| hostURL_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string hostURL = 15;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getHostURLBytes() { |
| java.lang.Object ref = hostURL_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| hostURL_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>required string hostURL = 15;</code> |
| */ |
| public Builder setHostURL( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00002000; |
| hostURL_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string hostURL = 15;</code> |
| */ |
| public Builder clearHostURL() { |
| bitField0_ = (bitField0_ & ~0x00002000); |
| hostURL_ = getDefaultInstance().getHostURL(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string hostURL = 15;</code> |
| */ |
| public Builder setHostURLBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00002000; |
| hostURL_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // optional string appVersion = 16; |
| private java.lang.Object appVersion_ = ""; |
| /** |
| * <code>optional string appVersion = 16;</code> |
| */ |
| public boolean hasAppVersion() { |
| return ((bitField0_ & 0x00004000) == 0x00004000); |
| } |
| /** |
| * <code>optional string appVersion = 16;</code> |
| */ |
| public java.lang.String getAppVersion() { |
| java.lang.Object ref = appVersion_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| appVersion_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>optional string appVersion = 16;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getAppVersionBytes() { |
| java.lang.Object ref = appVersion_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| appVersion_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>optional string appVersion = 16;</code> |
| */ |
| public Builder setAppVersion( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00004000; |
| appVersion_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string appVersion = 16;</code> |
| */ |
| public Builder clearAppVersion() { |
| bitField0_ = (bitField0_ & ~0x00004000); |
| appVersion_ = getDefaultInstance().getAppVersion(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string appVersion = 16;</code> |
| */ |
| public Builder setAppVersionBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00004000; |
| appVersion_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.RoleInstanceState) |
| } |
| |
| static { |
| defaultInstance = new RoleInstanceState(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.RoleInstanceState) |
| } |
| |
| public interface StopClusterRequestProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required string message = 1; |
| /** |
| * <code>required string message = 1;</code> |
| * |
| * <pre> |
| ** |
| *message to include |
| * </pre> |
| */ |
| boolean hasMessage(); |
| /** |
| * <code>required string message = 1;</code> |
| * |
| * <pre> |
| ** |
| *message to include |
| * </pre> |
| */ |
| java.lang.String getMessage(); |
| /** |
| * <code>required string message = 1;</code> |
| * |
| * <pre> |
| ** |
| *message to include |
| * </pre> |
| */ |
| com.google.protobuf.ByteString |
| getMessageBytes(); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.StopClusterRequestProto} |
| * |
| * <pre> |
| ** |
| * stop the cluster |
| * </pre> |
| */ |
| public static final class StopClusterRequestProto extends |
| com.google.protobuf.GeneratedMessage |
| implements StopClusterRequestProtoOrBuilder { |
| // Use StopClusterRequestProto.newBuilder() to construct. |
| private StopClusterRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private StopClusterRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final StopClusterRequestProto defaultInstance; |
| public static StopClusterRequestProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public StopClusterRequestProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private StopClusterRequestProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| message_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_StopClusterRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_StopClusterRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.StopClusterRequestProto.class, org.apache.slider.api.proto.Messages.StopClusterRequestProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<StopClusterRequestProto> PARSER = |
| new com.google.protobuf.AbstractParser<StopClusterRequestProto>() { |
| public StopClusterRequestProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new StopClusterRequestProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<StopClusterRequestProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required string message = 1; |
| public static final int MESSAGE_FIELD_NUMBER = 1; |
| private java.lang.Object message_; |
| /** |
| * <code>required string message = 1;</code> |
| * |
| * <pre> |
| ** |
| *message to include |
| * </pre> |
| */ |
| public boolean hasMessage() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string message = 1;</code> |
| * |
| * <pre> |
| ** |
| *message to include |
| * </pre> |
| */ |
| public java.lang.String getMessage() { |
| java.lang.Object ref = message_; |
| 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()) { |
| message_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string message = 1;</code> |
| * |
| * <pre> |
| ** |
| *message to include |
| * </pre> |
| */ |
| public com.google.protobuf.ByteString |
| getMessageBytes() { |
| java.lang.Object ref = message_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| message_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| private void initFields() { |
| message_ = ""; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasMessage()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getMessageBytes()); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, getMessageBytes()); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.StopClusterRequestProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.StopClusterRequestProto other = (org.apache.slider.api.proto.Messages.StopClusterRequestProto) obj; |
| |
| boolean result = true; |
| result = result && (hasMessage() == other.hasMessage()); |
| if (hasMessage()) { |
| result = result && getMessage() |
| .equals(other.getMessage()); |
| } |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasMessage()) { |
| hash = (37 * hash) + MESSAGE_FIELD_NUMBER; |
| hash = (53 * hash) + getMessage().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.StopClusterRequestProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.StopClusterRequestProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.StopClusterRequestProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.StopClusterRequestProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.StopClusterRequestProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.StopClusterRequestProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.StopClusterRequestProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.StopClusterRequestProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.StopClusterRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.StopClusterRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.StopClusterRequestProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.StopClusterRequestProto} |
| * |
| * <pre> |
| ** |
| * stop the cluster |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.StopClusterRequestProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_StopClusterRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_StopClusterRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.StopClusterRequestProto.class, org.apache.slider.api.proto.Messages.StopClusterRequestProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.StopClusterRequestProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| message_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_StopClusterRequestProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.StopClusterRequestProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.StopClusterRequestProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.StopClusterRequestProto build() { |
| org.apache.slider.api.proto.Messages.StopClusterRequestProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.StopClusterRequestProto buildPartial() { |
| org.apache.slider.api.proto.Messages.StopClusterRequestProto result = new org.apache.slider.api.proto.Messages.StopClusterRequestProto(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.message_ = message_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.StopClusterRequestProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.StopClusterRequestProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.StopClusterRequestProto other) { |
| if (other == org.apache.slider.api.proto.Messages.StopClusterRequestProto.getDefaultInstance()) return this; |
| if (other.hasMessage()) { |
| bitField0_ |= 0x00000001; |
| message_ = other.message_; |
| onChanged(); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasMessage()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.StopClusterRequestProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.StopClusterRequestProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // required string message = 1; |
| private java.lang.Object message_ = ""; |
| /** |
| * <code>required string message = 1;</code> |
| * |
| * <pre> |
| ** |
| *message to include |
| * </pre> |
| */ |
| public boolean hasMessage() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string message = 1;</code> |
| * |
| * <pre> |
| ** |
| *message to include |
| * </pre> |
| */ |
| public java.lang.String getMessage() { |
| java.lang.Object ref = message_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| message_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string message = 1;</code> |
| * |
| * <pre> |
| ** |
| *message to include |
| * </pre> |
| */ |
| public com.google.protobuf.ByteString |
| getMessageBytes() { |
| java.lang.Object ref = message_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| message_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>required string message = 1;</code> |
| * |
| * <pre> |
| ** |
| *message to include |
| * </pre> |
| */ |
| public Builder setMessage( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| message_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string message = 1;</code> |
| * |
| * <pre> |
| ** |
| *message to include |
| * </pre> |
| */ |
| public Builder clearMessage() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| message_ = getDefaultInstance().getMessage(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string message = 1;</code> |
| * |
| * <pre> |
| ** |
| *message to include |
| * </pre> |
| */ |
| public Builder setMessageBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| message_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.StopClusterRequestProto) |
| } |
| |
| static { |
| defaultInstance = new StopClusterRequestProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.StopClusterRequestProto) |
| } |
| |
| public interface StopClusterResponseProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.StopClusterResponseProto} |
| * |
| * <pre> |
| ** |
| * stop the cluster |
| * </pre> |
| */ |
| public static final class StopClusterResponseProto extends |
| com.google.protobuf.GeneratedMessage |
| implements StopClusterResponseProtoOrBuilder { |
| // Use StopClusterResponseProto.newBuilder() to construct. |
| private StopClusterResponseProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private StopClusterResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final StopClusterResponseProto defaultInstance; |
| public static StopClusterResponseProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public StopClusterResponseProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private StopClusterResponseProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| 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.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_StopClusterResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_StopClusterResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.StopClusterResponseProto.class, org.apache.slider.api.proto.Messages.StopClusterResponseProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<StopClusterResponseProto> PARSER = |
| new com.google.protobuf.AbstractParser<StopClusterResponseProto>() { |
| public StopClusterResponseProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new StopClusterResponseProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<StopClusterResponseProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private void initFields() { |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.StopClusterResponseProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.StopClusterResponseProto other = (org.apache.slider.api.proto.Messages.StopClusterResponseProto) obj; |
| |
| boolean result = true; |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.StopClusterResponseProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.StopClusterResponseProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.StopClusterResponseProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.StopClusterResponseProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.StopClusterResponseProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.StopClusterResponseProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.StopClusterResponseProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.StopClusterResponseProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.StopClusterResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.StopClusterResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.StopClusterResponseProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.StopClusterResponseProto} |
| * |
| * <pre> |
| ** |
| * stop the cluster |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.StopClusterResponseProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_StopClusterResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_StopClusterResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.StopClusterResponseProto.class, org.apache.slider.api.proto.Messages.StopClusterResponseProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.StopClusterResponseProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_StopClusterResponseProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.StopClusterResponseProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.StopClusterResponseProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.StopClusterResponseProto build() { |
| org.apache.slider.api.proto.Messages.StopClusterResponseProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.StopClusterResponseProto buildPartial() { |
| org.apache.slider.api.proto.Messages.StopClusterResponseProto result = new org.apache.slider.api.proto.Messages.StopClusterResponseProto(this); |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.StopClusterResponseProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.StopClusterResponseProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.StopClusterResponseProto other) { |
| if (other == org.apache.slider.api.proto.Messages.StopClusterResponseProto.getDefaultInstance()) return this; |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.StopClusterResponseProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.StopClusterResponseProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.StopClusterResponseProto) |
| } |
| |
| static { |
| defaultInstance = new StopClusterResponseProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.StopClusterResponseProto) |
| } |
| |
| public interface UpgradeContainersRequestProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required string message = 1; |
| /** |
| * <code>required string message = 1;</code> |
| * |
| * <pre> |
| ** |
| *message to include |
| * </pre> |
| */ |
| boolean hasMessage(); |
| /** |
| * <code>required string message = 1;</code> |
| * |
| * <pre> |
| ** |
| *message to include |
| * </pre> |
| */ |
| java.lang.String getMessage(); |
| /** |
| * <code>required string message = 1;</code> |
| * |
| * <pre> |
| ** |
| *message to include |
| * </pre> |
| */ |
| com.google.protobuf.ByteString |
| getMessageBytes(); |
| |
| // repeated string container = 2; |
| /** |
| * <code>repeated string container = 2;</code> |
| */ |
| java.util.List<java.lang.String> |
| getContainerList(); |
| /** |
| * <code>repeated string container = 2;</code> |
| */ |
| int getContainerCount(); |
| /** |
| * <code>repeated string container = 2;</code> |
| */ |
| java.lang.String getContainer(int index); |
| /** |
| * <code>repeated string container = 2;</code> |
| */ |
| com.google.protobuf.ByteString |
| getContainerBytes(int index); |
| |
| // repeated string component = 3; |
| /** |
| * <code>repeated string component = 3;</code> |
| */ |
| java.util.List<java.lang.String> |
| getComponentList(); |
| /** |
| * <code>repeated string component = 3;</code> |
| */ |
| int getComponentCount(); |
| /** |
| * <code>repeated string component = 3;</code> |
| */ |
| java.lang.String getComponent(int index); |
| /** |
| * <code>repeated string component = 3;</code> |
| */ |
| com.google.protobuf.ByteString |
| getComponentBytes(int index); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.UpgradeContainersRequestProto} |
| * |
| * <pre> |
| ** |
| * upgrade the containers |
| * </pre> |
| */ |
| public static final class UpgradeContainersRequestProto extends |
| com.google.protobuf.GeneratedMessage |
| implements UpgradeContainersRequestProtoOrBuilder { |
| // Use UpgradeContainersRequestProto.newBuilder() to construct. |
| private UpgradeContainersRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private UpgradeContainersRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final UpgradeContainersRequestProto defaultInstance; |
| public static UpgradeContainersRequestProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public UpgradeContainersRequestProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private UpgradeContainersRequestProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| message_ = input.readBytes(); |
| break; |
| } |
| case 18: { |
| if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { |
| container_ = new com.google.protobuf.LazyStringArrayList(); |
| mutable_bitField0_ |= 0x00000002; |
| } |
| container_.add(input.readBytes()); |
| break; |
| } |
| case 26: { |
| if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { |
| component_ = new com.google.protobuf.LazyStringArrayList(); |
| mutable_bitField0_ |= 0x00000004; |
| } |
| component_.add(input.readBytes()); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { |
| container_ = new com.google.protobuf.UnmodifiableLazyStringList(container_); |
| } |
| if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { |
| component_ = new com.google.protobuf.UnmodifiableLazyStringList(component_); |
| } |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_UpgradeContainersRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_UpgradeContainersRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto.class, org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<UpgradeContainersRequestProto> PARSER = |
| new com.google.protobuf.AbstractParser<UpgradeContainersRequestProto>() { |
| public UpgradeContainersRequestProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new UpgradeContainersRequestProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<UpgradeContainersRequestProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required string message = 1; |
| public static final int MESSAGE_FIELD_NUMBER = 1; |
| private java.lang.Object message_; |
| /** |
| * <code>required string message = 1;</code> |
| * |
| * <pre> |
| ** |
| *message to include |
| * </pre> |
| */ |
| public boolean hasMessage() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string message = 1;</code> |
| * |
| * <pre> |
| ** |
| *message to include |
| * </pre> |
| */ |
| public java.lang.String getMessage() { |
| java.lang.Object ref = message_; |
| 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()) { |
| message_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string message = 1;</code> |
| * |
| * <pre> |
| ** |
| *message to include |
| * </pre> |
| */ |
| public com.google.protobuf.ByteString |
| getMessageBytes() { |
| java.lang.Object ref = message_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| message_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // repeated string container = 2; |
| public static final int CONTAINER_FIELD_NUMBER = 2; |
| private com.google.protobuf.LazyStringList container_; |
| /** |
| * <code>repeated string container = 2;</code> |
| */ |
| public java.util.List<java.lang.String> |
| getContainerList() { |
| return container_; |
| } |
| /** |
| * <code>repeated string container = 2;</code> |
| */ |
| public int getContainerCount() { |
| return container_.size(); |
| } |
| /** |
| * <code>repeated string container = 2;</code> |
| */ |
| public java.lang.String getContainer(int index) { |
| return container_.get(index); |
| } |
| /** |
| * <code>repeated string container = 2;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getContainerBytes(int index) { |
| return container_.getByteString(index); |
| } |
| |
| // repeated string component = 3; |
| public static final int COMPONENT_FIELD_NUMBER = 3; |
| private com.google.protobuf.LazyStringList component_; |
| /** |
| * <code>repeated string component = 3;</code> |
| */ |
| public java.util.List<java.lang.String> |
| getComponentList() { |
| return component_; |
| } |
| /** |
| * <code>repeated string component = 3;</code> |
| */ |
| public int getComponentCount() { |
| return component_.size(); |
| } |
| /** |
| * <code>repeated string component = 3;</code> |
| */ |
| public java.lang.String getComponent(int index) { |
| return component_.get(index); |
| } |
| /** |
| * <code>repeated string component = 3;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getComponentBytes(int index) { |
| return component_.getByteString(index); |
| } |
| |
| private void initFields() { |
| message_ = ""; |
| container_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| component_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasMessage()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getMessageBytes()); |
| } |
| for (int i = 0; i < container_.size(); i++) { |
| output.writeBytes(2, container_.getByteString(i)); |
| } |
| for (int i = 0; i < component_.size(); i++) { |
| output.writeBytes(3, component_.getByteString(i)); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, getMessageBytes()); |
| } |
| { |
| int dataSize = 0; |
| for (int i = 0; i < container_.size(); i++) { |
| dataSize += com.google.protobuf.CodedOutputStream |
| .computeBytesSizeNoTag(container_.getByteString(i)); |
| } |
| size += dataSize; |
| size += 1 * getContainerList().size(); |
| } |
| { |
| int dataSize = 0; |
| for (int i = 0; i < component_.size(); i++) { |
| dataSize += com.google.protobuf.CodedOutputStream |
| .computeBytesSizeNoTag(component_.getByteString(i)); |
| } |
| size += dataSize; |
| size += 1 * getComponentList().size(); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto other = (org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto) obj; |
| |
| boolean result = true; |
| result = result && (hasMessage() == other.hasMessage()); |
| if (hasMessage()) { |
| result = result && getMessage() |
| .equals(other.getMessage()); |
| } |
| result = result && getContainerList() |
| .equals(other.getContainerList()); |
| result = result && getComponentList() |
| .equals(other.getComponentList()); |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasMessage()) { |
| hash = (37 * hash) + MESSAGE_FIELD_NUMBER; |
| hash = (53 * hash) + getMessage().hashCode(); |
| } |
| if (getContainerCount() > 0) { |
| hash = (37 * hash) + CONTAINER_FIELD_NUMBER; |
| hash = (53 * hash) + getContainerList().hashCode(); |
| } |
| if (getComponentCount() > 0) { |
| hash = (37 * hash) + COMPONENT_FIELD_NUMBER; |
| hash = (53 * hash) + getComponentList().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.UpgradeContainersRequestProto} |
| * |
| * <pre> |
| ** |
| * upgrade the containers |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.UpgradeContainersRequestProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_UpgradeContainersRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_UpgradeContainersRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto.class, org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| message_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| container_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| component_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_UpgradeContainersRequestProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto build() { |
| org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto buildPartial() { |
| org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto result = new org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.message_ = message_; |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| container_ = new com.google.protobuf.UnmodifiableLazyStringList( |
| container_); |
| bitField0_ = (bitField0_ & ~0x00000002); |
| } |
| result.container_ = container_; |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| component_ = new com.google.protobuf.UnmodifiableLazyStringList( |
| component_); |
| bitField0_ = (bitField0_ & ~0x00000004); |
| } |
| result.component_ = component_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto other) { |
| if (other == org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto.getDefaultInstance()) return this; |
| if (other.hasMessage()) { |
| bitField0_ |= 0x00000001; |
| message_ = other.message_; |
| onChanged(); |
| } |
| if (!other.container_.isEmpty()) { |
| if (container_.isEmpty()) { |
| container_ = other.container_; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| } else { |
| ensureContainerIsMutable(); |
| container_.addAll(other.container_); |
| } |
| onChanged(); |
| } |
| if (!other.component_.isEmpty()) { |
| if (component_.isEmpty()) { |
| component_ = other.component_; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| } else { |
| ensureComponentIsMutable(); |
| component_.addAll(other.component_); |
| } |
| onChanged(); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasMessage()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.UpgradeContainersRequestProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // required string message = 1; |
| private java.lang.Object message_ = ""; |
| /** |
| * <code>required string message = 1;</code> |
| * |
| * <pre> |
| ** |
| *message to include |
| * </pre> |
| */ |
| public boolean hasMessage() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string message = 1;</code> |
| * |
| * <pre> |
| ** |
| *message to include |
| * </pre> |
| */ |
| public java.lang.String getMessage() { |
| java.lang.Object ref = message_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| message_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string message = 1;</code> |
| * |
| * <pre> |
| ** |
| *message to include |
| * </pre> |
| */ |
| public com.google.protobuf.ByteString |
| getMessageBytes() { |
| java.lang.Object ref = message_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| message_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>required string message = 1;</code> |
| * |
| * <pre> |
| ** |
| *message to include |
| * </pre> |
| */ |
| public Builder setMessage( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| message_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string message = 1;</code> |
| * |
| * <pre> |
| ** |
| *message to include |
| * </pre> |
| */ |
| public Builder clearMessage() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| message_ = getDefaultInstance().getMessage(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string message = 1;</code> |
| * |
| * <pre> |
| ** |
| *message to include |
| * </pre> |
| */ |
| public Builder setMessageBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| message_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // repeated string container = 2; |
| private com.google.protobuf.LazyStringList container_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| private void ensureContainerIsMutable() { |
| if (!((bitField0_ & 0x00000002) == 0x00000002)) { |
| container_ = new com.google.protobuf.LazyStringArrayList(container_); |
| bitField0_ |= 0x00000002; |
| } |
| } |
| /** |
| * <code>repeated string container = 2;</code> |
| */ |
| public java.util.List<java.lang.String> |
| getContainerList() { |
| return java.util.Collections.unmodifiableList(container_); |
| } |
| /** |
| * <code>repeated string container = 2;</code> |
| */ |
| public int getContainerCount() { |
| return container_.size(); |
| } |
| /** |
| * <code>repeated string container = 2;</code> |
| */ |
| public java.lang.String getContainer(int index) { |
| return container_.get(index); |
| } |
| /** |
| * <code>repeated string container = 2;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getContainerBytes(int index) { |
| return container_.getByteString(index); |
| } |
| /** |
| * <code>repeated string container = 2;</code> |
| */ |
| public Builder setContainer( |
| int index, java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureContainerIsMutable(); |
| container_.set(index, value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string container = 2;</code> |
| */ |
| public Builder addContainer( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureContainerIsMutable(); |
| container_.add(value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string container = 2;</code> |
| */ |
| public Builder addAllContainer( |
| java.lang.Iterable<java.lang.String> values) { |
| ensureContainerIsMutable(); |
| super.addAll(values, container_); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string container = 2;</code> |
| */ |
| public Builder clearContainer() { |
| container_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string container = 2;</code> |
| */ |
| public Builder addContainerBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureContainerIsMutable(); |
| container_.add(value); |
| onChanged(); |
| return this; |
| } |
| |
| // repeated string component = 3; |
| private com.google.protobuf.LazyStringList component_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| private void ensureComponentIsMutable() { |
| if (!((bitField0_ & 0x00000004) == 0x00000004)) { |
| component_ = new com.google.protobuf.LazyStringArrayList(component_); |
| bitField0_ |= 0x00000004; |
| } |
| } |
| /** |
| * <code>repeated string component = 3;</code> |
| */ |
| public java.util.List<java.lang.String> |
| getComponentList() { |
| return java.util.Collections.unmodifiableList(component_); |
| } |
| /** |
| * <code>repeated string component = 3;</code> |
| */ |
| public int getComponentCount() { |
| return component_.size(); |
| } |
| /** |
| * <code>repeated string component = 3;</code> |
| */ |
| public java.lang.String getComponent(int index) { |
| return component_.get(index); |
| } |
| /** |
| * <code>repeated string component = 3;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getComponentBytes(int index) { |
| return component_.getByteString(index); |
| } |
| /** |
| * <code>repeated string component = 3;</code> |
| */ |
| public Builder setComponent( |
| int index, java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureComponentIsMutable(); |
| component_.set(index, value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string component = 3;</code> |
| */ |
| public Builder addComponent( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureComponentIsMutable(); |
| component_.add(value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string component = 3;</code> |
| */ |
| public Builder addAllComponent( |
| java.lang.Iterable<java.lang.String> values) { |
| ensureComponentIsMutable(); |
| super.addAll(values, component_); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string component = 3;</code> |
| */ |
| public Builder clearComponent() { |
| component_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string component = 3;</code> |
| */ |
| public Builder addComponentBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureComponentIsMutable(); |
| component_.add(value); |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.UpgradeContainersRequestProto) |
| } |
| |
| static { |
| defaultInstance = new UpgradeContainersRequestProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.UpgradeContainersRequestProto) |
| } |
| |
| public interface UpgradeContainersResponseProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.UpgradeContainersResponseProto} |
| * |
| * <pre> |
| ** |
| * upgrade the containers |
| * </pre> |
| */ |
| public static final class UpgradeContainersResponseProto extends |
| com.google.protobuf.GeneratedMessage |
| implements UpgradeContainersResponseProtoOrBuilder { |
| // Use UpgradeContainersResponseProto.newBuilder() to construct. |
| private UpgradeContainersResponseProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private UpgradeContainersResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final UpgradeContainersResponseProto defaultInstance; |
| public static UpgradeContainersResponseProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public UpgradeContainersResponseProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private UpgradeContainersResponseProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| 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.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_UpgradeContainersResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_UpgradeContainersResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto.class, org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<UpgradeContainersResponseProto> PARSER = |
| new com.google.protobuf.AbstractParser<UpgradeContainersResponseProto>() { |
| public UpgradeContainersResponseProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new UpgradeContainersResponseProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<UpgradeContainersResponseProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private void initFields() { |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto other = (org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto) obj; |
| |
| boolean result = true; |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.UpgradeContainersResponseProto} |
| * |
| * <pre> |
| ** |
| * upgrade the containers |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.UpgradeContainersResponseProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_UpgradeContainersResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_UpgradeContainersResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto.class, org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_UpgradeContainersResponseProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto build() { |
| org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto buildPartial() { |
| org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto result = new org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto(this); |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto other) { |
| if (other == org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto.getDefaultInstance()) return this; |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.UpgradeContainersResponseProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.UpgradeContainersResponseProto) |
| } |
| |
| static { |
| defaultInstance = new UpgradeContainersResponseProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.UpgradeContainersResponseProto) |
| } |
| |
| public interface FlexClusterRequestProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required string clusterSpec = 1; |
| /** |
| * <code>required string clusterSpec = 1;</code> |
| */ |
| boolean hasClusterSpec(); |
| /** |
| * <code>required string clusterSpec = 1;</code> |
| */ |
| java.lang.String getClusterSpec(); |
| /** |
| * <code>required string clusterSpec = 1;</code> |
| */ |
| com.google.protobuf.ByteString |
| getClusterSpecBytes(); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.FlexClusterRequestProto} |
| * |
| * <pre> |
| ** |
| * flex the cluster |
| * </pre> |
| */ |
| public static final class FlexClusterRequestProto extends |
| com.google.protobuf.GeneratedMessage |
| implements FlexClusterRequestProtoOrBuilder { |
| // Use FlexClusterRequestProto.newBuilder() to construct. |
| private FlexClusterRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private FlexClusterRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final FlexClusterRequestProto defaultInstance; |
| public static FlexClusterRequestProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public FlexClusterRequestProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private FlexClusterRequestProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| clusterSpec_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_FlexClusterRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_FlexClusterRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.FlexClusterRequestProto.class, org.apache.slider.api.proto.Messages.FlexClusterRequestProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<FlexClusterRequestProto> PARSER = |
| new com.google.protobuf.AbstractParser<FlexClusterRequestProto>() { |
| public FlexClusterRequestProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new FlexClusterRequestProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<FlexClusterRequestProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required string clusterSpec = 1; |
| public static final int CLUSTERSPEC_FIELD_NUMBER = 1; |
| private java.lang.Object clusterSpec_; |
| /** |
| * <code>required string clusterSpec = 1;</code> |
| */ |
| public boolean hasClusterSpec() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string clusterSpec = 1;</code> |
| */ |
| public java.lang.String getClusterSpec() { |
| java.lang.Object ref = clusterSpec_; |
| 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()) { |
| clusterSpec_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string clusterSpec = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getClusterSpecBytes() { |
| java.lang.Object ref = clusterSpec_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| clusterSpec_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| private void initFields() { |
| clusterSpec_ = ""; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasClusterSpec()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getClusterSpecBytes()); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, getClusterSpecBytes()); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.FlexClusterRequestProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.FlexClusterRequestProto other = (org.apache.slider.api.proto.Messages.FlexClusterRequestProto) obj; |
| |
| boolean result = true; |
| result = result && (hasClusterSpec() == other.hasClusterSpec()); |
| if (hasClusterSpec()) { |
| result = result && getClusterSpec() |
| .equals(other.getClusterSpec()); |
| } |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasClusterSpec()) { |
| hash = (37 * hash) + CLUSTERSPEC_FIELD_NUMBER; |
| hash = (53 * hash) + getClusterSpec().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.FlexClusterRequestProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.FlexClusterRequestProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.FlexClusterRequestProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.FlexClusterRequestProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.FlexClusterRequestProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.FlexClusterRequestProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.FlexClusterRequestProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.FlexClusterRequestProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.FlexClusterRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.FlexClusterRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.FlexClusterRequestProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.FlexClusterRequestProto} |
| * |
| * <pre> |
| ** |
| * flex the cluster |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.FlexClusterRequestProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_FlexClusterRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_FlexClusterRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.FlexClusterRequestProto.class, org.apache.slider.api.proto.Messages.FlexClusterRequestProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.FlexClusterRequestProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| clusterSpec_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_FlexClusterRequestProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.FlexClusterRequestProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.FlexClusterRequestProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.FlexClusterRequestProto build() { |
| org.apache.slider.api.proto.Messages.FlexClusterRequestProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.FlexClusterRequestProto buildPartial() { |
| org.apache.slider.api.proto.Messages.FlexClusterRequestProto result = new org.apache.slider.api.proto.Messages.FlexClusterRequestProto(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.clusterSpec_ = clusterSpec_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.FlexClusterRequestProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.FlexClusterRequestProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.FlexClusterRequestProto other) { |
| if (other == org.apache.slider.api.proto.Messages.FlexClusterRequestProto.getDefaultInstance()) return this; |
| if (other.hasClusterSpec()) { |
| bitField0_ |= 0x00000001; |
| clusterSpec_ = other.clusterSpec_; |
| onChanged(); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasClusterSpec()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.FlexClusterRequestProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.FlexClusterRequestProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // required string clusterSpec = 1; |
| private java.lang.Object clusterSpec_ = ""; |
| /** |
| * <code>required string clusterSpec = 1;</code> |
| */ |
| public boolean hasClusterSpec() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string clusterSpec = 1;</code> |
| */ |
| public java.lang.String getClusterSpec() { |
| java.lang.Object ref = clusterSpec_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| clusterSpec_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string clusterSpec = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getClusterSpecBytes() { |
| java.lang.Object ref = clusterSpec_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| clusterSpec_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>required string clusterSpec = 1;</code> |
| */ |
| public Builder setClusterSpec( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| clusterSpec_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string clusterSpec = 1;</code> |
| */ |
| public Builder clearClusterSpec() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| clusterSpec_ = getDefaultInstance().getClusterSpec(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string clusterSpec = 1;</code> |
| */ |
| public Builder setClusterSpecBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| clusterSpec_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.FlexClusterRequestProto) |
| } |
| |
| static { |
| defaultInstance = new FlexClusterRequestProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.FlexClusterRequestProto) |
| } |
| |
| public interface FlexClusterResponseProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required bool response = 1; |
| /** |
| * <code>required bool response = 1;</code> |
| */ |
| boolean hasResponse(); |
| /** |
| * <code>required bool response = 1;</code> |
| */ |
| boolean getResponse(); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.FlexClusterResponseProto} |
| * |
| * <pre> |
| ** |
| * flex the cluster |
| * </pre> |
| */ |
| public static final class FlexClusterResponseProto extends |
| com.google.protobuf.GeneratedMessage |
| implements FlexClusterResponseProtoOrBuilder { |
| // Use FlexClusterResponseProto.newBuilder() to construct. |
| private FlexClusterResponseProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private FlexClusterResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final FlexClusterResponseProto defaultInstance; |
| public static FlexClusterResponseProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public FlexClusterResponseProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private FlexClusterResponseProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| response_ = input.readBool(); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_FlexClusterResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_FlexClusterResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.FlexClusterResponseProto.class, org.apache.slider.api.proto.Messages.FlexClusterResponseProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<FlexClusterResponseProto> PARSER = |
| new com.google.protobuf.AbstractParser<FlexClusterResponseProto>() { |
| public FlexClusterResponseProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new FlexClusterResponseProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<FlexClusterResponseProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required bool response = 1; |
| public static final int RESPONSE_FIELD_NUMBER = 1; |
| private boolean response_; |
| /** |
| * <code>required bool response = 1;</code> |
| */ |
| public boolean hasResponse() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required bool response = 1;</code> |
| */ |
| public boolean getResponse() { |
| return response_; |
| } |
| |
| private void initFields() { |
| response_ = false; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasResponse()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBool(1, response_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBoolSize(1, response_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.FlexClusterResponseProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.FlexClusterResponseProto other = (org.apache.slider.api.proto.Messages.FlexClusterResponseProto) obj; |
| |
| boolean result = true; |
| result = result && (hasResponse() == other.hasResponse()); |
| if (hasResponse()) { |
| result = result && (getResponse() |
| == other.getResponse()); |
| } |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasResponse()) { |
| hash = (37 * hash) + RESPONSE_FIELD_NUMBER; |
| hash = (53 * hash) + hashBoolean(getResponse()); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.FlexClusterResponseProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.FlexClusterResponseProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.FlexClusterResponseProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.FlexClusterResponseProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.FlexClusterResponseProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.FlexClusterResponseProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.FlexClusterResponseProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.FlexClusterResponseProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.FlexClusterResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.FlexClusterResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.FlexClusterResponseProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.FlexClusterResponseProto} |
| * |
| * <pre> |
| ** |
| * flex the cluster |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.FlexClusterResponseProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_FlexClusterResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_FlexClusterResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.FlexClusterResponseProto.class, org.apache.slider.api.proto.Messages.FlexClusterResponseProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.FlexClusterResponseProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| response_ = false; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_FlexClusterResponseProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.FlexClusterResponseProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.FlexClusterResponseProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.FlexClusterResponseProto build() { |
| org.apache.slider.api.proto.Messages.FlexClusterResponseProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.FlexClusterResponseProto buildPartial() { |
| org.apache.slider.api.proto.Messages.FlexClusterResponseProto result = new org.apache.slider.api.proto.Messages.FlexClusterResponseProto(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.response_ = response_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.FlexClusterResponseProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.FlexClusterResponseProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.FlexClusterResponseProto other) { |
| if (other == org.apache.slider.api.proto.Messages.FlexClusterResponseProto.getDefaultInstance()) return this; |
| if (other.hasResponse()) { |
| setResponse(other.getResponse()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasResponse()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.FlexClusterResponseProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.FlexClusterResponseProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // required bool response = 1; |
| private boolean response_ ; |
| /** |
| * <code>required bool response = 1;</code> |
| */ |
| public boolean hasResponse() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required bool response = 1;</code> |
| */ |
| public boolean getResponse() { |
| return response_; |
| } |
| /** |
| * <code>required bool response = 1;</code> |
| */ |
| public Builder setResponse(boolean value) { |
| bitField0_ |= 0x00000001; |
| response_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required bool response = 1;</code> |
| */ |
| public Builder clearResponse() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| response_ = false; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.FlexClusterResponseProto) |
| } |
| |
| static { |
| defaultInstance = new FlexClusterResponseProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.FlexClusterResponseProto) |
| } |
| |
| public interface GetJSONClusterStatusRequestProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetJSONClusterStatusRequestProto} |
| * |
| * <pre> |
| ** |
| * void request |
| * </pre> |
| */ |
| public static final class GetJSONClusterStatusRequestProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetJSONClusterStatusRequestProtoOrBuilder { |
| // Use GetJSONClusterStatusRequestProto.newBuilder() to construct. |
| private GetJSONClusterStatusRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetJSONClusterStatusRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetJSONClusterStatusRequestProto defaultInstance; |
| public static GetJSONClusterStatusRequestProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetJSONClusterStatusRequestProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetJSONClusterStatusRequestProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| 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.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetJSONClusterStatusRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetJSONClusterStatusRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto.class, org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetJSONClusterStatusRequestProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetJSONClusterStatusRequestProto>() { |
| public GetJSONClusterStatusRequestProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetJSONClusterStatusRequestProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetJSONClusterStatusRequestProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private void initFields() { |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto other = (org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto) obj; |
| |
| boolean result = true; |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetJSONClusterStatusRequestProto} |
| * |
| * <pre> |
| ** |
| * void request |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetJSONClusterStatusRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetJSONClusterStatusRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto.class, org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetJSONClusterStatusRequestProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto build() { |
| org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto result = new org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto(this); |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto.getDefaultInstance()) return this; |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetJSONClusterStatusRequestProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetJSONClusterStatusRequestProto) |
| } |
| |
| static { |
| defaultInstance = new GetJSONClusterStatusRequestProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetJSONClusterStatusRequestProto) |
| } |
| |
| public interface GetJSONClusterStatusResponseProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required string clusterSpec = 1; |
| /** |
| * <code>required string clusterSpec = 1;</code> |
| */ |
| boolean hasClusterSpec(); |
| /** |
| * <code>required string clusterSpec = 1;</code> |
| */ |
| java.lang.String getClusterSpec(); |
| /** |
| * <code>required string clusterSpec = 1;</code> |
| */ |
| com.google.protobuf.ByteString |
| getClusterSpecBytes(); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetJSONClusterStatusResponseProto} |
| * |
| * <pre> |
| ** |
| * response |
| * </pre> |
| */ |
| public static final class GetJSONClusterStatusResponseProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetJSONClusterStatusResponseProtoOrBuilder { |
| // Use GetJSONClusterStatusResponseProto.newBuilder() to construct. |
| private GetJSONClusterStatusResponseProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetJSONClusterStatusResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetJSONClusterStatusResponseProto defaultInstance; |
| public static GetJSONClusterStatusResponseProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetJSONClusterStatusResponseProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetJSONClusterStatusResponseProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| clusterSpec_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetJSONClusterStatusResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetJSONClusterStatusResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto.class, org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetJSONClusterStatusResponseProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetJSONClusterStatusResponseProto>() { |
| public GetJSONClusterStatusResponseProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetJSONClusterStatusResponseProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetJSONClusterStatusResponseProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required string clusterSpec = 1; |
| public static final int CLUSTERSPEC_FIELD_NUMBER = 1; |
| private java.lang.Object clusterSpec_; |
| /** |
| * <code>required string clusterSpec = 1;</code> |
| */ |
| public boolean hasClusterSpec() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string clusterSpec = 1;</code> |
| */ |
| public java.lang.String getClusterSpec() { |
| java.lang.Object ref = clusterSpec_; |
| 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()) { |
| clusterSpec_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string clusterSpec = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getClusterSpecBytes() { |
| java.lang.Object ref = clusterSpec_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| clusterSpec_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| private void initFields() { |
| clusterSpec_ = ""; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasClusterSpec()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getClusterSpecBytes()); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, getClusterSpecBytes()); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto other = (org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto) obj; |
| |
| boolean result = true; |
| result = result && (hasClusterSpec() == other.hasClusterSpec()); |
| if (hasClusterSpec()) { |
| result = result && getClusterSpec() |
| .equals(other.getClusterSpec()); |
| } |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasClusterSpec()) { |
| hash = (37 * hash) + CLUSTERSPEC_FIELD_NUMBER; |
| hash = (53 * hash) + getClusterSpec().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetJSONClusterStatusResponseProto} |
| * |
| * <pre> |
| ** |
| * response |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetJSONClusterStatusResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetJSONClusterStatusResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto.class, org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| clusterSpec_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetJSONClusterStatusResponseProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto build() { |
| org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto result = new org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.clusterSpec_ = clusterSpec_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto.getDefaultInstance()) return this; |
| if (other.hasClusterSpec()) { |
| bitField0_ |= 0x00000001; |
| clusterSpec_ = other.clusterSpec_; |
| onChanged(); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasClusterSpec()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetJSONClusterStatusResponseProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // required string clusterSpec = 1; |
| private java.lang.Object clusterSpec_ = ""; |
| /** |
| * <code>required string clusterSpec = 1;</code> |
| */ |
| public boolean hasClusterSpec() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string clusterSpec = 1;</code> |
| */ |
| public java.lang.String getClusterSpec() { |
| java.lang.Object ref = clusterSpec_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| clusterSpec_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string clusterSpec = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getClusterSpecBytes() { |
| java.lang.Object ref = clusterSpec_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| clusterSpec_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>required string clusterSpec = 1;</code> |
| */ |
| public Builder setClusterSpec( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| clusterSpec_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string clusterSpec = 1;</code> |
| */ |
| public Builder clearClusterSpec() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| clusterSpec_ = getDefaultInstance().getClusterSpec(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string clusterSpec = 1;</code> |
| */ |
| public Builder setClusterSpecBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| clusterSpec_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetJSONClusterStatusResponseProto) |
| } |
| |
| static { |
| defaultInstance = new GetJSONClusterStatusResponseProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetJSONClusterStatusResponseProto) |
| } |
| |
| public interface ListNodeUUIDsByRoleRequestProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required string role = 1; |
| /** |
| * <code>required string role = 1;</code> |
| */ |
| boolean hasRole(); |
| /** |
| * <code>required string role = 1;</code> |
| */ |
| java.lang.String getRole(); |
| /** |
| * <code>required string role = 1;</code> |
| */ |
| com.google.protobuf.ByteString |
| getRoleBytes(); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.ListNodeUUIDsByRoleRequestProto} |
| * |
| * <pre> |
| ** |
| * list the nodes in a role |
| * </pre> |
| */ |
| public static final class ListNodeUUIDsByRoleRequestProto extends |
| com.google.protobuf.GeneratedMessage |
| implements ListNodeUUIDsByRoleRequestProtoOrBuilder { |
| // Use ListNodeUUIDsByRoleRequestProto.newBuilder() to construct. |
| private ListNodeUUIDsByRoleRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private ListNodeUUIDsByRoleRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final ListNodeUUIDsByRoleRequestProto defaultInstance; |
| public static ListNodeUUIDsByRoleRequestProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public ListNodeUUIDsByRoleRequestProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private ListNodeUUIDsByRoleRequestProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| role_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ListNodeUUIDsByRoleRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ListNodeUUIDsByRoleRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto.class, org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<ListNodeUUIDsByRoleRequestProto> PARSER = |
| new com.google.protobuf.AbstractParser<ListNodeUUIDsByRoleRequestProto>() { |
| public ListNodeUUIDsByRoleRequestProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new ListNodeUUIDsByRoleRequestProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<ListNodeUUIDsByRoleRequestProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required string role = 1; |
| public static final int ROLE_FIELD_NUMBER = 1; |
| private java.lang.Object role_; |
| /** |
| * <code>required string role = 1;</code> |
| */ |
| public boolean hasRole() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string role = 1;</code> |
| */ |
| public java.lang.String getRole() { |
| java.lang.Object ref = role_; |
| 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()) { |
| role_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string role = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getRoleBytes() { |
| java.lang.Object ref = role_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| role_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| private void initFields() { |
| role_ = ""; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasRole()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getRoleBytes()); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, getRoleBytes()); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto other = (org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto) obj; |
| |
| boolean result = true; |
| result = result && (hasRole() == other.hasRole()); |
| if (hasRole()) { |
| result = result && getRole() |
| .equals(other.getRole()); |
| } |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasRole()) { |
| hash = (37 * hash) + ROLE_FIELD_NUMBER; |
| hash = (53 * hash) + getRole().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.ListNodeUUIDsByRoleRequestProto} |
| * |
| * <pre> |
| ** |
| * list the nodes in a role |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ListNodeUUIDsByRoleRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ListNodeUUIDsByRoleRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto.class, org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| role_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ListNodeUUIDsByRoleRequestProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto build() { |
| org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto buildPartial() { |
| org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto result = new org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.role_ = role_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto other) { |
| if (other == org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto.getDefaultInstance()) return this; |
| if (other.hasRole()) { |
| bitField0_ |= 0x00000001; |
| role_ = other.role_; |
| onChanged(); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasRole()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleRequestProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // required string role = 1; |
| private java.lang.Object role_ = ""; |
| /** |
| * <code>required string role = 1;</code> |
| */ |
| public boolean hasRole() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string role = 1;</code> |
| */ |
| public java.lang.String getRole() { |
| java.lang.Object ref = role_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| role_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string role = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getRoleBytes() { |
| java.lang.Object ref = role_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| role_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>required string role = 1;</code> |
| */ |
| public Builder setRole( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| role_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string role = 1;</code> |
| */ |
| public Builder clearRole() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| role_ = getDefaultInstance().getRole(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string role = 1;</code> |
| */ |
| public Builder setRoleBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| role_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.ListNodeUUIDsByRoleRequestProto) |
| } |
| |
| static { |
| defaultInstance = new ListNodeUUIDsByRoleRequestProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.ListNodeUUIDsByRoleRequestProto) |
| } |
| |
| public interface ListNodeUUIDsByRoleResponseProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // repeated string uuid = 1; |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| java.util.List<java.lang.String> |
| getUuidList(); |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| int getUuidCount(); |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| java.lang.String getUuid(int index); |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| com.google.protobuf.ByteString |
| getUuidBytes(int index); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.ListNodeUUIDsByRoleResponseProto} |
| * |
| * <pre> |
| ** |
| * list the nodes in a role |
| * </pre> |
| */ |
| public static final class ListNodeUUIDsByRoleResponseProto extends |
| com.google.protobuf.GeneratedMessage |
| implements ListNodeUUIDsByRoleResponseProtoOrBuilder { |
| // Use ListNodeUUIDsByRoleResponseProto.newBuilder() to construct. |
| private ListNodeUUIDsByRoleResponseProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private ListNodeUUIDsByRoleResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final ListNodeUUIDsByRoleResponseProto defaultInstance; |
| public static ListNodeUUIDsByRoleResponseProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public ListNodeUUIDsByRoleResponseProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private ListNodeUUIDsByRoleResponseProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { |
| uuid_ = new com.google.protobuf.LazyStringArrayList(); |
| mutable_bitField0_ |= 0x00000001; |
| } |
| uuid_.add(input.readBytes()); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { |
| uuid_ = new com.google.protobuf.UnmodifiableLazyStringList(uuid_); |
| } |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ListNodeUUIDsByRoleResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ListNodeUUIDsByRoleResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto.class, org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<ListNodeUUIDsByRoleResponseProto> PARSER = |
| new com.google.protobuf.AbstractParser<ListNodeUUIDsByRoleResponseProto>() { |
| public ListNodeUUIDsByRoleResponseProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new ListNodeUUIDsByRoleResponseProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<ListNodeUUIDsByRoleResponseProto> getParserForType() { |
| return PARSER; |
| } |
| |
| // repeated string uuid = 1; |
| public static final int UUID_FIELD_NUMBER = 1; |
| private com.google.protobuf.LazyStringList uuid_; |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| public java.util.List<java.lang.String> |
| getUuidList() { |
| return uuid_; |
| } |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| public int getUuidCount() { |
| return uuid_.size(); |
| } |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| public java.lang.String getUuid(int index) { |
| return uuid_.get(index); |
| } |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getUuidBytes(int index) { |
| return uuid_.getByteString(index); |
| } |
| |
| private void initFields() { |
| uuid_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| for (int i = 0; i < uuid_.size(); i++) { |
| output.writeBytes(1, uuid_.getByteString(i)); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| { |
| int dataSize = 0; |
| for (int i = 0; i < uuid_.size(); i++) { |
| dataSize += com.google.protobuf.CodedOutputStream |
| .computeBytesSizeNoTag(uuid_.getByteString(i)); |
| } |
| size += dataSize; |
| size += 1 * getUuidList().size(); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto other = (org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto) obj; |
| |
| boolean result = true; |
| result = result && getUuidList() |
| .equals(other.getUuidList()); |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (getUuidCount() > 0) { |
| hash = (37 * hash) + UUID_FIELD_NUMBER; |
| hash = (53 * hash) + getUuidList().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.ListNodeUUIDsByRoleResponseProto} |
| * |
| * <pre> |
| ** |
| * list the nodes in a role |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ListNodeUUIDsByRoleResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ListNodeUUIDsByRoleResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto.class, org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| uuid_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ListNodeUUIDsByRoleResponseProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto build() { |
| org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto buildPartial() { |
| org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto result = new org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto(this); |
| int from_bitField0_ = bitField0_; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| uuid_ = new com.google.protobuf.UnmodifiableLazyStringList( |
| uuid_); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } |
| result.uuid_ = uuid_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto other) { |
| if (other == org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto.getDefaultInstance()) return this; |
| if (!other.uuid_.isEmpty()) { |
| if (uuid_.isEmpty()) { |
| uuid_ = other.uuid_; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } else { |
| ensureUuidIsMutable(); |
| uuid_.addAll(other.uuid_); |
| } |
| onChanged(); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.ListNodeUUIDsByRoleResponseProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // repeated string uuid = 1; |
| private com.google.protobuf.LazyStringList uuid_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| private void ensureUuidIsMutable() { |
| if (!((bitField0_ & 0x00000001) == 0x00000001)) { |
| uuid_ = new com.google.protobuf.LazyStringArrayList(uuid_); |
| bitField0_ |= 0x00000001; |
| } |
| } |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| public java.util.List<java.lang.String> |
| getUuidList() { |
| return java.util.Collections.unmodifiableList(uuid_); |
| } |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| public int getUuidCount() { |
| return uuid_.size(); |
| } |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| public java.lang.String getUuid(int index) { |
| return uuid_.get(index); |
| } |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getUuidBytes(int index) { |
| return uuid_.getByteString(index); |
| } |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| public Builder setUuid( |
| int index, java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureUuidIsMutable(); |
| uuid_.set(index, value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| public Builder addUuid( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureUuidIsMutable(); |
| uuid_.add(value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| public Builder addAllUuid( |
| java.lang.Iterable<java.lang.String> values) { |
| ensureUuidIsMutable(); |
| super.addAll(values, uuid_); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| public Builder clearUuid() { |
| uuid_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| public Builder addUuidBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureUuidIsMutable(); |
| uuid_.add(value); |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.ListNodeUUIDsByRoleResponseProto) |
| } |
| |
| static { |
| defaultInstance = new ListNodeUUIDsByRoleResponseProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.ListNodeUUIDsByRoleResponseProto) |
| } |
| |
| public interface GetNodeRequestProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required string uuid = 1; |
| /** |
| * <code>required string uuid = 1;</code> |
| */ |
| boolean hasUuid(); |
| /** |
| * <code>required string uuid = 1;</code> |
| */ |
| java.lang.String getUuid(); |
| /** |
| * <code>required string uuid = 1;</code> |
| */ |
| com.google.protobuf.ByteString |
| getUuidBytes(); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetNodeRequestProto} |
| * |
| * <pre> |
| ** |
| * get a node |
| * </pre> |
| */ |
| public static final class GetNodeRequestProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetNodeRequestProtoOrBuilder { |
| // Use GetNodeRequestProto.newBuilder() to construct. |
| private GetNodeRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetNodeRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetNodeRequestProto defaultInstance; |
| public static GetNodeRequestProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetNodeRequestProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetNodeRequestProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| uuid_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetNodeRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetNodeRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetNodeRequestProto.class, org.apache.slider.api.proto.Messages.GetNodeRequestProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetNodeRequestProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetNodeRequestProto>() { |
| public GetNodeRequestProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetNodeRequestProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetNodeRequestProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required string uuid = 1; |
| public static final int UUID_FIELD_NUMBER = 1; |
| private java.lang.Object uuid_; |
| /** |
| * <code>required string uuid = 1;</code> |
| */ |
| public boolean hasUuid() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string uuid = 1;</code> |
| */ |
| public java.lang.String getUuid() { |
| java.lang.Object ref = uuid_; |
| 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()) { |
| uuid_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string uuid = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getUuidBytes() { |
| java.lang.Object ref = uuid_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| uuid_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| private void initFields() { |
| uuid_ = ""; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasUuid()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getUuidBytes()); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, getUuidBytes()); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetNodeRequestProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetNodeRequestProto other = (org.apache.slider.api.proto.Messages.GetNodeRequestProto) obj; |
| |
| boolean result = true; |
| result = result && (hasUuid() == other.hasUuid()); |
| if (hasUuid()) { |
| result = result && getUuid() |
| .equals(other.getUuid()); |
| } |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasUuid()) { |
| hash = (37 * hash) + UUID_FIELD_NUMBER; |
| hash = (53 * hash) + getUuid().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetNodeRequestProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetNodeRequestProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetNodeRequestProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetNodeRequestProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetNodeRequestProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetNodeRequestProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetNodeRequestProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetNodeRequestProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetNodeRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetNodeRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetNodeRequestProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetNodeRequestProto} |
| * |
| * <pre> |
| ** |
| * get a node |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetNodeRequestProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetNodeRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetNodeRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetNodeRequestProto.class, org.apache.slider.api.proto.Messages.GetNodeRequestProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetNodeRequestProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| uuid_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetNodeRequestProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetNodeRequestProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetNodeRequestProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetNodeRequestProto build() { |
| org.apache.slider.api.proto.Messages.GetNodeRequestProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetNodeRequestProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetNodeRequestProto result = new org.apache.slider.api.proto.Messages.GetNodeRequestProto(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.uuid_ = uuid_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetNodeRequestProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetNodeRequestProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetNodeRequestProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetNodeRequestProto.getDefaultInstance()) return this; |
| if (other.hasUuid()) { |
| bitField0_ |= 0x00000001; |
| uuid_ = other.uuid_; |
| onChanged(); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasUuid()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetNodeRequestProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetNodeRequestProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // required string uuid = 1; |
| private java.lang.Object uuid_ = ""; |
| /** |
| * <code>required string uuid = 1;</code> |
| */ |
| public boolean hasUuid() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string uuid = 1;</code> |
| */ |
| public java.lang.String getUuid() { |
| java.lang.Object ref = uuid_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| uuid_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string uuid = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getUuidBytes() { |
| java.lang.Object ref = uuid_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| uuid_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>required string uuid = 1;</code> |
| */ |
| public Builder setUuid( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| uuid_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string uuid = 1;</code> |
| */ |
| public Builder clearUuid() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| uuid_ = getDefaultInstance().getUuid(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string uuid = 1;</code> |
| */ |
| public Builder setUuidBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| uuid_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetNodeRequestProto) |
| } |
| |
| static { |
| defaultInstance = new GetNodeRequestProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetNodeRequestProto) |
| } |
| |
| public interface GetNodeResponseProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required .org.apache.slider.api.RoleInstanceState clusterNode = 1; |
| /** |
| * <code>required .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| boolean hasClusterNode(); |
| /** |
| * <code>required .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| org.apache.slider.api.proto.Messages.RoleInstanceState getClusterNode(); |
| /** |
| * <code>required .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder getClusterNodeOrBuilder(); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetNodeResponseProto} |
| * |
| * <pre> |
| ** |
| * response on a node |
| * </pre> |
| */ |
| public static final class GetNodeResponseProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetNodeResponseProtoOrBuilder { |
| // Use GetNodeResponseProto.newBuilder() to construct. |
| private GetNodeResponseProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetNodeResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetNodeResponseProto defaultInstance; |
| public static GetNodeResponseProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetNodeResponseProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetNodeResponseProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| org.apache.slider.api.proto.Messages.RoleInstanceState.Builder subBuilder = null; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| subBuilder = clusterNode_.toBuilder(); |
| } |
| clusterNode_ = input.readMessage(org.apache.slider.api.proto.Messages.RoleInstanceState.PARSER, extensionRegistry); |
| if (subBuilder != null) { |
| subBuilder.mergeFrom(clusterNode_); |
| clusterNode_ = subBuilder.buildPartial(); |
| } |
| bitField0_ |= 0x00000001; |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetNodeResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetNodeResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetNodeResponseProto.class, org.apache.slider.api.proto.Messages.GetNodeResponseProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetNodeResponseProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetNodeResponseProto>() { |
| public GetNodeResponseProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetNodeResponseProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetNodeResponseProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required .org.apache.slider.api.RoleInstanceState clusterNode = 1; |
| public static final int CLUSTERNODE_FIELD_NUMBER = 1; |
| private org.apache.slider.api.proto.Messages.RoleInstanceState clusterNode_; |
| /** |
| * <code>required .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public boolean hasClusterNode() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.RoleInstanceState getClusterNode() { |
| return clusterNode_; |
| } |
| /** |
| * <code>required .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder getClusterNodeOrBuilder() { |
| return clusterNode_; |
| } |
| |
| private void initFields() { |
| clusterNode_ = org.apache.slider.api.proto.Messages.RoleInstanceState.getDefaultInstance(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasClusterNode()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!getClusterNode().isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeMessage(1, clusterNode_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(1, clusterNode_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetNodeResponseProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetNodeResponseProto other = (org.apache.slider.api.proto.Messages.GetNodeResponseProto) obj; |
| |
| boolean result = true; |
| result = result && (hasClusterNode() == other.hasClusterNode()); |
| if (hasClusterNode()) { |
| result = result && getClusterNode() |
| .equals(other.getClusterNode()); |
| } |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasClusterNode()) { |
| hash = (37 * hash) + CLUSTERNODE_FIELD_NUMBER; |
| hash = (53 * hash) + getClusterNode().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetNodeResponseProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetNodeResponseProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetNodeResponseProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetNodeResponseProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetNodeResponseProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetNodeResponseProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetNodeResponseProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetNodeResponseProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetNodeResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetNodeResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetNodeResponseProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetNodeResponseProto} |
| * |
| * <pre> |
| ** |
| * response on a node |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetNodeResponseProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetNodeResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetNodeResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetNodeResponseProto.class, org.apache.slider.api.proto.Messages.GetNodeResponseProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetNodeResponseProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getClusterNodeFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| if (clusterNodeBuilder_ == null) { |
| clusterNode_ = org.apache.slider.api.proto.Messages.RoleInstanceState.getDefaultInstance(); |
| } else { |
| clusterNodeBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetNodeResponseProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetNodeResponseProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetNodeResponseProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetNodeResponseProto build() { |
| org.apache.slider.api.proto.Messages.GetNodeResponseProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetNodeResponseProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetNodeResponseProto result = new org.apache.slider.api.proto.Messages.GetNodeResponseProto(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| if (clusterNodeBuilder_ == null) { |
| result.clusterNode_ = clusterNode_; |
| } else { |
| result.clusterNode_ = clusterNodeBuilder_.build(); |
| } |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetNodeResponseProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetNodeResponseProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetNodeResponseProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetNodeResponseProto.getDefaultInstance()) return this; |
| if (other.hasClusterNode()) { |
| mergeClusterNode(other.getClusterNode()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasClusterNode()) { |
| |
| return false; |
| } |
| if (!getClusterNode().isInitialized()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetNodeResponseProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetNodeResponseProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // required .org.apache.slider.api.RoleInstanceState clusterNode = 1; |
| private org.apache.slider.api.proto.Messages.RoleInstanceState clusterNode_ = org.apache.slider.api.proto.Messages.RoleInstanceState.getDefaultInstance(); |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.slider.api.proto.Messages.RoleInstanceState, org.apache.slider.api.proto.Messages.RoleInstanceState.Builder, org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder> clusterNodeBuilder_; |
| /** |
| * <code>required .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public boolean hasClusterNode() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.RoleInstanceState getClusterNode() { |
| if (clusterNodeBuilder_ == null) { |
| return clusterNode_; |
| } else { |
| return clusterNodeBuilder_.getMessage(); |
| } |
| } |
| /** |
| * <code>required .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public Builder setClusterNode(org.apache.slider.api.proto.Messages.RoleInstanceState value) { |
| if (clusterNodeBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| clusterNode_ = value; |
| onChanged(); |
| } else { |
| clusterNodeBuilder_.setMessage(value); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| /** |
| * <code>required .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public Builder setClusterNode( |
| org.apache.slider.api.proto.Messages.RoleInstanceState.Builder builderForValue) { |
| if (clusterNodeBuilder_ == null) { |
| clusterNode_ = builderForValue.build(); |
| onChanged(); |
| } else { |
| clusterNodeBuilder_.setMessage(builderForValue.build()); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| /** |
| * <code>required .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public Builder mergeClusterNode(org.apache.slider.api.proto.Messages.RoleInstanceState value) { |
| if (clusterNodeBuilder_ == null) { |
| if (((bitField0_ & 0x00000001) == 0x00000001) && |
| clusterNode_ != org.apache.slider.api.proto.Messages.RoleInstanceState.getDefaultInstance()) { |
| clusterNode_ = |
| org.apache.slider.api.proto.Messages.RoleInstanceState.newBuilder(clusterNode_).mergeFrom(value).buildPartial(); |
| } else { |
| clusterNode_ = value; |
| } |
| onChanged(); |
| } else { |
| clusterNodeBuilder_.mergeFrom(value); |
| } |
| bitField0_ |= 0x00000001; |
| return this; |
| } |
| /** |
| * <code>required .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public Builder clearClusterNode() { |
| if (clusterNodeBuilder_ == null) { |
| clusterNode_ = org.apache.slider.api.proto.Messages.RoleInstanceState.getDefaultInstance(); |
| onChanged(); |
| } else { |
| clusterNodeBuilder_.clear(); |
| } |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| /** |
| * <code>required .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.RoleInstanceState.Builder getClusterNodeBuilder() { |
| bitField0_ |= 0x00000001; |
| onChanged(); |
| return getClusterNodeFieldBuilder().getBuilder(); |
| } |
| /** |
| * <code>required .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder getClusterNodeOrBuilder() { |
| if (clusterNodeBuilder_ != null) { |
| return clusterNodeBuilder_.getMessageOrBuilder(); |
| } else { |
| return clusterNode_; |
| } |
| } |
| /** |
| * <code>required .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| private com.google.protobuf.SingleFieldBuilder< |
| org.apache.slider.api.proto.Messages.RoleInstanceState, org.apache.slider.api.proto.Messages.RoleInstanceState.Builder, org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder> |
| getClusterNodeFieldBuilder() { |
| if (clusterNodeBuilder_ == null) { |
| clusterNodeBuilder_ = new com.google.protobuf.SingleFieldBuilder< |
| org.apache.slider.api.proto.Messages.RoleInstanceState, org.apache.slider.api.proto.Messages.RoleInstanceState.Builder, org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder>( |
| clusterNode_, |
| getParentForChildren(), |
| isClean()); |
| clusterNode_ = null; |
| } |
| return clusterNodeBuilder_; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetNodeResponseProto) |
| } |
| |
| static { |
| defaultInstance = new GetNodeResponseProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetNodeResponseProto) |
| } |
| |
| public interface GetClusterNodesRequestProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // repeated string uuid = 1; |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| java.util.List<java.lang.String> |
| getUuidList(); |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| int getUuidCount(); |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| java.lang.String getUuid(int index); |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| com.google.protobuf.ByteString |
| getUuidBytes(int index); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetClusterNodesRequestProto} |
| * |
| * <pre> |
| ** |
| * list the nodes for the UUDs |
| * </pre> |
| */ |
| public static final class GetClusterNodesRequestProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetClusterNodesRequestProtoOrBuilder { |
| // Use GetClusterNodesRequestProto.newBuilder() to construct. |
| private GetClusterNodesRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetClusterNodesRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetClusterNodesRequestProto defaultInstance; |
| public static GetClusterNodesRequestProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetClusterNodesRequestProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetClusterNodesRequestProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { |
| uuid_ = new com.google.protobuf.LazyStringArrayList(); |
| mutable_bitField0_ |= 0x00000001; |
| } |
| uuid_.add(input.readBytes()); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { |
| uuid_ = new com.google.protobuf.UnmodifiableLazyStringList(uuid_); |
| } |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetClusterNodesRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetClusterNodesRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto.class, org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetClusterNodesRequestProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetClusterNodesRequestProto>() { |
| public GetClusterNodesRequestProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetClusterNodesRequestProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetClusterNodesRequestProto> getParserForType() { |
| return PARSER; |
| } |
| |
| // repeated string uuid = 1; |
| public static final int UUID_FIELD_NUMBER = 1; |
| private com.google.protobuf.LazyStringList uuid_; |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| public java.util.List<java.lang.String> |
| getUuidList() { |
| return uuid_; |
| } |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| public int getUuidCount() { |
| return uuid_.size(); |
| } |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| public java.lang.String getUuid(int index) { |
| return uuid_.get(index); |
| } |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getUuidBytes(int index) { |
| return uuid_.getByteString(index); |
| } |
| |
| private void initFields() { |
| uuid_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| for (int i = 0; i < uuid_.size(); i++) { |
| output.writeBytes(1, uuid_.getByteString(i)); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| { |
| int dataSize = 0; |
| for (int i = 0; i < uuid_.size(); i++) { |
| dataSize += com.google.protobuf.CodedOutputStream |
| .computeBytesSizeNoTag(uuid_.getByteString(i)); |
| } |
| size += dataSize; |
| size += 1 * getUuidList().size(); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto other = (org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto) obj; |
| |
| boolean result = true; |
| result = result && getUuidList() |
| .equals(other.getUuidList()); |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (getUuidCount() > 0) { |
| hash = (37 * hash) + UUID_FIELD_NUMBER; |
| hash = (53 * hash) + getUuidList().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetClusterNodesRequestProto} |
| * |
| * <pre> |
| ** |
| * list the nodes for the UUDs |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetClusterNodesRequestProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetClusterNodesRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetClusterNodesRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto.class, org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| uuid_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetClusterNodesRequestProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto build() { |
| org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto result = new org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto(this); |
| int from_bitField0_ = bitField0_; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| uuid_ = new com.google.protobuf.UnmodifiableLazyStringList( |
| uuid_); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } |
| result.uuid_ = uuid_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto.getDefaultInstance()) return this; |
| if (!other.uuid_.isEmpty()) { |
| if (uuid_.isEmpty()) { |
| uuid_ = other.uuid_; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } else { |
| ensureUuidIsMutable(); |
| uuid_.addAll(other.uuid_); |
| } |
| onChanged(); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetClusterNodesRequestProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // repeated string uuid = 1; |
| private com.google.protobuf.LazyStringList uuid_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| private void ensureUuidIsMutable() { |
| if (!((bitField0_ & 0x00000001) == 0x00000001)) { |
| uuid_ = new com.google.protobuf.LazyStringArrayList(uuid_); |
| bitField0_ |= 0x00000001; |
| } |
| } |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| public java.util.List<java.lang.String> |
| getUuidList() { |
| return java.util.Collections.unmodifiableList(uuid_); |
| } |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| public int getUuidCount() { |
| return uuid_.size(); |
| } |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| public java.lang.String getUuid(int index) { |
| return uuid_.get(index); |
| } |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getUuidBytes(int index) { |
| return uuid_.getByteString(index); |
| } |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| public Builder setUuid( |
| int index, java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureUuidIsMutable(); |
| uuid_.set(index, value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| public Builder addUuid( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureUuidIsMutable(); |
| uuid_.add(value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| public Builder addAllUuid( |
| java.lang.Iterable<java.lang.String> values) { |
| ensureUuidIsMutable(); |
| super.addAll(values, uuid_); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| public Builder clearUuid() { |
| uuid_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string uuid = 1;</code> |
| */ |
| public Builder addUuidBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureUuidIsMutable(); |
| uuid_.add(value); |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetClusterNodesRequestProto) |
| } |
| |
| static { |
| defaultInstance = new GetClusterNodesRequestProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetClusterNodesRequestProto) |
| } |
| |
| public interface GetClusterNodesResponseProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| java.util.List<org.apache.slider.api.proto.Messages.RoleInstanceState> |
| getClusterNodeList(); |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| org.apache.slider.api.proto.Messages.RoleInstanceState getClusterNode(int index); |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| int getClusterNodeCount(); |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| java.util.List<? extends org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder> |
| getClusterNodeOrBuilderList(); |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder getClusterNodeOrBuilder( |
| int index); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetClusterNodesResponseProto} |
| * |
| * <pre> |
| ** |
| * list the nodes in a role |
| * </pre> |
| */ |
| public static final class GetClusterNodesResponseProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetClusterNodesResponseProtoOrBuilder { |
| // Use GetClusterNodesResponseProto.newBuilder() to construct. |
| private GetClusterNodesResponseProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetClusterNodesResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetClusterNodesResponseProto defaultInstance; |
| public static GetClusterNodesResponseProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetClusterNodesResponseProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetClusterNodesResponseProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { |
| clusterNode_ = new java.util.ArrayList<org.apache.slider.api.proto.Messages.RoleInstanceState>(); |
| mutable_bitField0_ |= 0x00000001; |
| } |
| clusterNode_.add(input.readMessage(org.apache.slider.api.proto.Messages.RoleInstanceState.PARSER, extensionRegistry)); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { |
| clusterNode_ = java.util.Collections.unmodifiableList(clusterNode_); |
| } |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetClusterNodesResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetClusterNodesResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto.class, org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetClusterNodesResponseProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetClusterNodesResponseProto>() { |
| public GetClusterNodesResponseProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetClusterNodesResponseProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetClusterNodesResponseProto> getParserForType() { |
| return PARSER; |
| } |
| |
| // repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; |
| public static final int CLUSTERNODE_FIELD_NUMBER = 1; |
| private java.util.List<org.apache.slider.api.proto.Messages.RoleInstanceState> clusterNode_; |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public java.util.List<org.apache.slider.api.proto.Messages.RoleInstanceState> getClusterNodeList() { |
| return clusterNode_; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public java.util.List<? extends org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder> |
| getClusterNodeOrBuilderList() { |
| return clusterNode_; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public int getClusterNodeCount() { |
| return clusterNode_.size(); |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.RoleInstanceState getClusterNode(int index) { |
| return clusterNode_.get(index); |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder getClusterNodeOrBuilder( |
| int index) { |
| return clusterNode_.get(index); |
| } |
| |
| private void initFields() { |
| clusterNode_ = java.util.Collections.emptyList(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| for (int i = 0; i < getClusterNodeCount(); i++) { |
| if (!getClusterNode(i).isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| for (int i = 0; i < clusterNode_.size(); i++) { |
| output.writeMessage(1, clusterNode_.get(i)); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| for (int i = 0; i < clusterNode_.size(); i++) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(1, clusterNode_.get(i)); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto other = (org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto) obj; |
| |
| boolean result = true; |
| result = result && getClusterNodeList() |
| .equals(other.getClusterNodeList()); |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (getClusterNodeCount() > 0) { |
| hash = (37 * hash) + CLUSTERNODE_FIELD_NUMBER; |
| hash = (53 * hash) + getClusterNodeList().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetClusterNodesResponseProto} |
| * |
| * <pre> |
| ** |
| * list the nodes in a role |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetClusterNodesResponseProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetClusterNodesResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetClusterNodesResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto.class, org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getClusterNodeFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| if (clusterNodeBuilder_ == null) { |
| clusterNode_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } else { |
| clusterNodeBuilder_.clear(); |
| } |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetClusterNodesResponseProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto build() { |
| org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto result = new org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto(this); |
| int from_bitField0_ = bitField0_; |
| if (clusterNodeBuilder_ == null) { |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| clusterNode_ = java.util.Collections.unmodifiableList(clusterNode_); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } |
| result.clusterNode_ = clusterNode_; |
| } else { |
| result.clusterNode_ = clusterNodeBuilder_.build(); |
| } |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto.getDefaultInstance()) return this; |
| if (clusterNodeBuilder_ == null) { |
| if (!other.clusterNode_.isEmpty()) { |
| if (clusterNode_.isEmpty()) { |
| clusterNode_ = other.clusterNode_; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } else { |
| ensureClusterNodeIsMutable(); |
| clusterNode_.addAll(other.clusterNode_); |
| } |
| onChanged(); |
| } |
| } else { |
| if (!other.clusterNode_.isEmpty()) { |
| if (clusterNodeBuilder_.isEmpty()) { |
| clusterNodeBuilder_.dispose(); |
| clusterNodeBuilder_ = null; |
| clusterNode_ = other.clusterNode_; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| clusterNodeBuilder_ = |
| com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? |
| getClusterNodeFieldBuilder() : null; |
| } else { |
| clusterNodeBuilder_.addAllMessages(other.clusterNode_); |
| } |
| } |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| for (int i = 0; i < getClusterNodeCount(); i++) { |
| if (!getClusterNode(i).isInitialized()) { |
| |
| return false; |
| } |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetClusterNodesResponseProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1; |
| private java.util.List<org.apache.slider.api.proto.Messages.RoleInstanceState> clusterNode_ = |
| java.util.Collections.emptyList(); |
| private void ensureClusterNodeIsMutable() { |
| if (!((bitField0_ & 0x00000001) == 0x00000001)) { |
| clusterNode_ = new java.util.ArrayList<org.apache.slider.api.proto.Messages.RoleInstanceState>(clusterNode_); |
| bitField0_ |= 0x00000001; |
| } |
| } |
| |
| private com.google.protobuf.RepeatedFieldBuilder< |
| org.apache.slider.api.proto.Messages.RoleInstanceState, org.apache.slider.api.proto.Messages.RoleInstanceState.Builder, org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder> clusterNodeBuilder_; |
| |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public java.util.List<org.apache.slider.api.proto.Messages.RoleInstanceState> getClusterNodeList() { |
| if (clusterNodeBuilder_ == null) { |
| return java.util.Collections.unmodifiableList(clusterNode_); |
| } else { |
| return clusterNodeBuilder_.getMessageList(); |
| } |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public int getClusterNodeCount() { |
| if (clusterNodeBuilder_ == null) { |
| return clusterNode_.size(); |
| } else { |
| return clusterNodeBuilder_.getCount(); |
| } |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.RoleInstanceState getClusterNode(int index) { |
| if (clusterNodeBuilder_ == null) { |
| return clusterNode_.get(index); |
| } else { |
| return clusterNodeBuilder_.getMessage(index); |
| } |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public Builder setClusterNode( |
| int index, org.apache.slider.api.proto.Messages.RoleInstanceState value) { |
| if (clusterNodeBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureClusterNodeIsMutable(); |
| clusterNode_.set(index, value); |
| onChanged(); |
| } else { |
| clusterNodeBuilder_.setMessage(index, value); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public Builder setClusterNode( |
| int index, org.apache.slider.api.proto.Messages.RoleInstanceState.Builder builderForValue) { |
| if (clusterNodeBuilder_ == null) { |
| ensureClusterNodeIsMutable(); |
| clusterNode_.set(index, builderForValue.build()); |
| onChanged(); |
| } else { |
| clusterNodeBuilder_.setMessage(index, builderForValue.build()); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public Builder addClusterNode(org.apache.slider.api.proto.Messages.RoleInstanceState value) { |
| if (clusterNodeBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureClusterNodeIsMutable(); |
| clusterNode_.add(value); |
| onChanged(); |
| } else { |
| clusterNodeBuilder_.addMessage(value); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public Builder addClusterNode( |
| int index, org.apache.slider.api.proto.Messages.RoleInstanceState value) { |
| if (clusterNodeBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureClusterNodeIsMutable(); |
| clusterNode_.add(index, value); |
| onChanged(); |
| } else { |
| clusterNodeBuilder_.addMessage(index, value); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public Builder addClusterNode( |
| org.apache.slider.api.proto.Messages.RoleInstanceState.Builder builderForValue) { |
| if (clusterNodeBuilder_ == null) { |
| ensureClusterNodeIsMutable(); |
| clusterNode_.add(builderForValue.build()); |
| onChanged(); |
| } else { |
| clusterNodeBuilder_.addMessage(builderForValue.build()); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public Builder addClusterNode( |
| int index, org.apache.slider.api.proto.Messages.RoleInstanceState.Builder builderForValue) { |
| if (clusterNodeBuilder_ == null) { |
| ensureClusterNodeIsMutable(); |
| clusterNode_.add(index, builderForValue.build()); |
| onChanged(); |
| } else { |
| clusterNodeBuilder_.addMessage(index, builderForValue.build()); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public Builder addAllClusterNode( |
| java.lang.Iterable<? extends org.apache.slider.api.proto.Messages.RoleInstanceState> values) { |
| if (clusterNodeBuilder_ == null) { |
| ensureClusterNodeIsMutable(); |
| super.addAll(values, clusterNode_); |
| onChanged(); |
| } else { |
| clusterNodeBuilder_.addAllMessages(values); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public Builder clearClusterNode() { |
| if (clusterNodeBuilder_ == null) { |
| clusterNode_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| onChanged(); |
| } else { |
| clusterNodeBuilder_.clear(); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public Builder removeClusterNode(int index) { |
| if (clusterNodeBuilder_ == null) { |
| ensureClusterNodeIsMutable(); |
| clusterNode_.remove(index); |
| onChanged(); |
| } else { |
| clusterNodeBuilder_.remove(index); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.RoleInstanceState.Builder getClusterNodeBuilder( |
| int index) { |
| return getClusterNodeFieldBuilder().getBuilder(index); |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder getClusterNodeOrBuilder( |
| int index) { |
| if (clusterNodeBuilder_ == null) { |
| return clusterNode_.get(index); } else { |
| return clusterNodeBuilder_.getMessageOrBuilder(index); |
| } |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public java.util.List<? extends org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder> |
| getClusterNodeOrBuilderList() { |
| if (clusterNodeBuilder_ != null) { |
| return clusterNodeBuilder_.getMessageOrBuilderList(); |
| } else { |
| return java.util.Collections.unmodifiableList(clusterNode_); |
| } |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.RoleInstanceState.Builder addClusterNodeBuilder() { |
| return getClusterNodeFieldBuilder().addBuilder( |
| org.apache.slider.api.proto.Messages.RoleInstanceState.getDefaultInstance()); |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.RoleInstanceState.Builder addClusterNodeBuilder( |
| int index) { |
| return getClusterNodeFieldBuilder().addBuilder( |
| index, org.apache.slider.api.proto.Messages.RoleInstanceState.getDefaultInstance()); |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.RoleInstanceState clusterNode = 1;</code> |
| */ |
| public java.util.List<org.apache.slider.api.proto.Messages.RoleInstanceState.Builder> |
| getClusterNodeBuilderList() { |
| return getClusterNodeFieldBuilder().getBuilderList(); |
| } |
| private com.google.protobuf.RepeatedFieldBuilder< |
| org.apache.slider.api.proto.Messages.RoleInstanceState, org.apache.slider.api.proto.Messages.RoleInstanceState.Builder, org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder> |
| getClusterNodeFieldBuilder() { |
| if (clusterNodeBuilder_ == null) { |
| clusterNodeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< |
| org.apache.slider.api.proto.Messages.RoleInstanceState, org.apache.slider.api.proto.Messages.RoleInstanceState.Builder, org.apache.slider.api.proto.Messages.RoleInstanceStateOrBuilder>( |
| clusterNode_, |
| ((bitField0_ & 0x00000001) == 0x00000001), |
| getParentForChildren(), |
| isClean()); |
| clusterNode_ = null; |
| } |
| return clusterNodeBuilder_; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetClusterNodesResponseProto) |
| } |
| |
| static { |
| defaultInstance = new GetClusterNodesResponseProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetClusterNodesResponseProto) |
| } |
| |
| public interface EchoRequestProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required string text = 1; |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| boolean hasText(); |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| java.lang.String getText(); |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| com.google.protobuf.ByteString |
| getTextBytes(); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.EchoRequestProto} |
| * |
| * <pre> |
| ** |
| * Echo |
| * </pre> |
| */ |
| public static final class EchoRequestProto extends |
| com.google.protobuf.GeneratedMessage |
| implements EchoRequestProtoOrBuilder { |
| // Use EchoRequestProto.newBuilder() to construct. |
| private EchoRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private EchoRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final EchoRequestProto defaultInstance; |
| public static EchoRequestProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public EchoRequestProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private EchoRequestProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| text_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EchoRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EchoRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.EchoRequestProto.class, org.apache.slider.api.proto.Messages.EchoRequestProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<EchoRequestProto> PARSER = |
| new com.google.protobuf.AbstractParser<EchoRequestProto>() { |
| public EchoRequestProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new EchoRequestProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<EchoRequestProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required string text = 1; |
| public static final int TEXT_FIELD_NUMBER = 1; |
| private java.lang.Object text_; |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public boolean hasText() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public java.lang.String getText() { |
| java.lang.Object ref = text_; |
| 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()) { |
| text_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getTextBytes() { |
| java.lang.Object ref = text_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| text_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| private void initFields() { |
| text_ = ""; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasText()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getTextBytes()); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, getTextBytes()); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.EchoRequestProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.EchoRequestProto other = (org.apache.slider.api.proto.Messages.EchoRequestProto) obj; |
| |
| boolean result = true; |
| result = result && (hasText() == other.hasText()); |
| if (hasText()) { |
| result = result && getText() |
| .equals(other.getText()); |
| } |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasText()) { |
| hash = (37 * hash) + TEXT_FIELD_NUMBER; |
| hash = (53 * hash) + getText().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.EchoRequestProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.EchoRequestProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.EchoRequestProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.EchoRequestProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.EchoRequestProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.EchoRequestProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.EchoRequestProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.EchoRequestProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.EchoRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.EchoRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.EchoRequestProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.EchoRequestProto} |
| * |
| * <pre> |
| ** |
| * Echo |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.EchoRequestProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EchoRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EchoRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.EchoRequestProto.class, org.apache.slider.api.proto.Messages.EchoRequestProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.EchoRequestProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| text_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EchoRequestProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.EchoRequestProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.EchoRequestProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.EchoRequestProto build() { |
| org.apache.slider.api.proto.Messages.EchoRequestProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.EchoRequestProto buildPartial() { |
| org.apache.slider.api.proto.Messages.EchoRequestProto result = new org.apache.slider.api.proto.Messages.EchoRequestProto(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.text_ = text_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.EchoRequestProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.EchoRequestProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.EchoRequestProto other) { |
| if (other == org.apache.slider.api.proto.Messages.EchoRequestProto.getDefaultInstance()) return this; |
| if (other.hasText()) { |
| bitField0_ |= 0x00000001; |
| text_ = other.text_; |
| onChanged(); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasText()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.EchoRequestProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.EchoRequestProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // required string text = 1; |
| private java.lang.Object text_ = ""; |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public boolean hasText() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public java.lang.String getText() { |
| java.lang.Object ref = text_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| text_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getTextBytes() { |
| java.lang.Object ref = text_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| text_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public Builder setText( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| text_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public Builder clearText() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| text_ = getDefaultInstance().getText(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public Builder setTextBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| text_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.EchoRequestProto) |
| } |
| |
| static { |
| defaultInstance = new EchoRequestProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.EchoRequestProto) |
| } |
| |
| public interface EchoResponseProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required string text = 1; |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| boolean hasText(); |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| java.lang.String getText(); |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| com.google.protobuf.ByteString |
| getTextBytes(); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.EchoResponseProto} |
| * |
| * <pre> |
| ** |
| * Echo reply |
| * </pre> |
| */ |
| public static final class EchoResponseProto extends |
| com.google.protobuf.GeneratedMessage |
| implements EchoResponseProtoOrBuilder { |
| // Use EchoResponseProto.newBuilder() to construct. |
| private EchoResponseProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private EchoResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final EchoResponseProto defaultInstance; |
| public static EchoResponseProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public EchoResponseProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private EchoResponseProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| text_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EchoResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EchoResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.EchoResponseProto.class, org.apache.slider.api.proto.Messages.EchoResponseProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<EchoResponseProto> PARSER = |
| new com.google.protobuf.AbstractParser<EchoResponseProto>() { |
| public EchoResponseProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new EchoResponseProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<EchoResponseProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required string text = 1; |
| public static final int TEXT_FIELD_NUMBER = 1; |
| private java.lang.Object text_; |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public boolean hasText() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public java.lang.String getText() { |
| java.lang.Object ref = text_; |
| 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()) { |
| text_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getTextBytes() { |
| java.lang.Object ref = text_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| text_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| private void initFields() { |
| text_ = ""; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasText()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getTextBytes()); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, getTextBytes()); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.EchoResponseProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.EchoResponseProto other = (org.apache.slider.api.proto.Messages.EchoResponseProto) obj; |
| |
| boolean result = true; |
| result = result && (hasText() == other.hasText()); |
| if (hasText()) { |
| result = result && getText() |
| .equals(other.getText()); |
| } |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasText()) { |
| hash = (37 * hash) + TEXT_FIELD_NUMBER; |
| hash = (53 * hash) + getText().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.EchoResponseProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.EchoResponseProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.EchoResponseProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.EchoResponseProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.EchoResponseProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.EchoResponseProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.EchoResponseProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.EchoResponseProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.EchoResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.EchoResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.EchoResponseProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.EchoResponseProto} |
| * |
| * <pre> |
| ** |
| * Echo reply |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.EchoResponseProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EchoResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EchoResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.EchoResponseProto.class, org.apache.slider.api.proto.Messages.EchoResponseProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.EchoResponseProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| text_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EchoResponseProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.EchoResponseProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.EchoResponseProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.EchoResponseProto build() { |
| org.apache.slider.api.proto.Messages.EchoResponseProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.EchoResponseProto buildPartial() { |
| org.apache.slider.api.proto.Messages.EchoResponseProto result = new org.apache.slider.api.proto.Messages.EchoResponseProto(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.text_ = text_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.EchoResponseProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.EchoResponseProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.EchoResponseProto other) { |
| if (other == org.apache.slider.api.proto.Messages.EchoResponseProto.getDefaultInstance()) return this; |
| if (other.hasText()) { |
| bitField0_ |= 0x00000001; |
| text_ = other.text_; |
| onChanged(); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasText()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.EchoResponseProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.EchoResponseProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // required string text = 1; |
| private java.lang.Object text_ = ""; |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public boolean hasText() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public java.lang.String getText() { |
| java.lang.Object ref = text_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| text_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getTextBytes() { |
| java.lang.Object ref = text_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| text_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public Builder setText( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| text_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public Builder clearText() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| text_ = getDefaultInstance().getText(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public Builder setTextBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| text_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.EchoResponseProto) |
| } |
| |
| static { |
| defaultInstance = new EchoResponseProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.EchoResponseProto) |
| } |
| |
| public interface KillContainerRequestProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required string id = 1; |
| /** |
| * <code>required string id = 1;</code> |
| */ |
| boolean hasId(); |
| /** |
| * <code>required string id = 1;</code> |
| */ |
| java.lang.String getId(); |
| /** |
| * <code>required string id = 1;</code> |
| */ |
| com.google.protobuf.ByteString |
| getIdBytes(); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.KillContainerRequestProto} |
| * |
| * <pre> |
| ** |
| * Kill a container |
| * </pre> |
| */ |
| public static final class KillContainerRequestProto extends |
| com.google.protobuf.GeneratedMessage |
| implements KillContainerRequestProtoOrBuilder { |
| // Use KillContainerRequestProto.newBuilder() to construct. |
| private KillContainerRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private KillContainerRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final KillContainerRequestProto defaultInstance; |
| public static KillContainerRequestProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public KillContainerRequestProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private KillContainerRequestProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| id_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_KillContainerRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_KillContainerRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.KillContainerRequestProto.class, org.apache.slider.api.proto.Messages.KillContainerRequestProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<KillContainerRequestProto> PARSER = |
| new com.google.protobuf.AbstractParser<KillContainerRequestProto>() { |
| public KillContainerRequestProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new KillContainerRequestProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<KillContainerRequestProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required string id = 1; |
| public static final int ID_FIELD_NUMBER = 1; |
| private java.lang.Object id_; |
| /** |
| * <code>required string id = 1;</code> |
| */ |
| public boolean hasId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string id = 1;</code> |
| */ |
| public java.lang.String getId() { |
| java.lang.Object ref = id_; |
| 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()) { |
| id_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string id = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getIdBytes() { |
| java.lang.Object ref = id_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| id_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| private void initFields() { |
| id_ = ""; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getIdBytes()); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, getIdBytes()); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.KillContainerRequestProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.KillContainerRequestProto other = (org.apache.slider.api.proto.Messages.KillContainerRequestProto) obj; |
| |
| boolean result = true; |
| result = result && (hasId() == other.hasId()); |
| if (hasId()) { |
| result = result && getId() |
| .equals(other.getId()); |
| } |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasId()) { |
| hash = (37 * hash) + ID_FIELD_NUMBER; |
| hash = (53 * hash) + getId().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.KillContainerRequestProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.KillContainerRequestProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.KillContainerRequestProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.KillContainerRequestProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.KillContainerRequestProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.KillContainerRequestProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.KillContainerRequestProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.KillContainerRequestProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.KillContainerRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.KillContainerRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.KillContainerRequestProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.KillContainerRequestProto} |
| * |
| * <pre> |
| ** |
| * Kill a container |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.KillContainerRequestProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_KillContainerRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_KillContainerRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.KillContainerRequestProto.class, org.apache.slider.api.proto.Messages.KillContainerRequestProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.KillContainerRequestProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| id_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_KillContainerRequestProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.KillContainerRequestProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.KillContainerRequestProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.KillContainerRequestProto build() { |
| org.apache.slider.api.proto.Messages.KillContainerRequestProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.KillContainerRequestProto buildPartial() { |
| org.apache.slider.api.proto.Messages.KillContainerRequestProto result = new org.apache.slider.api.proto.Messages.KillContainerRequestProto(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.id_ = id_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.KillContainerRequestProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.KillContainerRequestProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.KillContainerRequestProto other) { |
| if (other == org.apache.slider.api.proto.Messages.KillContainerRequestProto.getDefaultInstance()) return this; |
| if (other.hasId()) { |
| bitField0_ |= 0x00000001; |
| id_ = other.id_; |
| onChanged(); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasId()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.KillContainerRequestProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.KillContainerRequestProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // required string id = 1; |
| private java.lang.Object id_ = ""; |
| /** |
| * <code>required string id = 1;</code> |
| */ |
| public boolean hasId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string id = 1;</code> |
| */ |
| public java.lang.String getId() { |
| java.lang.Object ref = id_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| id_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string id = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getIdBytes() { |
| java.lang.Object ref = id_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| id_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>required string id = 1;</code> |
| */ |
| public Builder setId( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| id_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string id = 1;</code> |
| */ |
| public Builder clearId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| id_ = getDefaultInstance().getId(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string id = 1;</code> |
| */ |
| public Builder setIdBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| id_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.KillContainerRequestProto) |
| } |
| |
| static { |
| defaultInstance = new KillContainerRequestProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.KillContainerRequestProto) |
| } |
| |
| public interface KillContainerResponseProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required bool success = 1; |
| /** |
| * <code>required bool success = 1;</code> |
| */ |
| boolean hasSuccess(); |
| /** |
| * <code>required bool success = 1;</code> |
| */ |
| boolean getSuccess(); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.KillContainerResponseProto} |
| * |
| * <pre> |
| ** |
| * Kill reply |
| * </pre> |
| */ |
| public static final class KillContainerResponseProto extends |
| com.google.protobuf.GeneratedMessage |
| implements KillContainerResponseProtoOrBuilder { |
| // Use KillContainerResponseProto.newBuilder() to construct. |
| private KillContainerResponseProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private KillContainerResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final KillContainerResponseProto defaultInstance; |
| public static KillContainerResponseProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public KillContainerResponseProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private KillContainerResponseProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| success_ = input.readBool(); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_KillContainerResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_KillContainerResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.KillContainerResponseProto.class, org.apache.slider.api.proto.Messages.KillContainerResponseProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<KillContainerResponseProto> PARSER = |
| new com.google.protobuf.AbstractParser<KillContainerResponseProto>() { |
| public KillContainerResponseProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new KillContainerResponseProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<KillContainerResponseProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required bool success = 1; |
| public static final int SUCCESS_FIELD_NUMBER = 1; |
| private boolean success_; |
| /** |
| * <code>required bool success = 1;</code> |
| */ |
| public boolean hasSuccess() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required bool success = 1;</code> |
| */ |
| public boolean getSuccess() { |
| return success_; |
| } |
| |
| private void initFields() { |
| success_ = false; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasSuccess()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBool(1, success_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBoolSize(1, success_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.KillContainerResponseProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.KillContainerResponseProto other = (org.apache.slider.api.proto.Messages.KillContainerResponseProto) obj; |
| |
| boolean result = true; |
| result = result && (hasSuccess() == other.hasSuccess()); |
| if (hasSuccess()) { |
| result = result && (getSuccess() |
| == other.getSuccess()); |
| } |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasSuccess()) { |
| hash = (37 * hash) + SUCCESS_FIELD_NUMBER; |
| hash = (53 * hash) + hashBoolean(getSuccess()); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.KillContainerResponseProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.KillContainerResponseProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.KillContainerResponseProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.KillContainerResponseProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.KillContainerResponseProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.KillContainerResponseProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.KillContainerResponseProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.KillContainerResponseProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.KillContainerResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.KillContainerResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.KillContainerResponseProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.KillContainerResponseProto} |
| * |
| * <pre> |
| ** |
| * Kill reply |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.KillContainerResponseProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_KillContainerResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_KillContainerResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.KillContainerResponseProto.class, org.apache.slider.api.proto.Messages.KillContainerResponseProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.KillContainerResponseProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| success_ = false; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_KillContainerResponseProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.KillContainerResponseProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.KillContainerResponseProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.KillContainerResponseProto build() { |
| org.apache.slider.api.proto.Messages.KillContainerResponseProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.KillContainerResponseProto buildPartial() { |
| org.apache.slider.api.proto.Messages.KillContainerResponseProto result = new org.apache.slider.api.proto.Messages.KillContainerResponseProto(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.success_ = success_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.KillContainerResponseProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.KillContainerResponseProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.KillContainerResponseProto other) { |
| if (other == org.apache.slider.api.proto.Messages.KillContainerResponseProto.getDefaultInstance()) return this; |
| if (other.hasSuccess()) { |
| setSuccess(other.getSuccess()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasSuccess()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.KillContainerResponseProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.KillContainerResponseProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // required bool success = 1; |
| private boolean success_ ; |
| /** |
| * <code>required bool success = 1;</code> |
| */ |
| public boolean hasSuccess() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required bool success = 1;</code> |
| */ |
| public boolean getSuccess() { |
| return success_; |
| } |
| /** |
| * <code>required bool success = 1;</code> |
| */ |
| public Builder setSuccess(boolean value) { |
| bitField0_ |= 0x00000001; |
| success_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required bool success = 1;</code> |
| */ |
| public Builder clearSuccess() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| success_ = false; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.KillContainerResponseProto) |
| } |
| |
| static { |
| defaultInstance = new KillContainerResponseProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.KillContainerResponseProto) |
| } |
| |
| public interface AMSuicideRequestProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required string text = 1; |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| boolean hasText(); |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| java.lang.String getText(); |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| com.google.protobuf.ByteString |
| getTextBytes(); |
| |
| // required int32 signal = 2; |
| /** |
| * <code>required int32 signal = 2;</code> |
| */ |
| boolean hasSignal(); |
| /** |
| * <code>required int32 signal = 2;</code> |
| */ |
| int getSignal(); |
| |
| // required int32 delay = 3; |
| /** |
| * <code>required int32 delay = 3;</code> |
| */ |
| boolean hasDelay(); |
| /** |
| * <code>required int32 delay = 3;</code> |
| */ |
| int getDelay(); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.AMSuicideRequestProto} |
| * |
| * <pre> |
| ** |
| * AM suicide |
| * </pre> |
| */ |
| public static final class AMSuicideRequestProto extends |
| com.google.protobuf.GeneratedMessage |
| implements AMSuicideRequestProtoOrBuilder { |
| // Use AMSuicideRequestProto.newBuilder() to construct. |
| private AMSuicideRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private AMSuicideRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final AMSuicideRequestProto defaultInstance; |
| public static AMSuicideRequestProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public AMSuicideRequestProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private AMSuicideRequestProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| text_ = input.readBytes(); |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000002; |
| signal_ = input.readInt32(); |
| break; |
| } |
| case 24: { |
| bitField0_ |= 0x00000004; |
| delay_ = input.readInt32(); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_AMSuicideRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_AMSuicideRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.AMSuicideRequestProto.class, org.apache.slider.api.proto.Messages.AMSuicideRequestProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<AMSuicideRequestProto> PARSER = |
| new com.google.protobuf.AbstractParser<AMSuicideRequestProto>() { |
| public AMSuicideRequestProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new AMSuicideRequestProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<AMSuicideRequestProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required string text = 1; |
| public static final int TEXT_FIELD_NUMBER = 1; |
| private java.lang.Object text_; |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public boolean hasText() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public java.lang.String getText() { |
| java.lang.Object ref = text_; |
| 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()) { |
| text_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getTextBytes() { |
| java.lang.Object ref = text_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| text_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // required int32 signal = 2; |
| public static final int SIGNAL_FIELD_NUMBER = 2; |
| private int signal_; |
| /** |
| * <code>required int32 signal = 2;</code> |
| */ |
| public boolean hasSignal() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>required int32 signal = 2;</code> |
| */ |
| public int getSignal() { |
| return signal_; |
| } |
| |
| // required int32 delay = 3; |
| public static final int DELAY_FIELD_NUMBER = 3; |
| private int delay_; |
| /** |
| * <code>required int32 delay = 3;</code> |
| */ |
| public boolean hasDelay() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>required int32 delay = 3;</code> |
| */ |
| public int getDelay() { |
| return delay_; |
| } |
| |
| private void initFields() { |
| text_ = ""; |
| signal_ = 0; |
| delay_ = 0; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasText()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasSignal()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasDelay()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getTextBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeInt32(2, signal_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeInt32(3, delay_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, getTextBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(2, signal_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(3, delay_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.AMSuicideRequestProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.AMSuicideRequestProto other = (org.apache.slider.api.proto.Messages.AMSuicideRequestProto) obj; |
| |
| boolean result = true; |
| result = result && (hasText() == other.hasText()); |
| if (hasText()) { |
| result = result && getText() |
| .equals(other.getText()); |
| } |
| result = result && (hasSignal() == other.hasSignal()); |
| if (hasSignal()) { |
| result = result && (getSignal() |
| == other.getSignal()); |
| } |
| result = result && (hasDelay() == other.hasDelay()); |
| if (hasDelay()) { |
| result = result && (getDelay() |
| == other.getDelay()); |
| } |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasText()) { |
| hash = (37 * hash) + TEXT_FIELD_NUMBER; |
| hash = (53 * hash) + getText().hashCode(); |
| } |
| if (hasSignal()) { |
| hash = (37 * hash) + SIGNAL_FIELD_NUMBER; |
| hash = (53 * hash) + getSignal(); |
| } |
| if (hasDelay()) { |
| hash = (37 * hash) + DELAY_FIELD_NUMBER; |
| hash = (53 * hash) + getDelay(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.AMSuicideRequestProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.AMSuicideRequestProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.AMSuicideRequestProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.AMSuicideRequestProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.AMSuicideRequestProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.AMSuicideRequestProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.AMSuicideRequestProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.AMSuicideRequestProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.AMSuicideRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.AMSuicideRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.AMSuicideRequestProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.AMSuicideRequestProto} |
| * |
| * <pre> |
| ** |
| * AM suicide |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.AMSuicideRequestProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_AMSuicideRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_AMSuicideRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.AMSuicideRequestProto.class, org.apache.slider.api.proto.Messages.AMSuicideRequestProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.AMSuicideRequestProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| text_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| signal_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| delay_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_AMSuicideRequestProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.AMSuicideRequestProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.AMSuicideRequestProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.AMSuicideRequestProto build() { |
| org.apache.slider.api.proto.Messages.AMSuicideRequestProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.AMSuicideRequestProto buildPartial() { |
| org.apache.slider.api.proto.Messages.AMSuicideRequestProto result = new org.apache.slider.api.proto.Messages.AMSuicideRequestProto(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.text_ = text_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.signal_ = signal_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.delay_ = delay_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.AMSuicideRequestProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.AMSuicideRequestProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.AMSuicideRequestProto other) { |
| if (other == org.apache.slider.api.proto.Messages.AMSuicideRequestProto.getDefaultInstance()) return this; |
| if (other.hasText()) { |
| bitField0_ |= 0x00000001; |
| text_ = other.text_; |
| onChanged(); |
| } |
| if (other.hasSignal()) { |
| setSignal(other.getSignal()); |
| } |
| if (other.hasDelay()) { |
| setDelay(other.getDelay()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasText()) { |
| |
| return false; |
| } |
| if (!hasSignal()) { |
| |
| return false; |
| } |
| if (!hasDelay()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.AMSuicideRequestProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.AMSuicideRequestProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // required string text = 1; |
| private java.lang.Object text_ = ""; |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public boolean hasText() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public java.lang.String getText() { |
| java.lang.Object ref = text_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| text_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getTextBytes() { |
| java.lang.Object ref = text_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| text_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public Builder setText( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| text_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public Builder clearText() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| text_ = getDefaultInstance().getText(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string text = 1;</code> |
| */ |
| public Builder setTextBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| text_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // required int32 signal = 2; |
| private int signal_ ; |
| /** |
| * <code>required int32 signal = 2;</code> |
| */ |
| public boolean hasSignal() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>required int32 signal = 2;</code> |
| */ |
| public int getSignal() { |
| return signal_; |
| } |
| /** |
| * <code>required int32 signal = 2;</code> |
| */ |
| public Builder setSignal(int value) { |
| bitField0_ |= 0x00000002; |
| signal_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required int32 signal = 2;</code> |
| */ |
| public Builder clearSignal() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| signal_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // required int32 delay = 3; |
| private int delay_ ; |
| /** |
| * <code>required int32 delay = 3;</code> |
| */ |
| public boolean hasDelay() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>required int32 delay = 3;</code> |
| */ |
| public int getDelay() { |
| return delay_; |
| } |
| /** |
| * <code>required int32 delay = 3;</code> |
| */ |
| public Builder setDelay(int value) { |
| bitField0_ |= 0x00000004; |
| delay_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required int32 delay = 3;</code> |
| */ |
| public Builder clearDelay() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| delay_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.AMSuicideRequestProto) |
| } |
| |
| static { |
| defaultInstance = new AMSuicideRequestProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.AMSuicideRequestProto) |
| } |
| |
| public interface AMSuicideResponseProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.AMSuicideResponseProto} |
| * |
| * <pre> |
| ** |
| * AM suicide reply. For this to be returned implies |
| * a failure of the AM to kill itself |
| * </pre> |
| */ |
| public static final class AMSuicideResponseProto extends |
| com.google.protobuf.GeneratedMessage |
| implements AMSuicideResponseProtoOrBuilder { |
| // Use AMSuicideResponseProto.newBuilder() to construct. |
| private AMSuicideResponseProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private AMSuicideResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final AMSuicideResponseProto defaultInstance; |
| public static AMSuicideResponseProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public AMSuicideResponseProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private AMSuicideResponseProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| 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.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_AMSuicideResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_AMSuicideResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.AMSuicideResponseProto.class, org.apache.slider.api.proto.Messages.AMSuicideResponseProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<AMSuicideResponseProto> PARSER = |
| new com.google.protobuf.AbstractParser<AMSuicideResponseProto>() { |
| public AMSuicideResponseProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new AMSuicideResponseProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<AMSuicideResponseProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private void initFields() { |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.AMSuicideResponseProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.AMSuicideResponseProto other = (org.apache.slider.api.proto.Messages.AMSuicideResponseProto) obj; |
| |
| boolean result = true; |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.AMSuicideResponseProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.AMSuicideResponseProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.AMSuicideResponseProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.AMSuicideResponseProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.AMSuicideResponseProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.AMSuicideResponseProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.AMSuicideResponseProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.AMSuicideResponseProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.AMSuicideResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.AMSuicideResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.AMSuicideResponseProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.AMSuicideResponseProto} |
| * |
| * <pre> |
| ** |
| * AM suicide reply. For this to be returned implies |
| * a failure of the AM to kill itself |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.AMSuicideResponseProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_AMSuicideResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_AMSuicideResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.AMSuicideResponseProto.class, org.apache.slider.api.proto.Messages.AMSuicideResponseProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.AMSuicideResponseProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_AMSuicideResponseProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.AMSuicideResponseProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.AMSuicideResponseProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.AMSuicideResponseProto build() { |
| org.apache.slider.api.proto.Messages.AMSuicideResponseProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.AMSuicideResponseProto buildPartial() { |
| org.apache.slider.api.proto.Messages.AMSuicideResponseProto result = new org.apache.slider.api.proto.Messages.AMSuicideResponseProto(this); |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.AMSuicideResponseProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.AMSuicideResponseProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.AMSuicideResponseProto other) { |
| if (other == org.apache.slider.api.proto.Messages.AMSuicideResponseProto.getDefaultInstance()) return this; |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.AMSuicideResponseProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.AMSuicideResponseProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.AMSuicideResponseProto) |
| } |
| |
| static { |
| defaultInstance = new AMSuicideResponseProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.AMSuicideResponseProto) |
| } |
| |
| public interface GetInstanceDefinitionRequestProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetInstanceDefinitionRequestProto} |
| * |
| * <pre> |
| ** |
| * Ask for the instance definition details |
| * </pre> |
| */ |
| public static final class GetInstanceDefinitionRequestProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetInstanceDefinitionRequestProtoOrBuilder { |
| // Use GetInstanceDefinitionRequestProto.newBuilder() to construct. |
| private GetInstanceDefinitionRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetInstanceDefinitionRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetInstanceDefinitionRequestProto defaultInstance; |
| public static GetInstanceDefinitionRequestProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetInstanceDefinitionRequestProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetInstanceDefinitionRequestProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| 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.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetInstanceDefinitionRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetInstanceDefinitionRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto.class, org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetInstanceDefinitionRequestProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetInstanceDefinitionRequestProto>() { |
| public GetInstanceDefinitionRequestProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetInstanceDefinitionRequestProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetInstanceDefinitionRequestProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private void initFields() { |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto other = (org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto) obj; |
| |
| boolean result = true; |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetInstanceDefinitionRequestProto} |
| * |
| * <pre> |
| ** |
| * Ask for the instance definition details |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetInstanceDefinitionRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetInstanceDefinitionRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto.class, org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetInstanceDefinitionRequestProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto build() { |
| org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto result = new org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto(this); |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto.getDefaultInstance()) return this; |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetInstanceDefinitionRequestProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetInstanceDefinitionRequestProto) |
| } |
| |
| static { |
| defaultInstance = new GetInstanceDefinitionRequestProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetInstanceDefinitionRequestProto) |
| } |
| |
| public interface GetInstanceDefinitionResponseProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required string internal = 1; |
| /** |
| * <code>required string internal = 1;</code> |
| */ |
| boolean hasInternal(); |
| /** |
| * <code>required string internal = 1;</code> |
| */ |
| java.lang.String getInternal(); |
| /** |
| * <code>required string internal = 1;</code> |
| */ |
| com.google.protobuf.ByteString |
| getInternalBytes(); |
| |
| // required string resources = 2; |
| /** |
| * <code>required string resources = 2;</code> |
| */ |
| boolean hasResources(); |
| /** |
| * <code>required string resources = 2;</code> |
| */ |
| java.lang.String getResources(); |
| /** |
| * <code>required string resources = 2;</code> |
| */ |
| com.google.protobuf.ByteString |
| getResourcesBytes(); |
| |
| // required string application = 3; |
| /** |
| * <code>required string application = 3;</code> |
| */ |
| boolean hasApplication(); |
| /** |
| * <code>required string application = 3;</code> |
| */ |
| java.lang.String getApplication(); |
| /** |
| * <code>required string application = 3;</code> |
| */ |
| com.google.protobuf.ByteString |
| getApplicationBytes(); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetInstanceDefinitionResponseProto} |
| * |
| * <pre> |
| ** |
| * Get the definition back as three separate JSON strings |
| * </pre> |
| */ |
| public static final class GetInstanceDefinitionResponseProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetInstanceDefinitionResponseProtoOrBuilder { |
| // Use GetInstanceDefinitionResponseProto.newBuilder() to construct. |
| private GetInstanceDefinitionResponseProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetInstanceDefinitionResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetInstanceDefinitionResponseProto defaultInstance; |
| public static GetInstanceDefinitionResponseProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetInstanceDefinitionResponseProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetInstanceDefinitionResponseProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| internal_ = input.readBytes(); |
| break; |
| } |
| case 18: { |
| bitField0_ |= 0x00000002; |
| resources_ = input.readBytes(); |
| break; |
| } |
| case 26: { |
| bitField0_ |= 0x00000004; |
| application_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetInstanceDefinitionResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetInstanceDefinitionResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto.class, org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetInstanceDefinitionResponseProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetInstanceDefinitionResponseProto>() { |
| public GetInstanceDefinitionResponseProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetInstanceDefinitionResponseProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetInstanceDefinitionResponseProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required string internal = 1; |
| public static final int INTERNAL_FIELD_NUMBER = 1; |
| private java.lang.Object internal_; |
| /** |
| * <code>required string internal = 1;</code> |
| */ |
| public boolean hasInternal() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string internal = 1;</code> |
| */ |
| public java.lang.String getInternal() { |
| java.lang.Object ref = internal_; |
| 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()) { |
| internal_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string internal = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getInternalBytes() { |
| java.lang.Object ref = internal_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| internal_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // required string resources = 2; |
| public static final int RESOURCES_FIELD_NUMBER = 2; |
| private java.lang.Object resources_; |
| /** |
| * <code>required string resources = 2;</code> |
| */ |
| public boolean hasResources() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>required string resources = 2;</code> |
| */ |
| public java.lang.String getResources() { |
| java.lang.Object ref = resources_; |
| 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()) { |
| resources_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string resources = 2;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getResourcesBytes() { |
| java.lang.Object ref = resources_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| resources_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // required string application = 3; |
| public static final int APPLICATION_FIELD_NUMBER = 3; |
| private java.lang.Object application_; |
| /** |
| * <code>required string application = 3;</code> |
| */ |
| public boolean hasApplication() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>required string application = 3;</code> |
| */ |
| public java.lang.String getApplication() { |
| java.lang.Object ref = application_; |
| 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()) { |
| application_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string application = 3;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getApplicationBytes() { |
| java.lang.Object ref = application_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| application_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| private void initFields() { |
| internal_ = ""; |
| resources_ = ""; |
| application_ = ""; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasInternal()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasResources()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasApplication()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getInternalBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeBytes(2, getResourcesBytes()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeBytes(3, getApplicationBytes()); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, getInternalBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(2, getResourcesBytes()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(3, getApplicationBytes()); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto other = (org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto) obj; |
| |
| boolean result = true; |
| result = result && (hasInternal() == other.hasInternal()); |
| if (hasInternal()) { |
| result = result && getInternal() |
| .equals(other.getInternal()); |
| } |
| result = result && (hasResources() == other.hasResources()); |
| if (hasResources()) { |
| result = result && getResources() |
| .equals(other.getResources()); |
| } |
| result = result && (hasApplication() == other.hasApplication()); |
| if (hasApplication()) { |
| result = result && getApplication() |
| .equals(other.getApplication()); |
| } |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasInternal()) { |
| hash = (37 * hash) + INTERNAL_FIELD_NUMBER; |
| hash = (53 * hash) + getInternal().hashCode(); |
| } |
| if (hasResources()) { |
| hash = (37 * hash) + RESOURCES_FIELD_NUMBER; |
| hash = (53 * hash) + getResources().hashCode(); |
| } |
| if (hasApplication()) { |
| hash = (37 * hash) + APPLICATION_FIELD_NUMBER; |
| hash = (53 * hash) + getApplication().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetInstanceDefinitionResponseProto} |
| * |
| * <pre> |
| ** |
| * Get the definition back as three separate JSON strings |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetInstanceDefinitionResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetInstanceDefinitionResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto.class, org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| internal_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| resources_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| application_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetInstanceDefinitionResponseProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto build() { |
| org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto result = new org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.internal_ = internal_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.resources_ = resources_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.application_ = application_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto.getDefaultInstance()) return this; |
| if (other.hasInternal()) { |
| bitField0_ |= 0x00000001; |
| internal_ = other.internal_; |
| onChanged(); |
| } |
| if (other.hasResources()) { |
| bitField0_ |= 0x00000002; |
| resources_ = other.resources_; |
| onChanged(); |
| } |
| if (other.hasApplication()) { |
| bitField0_ |= 0x00000004; |
| application_ = other.application_; |
| onChanged(); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasInternal()) { |
| |
| return false; |
| } |
| if (!hasResources()) { |
| |
| return false; |
| } |
| if (!hasApplication()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetInstanceDefinitionResponseProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // required string internal = 1; |
| private java.lang.Object internal_ = ""; |
| /** |
| * <code>required string internal = 1;</code> |
| */ |
| public boolean hasInternal() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string internal = 1;</code> |
| */ |
| public java.lang.String getInternal() { |
| java.lang.Object ref = internal_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| internal_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string internal = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getInternalBytes() { |
| java.lang.Object ref = internal_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| internal_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>required string internal = 1;</code> |
| */ |
| public Builder setInternal( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| internal_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string internal = 1;</code> |
| */ |
| public Builder clearInternal() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| internal_ = getDefaultInstance().getInternal(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string internal = 1;</code> |
| */ |
| public Builder setInternalBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| internal_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // required string resources = 2; |
| private java.lang.Object resources_ = ""; |
| /** |
| * <code>required string resources = 2;</code> |
| */ |
| public boolean hasResources() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>required string resources = 2;</code> |
| */ |
| public java.lang.String getResources() { |
| java.lang.Object ref = resources_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| resources_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string resources = 2;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getResourcesBytes() { |
| java.lang.Object ref = resources_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| resources_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>required string resources = 2;</code> |
| */ |
| public Builder setResources( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| resources_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string resources = 2;</code> |
| */ |
| public Builder clearResources() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| resources_ = getDefaultInstance().getResources(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string resources = 2;</code> |
| */ |
| public Builder setResourcesBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| resources_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // required string application = 3; |
| private java.lang.Object application_ = ""; |
| /** |
| * <code>required string application = 3;</code> |
| */ |
| public boolean hasApplication() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>required string application = 3;</code> |
| */ |
| public java.lang.String getApplication() { |
| java.lang.Object ref = application_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| application_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string application = 3;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getApplicationBytes() { |
| java.lang.Object ref = application_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| application_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>required string application = 3;</code> |
| */ |
| public Builder setApplication( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000004; |
| application_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string application = 3;</code> |
| */ |
| public Builder clearApplication() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| application_ = getDefaultInstance().getApplication(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string application = 3;</code> |
| */ |
| public Builder setApplicationBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000004; |
| application_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetInstanceDefinitionResponseProto) |
| } |
| |
| static { |
| defaultInstance = new GetInstanceDefinitionResponseProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetInstanceDefinitionResponseProto) |
| } |
| |
| public interface ApplicationLivenessInformationProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // optional bool allRequestsSatisfied = 1; |
| /** |
| * <code>optional bool allRequestsSatisfied = 1;</code> |
| */ |
| boolean hasAllRequestsSatisfied(); |
| /** |
| * <code>optional bool allRequestsSatisfied = 1;</code> |
| */ |
| boolean getAllRequestsSatisfied(); |
| |
| // optional int32 requestsOutstanding = 2; |
| /** |
| * <code>optional int32 requestsOutstanding = 2;</code> |
| */ |
| boolean hasRequestsOutstanding(); |
| /** |
| * <code>optional int32 requestsOutstanding = 2;</code> |
| */ |
| int getRequestsOutstanding(); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.ApplicationLivenessInformationProto} |
| * |
| * <pre> |
| ** |
| * See org.apache.slider.api.types.ApplicationLivenessInformation |
| * </pre> |
| */ |
| public static final class ApplicationLivenessInformationProto extends |
| com.google.protobuf.GeneratedMessage |
| implements ApplicationLivenessInformationProtoOrBuilder { |
| // Use ApplicationLivenessInformationProto.newBuilder() to construct. |
| private ApplicationLivenessInformationProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private ApplicationLivenessInformationProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final ApplicationLivenessInformationProto defaultInstance; |
| public static ApplicationLivenessInformationProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public ApplicationLivenessInformationProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private ApplicationLivenessInformationProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| allRequestsSatisfied_ = input.readBool(); |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000002; |
| requestsOutstanding_ = input.readInt32(); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ApplicationLivenessInformationProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ApplicationLivenessInformationProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto.class, org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<ApplicationLivenessInformationProto> PARSER = |
| new com.google.protobuf.AbstractParser<ApplicationLivenessInformationProto>() { |
| public ApplicationLivenessInformationProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new ApplicationLivenessInformationProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<ApplicationLivenessInformationProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // optional bool allRequestsSatisfied = 1; |
| public static final int ALLREQUESTSSATISFIED_FIELD_NUMBER = 1; |
| private boolean allRequestsSatisfied_; |
| /** |
| * <code>optional bool allRequestsSatisfied = 1;</code> |
| */ |
| public boolean hasAllRequestsSatisfied() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>optional bool allRequestsSatisfied = 1;</code> |
| */ |
| public boolean getAllRequestsSatisfied() { |
| return allRequestsSatisfied_; |
| } |
| |
| // optional int32 requestsOutstanding = 2; |
| public static final int REQUESTSOUTSTANDING_FIELD_NUMBER = 2; |
| private int requestsOutstanding_; |
| /** |
| * <code>optional int32 requestsOutstanding = 2;</code> |
| */ |
| public boolean hasRequestsOutstanding() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>optional int32 requestsOutstanding = 2;</code> |
| */ |
| public int getRequestsOutstanding() { |
| return requestsOutstanding_; |
| } |
| |
| private void initFields() { |
| allRequestsSatisfied_ = false; |
| requestsOutstanding_ = 0; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBool(1, allRequestsSatisfied_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeInt32(2, requestsOutstanding_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBoolSize(1, allRequestsSatisfied_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(2, requestsOutstanding_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto other = (org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto) obj; |
| |
| boolean result = true; |
| result = result && (hasAllRequestsSatisfied() == other.hasAllRequestsSatisfied()); |
| if (hasAllRequestsSatisfied()) { |
| result = result && (getAllRequestsSatisfied() |
| == other.getAllRequestsSatisfied()); |
| } |
| result = result && (hasRequestsOutstanding() == other.hasRequestsOutstanding()); |
| if (hasRequestsOutstanding()) { |
| result = result && (getRequestsOutstanding() |
| == other.getRequestsOutstanding()); |
| } |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasAllRequestsSatisfied()) { |
| hash = (37 * hash) + ALLREQUESTSSATISFIED_FIELD_NUMBER; |
| hash = (53 * hash) + hashBoolean(getAllRequestsSatisfied()); |
| } |
| if (hasRequestsOutstanding()) { |
| hash = (37 * hash) + REQUESTSOUTSTANDING_FIELD_NUMBER; |
| hash = (53 * hash) + getRequestsOutstanding(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.ApplicationLivenessInformationProto} |
| * |
| * <pre> |
| ** |
| * See org.apache.slider.api.types.ApplicationLivenessInformation |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ApplicationLivenessInformationProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ApplicationLivenessInformationProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto.class, org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| allRequestsSatisfied_ = false; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| requestsOutstanding_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ApplicationLivenessInformationProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto build() { |
| org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto buildPartial() { |
| org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto result = new org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.allRequestsSatisfied_ = allRequestsSatisfied_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.requestsOutstanding_ = requestsOutstanding_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto other) { |
| if (other == org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto.getDefaultInstance()) return this; |
| if (other.hasAllRequestsSatisfied()) { |
| setAllRequestsSatisfied(other.getAllRequestsSatisfied()); |
| } |
| if (other.hasRequestsOutstanding()) { |
| setRequestsOutstanding(other.getRequestsOutstanding()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.ApplicationLivenessInformationProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // optional bool allRequestsSatisfied = 1; |
| private boolean allRequestsSatisfied_ ; |
| /** |
| * <code>optional bool allRequestsSatisfied = 1;</code> |
| */ |
| public boolean hasAllRequestsSatisfied() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>optional bool allRequestsSatisfied = 1;</code> |
| */ |
| public boolean getAllRequestsSatisfied() { |
| return allRequestsSatisfied_; |
| } |
| /** |
| * <code>optional bool allRequestsSatisfied = 1;</code> |
| */ |
| public Builder setAllRequestsSatisfied(boolean value) { |
| bitField0_ |= 0x00000001; |
| allRequestsSatisfied_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional bool allRequestsSatisfied = 1;</code> |
| */ |
| public Builder clearAllRequestsSatisfied() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| allRequestsSatisfied_ = false; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 requestsOutstanding = 2; |
| private int requestsOutstanding_ ; |
| /** |
| * <code>optional int32 requestsOutstanding = 2;</code> |
| */ |
| public boolean hasRequestsOutstanding() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>optional int32 requestsOutstanding = 2;</code> |
| */ |
| public int getRequestsOutstanding() { |
| return requestsOutstanding_; |
| } |
| /** |
| * <code>optional int32 requestsOutstanding = 2;</code> |
| */ |
| public Builder setRequestsOutstanding(int value) { |
| bitField0_ |= 0x00000002; |
| requestsOutstanding_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 requestsOutstanding = 2;</code> |
| */ |
| public Builder clearRequestsOutstanding() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| requestsOutstanding_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.ApplicationLivenessInformationProto) |
| } |
| |
| static { |
| defaultInstance = new ApplicationLivenessInformationProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.ApplicationLivenessInformationProto) |
| } |
| |
| public interface ComponentInformationProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // optional string name = 1; |
| /** |
| * <code>optional string name = 1;</code> |
| */ |
| boolean hasName(); |
| /** |
| * <code>optional string name = 1;</code> |
| */ |
| java.lang.String getName(); |
| /** |
| * <code>optional string name = 1;</code> |
| */ |
| com.google.protobuf.ByteString |
| getNameBytes(); |
| |
| // optional int32 priority = 2; |
| /** |
| * <code>optional int32 priority = 2;</code> |
| */ |
| boolean hasPriority(); |
| /** |
| * <code>optional int32 priority = 2;</code> |
| */ |
| int getPriority(); |
| |
| // optional int32 desired = 3; |
| /** |
| * <code>optional int32 desired = 3;</code> |
| */ |
| boolean hasDesired(); |
| /** |
| * <code>optional int32 desired = 3;</code> |
| */ |
| int getDesired(); |
| |
| // optional int32 actual = 4; |
| /** |
| * <code>optional int32 actual = 4;</code> |
| */ |
| boolean hasActual(); |
| /** |
| * <code>optional int32 actual = 4;</code> |
| */ |
| int getActual(); |
| |
| // optional int32 releasing = 5; |
| /** |
| * <code>optional int32 releasing = 5;</code> |
| */ |
| boolean hasReleasing(); |
| /** |
| * <code>optional int32 releasing = 5;</code> |
| */ |
| int getReleasing(); |
| |
| // optional int32 requested = 6; |
| /** |
| * <code>optional int32 requested = 6;</code> |
| */ |
| boolean hasRequested(); |
| /** |
| * <code>optional int32 requested = 6;</code> |
| */ |
| int getRequested(); |
| |
| // optional int32 failed = 7; |
| /** |
| * <code>optional int32 failed = 7;</code> |
| */ |
| boolean hasFailed(); |
| /** |
| * <code>optional int32 failed = 7;</code> |
| */ |
| int getFailed(); |
| |
| // optional int32 started = 8; |
| /** |
| * <code>optional int32 started = 8;</code> |
| */ |
| boolean hasStarted(); |
| /** |
| * <code>optional int32 started = 8;</code> |
| */ |
| int getStarted(); |
| |
| // optional int32 startFailed = 9; |
| /** |
| * <code>optional int32 startFailed = 9;</code> |
| */ |
| boolean hasStartFailed(); |
| /** |
| * <code>optional int32 startFailed = 9;</code> |
| */ |
| int getStartFailed(); |
| |
| // optional int32 completed = 10; |
| /** |
| * <code>optional int32 completed = 10;</code> |
| */ |
| boolean hasCompleted(); |
| /** |
| * <code>optional int32 completed = 10;</code> |
| */ |
| int getCompleted(); |
| |
| // optional int32 totalRequested = 11; |
| /** |
| * <code>optional int32 totalRequested = 11;</code> |
| */ |
| boolean hasTotalRequested(); |
| /** |
| * <code>optional int32 totalRequested = 11;</code> |
| */ |
| int getTotalRequested(); |
| |
| // optional string failureMessage = 12; |
| /** |
| * <code>optional string failureMessage = 12;</code> |
| */ |
| boolean hasFailureMessage(); |
| /** |
| * <code>optional string failureMessage = 12;</code> |
| */ |
| java.lang.String getFailureMessage(); |
| /** |
| * <code>optional string failureMessage = 12;</code> |
| */ |
| com.google.protobuf.ByteString |
| getFailureMessageBytes(); |
| |
| // optional int32 placementPolicy = 13; |
| /** |
| * <code>optional int32 placementPolicy = 13;</code> |
| */ |
| boolean hasPlacementPolicy(); |
| /** |
| * <code>optional int32 placementPolicy = 13;</code> |
| */ |
| int getPlacementPolicy(); |
| |
| // repeated string containers = 14; |
| /** |
| * <code>repeated string containers = 14;</code> |
| */ |
| java.util.List<java.lang.String> |
| getContainersList(); |
| /** |
| * <code>repeated string containers = 14;</code> |
| */ |
| int getContainersCount(); |
| /** |
| * <code>repeated string containers = 14;</code> |
| */ |
| java.lang.String getContainers(int index); |
| /** |
| * <code>repeated string containers = 14;</code> |
| */ |
| com.google.protobuf.ByteString |
| getContainersBytes(int index); |
| |
| // optional int32 failedRecently = 15; |
| /** |
| * <code>optional int32 failedRecently = 15;</code> |
| */ |
| boolean hasFailedRecently(); |
| /** |
| * <code>optional int32 failedRecently = 15;</code> |
| */ |
| int getFailedRecently(); |
| |
| // optional int32 nodeFailed = 16; |
| /** |
| * <code>optional int32 nodeFailed = 16;</code> |
| */ |
| boolean hasNodeFailed(); |
| /** |
| * <code>optional int32 nodeFailed = 16;</code> |
| */ |
| int getNodeFailed(); |
| |
| // optional int32 preempted = 17; |
| /** |
| * <code>optional int32 preempted = 17;</code> |
| */ |
| boolean hasPreempted(); |
| /** |
| * <code>optional int32 preempted = 17;</code> |
| */ |
| int getPreempted(); |
| |
| // optional int32 pendingAntiAffineRequestCount = 18; |
| /** |
| * <code>optional int32 pendingAntiAffineRequestCount = 18;</code> |
| */ |
| boolean hasPendingAntiAffineRequestCount(); |
| /** |
| * <code>optional int32 pendingAntiAffineRequestCount = 18;</code> |
| */ |
| int getPendingAntiAffineRequestCount(); |
| |
| // optional bool isAARequestOutstanding = 19; |
| /** |
| * <code>optional bool isAARequestOutstanding = 19;</code> |
| */ |
| boolean hasIsAARequestOutstanding(); |
| /** |
| * <code>optional bool isAARequestOutstanding = 19;</code> |
| */ |
| boolean getIsAARequestOutstanding(); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.ComponentInformationProto} |
| * |
| * <pre> |
| * |
| * see org.apache.slider.api.types.ComponentInformation |
| * </pre> |
| */ |
| public static final class ComponentInformationProto extends |
| com.google.protobuf.GeneratedMessage |
| implements ComponentInformationProtoOrBuilder { |
| // Use ComponentInformationProto.newBuilder() to construct. |
| private ComponentInformationProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private ComponentInformationProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final ComponentInformationProto defaultInstance; |
| public static ComponentInformationProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public ComponentInformationProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private ComponentInformationProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| name_ = input.readBytes(); |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000002; |
| priority_ = input.readInt32(); |
| break; |
| } |
| case 24: { |
| bitField0_ |= 0x00000004; |
| desired_ = input.readInt32(); |
| break; |
| } |
| case 32: { |
| bitField0_ |= 0x00000008; |
| actual_ = input.readInt32(); |
| break; |
| } |
| case 40: { |
| bitField0_ |= 0x00000010; |
| releasing_ = input.readInt32(); |
| break; |
| } |
| case 48: { |
| bitField0_ |= 0x00000020; |
| requested_ = input.readInt32(); |
| break; |
| } |
| case 56: { |
| bitField0_ |= 0x00000040; |
| failed_ = input.readInt32(); |
| break; |
| } |
| case 64: { |
| bitField0_ |= 0x00000080; |
| started_ = input.readInt32(); |
| break; |
| } |
| case 72: { |
| bitField0_ |= 0x00000100; |
| startFailed_ = input.readInt32(); |
| break; |
| } |
| case 80: { |
| bitField0_ |= 0x00000200; |
| completed_ = input.readInt32(); |
| break; |
| } |
| case 88: { |
| bitField0_ |= 0x00000400; |
| totalRequested_ = input.readInt32(); |
| break; |
| } |
| case 98: { |
| bitField0_ |= 0x00000800; |
| failureMessage_ = input.readBytes(); |
| break; |
| } |
| case 104: { |
| bitField0_ |= 0x00001000; |
| placementPolicy_ = input.readInt32(); |
| break; |
| } |
| case 114: { |
| if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) { |
| containers_ = new com.google.protobuf.LazyStringArrayList(); |
| mutable_bitField0_ |= 0x00002000; |
| } |
| containers_.add(input.readBytes()); |
| break; |
| } |
| case 120: { |
| bitField0_ |= 0x00002000; |
| failedRecently_ = input.readInt32(); |
| break; |
| } |
| case 128: { |
| bitField0_ |= 0x00004000; |
| nodeFailed_ = input.readInt32(); |
| break; |
| } |
| case 136: { |
| bitField0_ |= 0x00008000; |
| preempted_ = input.readInt32(); |
| break; |
| } |
| case 144: { |
| bitField0_ |= 0x00010000; |
| pendingAntiAffineRequestCount_ = input.readInt32(); |
| break; |
| } |
| case 152: { |
| bitField0_ |= 0x00020000; |
| isAARequestOutstanding_ = input.readBool(); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| if (((mutable_bitField0_ & 0x00002000) == 0x00002000)) { |
| containers_ = new com.google.protobuf.UnmodifiableLazyStringList(containers_); |
| } |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ComponentInformationProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ComponentInformationProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.ComponentInformationProto.class, org.apache.slider.api.proto.Messages.ComponentInformationProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<ComponentInformationProto> PARSER = |
| new com.google.protobuf.AbstractParser<ComponentInformationProto>() { |
| public ComponentInformationProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new ComponentInformationProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<ComponentInformationProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // optional string name = 1; |
| public static final int NAME_FIELD_NUMBER = 1; |
| private java.lang.Object name_; |
| /** |
| * <code>optional string name = 1;</code> |
| */ |
| public boolean hasName() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>optional string name = 1;</code> |
| */ |
| public java.lang.String getName() { |
| java.lang.Object ref = name_; |
| if (ref instanceof java.lang.String) { |
| return (java.lang.String) ref; |
| } else { |
| com.google.protobuf.ByteString bs = |
| (com.google.protobuf.ByteString) ref; |
| java.lang.String s = bs.toStringUtf8(); |
| if (bs.isValidUtf8()) { |
| name_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>optional string name = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getNameBytes() { |
| java.lang.Object ref = name_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| name_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional int32 priority = 2; |
| public static final int PRIORITY_FIELD_NUMBER = 2; |
| private int priority_; |
| /** |
| * <code>optional int32 priority = 2;</code> |
| */ |
| public boolean hasPriority() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>optional int32 priority = 2;</code> |
| */ |
| public int getPriority() { |
| return priority_; |
| } |
| |
| // optional int32 desired = 3; |
| public static final int DESIRED_FIELD_NUMBER = 3; |
| private int desired_; |
| /** |
| * <code>optional int32 desired = 3;</code> |
| */ |
| public boolean hasDesired() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>optional int32 desired = 3;</code> |
| */ |
| public int getDesired() { |
| return desired_; |
| } |
| |
| // optional int32 actual = 4; |
| public static final int ACTUAL_FIELD_NUMBER = 4; |
| private int actual_; |
| /** |
| * <code>optional int32 actual = 4;</code> |
| */ |
| public boolean hasActual() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| /** |
| * <code>optional int32 actual = 4;</code> |
| */ |
| public int getActual() { |
| return actual_; |
| } |
| |
| // optional int32 releasing = 5; |
| public static final int RELEASING_FIELD_NUMBER = 5; |
| private int releasing_; |
| /** |
| * <code>optional int32 releasing = 5;</code> |
| */ |
| public boolean hasReleasing() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| /** |
| * <code>optional int32 releasing = 5;</code> |
| */ |
| public int getReleasing() { |
| return releasing_; |
| } |
| |
| // optional int32 requested = 6; |
| public static final int REQUESTED_FIELD_NUMBER = 6; |
| private int requested_; |
| /** |
| * <code>optional int32 requested = 6;</code> |
| */ |
| public boolean hasRequested() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| /** |
| * <code>optional int32 requested = 6;</code> |
| */ |
| public int getRequested() { |
| return requested_; |
| } |
| |
| // optional int32 failed = 7; |
| public static final int FAILED_FIELD_NUMBER = 7; |
| private int failed_; |
| /** |
| * <code>optional int32 failed = 7;</code> |
| */ |
| public boolean hasFailed() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| /** |
| * <code>optional int32 failed = 7;</code> |
| */ |
| public int getFailed() { |
| return failed_; |
| } |
| |
| // optional int32 started = 8; |
| public static final int STARTED_FIELD_NUMBER = 8; |
| private int started_; |
| /** |
| * <code>optional int32 started = 8;</code> |
| */ |
| public boolean hasStarted() { |
| return ((bitField0_ & 0x00000080) == 0x00000080); |
| } |
| /** |
| * <code>optional int32 started = 8;</code> |
| */ |
| public int getStarted() { |
| return started_; |
| } |
| |
| // optional int32 startFailed = 9; |
| public static final int STARTFAILED_FIELD_NUMBER = 9; |
| private int startFailed_; |
| /** |
| * <code>optional int32 startFailed = 9;</code> |
| */ |
| public boolean hasStartFailed() { |
| return ((bitField0_ & 0x00000100) == 0x00000100); |
| } |
| /** |
| * <code>optional int32 startFailed = 9;</code> |
| */ |
| public int getStartFailed() { |
| return startFailed_; |
| } |
| |
| // optional int32 completed = 10; |
| public static final int COMPLETED_FIELD_NUMBER = 10; |
| private int completed_; |
| /** |
| * <code>optional int32 completed = 10;</code> |
| */ |
| public boolean hasCompleted() { |
| return ((bitField0_ & 0x00000200) == 0x00000200); |
| } |
| /** |
| * <code>optional int32 completed = 10;</code> |
| */ |
| public int getCompleted() { |
| return completed_; |
| } |
| |
| // optional int32 totalRequested = 11; |
| public static final int TOTALREQUESTED_FIELD_NUMBER = 11; |
| private int totalRequested_; |
| /** |
| * <code>optional int32 totalRequested = 11;</code> |
| */ |
| public boolean hasTotalRequested() { |
| return ((bitField0_ & 0x00000400) == 0x00000400); |
| } |
| /** |
| * <code>optional int32 totalRequested = 11;</code> |
| */ |
| public int getTotalRequested() { |
| return totalRequested_; |
| } |
| |
| // optional string failureMessage = 12; |
| public static final int FAILUREMESSAGE_FIELD_NUMBER = 12; |
| private java.lang.Object failureMessage_; |
| /** |
| * <code>optional string failureMessage = 12;</code> |
| */ |
| public boolean hasFailureMessage() { |
| return ((bitField0_ & 0x00000800) == 0x00000800); |
| } |
| /** |
| * <code>optional string failureMessage = 12;</code> |
| */ |
| public java.lang.String getFailureMessage() { |
| java.lang.Object ref = failureMessage_; |
| 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()) { |
| failureMessage_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>optional string failureMessage = 12;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getFailureMessageBytes() { |
| java.lang.Object ref = failureMessage_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| failureMessage_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional int32 placementPolicy = 13; |
| public static final int PLACEMENTPOLICY_FIELD_NUMBER = 13; |
| private int placementPolicy_; |
| /** |
| * <code>optional int32 placementPolicy = 13;</code> |
| */ |
| public boolean hasPlacementPolicy() { |
| return ((bitField0_ & 0x00001000) == 0x00001000); |
| } |
| /** |
| * <code>optional int32 placementPolicy = 13;</code> |
| */ |
| public int getPlacementPolicy() { |
| return placementPolicy_; |
| } |
| |
| // repeated string containers = 14; |
| public static final int CONTAINERS_FIELD_NUMBER = 14; |
| private com.google.protobuf.LazyStringList containers_; |
| /** |
| * <code>repeated string containers = 14;</code> |
| */ |
| public java.util.List<java.lang.String> |
| getContainersList() { |
| return containers_; |
| } |
| /** |
| * <code>repeated string containers = 14;</code> |
| */ |
| public int getContainersCount() { |
| return containers_.size(); |
| } |
| /** |
| * <code>repeated string containers = 14;</code> |
| */ |
| public java.lang.String getContainers(int index) { |
| return containers_.get(index); |
| } |
| /** |
| * <code>repeated string containers = 14;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getContainersBytes(int index) { |
| return containers_.getByteString(index); |
| } |
| |
| // optional int32 failedRecently = 15; |
| public static final int FAILEDRECENTLY_FIELD_NUMBER = 15; |
| private int failedRecently_; |
| /** |
| * <code>optional int32 failedRecently = 15;</code> |
| */ |
| public boolean hasFailedRecently() { |
| return ((bitField0_ & 0x00002000) == 0x00002000); |
| } |
| /** |
| * <code>optional int32 failedRecently = 15;</code> |
| */ |
| public int getFailedRecently() { |
| return failedRecently_; |
| } |
| |
| // optional int32 nodeFailed = 16; |
| public static final int NODEFAILED_FIELD_NUMBER = 16; |
| private int nodeFailed_; |
| /** |
| * <code>optional int32 nodeFailed = 16;</code> |
| */ |
| public boolean hasNodeFailed() { |
| return ((bitField0_ & 0x00004000) == 0x00004000); |
| } |
| /** |
| * <code>optional int32 nodeFailed = 16;</code> |
| */ |
| public int getNodeFailed() { |
| return nodeFailed_; |
| } |
| |
| // optional int32 preempted = 17; |
| public static final int PREEMPTED_FIELD_NUMBER = 17; |
| private int preempted_; |
| /** |
| * <code>optional int32 preempted = 17;</code> |
| */ |
| public boolean hasPreempted() { |
| return ((bitField0_ & 0x00008000) == 0x00008000); |
| } |
| /** |
| * <code>optional int32 preempted = 17;</code> |
| */ |
| public int getPreempted() { |
| return preempted_; |
| } |
| |
| // optional int32 pendingAntiAffineRequestCount = 18; |
| public static final int PENDINGANTIAFFINEREQUESTCOUNT_FIELD_NUMBER = 18; |
| private int pendingAntiAffineRequestCount_; |
| /** |
| * <code>optional int32 pendingAntiAffineRequestCount = 18;</code> |
| */ |
| public boolean hasPendingAntiAffineRequestCount() { |
| return ((bitField0_ & 0x00010000) == 0x00010000); |
| } |
| /** |
| * <code>optional int32 pendingAntiAffineRequestCount = 18;</code> |
| */ |
| public int getPendingAntiAffineRequestCount() { |
| return pendingAntiAffineRequestCount_; |
| } |
| |
| // optional bool isAARequestOutstanding = 19; |
| public static final int ISAAREQUESTOUTSTANDING_FIELD_NUMBER = 19; |
| private boolean isAARequestOutstanding_; |
| /** |
| * <code>optional bool isAARequestOutstanding = 19;</code> |
| */ |
| public boolean hasIsAARequestOutstanding() { |
| return ((bitField0_ & 0x00020000) == 0x00020000); |
| } |
| /** |
| * <code>optional bool isAARequestOutstanding = 19;</code> |
| */ |
| public boolean getIsAARequestOutstanding() { |
| return isAARequestOutstanding_; |
| } |
| |
| private void initFields() { |
| name_ = ""; |
| priority_ = 0; |
| desired_ = 0; |
| actual_ = 0; |
| releasing_ = 0; |
| requested_ = 0; |
| failed_ = 0; |
| started_ = 0; |
| startFailed_ = 0; |
| completed_ = 0; |
| totalRequested_ = 0; |
| failureMessage_ = ""; |
| placementPolicy_ = 0; |
| containers_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| failedRecently_ = 0; |
| nodeFailed_ = 0; |
| preempted_ = 0; |
| pendingAntiAffineRequestCount_ = 0; |
| isAARequestOutstanding_ = false; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getNameBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeInt32(2, priority_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeInt32(3, desired_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeInt32(4, actual_); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| output.writeInt32(5, releasing_); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| output.writeInt32(6, requested_); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| output.writeInt32(7, failed_); |
| } |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| output.writeInt32(8, started_); |
| } |
| if (((bitField0_ & 0x00000100) == 0x00000100)) { |
| output.writeInt32(9, startFailed_); |
| } |
| if (((bitField0_ & 0x00000200) == 0x00000200)) { |
| output.writeInt32(10, completed_); |
| } |
| if (((bitField0_ & 0x00000400) == 0x00000400)) { |
| output.writeInt32(11, totalRequested_); |
| } |
| if (((bitField0_ & 0x00000800) == 0x00000800)) { |
| output.writeBytes(12, getFailureMessageBytes()); |
| } |
| if (((bitField0_ & 0x00001000) == 0x00001000)) { |
| output.writeInt32(13, placementPolicy_); |
| } |
| for (int i = 0; i < containers_.size(); i++) { |
| output.writeBytes(14, containers_.getByteString(i)); |
| } |
| if (((bitField0_ & 0x00002000) == 0x00002000)) { |
| output.writeInt32(15, failedRecently_); |
| } |
| if (((bitField0_ & 0x00004000) == 0x00004000)) { |
| output.writeInt32(16, nodeFailed_); |
| } |
| if (((bitField0_ & 0x00008000) == 0x00008000)) { |
| output.writeInt32(17, preempted_); |
| } |
| if (((bitField0_ & 0x00010000) == 0x00010000)) { |
| output.writeInt32(18, pendingAntiAffineRequestCount_); |
| } |
| if (((bitField0_ & 0x00020000) == 0x00020000)) { |
| output.writeBool(19, isAARequestOutstanding_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, getNameBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(2, priority_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(3, desired_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(4, actual_); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(5, releasing_); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(6, requested_); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(7, failed_); |
| } |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(8, started_); |
| } |
| if (((bitField0_ & 0x00000100) == 0x00000100)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(9, startFailed_); |
| } |
| if (((bitField0_ & 0x00000200) == 0x00000200)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(10, completed_); |
| } |
| if (((bitField0_ & 0x00000400) == 0x00000400)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(11, totalRequested_); |
| } |
| if (((bitField0_ & 0x00000800) == 0x00000800)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(12, getFailureMessageBytes()); |
| } |
| if (((bitField0_ & 0x00001000) == 0x00001000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(13, placementPolicy_); |
| } |
| { |
| int dataSize = 0; |
| for (int i = 0; i < containers_.size(); i++) { |
| dataSize += com.google.protobuf.CodedOutputStream |
| .computeBytesSizeNoTag(containers_.getByteString(i)); |
| } |
| size += dataSize; |
| size += 1 * getContainersList().size(); |
| } |
| if (((bitField0_ & 0x00002000) == 0x00002000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(15, failedRecently_); |
| } |
| if (((bitField0_ & 0x00004000) == 0x00004000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(16, nodeFailed_); |
| } |
| if (((bitField0_ & 0x00008000) == 0x00008000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(17, preempted_); |
| } |
| if (((bitField0_ & 0x00010000) == 0x00010000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(18, pendingAntiAffineRequestCount_); |
| } |
| if (((bitField0_ & 0x00020000) == 0x00020000)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBoolSize(19, isAARequestOutstanding_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.ComponentInformationProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.ComponentInformationProto other = (org.apache.slider.api.proto.Messages.ComponentInformationProto) obj; |
| |
| boolean result = true; |
| result = result && (hasName() == other.hasName()); |
| if (hasName()) { |
| result = result && getName() |
| .equals(other.getName()); |
| } |
| result = result && (hasPriority() == other.hasPriority()); |
| if (hasPriority()) { |
| result = result && (getPriority() |
| == other.getPriority()); |
| } |
| result = result && (hasDesired() == other.hasDesired()); |
| if (hasDesired()) { |
| result = result && (getDesired() |
| == other.getDesired()); |
| } |
| result = result && (hasActual() == other.hasActual()); |
| if (hasActual()) { |
| result = result && (getActual() |
| == other.getActual()); |
| } |
| result = result && (hasReleasing() == other.hasReleasing()); |
| if (hasReleasing()) { |
| result = result && (getReleasing() |
| == other.getReleasing()); |
| } |
| result = result && (hasRequested() == other.hasRequested()); |
| if (hasRequested()) { |
| result = result && (getRequested() |
| == other.getRequested()); |
| } |
| result = result && (hasFailed() == other.hasFailed()); |
| if (hasFailed()) { |
| result = result && (getFailed() |
| == other.getFailed()); |
| } |
| result = result && (hasStarted() == other.hasStarted()); |
| if (hasStarted()) { |
| result = result && (getStarted() |
| == other.getStarted()); |
| } |
| result = result && (hasStartFailed() == other.hasStartFailed()); |
| if (hasStartFailed()) { |
| result = result && (getStartFailed() |
| == other.getStartFailed()); |
| } |
| result = result && (hasCompleted() == other.hasCompleted()); |
| if (hasCompleted()) { |
| result = result && (getCompleted() |
| == other.getCompleted()); |
| } |
| result = result && (hasTotalRequested() == other.hasTotalRequested()); |
| if (hasTotalRequested()) { |
| result = result && (getTotalRequested() |
| == other.getTotalRequested()); |
| } |
| result = result && (hasFailureMessage() == other.hasFailureMessage()); |
| if (hasFailureMessage()) { |
| result = result && getFailureMessage() |
| .equals(other.getFailureMessage()); |
| } |
| result = result && (hasPlacementPolicy() == other.hasPlacementPolicy()); |
| if (hasPlacementPolicy()) { |
| result = result && (getPlacementPolicy() |
| == other.getPlacementPolicy()); |
| } |
| result = result && getContainersList() |
| .equals(other.getContainersList()); |
| result = result && (hasFailedRecently() == other.hasFailedRecently()); |
| if (hasFailedRecently()) { |
| result = result && (getFailedRecently() |
| == other.getFailedRecently()); |
| } |
| result = result && (hasNodeFailed() == other.hasNodeFailed()); |
| if (hasNodeFailed()) { |
| result = result && (getNodeFailed() |
| == other.getNodeFailed()); |
| } |
| result = result && (hasPreempted() == other.hasPreempted()); |
| if (hasPreempted()) { |
| result = result && (getPreempted() |
| == other.getPreempted()); |
| } |
| result = result && (hasPendingAntiAffineRequestCount() == other.hasPendingAntiAffineRequestCount()); |
| if (hasPendingAntiAffineRequestCount()) { |
| result = result && (getPendingAntiAffineRequestCount() |
| == other.getPendingAntiAffineRequestCount()); |
| } |
| result = result && (hasIsAARequestOutstanding() == other.hasIsAARequestOutstanding()); |
| if (hasIsAARequestOutstanding()) { |
| result = result && (getIsAARequestOutstanding() |
| == other.getIsAARequestOutstanding()); |
| } |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasName()) { |
| hash = (37 * hash) + NAME_FIELD_NUMBER; |
| hash = (53 * hash) + getName().hashCode(); |
| } |
| if (hasPriority()) { |
| hash = (37 * hash) + PRIORITY_FIELD_NUMBER; |
| hash = (53 * hash) + getPriority(); |
| } |
| if (hasDesired()) { |
| hash = (37 * hash) + DESIRED_FIELD_NUMBER; |
| hash = (53 * hash) + getDesired(); |
| } |
| if (hasActual()) { |
| hash = (37 * hash) + ACTUAL_FIELD_NUMBER; |
| hash = (53 * hash) + getActual(); |
| } |
| if (hasReleasing()) { |
| hash = (37 * hash) + RELEASING_FIELD_NUMBER; |
| hash = (53 * hash) + getReleasing(); |
| } |
| if (hasRequested()) { |
| hash = (37 * hash) + REQUESTED_FIELD_NUMBER; |
| hash = (53 * hash) + getRequested(); |
| } |
| if (hasFailed()) { |
| hash = (37 * hash) + FAILED_FIELD_NUMBER; |
| hash = (53 * hash) + getFailed(); |
| } |
| if (hasStarted()) { |
| hash = (37 * hash) + STARTED_FIELD_NUMBER; |
| hash = (53 * hash) + getStarted(); |
| } |
| if (hasStartFailed()) { |
| hash = (37 * hash) + STARTFAILED_FIELD_NUMBER; |
| hash = (53 * hash) + getStartFailed(); |
| } |
| if (hasCompleted()) { |
| hash = (37 * hash) + COMPLETED_FIELD_NUMBER; |
| hash = (53 * hash) + getCompleted(); |
| } |
| if (hasTotalRequested()) { |
| hash = (37 * hash) + TOTALREQUESTED_FIELD_NUMBER; |
| hash = (53 * hash) + getTotalRequested(); |
| } |
| if (hasFailureMessage()) { |
| hash = (37 * hash) + FAILUREMESSAGE_FIELD_NUMBER; |
| hash = (53 * hash) + getFailureMessage().hashCode(); |
| } |
| if (hasPlacementPolicy()) { |
| hash = (37 * hash) + PLACEMENTPOLICY_FIELD_NUMBER; |
| hash = (53 * hash) + getPlacementPolicy(); |
| } |
| if (getContainersCount() > 0) { |
| hash = (37 * hash) + CONTAINERS_FIELD_NUMBER; |
| hash = (53 * hash) + getContainersList().hashCode(); |
| } |
| if (hasFailedRecently()) { |
| hash = (37 * hash) + FAILEDRECENTLY_FIELD_NUMBER; |
| hash = (53 * hash) + getFailedRecently(); |
| } |
| if (hasNodeFailed()) { |
| hash = (37 * hash) + NODEFAILED_FIELD_NUMBER; |
| hash = (53 * hash) + getNodeFailed(); |
| } |
| if (hasPreempted()) { |
| hash = (37 * hash) + PREEMPTED_FIELD_NUMBER; |
| hash = (53 * hash) + getPreempted(); |
| } |
| if (hasPendingAntiAffineRequestCount()) { |
| hash = (37 * hash) + PENDINGANTIAFFINEREQUESTCOUNT_FIELD_NUMBER; |
| hash = (53 * hash) + getPendingAntiAffineRequestCount(); |
| } |
| if (hasIsAARequestOutstanding()) { |
| hash = (37 * hash) + ISAAREQUESTOUTSTANDING_FIELD_NUMBER; |
| hash = (53 * hash) + hashBoolean(getIsAARequestOutstanding()); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.ComponentInformationProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.ComponentInformationProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.ComponentInformationProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.ComponentInformationProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.ComponentInformationProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.ComponentInformationProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.ComponentInformationProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.ComponentInformationProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.ComponentInformationProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.ComponentInformationProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.ComponentInformationProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.ComponentInformationProto} |
| * |
| * <pre> |
| * |
| * see org.apache.slider.api.types.ComponentInformation |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.ComponentInformationProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ComponentInformationProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ComponentInformationProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.ComponentInformationProto.class, org.apache.slider.api.proto.Messages.ComponentInformationProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.ComponentInformationProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| name_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| priority_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| desired_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| actual_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000008); |
| releasing_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000010); |
| requested_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000020); |
| failed_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000040); |
| started_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000080); |
| startFailed_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000100); |
| completed_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000200); |
| totalRequested_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000400); |
| failureMessage_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000800); |
| placementPolicy_ = 0; |
| bitField0_ = (bitField0_ & ~0x00001000); |
| containers_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00002000); |
| failedRecently_ = 0; |
| bitField0_ = (bitField0_ & ~0x00004000); |
| nodeFailed_ = 0; |
| bitField0_ = (bitField0_ & ~0x00008000); |
| preempted_ = 0; |
| bitField0_ = (bitField0_ & ~0x00010000); |
| pendingAntiAffineRequestCount_ = 0; |
| bitField0_ = (bitField0_ & ~0x00020000); |
| isAARequestOutstanding_ = false; |
| bitField0_ = (bitField0_ & ~0x00040000); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ComponentInformationProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.ComponentInformationProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.ComponentInformationProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.ComponentInformationProto build() { |
| org.apache.slider.api.proto.Messages.ComponentInformationProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.ComponentInformationProto buildPartial() { |
| org.apache.slider.api.proto.Messages.ComponentInformationProto result = new org.apache.slider.api.proto.Messages.ComponentInformationProto(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.name_ = name_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.priority_ = priority_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.desired_ = desired_; |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| result.actual_ = actual_; |
| if (((from_bitField0_ & 0x00000010) == 0x00000010)) { |
| to_bitField0_ |= 0x00000010; |
| } |
| result.releasing_ = releasing_; |
| if (((from_bitField0_ & 0x00000020) == 0x00000020)) { |
| to_bitField0_ |= 0x00000020; |
| } |
| result.requested_ = requested_; |
| if (((from_bitField0_ & 0x00000040) == 0x00000040)) { |
| to_bitField0_ |= 0x00000040; |
| } |
| result.failed_ = failed_; |
| if (((from_bitField0_ & 0x00000080) == 0x00000080)) { |
| to_bitField0_ |= 0x00000080; |
| } |
| result.started_ = started_; |
| if (((from_bitField0_ & 0x00000100) == 0x00000100)) { |
| to_bitField0_ |= 0x00000100; |
| } |
| result.startFailed_ = startFailed_; |
| if (((from_bitField0_ & 0x00000200) == 0x00000200)) { |
| to_bitField0_ |= 0x00000200; |
| } |
| result.completed_ = completed_; |
| if (((from_bitField0_ & 0x00000400) == 0x00000400)) { |
| to_bitField0_ |= 0x00000400; |
| } |
| result.totalRequested_ = totalRequested_; |
| if (((from_bitField0_ & 0x00000800) == 0x00000800)) { |
| to_bitField0_ |= 0x00000800; |
| } |
| result.failureMessage_ = failureMessage_; |
| if (((from_bitField0_ & 0x00001000) == 0x00001000)) { |
| to_bitField0_ |= 0x00001000; |
| } |
| result.placementPolicy_ = placementPolicy_; |
| if (((bitField0_ & 0x00002000) == 0x00002000)) { |
| containers_ = new com.google.protobuf.UnmodifiableLazyStringList( |
| containers_); |
| bitField0_ = (bitField0_ & ~0x00002000); |
| } |
| result.containers_ = containers_; |
| if (((from_bitField0_ & 0x00004000) == 0x00004000)) { |
| to_bitField0_ |= 0x00002000; |
| } |
| result.failedRecently_ = failedRecently_; |
| if (((from_bitField0_ & 0x00008000) == 0x00008000)) { |
| to_bitField0_ |= 0x00004000; |
| } |
| result.nodeFailed_ = nodeFailed_; |
| if (((from_bitField0_ & 0x00010000) == 0x00010000)) { |
| to_bitField0_ |= 0x00008000; |
| } |
| result.preempted_ = preempted_; |
| if (((from_bitField0_ & 0x00020000) == 0x00020000)) { |
| to_bitField0_ |= 0x00010000; |
| } |
| result.pendingAntiAffineRequestCount_ = pendingAntiAffineRequestCount_; |
| if (((from_bitField0_ & 0x00040000) == 0x00040000)) { |
| to_bitField0_ |= 0x00020000; |
| } |
| result.isAARequestOutstanding_ = isAARequestOutstanding_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.ComponentInformationProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.ComponentInformationProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.ComponentInformationProto other) { |
| if (other == org.apache.slider.api.proto.Messages.ComponentInformationProto.getDefaultInstance()) return this; |
| if (other.hasName()) { |
| bitField0_ |= 0x00000001; |
| name_ = other.name_; |
| onChanged(); |
| } |
| if (other.hasPriority()) { |
| setPriority(other.getPriority()); |
| } |
| if (other.hasDesired()) { |
| setDesired(other.getDesired()); |
| } |
| if (other.hasActual()) { |
| setActual(other.getActual()); |
| } |
| if (other.hasReleasing()) { |
| setReleasing(other.getReleasing()); |
| } |
| if (other.hasRequested()) { |
| setRequested(other.getRequested()); |
| } |
| if (other.hasFailed()) { |
| setFailed(other.getFailed()); |
| } |
| if (other.hasStarted()) { |
| setStarted(other.getStarted()); |
| } |
| if (other.hasStartFailed()) { |
| setStartFailed(other.getStartFailed()); |
| } |
| if (other.hasCompleted()) { |
| setCompleted(other.getCompleted()); |
| } |
| if (other.hasTotalRequested()) { |
| setTotalRequested(other.getTotalRequested()); |
| } |
| if (other.hasFailureMessage()) { |
| bitField0_ |= 0x00000800; |
| failureMessage_ = other.failureMessage_; |
| onChanged(); |
| } |
| if (other.hasPlacementPolicy()) { |
| setPlacementPolicy(other.getPlacementPolicy()); |
| } |
| if (!other.containers_.isEmpty()) { |
| if (containers_.isEmpty()) { |
| containers_ = other.containers_; |
| bitField0_ = (bitField0_ & ~0x00002000); |
| } else { |
| ensureContainersIsMutable(); |
| containers_.addAll(other.containers_); |
| } |
| onChanged(); |
| } |
| if (other.hasFailedRecently()) { |
| setFailedRecently(other.getFailedRecently()); |
| } |
| if (other.hasNodeFailed()) { |
| setNodeFailed(other.getNodeFailed()); |
| } |
| if (other.hasPreempted()) { |
| setPreempted(other.getPreempted()); |
| } |
| if (other.hasPendingAntiAffineRequestCount()) { |
| setPendingAntiAffineRequestCount(other.getPendingAntiAffineRequestCount()); |
| } |
| if (other.hasIsAARequestOutstanding()) { |
| setIsAARequestOutstanding(other.getIsAARequestOutstanding()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.ComponentInformationProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.ComponentInformationProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // optional string name = 1; |
| private java.lang.Object name_ = ""; |
| /** |
| * <code>optional string name = 1;</code> |
| */ |
| public boolean hasName() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>optional string name = 1;</code> |
| */ |
| public java.lang.String getName() { |
| java.lang.Object ref = name_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| name_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>optional string name = 1;</code> |
| */ |
| 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; |
| } |
| } |
| /** |
| * <code>optional string name = 1;</code> |
| */ |
| public Builder setName( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| name_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string name = 1;</code> |
| */ |
| public Builder clearName() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| name_ = getDefaultInstance().getName(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string name = 1;</code> |
| */ |
| public Builder setNameBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| name_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 priority = 2; |
| private int priority_ ; |
| /** |
| * <code>optional int32 priority = 2;</code> |
| */ |
| public boolean hasPriority() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>optional int32 priority = 2;</code> |
| */ |
| public int getPriority() { |
| return priority_; |
| } |
| /** |
| * <code>optional int32 priority = 2;</code> |
| */ |
| public Builder setPriority(int value) { |
| bitField0_ |= 0x00000002; |
| priority_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 priority = 2;</code> |
| */ |
| public Builder clearPriority() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| priority_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 desired = 3; |
| private int desired_ ; |
| /** |
| * <code>optional int32 desired = 3;</code> |
| */ |
| public boolean hasDesired() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>optional int32 desired = 3;</code> |
| */ |
| public int getDesired() { |
| return desired_; |
| } |
| /** |
| * <code>optional int32 desired = 3;</code> |
| */ |
| public Builder setDesired(int value) { |
| bitField0_ |= 0x00000004; |
| desired_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 desired = 3;</code> |
| */ |
| public Builder clearDesired() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| desired_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 actual = 4; |
| private int actual_ ; |
| /** |
| * <code>optional int32 actual = 4;</code> |
| */ |
| public boolean hasActual() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| /** |
| * <code>optional int32 actual = 4;</code> |
| */ |
| public int getActual() { |
| return actual_; |
| } |
| /** |
| * <code>optional int32 actual = 4;</code> |
| */ |
| public Builder setActual(int value) { |
| bitField0_ |= 0x00000008; |
| actual_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 actual = 4;</code> |
| */ |
| public Builder clearActual() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| actual_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 releasing = 5; |
| private int releasing_ ; |
| /** |
| * <code>optional int32 releasing = 5;</code> |
| */ |
| public boolean hasReleasing() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| /** |
| * <code>optional int32 releasing = 5;</code> |
| */ |
| public int getReleasing() { |
| return releasing_; |
| } |
| /** |
| * <code>optional int32 releasing = 5;</code> |
| */ |
| public Builder setReleasing(int value) { |
| bitField0_ |= 0x00000010; |
| releasing_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 releasing = 5;</code> |
| */ |
| public Builder clearReleasing() { |
| bitField0_ = (bitField0_ & ~0x00000010); |
| releasing_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 requested = 6; |
| private int requested_ ; |
| /** |
| * <code>optional int32 requested = 6;</code> |
| */ |
| public boolean hasRequested() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| /** |
| * <code>optional int32 requested = 6;</code> |
| */ |
| public int getRequested() { |
| return requested_; |
| } |
| /** |
| * <code>optional int32 requested = 6;</code> |
| */ |
| public Builder setRequested(int value) { |
| bitField0_ |= 0x00000020; |
| requested_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 requested = 6;</code> |
| */ |
| public Builder clearRequested() { |
| bitField0_ = (bitField0_ & ~0x00000020); |
| requested_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 failed = 7; |
| private int failed_ ; |
| /** |
| * <code>optional int32 failed = 7;</code> |
| */ |
| public boolean hasFailed() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| /** |
| * <code>optional int32 failed = 7;</code> |
| */ |
| public int getFailed() { |
| return failed_; |
| } |
| /** |
| * <code>optional int32 failed = 7;</code> |
| */ |
| public Builder setFailed(int value) { |
| bitField0_ |= 0x00000040; |
| failed_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 failed = 7;</code> |
| */ |
| public Builder clearFailed() { |
| bitField0_ = (bitField0_ & ~0x00000040); |
| failed_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 started = 8; |
| private int started_ ; |
| /** |
| * <code>optional int32 started = 8;</code> |
| */ |
| public boolean hasStarted() { |
| return ((bitField0_ & 0x00000080) == 0x00000080); |
| } |
| /** |
| * <code>optional int32 started = 8;</code> |
| */ |
| public int getStarted() { |
| return started_; |
| } |
| /** |
| * <code>optional int32 started = 8;</code> |
| */ |
| public Builder setStarted(int value) { |
| bitField0_ |= 0x00000080; |
| started_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 started = 8;</code> |
| */ |
| public Builder clearStarted() { |
| bitField0_ = (bitField0_ & ~0x00000080); |
| started_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 startFailed = 9; |
| private int startFailed_ ; |
| /** |
| * <code>optional int32 startFailed = 9;</code> |
| */ |
| public boolean hasStartFailed() { |
| return ((bitField0_ & 0x00000100) == 0x00000100); |
| } |
| /** |
| * <code>optional int32 startFailed = 9;</code> |
| */ |
| public int getStartFailed() { |
| return startFailed_; |
| } |
| /** |
| * <code>optional int32 startFailed = 9;</code> |
| */ |
| public Builder setStartFailed(int value) { |
| bitField0_ |= 0x00000100; |
| startFailed_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 startFailed = 9;</code> |
| */ |
| public Builder clearStartFailed() { |
| bitField0_ = (bitField0_ & ~0x00000100); |
| startFailed_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 completed = 10; |
| private int completed_ ; |
| /** |
| * <code>optional int32 completed = 10;</code> |
| */ |
| public boolean hasCompleted() { |
| return ((bitField0_ & 0x00000200) == 0x00000200); |
| } |
| /** |
| * <code>optional int32 completed = 10;</code> |
| */ |
| public int getCompleted() { |
| return completed_; |
| } |
| /** |
| * <code>optional int32 completed = 10;</code> |
| */ |
| public Builder setCompleted(int value) { |
| bitField0_ |= 0x00000200; |
| completed_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 completed = 10;</code> |
| */ |
| public Builder clearCompleted() { |
| bitField0_ = (bitField0_ & ~0x00000200); |
| completed_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 totalRequested = 11; |
| private int totalRequested_ ; |
| /** |
| * <code>optional int32 totalRequested = 11;</code> |
| */ |
| public boolean hasTotalRequested() { |
| return ((bitField0_ & 0x00000400) == 0x00000400); |
| } |
| /** |
| * <code>optional int32 totalRequested = 11;</code> |
| */ |
| public int getTotalRequested() { |
| return totalRequested_; |
| } |
| /** |
| * <code>optional int32 totalRequested = 11;</code> |
| */ |
| public Builder setTotalRequested(int value) { |
| bitField0_ |= 0x00000400; |
| totalRequested_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 totalRequested = 11;</code> |
| */ |
| public Builder clearTotalRequested() { |
| bitField0_ = (bitField0_ & ~0x00000400); |
| totalRequested_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // optional string failureMessage = 12; |
| private java.lang.Object failureMessage_ = ""; |
| /** |
| * <code>optional string failureMessage = 12;</code> |
| */ |
| public boolean hasFailureMessage() { |
| return ((bitField0_ & 0x00000800) == 0x00000800); |
| } |
| /** |
| * <code>optional string failureMessage = 12;</code> |
| */ |
| public java.lang.String getFailureMessage() { |
| java.lang.Object ref = failureMessage_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| failureMessage_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>optional string failureMessage = 12;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getFailureMessageBytes() { |
| java.lang.Object ref = failureMessage_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| failureMessage_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>optional string failureMessage = 12;</code> |
| */ |
| public Builder setFailureMessage( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000800; |
| failureMessage_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string failureMessage = 12;</code> |
| */ |
| public Builder clearFailureMessage() { |
| bitField0_ = (bitField0_ & ~0x00000800); |
| failureMessage_ = getDefaultInstance().getFailureMessage(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string failureMessage = 12;</code> |
| */ |
| public Builder setFailureMessageBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000800; |
| failureMessage_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 placementPolicy = 13; |
| private int placementPolicy_ ; |
| /** |
| * <code>optional int32 placementPolicy = 13;</code> |
| */ |
| public boolean hasPlacementPolicy() { |
| return ((bitField0_ & 0x00001000) == 0x00001000); |
| } |
| /** |
| * <code>optional int32 placementPolicy = 13;</code> |
| */ |
| public int getPlacementPolicy() { |
| return placementPolicy_; |
| } |
| /** |
| * <code>optional int32 placementPolicy = 13;</code> |
| */ |
| public Builder setPlacementPolicy(int value) { |
| bitField0_ |= 0x00001000; |
| placementPolicy_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 placementPolicy = 13;</code> |
| */ |
| public Builder clearPlacementPolicy() { |
| bitField0_ = (bitField0_ & ~0x00001000); |
| placementPolicy_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // repeated string containers = 14; |
| private com.google.protobuf.LazyStringList containers_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| private void ensureContainersIsMutable() { |
| if (!((bitField0_ & 0x00002000) == 0x00002000)) { |
| containers_ = new com.google.protobuf.LazyStringArrayList(containers_); |
| bitField0_ |= 0x00002000; |
| } |
| } |
| /** |
| * <code>repeated string containers = 14;</code> |
| */ |
| public java.util.List<java.lang.String> |
| getContainersList() { |
| return java.util.Collections.unmodifiableList(containers_); |
| } |
| /** |
| * <code>repeated string containers = 14;</code> |
| */ |
| public int getContainersCount() { |
| return containers_.size(); |
| } |
| /** |
| * <code>repeated string containers = 14;</code> |
| */ |
| public java.lang.String getContainers(int index) { |
| return containers_.get(index); |
| } |
| /** |
| * <code>repeated string containers = 14;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getContainersBytes(int index) { |
| return containers_.getByteString(index); |
| } |
| /** |
| * <code>repeated string containers = 14;</code> |
| */ |
| public Builder setContainers( |
| int index, java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureContainersIsMutable(); |
| containers_.set(index, value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string containers = 14;</code> |
| */ |
| public Builder addContainers( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureContainersIsMutable(); |
| containers_.add(value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string containers = 14;</code> |
| */ |
| public Builder addAllContainers( |
| java.lang.Iterable<java.lang.String> values) { |
| ensureContainersIsMutable(); |
| super.addAll(values, containers_); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string containers = 14;</code> |
| */ |
| public Builder clearContainers() { |
| containers_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00002000); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string containers = 14;</code> |
| */ |
| public Builder addContainersBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureContainersIsMutable(); |
| containers_.add(value); |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 failedRecently = 15; |
| private int failedRecently_ ; |
| /** |
| * <code>optional int32 failedRecently = 15;</code> |
| */ |
| public boolean hasFailedRecently() { |
| return ((bitField0_ & 0x00004000) == 0x00004000); |
| } |
| /** |
| * <code>optional int32 failedRecently = 15;</code> |
| */ |
| public int getFailedRecently() { |
| return failedRecently_; |
| } |
| /** |
| * <code>optional int32 failedRecently = 15;</code> |
| */ |
| public Builder setFailedRecently(int value) { |
| bitField0_ |= 0x00004000; |
| failedRecently_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 failedRecently = 15;</code> |
| */ |
| public Builder clearFailedRecently() { |
| bitField0_ = (bitField0_ & ~0x00004000); |
| failedRecently_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 nodeFailed = 16; |
| private int nodeFailed_ ; |
| /** |
| * <code>optional int32 nodeFailed = 16;</code> |
| */ |
| public boolean hasNodeFailed() { |
| return ((bitField0_ & 0x00008000) == 0x00008000); |
| } |
| /** |
| * <code>optional int32 nodeFailed = 16;</code> |
| */ |
| public int getNodeFailed() { |
| return nodeFailed_; |
| } |
| /** |
| * <code>optional int32 nodeFailed = 16;</code> |
| */ |
| public Builder setNodeFailed(int value) { |
| bitField0_ |= 0x00008000; |
| nodeFailed_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 nodeFailed = 16;</code> |
| */ |
| public Builder clearNodeFailed() { |
| bitField0_ = (bitField0_ & ~0x00008000); |
| nodeFailed_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 preempted = 17; |
| private int preempted_ ; |
| /** |
| * <code>optional int32 preempted = 17;</code> |
| */ |
| public boolean hasPreempted() { |
| return ((bitField0_ & 0x00010000) == 0x00010000); |
| } |
| /** |
| * <code>optional int32 preempted = 17;</code> |
| */ |
| public int getPreempted() { |
| return preempted_; |
| } |
| /** |
| * <code>optional int32 preempted = 17;</code> |
| */ |
| public Builder setPreempted(int value) { |
| bitField0_ |= 0x00010000; |
| preempted_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 preempted = 17;</code> |
| */ |
| public Builder clearPreempted() { |
| bitField0_ = (bitField0_ & ~0x00010000); |
| preempted_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 pendingAntiAffineRequestCount = 18; |
| private int pendingAntiAffineRequestCount_ ; |
| /** |
| * <code>optional int32 pendingAntiAffineRequestCount = 18;</code> |
| */ |
| public boolean hasPendingAntiAffineRequestCount() { |
| return ((bitField0_ & 0x00020000) == 0x00020000); |
| } |
| /** |
| * <code>optional int32 pendingAntiAffineRequestCount = 18;</code> |
| */ |
| public int getPendingAntiAffineRequestCount() { |
| return pendingAntiAffineRequestCount_; |
| } |
| /** |
| * <code>optional int32 pendingAntiAffineRequestCount = 18;</code> |
| */ |
| public Builder setPendingAntiAffineRequestCount(int value) { |
| bitField0_ |= 0x00020000; |
| pendingAntiAffineRequestCount_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 pendingAntiAffineRequestCount = 18;</code> |
| */ |
| public Builder clearPendingAntiAffineRequestCount() { |
| bitField0_ = (bitField0_ & ~0x00020000); |
| pendingAntiAffineRequestCount_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // optional bool isAARequestOutstanding = 19; |
| private boolean isAARequestOutstanding_ ; |
| /** |
| * <code>optional bool isAARequestOutstanding = 19;</code> |
| */ |
| public boolean hasIsAARequestOutstanding() { |
| return ((bitField0_ & 0x00040000) == 0x00040000); |
| } |
| /** |
| * <code>optional bool isAARequestOutstanding = 19;</code> |
| */ |
| public boolean getIsAARequestOutstanding() { |
| return isAARequestOutstanding_; |
| } |
| /** |
| * <code>optional bool isAARequestOutstanding = 19;</code> |
| */ |
| public Builder setIsAARequestOutstanding(boolean value) { |
| bitField0_ |= 0x00040000; |
| isAARequestOutstanding_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional bool isAARequestOutstanding = 19;</code> |
| */ |
| public Builder clearIsAARequestOutstanding() { |
| bitField0_ = (bitField0_ & ~0x00040000); |
| isAARequestOutstanding_ = false; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.ComponentInformationProto) |
| } |
| |
| static { |
| defaultInstance = new ComponentInformationProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.ComponentInformationProto) |
| } |
| |
| public interface ContainerInformationProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // optional string containerId = 1; |
| /** |
| * <code>optional string containerId = 1;</code> |
| */ |
| boolean hasContainerId(); |
| /** |
| * <code>optional string containerId = 1;</code> |
| */ |
| java.lang.String getContainerId(); |
| /** |
| * <code>optional string containerId = 1;</code> |
| */ |
| com.google.protobuf.ByteString |
| getContainerIdBytes(); |
| |
| // optional string component = 2; |
| /** |
| * <code>optional string component = 2;</code> |
| */ |
| boolean hasComponent(); |
| /** |
| * <code>optional string component = 2;</code> |
| */ |
| java.lang.String getComponent(); |
| /** |
| * <code>optional string component = 2;</code> |
| */ |
| com.google.protobuf.ByteString |
| getComponentBytes(); |
| |
| // optional bool released = 3; |
| /** |
| * <code>optional bool released = 3;</code> |
| */ |
| boolean hasReleased(); |
| /** |
| * <code>optional bool released = 3;</code> |
| */ |
| boolean getReleased(); |
| |
| // optional int32 state = 4; |
| /** |
| * <code>optional int32 state = 4;</code> |
| */ |
| boolean hasState(); |
| /** |
| * <code>optional int32 state = 4;</code> |
| */ |
| int getState(); |
| |
| // optional int32 exitCode = 5; |
| /** |
| * <code>optional int32 exitCode = 5;</code> |
| */ |
| boolean hasExitCode(); |
| /** |
| * <code>optional int32 exitCode = 5;</code> |
| */ |
| int getExitCode(); |
| |
| // optional string diagnostics = 6; |
| /** |
| * <code>optional string diagnostics = 6;</code> |
| */ |
| boolean hasDiagnostics(); |
| /** |
| * <code>optional string diagnostics = 6;</code> |
| */ |
| java.lang.String getDiagnostics(); |
| /** |
| * <code>optional string diagnostics = 6;</code> |
| */ |
| com.google.protobuf.ByteString |
| getDiagnosticsBytes(); |
| |
| // optional int64 createTime = 7; |
| /** |
| * <code>optional int64 createTime = 7;</code> |
| */ |
| boolean hasCreateTime(); |
| /** |
| * <code>optional int64 createTime = 7;</code> |
| */ |
| long getCreateTime(); |
| |
| // optional int64 startTime = 8; |
| /** |
| * <code>optional int64 startTime = 8;</code> |
| */ |
| boolean hasStartTime(); |
| /** |
| * <code>optional int64 startTime = 8;</code> |
| */ |
| long getStartTime(); |
| |
| // repeated string output = 9; |
| /** |
| * <code>repeated string output = 9;</code> |
| */ |
| java.util.List<java.lang.String> |
| getOutputList(); |
| /** |
| * <code>repeated string output = 9;</code> |
| */ |
| int getOutputCount(); |
| /** |
| * <code>repeated string output = 9;</code> |
| */ |
| java.lang.String getOutput(int index); |
| /** |
| * <code>repeated string output = 9;</code> |
| */ |
| com.google.protobuf.ByteString |
| getOutputBytes(int index); |
| |
| // optional string host = 10; |
| /** |
| * <code>optional string host = 10;</code> |
| */ |
| boolean hasHost(); |
| /** |
| * <code>optional string host = 10;</code> |
| */ |
| java.lang.String getHost(); |
| /** |
| * <code>optional string host = 10;</code> |
| */ |
| com.google.protobuf.ByteString |
| getHostBytes(); |
| |
| // optional string hostURL = 11; |
| /** |
| * <code>optional string hostURL = 11;</code> |
| */ |
| boolean hasHostURL(); |
| /** |
| * <code>optional string hostURL = 11;</code> |
| */ |
| java.lang.String getHostURL(); |
| /** |
| * <code>optional string hostURL = 11;</code> |
| */ |
| com.google.protobuf.ByteString |
| getHostURLBytes(); |
| |
| // optional string placement = 12; |
| /** |
| * <code>optional string placement = 12;</code> |
| */ |
| boolean hasPlacement(); |
| /** |
| * <code>optional string placement = 12;</code> |
| */ |
| java.lang.String getPlacement(); |
| /** |
| * <code>optional string placement = 12;</code> |
| */ |
| com.google.protobuf.ByteString |
| getPlacementBytes(); |
| |
| // optional string appVersion = 13; |
| /** |
| * <code>optional string appVersion = 13;</code> |
| */ |
| boolean hasAppVersion(); |
| /** |
| * <code>optional string appVersion = 13;</code> |
| */ |
| java.lang.String getAppVersion(); |
| /** |
| * <code>optional string appVersion = 13;</code> |
| */ |
| com.google.protobuf.ByteString |
| getAppVersionBytes(); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.ContainerInformationProto} |
| * |
| * <pre> |
| * |
| * see org.apache.slider.api.types.ContainerInformation |
| * </pre> |
| */ |
| public static final class ContainerInformationProto extends |
| com.google.protobuf.GeneratedMessage |
| implements ContainerInformationProtoOrBuilder { |
| // Use ContainerInformationProto.newBuilder() to construct. |
| private ContainerInformationProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private ContainerInformationProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final ContainerInformationProto defaultInstance; |
| public static ContainerInformationProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public ContainerInformationProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private ContainerInformationProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| containerId_ = input.readBytes(); |
| break; |
| } |
| case 18: { |
| bitField0_ |= 0x00000002; |
| component_ = input.readBytes(); |
| break; |
| } |
| case 24: { |
| bitField0_ |= 0x00000004; |
| released_ = input.readBool(); |
| break; |
| } |
| case 32: { |
| bitField0_ |= 0x00000008; |
| state_ = input.readInt32(); |
| break; |
| } |
| case 40: { |
| bitField0_ |= 0x00000010; |
| exitCode_ = input.readInt32(); |
| break; |
| } |
| case 50: { |
| bitField0_ |= 0x00000020; |
| diagnostics_ = input.readBytes(); |
| break; |
| } |
| case 56: { |
| bitField0_ |= 0x00000040; |
| createTime_ = input.readInt64(); |
| break; |
| } |
| case 64: { |
| bitField0_ |= 0x00000080; |
| startTime_ = input.readInt64(); |
| break; |
| } |
| case 74: { |
| if (!((mutable_bitField0_ & 0x00000100) == 0x00000100)) { |
| output_ = new com.google.protobuf.LazyStringArrayList(); |
| mutable_bitField0_ |= 0x00000100; |
| } |
| output_.add(input.readBytes()); |
| break; |
| } |
| case 82: { |
| bitField0_ |= 0x00000100; |
| host_ = input.readBytes(); |
| break; |
| } |
| case 90: { |
| bitField0_ |= 0x00000200; |
| hostURL_ = input.readBytes(); |
| break; |
| } |
| case 98: { |
| bitField0_ |= 0x00000400; |
| placement_ = input.readBytes(); |
| break; |
| } |
| case 106: { |
| bitField0_ |= 0x00000800; |
| appVersion_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| if (((mutable_bitField0_ & 0x00000100) == 0x00000100)) { |
| output_ = new com.google.protobuf.UnmodifiableLazyStringList(output_); |
| } |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ContainerInformationProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ContainerInformationProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.ContainerInformationProto.class, org.apache.slider.api.proto.Messages.ContainerInformationProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<ContainerInformationProto> PARSER = |
| new com.google.protobuf.AbstractParser<ContainerInformationProto>() { |
| public ContainerInformationProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new ContainerInformationProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<ContainerInformationProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // optional string containerId = 1; |
| public static final int CONTAINERID_FIELD_NUMBER = 1; |
| private java.lang.Object containerId_; |
| /** |
| * <code>optional string containerId = 1;</code> |
| */ |
| public boolean hasContainerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>optional string containerId = 1;</code> |
| */ |
| public java.lang.String getContainerId() { |
| java.lang.Object ref = containerId_; |
| 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()) { |
| containerId_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>optional string containerId = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getContainerIdBytes() { |
| java.lang.Object ref = containerId_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| containerId_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional string component = 2; |
| public static final int COMPONENT_FIELD_NUMBER = 2; |
| private java.lang.Object component_; |
| /** |
| * <code>optional string component = 2;</code> |
| */ |
| public boolean hasComponent() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>optional string component = 2;</code> |
| */ |
| public java.lang.String getComponent() { |
| java.lang.Object ref = component_; |
| 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()) { |
| component_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>optional string component = 2;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getComponentBytes() { |
| java.lang.Object ref = component_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| component_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional bool released = 3; |
| public static final int RELEASED_FIELD_NUMBER = 3; |
| private boolean released_; |
| /** |
| * <code>optional bool released = 3;</code> |
| */ |
| public boolean hasReleased() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>optional bool released = 3;</code> |
| */ |
| public boolean getReleased() { |
| return released_; |
| } |
| |
| // optional int32 state = 4; |
| public static final int STATE_FIELD_NUMBER = 4; |
| private int state_; |
| /** |
| * <code>optional int32 state = 4;</code> |
| */ |
| public boolean hasState() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| /** |
| * <code>optional int32 state = 4;</code> |
| */ |
| public int getState() { |
| return state_; |
| } |
| |
| // optional int32 exitCode = 5; |
| public static final int EXITCODE_FIELD_NUMBER = 5; |
| private int exitCode_; |
| /** |
| * <code>optional int32 exitCode = 5;</code> |
| */ |
| public boolean hasExitCode() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| /** |
| * <code>optional int32 exitCode = 5;</code> |
| */ |
| public int getExitCode() { |
| return exitCode_; |
| } |
| |
| // optional string diagnostics = 6; |
| public static final int DIAGNOSTICS_FIELD_NUMBER = 6; |
| private java.lang.Object diagnostics_; |
| /** |
| * <code>optional string diagnostics = 6;</code> |
| */ |
| public boolean hasDiagnostics() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| /** |
| * <code>optional string diagnostics = 6;</code> |
| */ |
| public java.lang.String getDiagnostics() { |
| java.lang.Object ref = diagnostics_; |
| 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()) { |
| diagnostics_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>optional string diagnostics = 6;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getDiagnosticsBytes() { |
| java.lang.Object ref = diagnostics_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| diagnostics_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional int64 createTime = 7; |
| public static final int CREATETIME_FIELD_NUMBER = 7; |
| private long createTime_; |
| /** |
| * <code>optional int64 createTime = 7;</code> |
| */ |
| public boolean hasCreateTime() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| /** |
| * <code>optional int64 createTime = 7;</code> |
| */ |
| public long getCreateTime() { |
| return createTime_; |
| } |
| |
| // optional int64 startTime = 8; |
| public static final int STARTTIME_FIELD_NUMBER = 8; |
| private long startTime_; |
| /** |
| * <code>optional int64 startTime = 8;</code> |
| */ |
| public boolean hasStartTime() { |
| return ((bitField0_ & 0x00000080) == 0x00000080); |
| } |
| /** |
| * <code>optional int64 startTime = 8;</code> |
| */ |
| public long getStartTime() { |
| return startTime_; |
| } |
| |
| // repeated string output = 9; |
| public static final int OUTPUT_FIELD_NUMBER = 9; |
| private com.google.protobuf.LazyStringList output_; |
| /** |
| * <code>repeated string output = 9;</code> |
| */ |
| public java.util.List<java.lang.String> |
| getOutputList() { |
| return output_; |
| } |
| /** |
| * <code>repeated string output = 9;</code> |
| */ |
| public int getOutputCount() { |
| return output_.size(); |
| } |
| /** |
| * <code>repeated string output = 9;</code> |
| */ |
| public java.lang.String getOutput(int index) { |
| return output_.get(index); |
| } |
| /** |
| * <code>repeated string output = 9;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getOutputBytes(int index) { |
| return output_.getByteString(index); |
| } |
| |
| // optional string host = 10; |
| public static final int HOST_FIELD_NUMBER = 10; |
| private java.lang.Object host_; |
| /** |
| * <code>optional string host = 10;</code> |
| */ |
| public boolean hasHost() { |
| return ((bitField0_ & 0x00000100) == 0x00000100); |
| } |
| /** |
| * <code>optional string host = 10;</code> |
| */ |
| public java.lang.String getHost() { |
| java.lang.Object ref = host_; |
| 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()) { |
| host_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>optional string host = 10;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getHostBytes() { |
| java.lang.Object ref = host_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| host_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional string hostURL = 11; |
| public static final int HOSTURL_FIELD_NUMBER = 11; |
| private java.lang.Object hostURL_; |
| /** |
| * <code>optional string hostURL = 11;</code> |
| */ |
| public boolean hasHostURL() { |
| return ((bitField0_ & 0x00000200) == 0x00000200); |
| } |
| /** |
| * <code>optional string hostURL = 11;</code> |
| */ |
| public java.lang.String getHostURL() { |
| java.lang.Object ref = hostURL_; |
| 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()) { |
| hostURL_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>optional string hostURL = 11;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getHostURLBytes() { |
| java.lang.Object ref = hostURL_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| hostURL_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional string placement = 12; |
| public static final int PLACEMENT_FIELD_NUMBER = 12; |
| private java.lang.Object placement_; |
| /** |
| * <code>optional string placement = 12;</code> |
| */ |
| public boolean hasPlacement() { |
| return ((bitField0_ & 0x00000400) == 0x00000400); |
| } |
| /** |
| * <code>optional string placement = 12;</code> |
| */ |
| public java.lang.String getPlacement() { |
| java.lang.Object ref = placement_; |
| 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()) { |
| placement_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>optional string placement = 12;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getPlacementBytes() { |
| java.lang.Object ref = placement_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| placement_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional string appVersion = 13; |
| public static final int APPVERSION_FIELD_NUMBER = 13; |
| private java.lang.Object appVersion_; |
| /** |
| * <code>optional string appVersion = 13;</code> |
| */ |
| public boolean hasAppVersion() { |
| return ((bitField0_ & 0x00000800) == 0x00000800); |
| } |
| /** |
| * <code>optional string appVersion = 13;</code> |
| */ |
| public java.lang.String getAppVersion() { |
| java.lang.Object ref = appVersion_; |
| 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()) { |
| appVersion_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>optional string appVersion = 13;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getAppVersionBytes() { |
| java.lang.Object ref = appVersion_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| appVersion_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| private void initFields() { |
| containerId_ = ""; |
| component_ = ""; |
| released_ = false; |
| state_ = 0; |
| exitCode_ = 0; |
| diagnostics_ = ""; |
| createTime_ = 0L; |
| startTime_ = 0L; |
| output_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| host_ = ""; |
| hostURL_ = ""; |
| placement_ = ""; |
| appVersion_ = ""; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getContainerIdBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeBytes(2, getComponentBytes()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeBool(3, released_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeInt32(4, state_); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| output.writeInt32(5, exitCode_); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| output.writeBytes(6, getDiagnosticsBytes()); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| output.writeInt64(7, createTime_); |
| } |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| output.writeInt64(8, startTime_); |
| } |
| for (int i = 0; i < output_.size(); i++) { |
| output.writeBytes(9, output_.getByteString(i)); |
| } |
| if (((bitField0_ & 0x00000100) == 0x00000100)) { |
| output.writeBytes(10, getHostBytes()); |
| } |
| if (((bitField0_ & 0x00000200) == 0x00000200)) { |
| output.writeBytes(11, getHostURLBytes()); |
| } |
| if (((bitField0_ & 0x00000400) == 0x00000400)) { |
| output.writeBytes(12, getPlacementBytes()); |
| } |
| if (((bitField0_ & 0x00000800) == 0x00000800)) { |
| output.writeBytes(13, getAppVersionBytes()); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, getContainerIdBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(2, getComponentBytes()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBoolSize(3, released_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(4, state_); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(5, exitCode_); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(6, getDiagnosticsBytes()); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt64Size(7, createTime_); |
| } |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt64Size(8, startTime_); |
| } |
| { |
| int dataSize = 0; |
| for (int i = 0; i < output_.size(); i++) { |
| dataSize += com.google.protobuf.CodedOutputStream |
| .computeBytesSizeNoTag(output_.getByteString(i)); |
| } |
| size += dataSize; |
| size += 1 * getOutputList().size(); |
| } |
| if (((bitField0_ & 0x00000100) == 0x00000100)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(10, getHostBytes()); |
| } |
| if (((bitField0_ & 0x00000200) == 0x00000200)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(11, getHostURLBytes()); |
| } |
| if (((bitField0_ & 0x00000400) == 0x00000400)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(12, getPlacementBytes()); |
| } |
| if (((bitField0_ & 0x00000800) == 0x00000800)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(13, getAppVersionBytes()); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.ContainerInformationProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.ContainerInformationProto other = (org.apache.slider.api.proto.Messages.ContainerInformationProto) obj; |
| |
| boolean result = true; |
| result = result && (hasContainerId() == other.hasContainerId()); |
| if (hasContainerId()) { |
| result = result && getContainerId() |
| .equals(other.getContainerId()); |
| } |
| result = result && (hasComponent() == other.hasComponent()); |
| if (hasComponent()) { |
| result = result && getComponent() |
| .equals(other.getComponent()); |
| } |
| result = result && (hasReleased() == other.hasReleased()); |
| if (hasReleased()) { |
| result = result && (getReleased() |
| == other.getReleased()); |
| } |
| result = result && (hasState() == other.hasState()); |
| if (hasState()) { |
| result = result && (getState() |
| == other.getState()); |
| } |
| result = result && (hasExitCode() == other.hasExitCode()); |
| if (hasExitCode()) { |
| result = result && (getExitCode() |
| == other.getExitCode()); |
| } |
| result = result && (hasDiagnostics() == other.hasDiagnostics()); |
| if (hasDiagnostics()) { |
| result = result && getDiagnostics() |
| .equals(other.getDiagnostics()); |
| } |
| result = result && (hasCreateTime() == other.hasCreateTime()); |
| if (hasCreateTime()) { |
| result = result && (getCreateTime() |
| == other.getCreateTime()); |
| } |
| result = result && (hasStartTime() == other.hasStartTime()); |
| if (hasStartTime()) { |
| result = result && (getStartTime() |
| == other.getStartTime()); |
| } |
| result = result && getOutputList() |
| .equals(other.getOutputList()); |
| result = result && (hasHost() == other.hasHost()); |
| if (hasHost()) { |
| result = result && getHost() |
| .equals(other.getHost()); |
| } |
| result = result && (hasHostURL() == other.hasHostURL()); |
| if (hasHostURL()) { |
| result = result && getHostURL() |
| .equals(other.getHostURL()); |
| } |
| result = result && (hasPlacement() == other.hasPlacement()); |
| if (hasPlacement()) { |
| result = result && getPlacement() |
| .equals(other.getPlacement()); |
| } |
| result = result && (hasAppVersion() == other.hasAppVersion()); |
| if (hasAppVersion()) { |
| result = result && getAppVersion() |
| .equals(other.getAppVersion()); |
| } |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasContainerId()) { |
| hash = (37 * hash) + CONTAINERID_FIELD_NUMBER; |
| hash = (53 * hash) + getContainerId().hashCode(); |
| } |
| if (hasComponent()) { |
| hash = (37 * hash) + COMPONENT_FIELD_NUMBER; |
| hash = (53 * hash) + getComponent().hashCode(); |
| } |
| if (hasReleased()) { |
| hash = (37 * hash) + RELEASED_FIELD_NUMBER; |
| hash = (53 * hash) + hashBoolean(getReleased()); |
| } |
| if (hasState()) { |
| hash = (37 * hash) + STATE_FIELD_NUMBER; |
| hash = (53 * hash) + getState(); |
| } |
| if (hasExitCode()) { |
| hash = (37 * hash) + EXITCODE_FIELD_NUMBER; |
| hash = (53 * hash) + getExitCode(); |
| } |
| if (hasDiagnostics()) { |
| hash = (37 * hash) + DIAGNOSTICS_FIELD_NUMBER; |
| hash = (53 * hash) + getDiagnostics().hashCode(); |
| } |
| if (hasCreateTime()) { |
| hash = (37 * hash) + CREATETIME_FIELD_NUMBER; |
| hash = (53 * hash) + hashLong(getCreateTime()); |
| } |
| if (hasStartTime()) { |
| hash = (37 * hash) + STARTTIME_FIELD_NUMBER; |
| hash = (53 * hash) + hashLong(getStartTime()); |
| } |
| if (getOutputCount() > 0) { |
| hash = (37 * hash) + OUTPUT_FIELD_NUMBER; |
| hash = (53 * hash) + getOutputList().hashCode(); |
| } |
| if (hasHost()) { |
| hash = (37 * hash) + HOST_FIELD_NUMBER; |
| hash = (53 * hash) + getHost().hashCode(); |
| } |
| if (hasHostURL()) { |
| hash = (37 * hash) + HOSTURL_FIELD_NUMBER; |
| hash = (53 * hash) + getHostURL().hashCode(); |
| } |
| if (hasPlacement()) { |
| hash = (37 * hash) + PLACEMENT_FIELD_NUMBER; |
| hash = (53 * hash) + getPlacement().hashCode(); |
| } |
| if (hasAppVersion()) { |
| hash = (37 * hash) + APPVERSION_FIELD_NUMBER; |
| hash = (53 * hash) + getAppVersion().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.ContainerInformationProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.ContainerInformationProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.ContainerInformationProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.ContainerInformationProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.ContainerInformationProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.ContainerInformationProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.ContainerInformationProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.ContainerInformationProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.ContainerInformationProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.ContainerInformationProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.ContainerInformationProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.ContainerInformationProto} |
| * |
| * <pre> |
| * |
| * see org.apache.slider.api.types.ContainerInformation |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.ContainerInformationProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ContainerInformationProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ContainerInformationProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.ContainerInformationProto.class, org.apache.slider.api.proto.Messages.ContainerInformationProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.ContainerInformationProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| containerId_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| component_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| released_ = false; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| state_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000008); |
| exitCode_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000010); |
| diagnostics_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000020); |
| createTime_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000040); |
| startTime_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000080); |
| output_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000100); |
| host_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000200); |
| hostURL_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000400); |
| placement_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000800); |
| appVersion_ = ""; |
| bitField0_ = (bitField0_ & ~0x00001000); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_ContainerInformationProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.ContainerInformationProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.ContainerInformationProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.ContainerInformationProto build() { |
| org.apache.slider.api.proto.Messages.ContainerInformationProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.ContainerInformationProto buildPartial() { |
| org.apache.slider.api.proto.Messages.ContainerInformationProto result = new org.apache.slider.api.proto.Messages.ContainerInformationProto(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.containerId_ = containerId_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.component_ = component_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.released_ = released_; |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| result.state_ = state_; |
| if (((from_bitField0_ & 0x00000010) == 0x00000010)) { |
| to_bitField0_ |= 0x00000010; |
| } |
| result.exitCode_ = exitCode_; |
| if (((from_bitField0_ & 0x00000020) == 0x00000020)) { |
| to_bitField0_ |= 0x00000020; |
| } |
| result.diagnostics_ = diagnostics_; |
| if (((from_bitField0_ & 0x00000040) == 0x00000040)) { |
| to_bitField0_ |= 0x00000040; |
| } |
| result.createTime_ = createTime_; |
| if (((from_bitField0_ & 0x00000080) == 0x00000080)) { |
| to_bitField0_ |= 0x00000080; |
| } |
| result.startTime_ = startTime_; |
| if (((bitField0_ & 0x00000100) == 0x00000100)) { |
| output_ = new com.google.protobuf.UnmodifiableLazyStringList( |
| output_); |
| bitField0_ = (bitField0_ & ~0x00000100); |
| } |
| result.output_ = output_; |
| if (((from_bitField0_ & 0x00000200) == 0x00000200)) { |
| to_bitField0_ |= 0x00000100; |
| } |
| result.host_ = host_; |
| if (((from_bitField0_ & 0x00000400) == 0x00000400)) { |
| to_bitField0_ |= 0x00000200; |
| } |
| result.hostURL_ = hostURL_; |
| if (((from_bitField0_ & 0x00000800) == 0x00000800)) { |
| to_bitField0_ |= 0x00000400; |
| } |
| result.placement_ = placement_; |
| if (((from_bitField0_ & 0x00001000) == 0x00001000)) { |
| to_bitField0_ |= 0x00000800; |
| } |
| result.appVersion_ = appVersion_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.ContainerInformationProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.ContainerInformationProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.ContainerInformationProto other) { |
| if (other == org.apache.slider.api.proto.Messages.ContainerInformationProto.getDefaultInstance()) return this; |
| if (other.hasContainerId()) { |
| bitField0_ |= 0x00000001; |
| containerId_ = other.containerId_; |
| onChanged(); |
| } |
| if (other.hasComponent()) { |
| bitField0_ |= 0x00000002; |
| component_ = other.component_; |
| onChanged(); |
| } |
| if (other.hasReleased()) { |
| setReleased(other.getReleased()); |
| } |
| if (other.hasState()) { |
| setState(other.getState()); |
| } |
| if (other.hasExitCode()) { |
| setExitCode(other.getExitCode()); |
| } |
| if (other.hasDiagnostics()) { |
| bitField0_ |= 0x00000020; |
| diagnostics_ = other.diagnostics_; |
| onChanged(); |
| } |
| if (other.hasCreateTime()) { |
| setCreateTime(other.getCreateTime()); |
| } |
| if (other.hasStartTime()) { |
| setStartTime(other.getStartTime()); |
| } |
| if (!other.output_.isEmpty()) { |
| if (output_.isEmpty()) { |
| output_ = other.output_; |
| bitField0_ = (bitField0_ & ~0x00000100); |
| } else { |
| ensureOutputIsMutable(); |
| output_.addAll(other.output_); |
| } |
| onChanged(); |
| } |
| if (other.hasHost()) { |
| bitField0_ |= 0x00000200; |
| host_ = other.host_; |
| onChanged(); |
| } |
| if (other.hasHostURL()) { |
| bitField0_ |= 0x00000400; |
| hostURL_ = other.hostURL_; |
| onChanged(); |
| } |
| if (other.hasPlacement()) { |
| bitField0_ |= 0x00000800; |
| placement_ = other.placement_; |
| onChanged(); |
| } |
| if (other.hasAppVersion()) { |
| bitField0_ |= 0x00001000; |
| appVersion_ = other.appVersion_; |
| onChanged(); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.ContainerInformationProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.ContainerInformationProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // optional string containerId = 1; |
| private java.lang.Object containerId_ = ""; |
| /** |
| * <code>optional string containerId = 1;</code> |
| */ |
| public boolean hasContainerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>optional string containerId = 1;</code> |
| */ |
| public java.lang.String getContainerId() { |
| java.lang.Object ref = containerId_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| containerId_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>optional string containerId = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getContainerIdBytes() { |
| java.lang.Object ref = containerId_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| containerId_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>optional string containerId = 1;</code> |
| */ |
| public Builder setContainerId( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| containerId_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string containerId = 1;</code> |
| */ |
| public Builder clearContainerId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| containerId_ = getDefaultInstance().getContainerId(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string containerId = 1;</code> |
| */ |
| public Builder setContainerIdBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| containerId_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // optional string component = 2; |
| private java.lang.Object component_ = ""; |
| /** |
| * <code>optional string component = 2;</code> |
| */ |
| public boolean hasComponent() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>optional string component = 2;</code> |
| */ |
| public java.lang.String getComponent() { |
| java.lang.Object ref = component_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| component_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>optional string component = 2;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getComponentBytes() { |
| java.lang.Object ref = component_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| component_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>optional string component = 2;</code> |
| */ |
| public Builder setComponent( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| component_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string component = 2;</code> |
| */ |
| public Builder clearComponent() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| component_ = getDefaultInstance().getComponent(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string component = 2;</code> |
| */ |
| public Builder setComponentBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| component_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // optional bool released = 3; |
| private boolean released_ ; |
| /** |
| * <code>optional bool released = 3;</code> |
| */ |
| public boolean hasReleased() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>optional bool released = 3;</code> |
| */ |
| public boolean getReleased() { |
| return released_; |
| } |
| /** |
| * <code>optional bool released = 3;</code> |
| */ |
| public Builder setReleased(boolean value) { |
| bitField0_ |= 0x00000004; |
| released_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional bool released = 3;</code> |
| */ |
| public Builder clearReleased() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| released_ = false; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 state = 4; |
| private int state_ ; |
| /** |
| * <code>optional int32 state = 4;</code> |
| */ |
| public boolean hasState() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| /** |
| * <code>optional int32 state = 4;</code> |
| */ |
| public int getState() { |
| return state_; |
| } |
| /** |
| * <code>optional int32 state = 4;</code> |
| */ |
| public Builder setState(int value) { |
| bitField0_ |= 0x00000008; |
| state_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 state = 4;</code> |
| */ |
| public Builder clearState() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| state_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int32 exitCode = 5; |
| private int exitCode_ ; |
| /** |
| * <code>optional int32 exitCode = 5;</code> |
| */ |
| public boolean hasExitCode() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| /** |
| * <code>optional int32 exitCode = 5;</code> |
| */ |
| public int getExitCode() { |
| return exitCode_; |
| } |
| /** |
| * <code>optional int32 exitCode = 5;</code> |
| */ |
| public Builder setExitCode(int value) { |
| bitField0_ |= 0x00000010; |
| exitCode_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int32 exitCode = 5;</code> |
| */ |
| public Builder clearExitCode() { |
| bitField0_ = (bitField0_ & ~0x00000010); |
| exitCode_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // optional string diagnostics = 6; |
| private java.lang.Object diagnostics_ = ""; |
| /** |
| * <code>optional string diagnostics = 6;</code> |
| */ |
| public boolean hasDiagnostics() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| /** |
| * <code>optional string diagnostics = 6;</code> |
| */ |
| public java.lang.String getDiagnostics() { |
| java.lang.Object ref = diagnostics_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| diagnostics_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>optional string diagnostics = 6;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getDiagnosticsBytes() { |
| java.lang.Object ref = diagnostics_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| diagnostics_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>optional string diagnostics = 6;</code> |
| */ |
| public Builder setDiagnostics( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000020; |
| diagnostics_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string diagnostics = 6;</code> |
| */ |
| public Builder clearDiagnostics() { |
| bitField0_ = (bitField0_ & ~0x00000020); |
| diagnostics_ = getDefaultInstance().getDiagnostics(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string diagnostics = 6;</code> |
| */ |
| public Builder setDiagnosticsBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000020; |
| diagnostics_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int64 createTime = 7; |
| private long createTime_ ; |
| /** |
| * <code>optional int64 createTime = 7;</code> |
| */ |
| public boolean hasCreateTime() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| /** |
| * <code>optional int64 createTime = 7;</code> |
| */ |
| public long getCreateTime() { |
| return createTime_; |
| } |
| /** |
| * <code>optional int64 createTime = 7;</code> |
| */ |
| public Builder setCreateTime(long value) { |
| bitField0_ |= 0x00000040; |
| createTime_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int64 createTime = 7;</code> |
| */ |
| public Builder clearCreateTime() { |
| bitField0_ = (bitField0_ & ~0x00000040); |
| createTime_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int64 startTime = 8; |
| private long startTime_ ; |
| /** |
| * <code>optional int64 startTime = 8;</code> |
| */ |
| public boolean hasStartTime() { |
| return ((bitField0_ & 0x00000080) == 0x00000080); |
| } |
| /** |
| * <code>optional int64 startTime = 8;</code> |
| */ |
| public long getStartTime() { |
| return startTime_; |
| } |
| /** |
| * <code>optional int64 startTime = 8;</code> |
| */ |
| public Builder setStartTime(long value) { |
| bitField0_ |= 0x00000080; |
| startTime_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int64 startTime = 8;</code> |
| */ |
| public Builder clearStartTime() { |
| bitField0_ = (bitField0_ & ~0x00000080); |
| startTime_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| // repeated string output = 9; |
| private com.google.protobuf.LazyStringList output_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| private void ensureOutputIsMutable() { |
| if (!((bitField0_ & 0x00000100) == 0x00000100)) { |
| output_ = new com.google.protobuf.LazyStringArrayList(output_); |
| bitField0_ |= 0x00000100; |
| } |
| } |
| /** |
| * <code>repeated string output = 9;</code> |
| */ |
| public java.util.List<java.lang.String> |
| getOutputList() { |
| return java.util.Collections.unmodifiableList(output_); |
| } |
| /** |
| * <code>repeated string output = 9;</code> |
| */ |
| public int getOutputCount() { |
| return output_.size(); |
| } |
| /** |
| * <code>repeated string output = 9;</code> |
| */ |
| public java.lang.String getOutput(int index) { |
| return output_.get(index); |
| } |
| /** |
| * <code>repeated string output = 9;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getOutputBytes(int index) { |
| return output_.getByteString(index); |
| } |
| /** |
| * <code>repeated string output = 9;</code> |
| */ |
| public Builder setOutput( |
| int index, java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureOutputIsMutable(); |
| output_.set(index, value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string output = 9;</code> |
| */ |
| public Builder addOutput( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureOutputIsMutable(); |
| output_.add(value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string output = 9;</code> |
| */ |
| public Builder addAllOutput( |
| java.lang.Iterable<java.lang.String> values) { |
| ensureOutputIsMutable(); |
| super.addAll(values, output_); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string output = 9;</code> |
| */ |
| public Builder clearOutput() { |
| output_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000100); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string output = 9;</code> |
| */ |
| public Builder addOutputBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureOutputIsMutable(); |
| output_.add(value); |
| onChanged(); |
| return this; |
| } |
| |
| // optional string host = 10; |
| private java.lang.Object host_ = ""; |
| /** |
| * <code>optional string host = 10;</code> |
| */ |
| public boolean hasHost() { |
| return ((bitField0_ & 0x00000200) == 0x00000200); |
| } |
| /** |
| * <code>optional string host = 10;</code> |
| */ |
| public java.lang.String getHost() { |
| java.lang.Object ref = host_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| host_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>optional string host = 10;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getHostBytes() { |
| java.lang.Object ref = host_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| host_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>optional string host = 10;</code> |
| */ |
| public Builder setHost( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000200; |
| host_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string host = 10;</code> |
| */ |
| public Builder clearHost() { |
| bitField0_ = (bitField0_ & ~0x00000200); |
| host_ = getDefaultInstance().getHost(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string host = 10;</code> |
| */ |
| public Builder setHostBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000200; |
| host_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // optional string hostURL = 11; |
| private java.lang.Object hostURL_ = ""; |
| /** |
| * <code>optional string hostURL = 11;</code> |
| */ |
| public boolean hasHostURL() { |
| return ((bitField0_ & 0x00000400) == 0x00000400); |
| } |
| /** |
| * <code>optional string hostURL = 11;</code> |
| */ |
| public java.lang.String getHostURL() { |
| java.lang.Object ref = hostURL_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| hostURL_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>optional string hostURL = 11;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getHostURLBytes() { |
| java.lang.Object ref = hostURL_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| hostURL_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>optional string hostURL = 11;</code> |
| */ |
| public Builder setHostURL( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000400; |
| hostURL_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string hostURL = 11;</code> |
| */ |
| public Builder clearHostURL() { |
| bitField0_ = (bitField0_ & ~0x00000400); |
| hostURL_ = getDefaultInstance().getHostURL(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string hostURL = 11;</code> |
| */ |
| public Builder setHostURLBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000400; |
| hostURL_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // optional string placement = 12; |
| private java.lang.Object placement_ = ""; |
| /** |
| * <code>optional string placement = 12;</code> |
| */ |
| public boolean hasPlacement() { |
| return ((bitField0_ & 0x00000800) == 0x00000800); |
| } |
| /** |
| * <code>optional string placement = 12;</code> |
| */ |
| public java.lang.String getPlacement() { |
| java.lang.Object ref = placement_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| placement_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>optional string placement = 12;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getPlacementBytes() { |
| java.lang.Object ref = placement_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| placement_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>optional string placement = 12;</code> |
| */ |
| public Builder setPlacement( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000800; |
| placement_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string placement = 12;</code> |
| */ |
| public Builder clearPlacement() { |
| bitField0_ = (bitField0_ & ~0x00000800); |
| placement_ = getDefaultInstance().getPlacement(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string placement = 12;</code> |
| */ |
| public Builder setPlacementBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000800; |
| placement_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // optional string appVersion = 13; |
| private java.lang.Object appVersion_ = ""; |
| /** |
| * <code>optional string appVersion = 13;</code> |
| */ |
| public boolean hasAppVersion() { |
| return ((bitField0_ & 0x00001000) == 0x00001000); |
| } |
| /** |
| * <code>optional string appVersion = 13;</code> |
| */ |
| public java.lang.String getAppVersion() { |
| java.lang.Object ref = appVersion_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| appVersion_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>optional string appVersion = 13;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getAppVersionBytes() { |
| java.lang.Object ref = appVersion_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| appVersion_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>optional string appVersion = 13;</code> |
| */ |
| public Builder setAppVersion( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00001000; |
| appVersion_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string appVersion = 13;</code> |
| */ |
| public Builder clearAppVersion() { |
| bitField0_ = (bitField0_ & ~0x00001000); |
| appVersion_ = getDefaultInstance().getAppVersion(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string appVersion = 13;</code> |
| */ |
| public Builder setAppVersionBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00001000; |
| appVersion_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.ContainerInformationProto) |
| } |
| |
| static { |
| defaultInstance = new ContainerInformationProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.ContainerInformationProto) |
| } |
| |
| public interface PingInformationProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // optional string text = 1; |
| /** |
| * <code>optional string text = 1;</code> |
| */ |
| boolean hasText(); |
| /** |
| * <code>optional string text = 1;</code> |
| */ |
| java.lang.String getText(); |
| /** |
| * <code>optional string text = 1;</code> |
| */ |
| com.google.protobuf.ByteString |
| getTextBytes(); |
| |
| // optional string verb = 2; |
| /** |
| * <code>optional string verb = 2;</code> |
| */ |
| boolean hasVerb(); |
| /** |
| * <code>optional string verb = 2;</code> |
| */ |
| java.lang.String getVerb(); |
| /** |
| * <code>optional string verb = 2;</code> |
| */ |
| com.google.protobuf.ByteString |
| getVerbBytes(); |
| |
| // optional string body = 3; |
| /** |
| * <code>optional string body = 3;</code> |
| */ |
| boolean hasBody(); |
| /** |
| * <code>optional string body = 3;</code> |
| */ |
| java.lang.String getBody(); |
| /** |
| * <code>optional string body = 3;</code> |
| */ |
| com.google.protobuf.ByteString |
| getBodyBytes(); |
| |
| // optional int64 time = 4; |
| /** |
| * <code>optional int64 time = 4;</code> |
| */ |
| boolean hasTime(); |
| /** |
| * <code>optional int64 time = 4;</code> |
| */ |
| long getTime(); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.PingInformationProto} |
| * |
| * <pre> |
| * |
| * see org.apache.slider.api.types.PingInformation |
| * </pre> |
| */ |
| public static final class PingInformationProto extends |
| com.google.protobuf.GeneratedMessage |
| implements PingInformationProtoOrBuilder { |
| // Use PingInformationProto.newBuilder() to construct. |
| private PingInformationProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private PingInformationProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final PingInformationProto defaultInstance; |
| public static PingInformationProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public PingInformationProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private PingInformationProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| text_ = input.readBytes(); |
| break; |
| } |
| case 18: { |
| bitField0_ |= 0x00000002; |
| verb_ = input.readBytes(); |
| break; |
| } |
| case 26: { |
| bitField0_ |= 0x00000004; |
| body_ = input.readBytes(); |
| break; |
| } |
| case 32: { |
| bitField0_ |= 0x00000008; |
| time_ = input.readInt64(); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_PingInformationProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_PingInformationProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.PingInformationProto.class, org.apache.slider.api.proto.Messages.PingInformationProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<PingInformationProto> PARSER = |
| new com.google.protobuf.AbstractParser<PingInformationProto>() { |
| public PingInformationProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new PingInformationProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<PingInformationProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // optional string text = 1; |
| public static final int TEXT_FIELD_NUMBER = 1; |
| private java.lang.Object text_; |
| /** |
| * <code>optional string text = 1;</code> |
| */ |
| public boolean hasText() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>optional string text = 1;</code> |
| */ |
| public java.lang.String getText() { |
| java.lang.Object ref = text_; |
| 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()) { |
| text_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>optional string text = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getTextBytes() { |
| java.lang.Object ref = text_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| text_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional string verb = 2; |
| public static final int VERB_FIELD_NUMBER = 2; |
| private java.lang.Object verb_; |
| /** |
| * <code>optional string verb = 2;</code> |
| */ |
| public boolean hasVerb() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>optional string verb = 2;</code> |
| */ |
| public java.lang.String getVerb() { |
| java.lang.Object ref = verb_; |
| 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()) { |
| verb_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>optional string verb = 2;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getVerbBytes() { |
| java.lang.Object ref = verb_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| verb_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional string body = 3; |
| public static final int BODY_FIELD_NUMBER = 3; |
| private java.lang.Object body_; |
| /** |
| * <code>optional string body = 3;</code> |
| */ |
| public boolean hasBody() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>optional string body = 3;</code> |
| */ |
| public java.lang.String getBody() { |
| java.lang.Object ref = body_; |
| 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()) { |
| body_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>optional string body = 3;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getBodyBytes() { |
| java.lang.Object ref = body_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| body_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // optional int64 time = 4; |
| public static final int TIME_FIELD_NUMBER = 4; |
| private long time_; |
| /** |
| * <code>optional int64 time = 4;</code> |
| */ |
| public boolean hasTime() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| /** |
| * <code>optional int64 time = 4;</code> |
| */ |
| public long getTime() { |
| return time_; |
| } |
| |
| private void initFields() { |
| text_ = ""; |
| verb_ = ""; |
| body_ = ""; |
| time_ = 0L; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getTextBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeBytes(2, getVerbBytes()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeBytes(3, getBodyBytes()); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeInt64(4, time_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, getTextBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(2, getVerbBytes()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(3, getBodyBytes()); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt64Size(4, time_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.PingInformationProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.PingInformationProto other = (org.apache.slider.api.proto.Messages.PingInformationProto) obj; |
| |
| boolean result = true; |
| result = result && (hasText() == other.hasText()); |
| if (hasText()) { |
| result = result && getText() |
| .equals(other.getText()); |
| } |
| result = result && (hasVerb() == other.hasVerb()); |
| if (hasVerb()) { |
| result = result && getVerb() |
| .equals(other.getVerb()); |
| } |
| result = result && (hasBody() == other.hasBody()); |
| if (hasBody()) { |
| result = result && getBody() |
| .equals(other.getBody()); |
| } |
| result = result && (hasTime() == other.hasTime()); |
| if (hasTime()) { |
| result = result && (getTime() |
| == other.getTime()); |
| } |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasText()) { |
| hash = (37 * hash) + TEXT_FIELD_NUMBER; |
| hash = (53 * hash) + getText().hashCode(); |
| } |
| if (hasVerb()) { |
| hash = (37 * hash) + VERB_FIELD_NUMBER; |
| hash = (53 * hash) + getVerb().hashCode(); |
| } |
| if (hasBody()) { |
| hash = (37 * hash) + BODY_FIELD_NUMBER; |
| hash = (53 * hash) + getBody().hashCode(); |
| } |
| if (hasTime()) { |
| hash = (37 * hash) + TIME_FIELD_NUMBER; |
| hash = (53 * hash) + hashLong(getTime()); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.PingInformationProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.PingInformationProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.PingInformationProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.PingInformationProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.PingInformationProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.PingInformationProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.PingInformationProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.PingInformationProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.PingInformationProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.PingInformationProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.PingInformationProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.PingInformationProto} |
| * |
| * <pre> |
| * |
| * see org.apache.slider.api.types.PingInformation |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.PingInformationProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_PingInformationProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_PingInformationProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.PingInformationProto.class, org.apache.slider.api.proto.Messages.PingInformationProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.PingInformationProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| text_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| verb_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| body_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| time_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000008); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_PingInformationProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.PingInformationProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.PingInformationProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.PingInformationProto build() { |
| org.apache.slider.api.proto.Messages.PingInformationProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.PingInformationProto buildPartial() { |
| org.apache.slider.api.proto.Messages.PingInformationProto result = new org.apache.slider.api.proto.Messages.PingInformationProto(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.text_ = text_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.verb_ = verb_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.body_ = body_; |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| result.time_ = time_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.PingInformationProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.PingInformationProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.PingInformationProto other) { |
| if (other == org.apache.slider.api.proto.Messages.PingInformationProto.getDefaultInstance()) return this; |
| if (other.hasText()) { |
| bitField0_ |= 0x00000001; |
| text_ = other.text_; |
| onChanged(); |
| } |
| if (other.hasVerb()) { |
| bitField0_ |= 0x00000002; |
| verb_ = other.verb_; |
| onChanged(); |
| } |
| if (other.hasBody()) { |
| bitField0_ |= 0x00000004; |
| body_ = other.body_; |
| onChanged(); |
| } |
| if (other.hasTime()) { |
| setTime(other.getTime()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.PingInformationProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.PingInformationProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // optional string text = 1; |
| private java.lang.Object text_ = ""; |
| /** |
| * <code>optional string text = 1;</code> |
| */ |
| public boolean hasText() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>optional string text = 1;</code> |
| */ |
| public java.lang.String getText() { |
| java.lang.Object ref = text_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| text_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>optional string text = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getTextBytes() { |
| java.lang.Object ref = text_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| text_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>optional string text = 1;</code> |
| */ |
| public Builder setText( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| text_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string text = 1;</code> |
| */ |
| public Builder clearText() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| text_ = getDefaultInstance().getText(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string text = 1;</code> |
| */ |
| public Builder setTextBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| text_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // optional string verb = 2; |
| private java.lang.Object verb_ = ""; |
| /** |
| * <code>optional string verb = 2;</code> |
| */ |
| public boolean hasVerb() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>optional string verb = 2;</code> |
| */ |
| public java.lang.String getVerb() { |
| java.lang.Object ref = verb_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| verb_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>optional string verb = 2;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getVerbBytes() { |
| java.lang.Object ref = verb_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| verb_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>optional string verb = 2;</code> |
| */ |
| public Builder setVerb( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| verb_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string verb = 2;</code> |
| */ |
| public Builder clearVerb() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| verb_ = getDefaultInstance().getVerb(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string verb = 2;</code> |
| */ |
| public Builder setVerbBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| verb_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // optional string body = 3; |
| private java.lang.Object body_ = ""; |
| /** |
| * <code>optional string body = 3;</code> |
| */ |
| public boolean hasBody() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>optional string body = 3;</code> |
| */ |
| public java.lang.String getBody() { |
| java.lang.Object ref = body_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| body_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>optional string body = 3;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getBodyBytes() { |
| java.lang.Object ref = body_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| body_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>optional string body = 3;</code> |
| */ |
| public Builder setBody( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000004; |
| body_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string body = 3;</code> |
| */ |
| public Builder clearBody() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| body_ = getDefaultInstance().getBody(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string body = 3;</code> |
| */ |
| public Builder setBodyBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000004; |
| body_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // optional int64 time = 4; |
| private long time_ ; |
| /** |
| * <code>optional int64 time = 4;</code> |
| */ |
| public boolean hasTime() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| /** |
| * <code>optional int64 time = 4;</code> |
| */ |
| public long getTime() { |
| return time_; |
| } |
| /** |
| * <code>optional int64 time = 4;</code> |
| */ |
| public Builder setTime(long value) { |
| bitField0_ |= 0x00000008; |
| time_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional int64 time = 4;</code> |
| */ |
| public Builder clearTime() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| time_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.PingInformationProto) |
| } |
| |
| static { |
| defaultInstance = new PingInformationProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.PingInformationProto) |
| } |
| |
| public interface NodeEntryInformationProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required int32 priority = 1; |
| /** |
| * <code>required int32 priority = 1;</code> |
| */ |
| boolean hasPriority(); |
| /** |
| * <code>required int32 priority = 1;</code> |
| */ |
| int getPriority(); |
| |
| // required int32 requested = 2; |
| /** |
| * <code>required int32 requested = 2;</code> |
| */ |
| boolean hasRequested(); |
| /** |
| * <code>required int32 requested = 2;</code> |
| */ |
| int getRequested(); |
| |
| // required int32 starting = 3; |
| /** |
| * <code>required int32 starting = 3;</code> |
| */ |
| boolean hasStarting(); |
| /** |
| * <code>required int32 starting = 3;</code> |
| */ |
| int getStarting(); |
| |
| // required int32 startFailed = 4; |
| /** |
| * <code>required int32 startFailed = 4;</code> |
| */ |
| boolean hasStartFailed(); |
| /** |
| * <code>required int32 startFailed = 4;</code> |
| */ |
| int getStartFailed(); |
| |
| // required int32 failed = 5; |
| /** |
| * <code>required int32 failed = 5;</code> |
| */ |
| boolean hasFailed(); |
| /** |
| * <code>required int32 failed = 5;</code> |
| */ |
| int getFailed(); |
| |
| // required int32 failedRecently = 6; |
| /** |
| * <code>required int32 failedRecently = 6;</code> |
| */ |
| boolean hasFailedRecently(); |
| /** |
| * <code>required int32 failedRecently = 6;</code> |
| */ |
| int getFailedRecently(); |
| |
| // required int32 preempted = 7; |
| /** |
| * <code>required int32 preempted = 7;</code> |
| */ |
| boolean hasPreempted(); |
| /** |
| * <code>required int32 preempted = 7;</code> |
| */ |
| int getPreempted(); |
| |
| // required int32 live = 8; |
| /** |
| * <code>required int32 live = 8;</code> |
| */ |
| boolean hasLive(); |
| /** |
| * <code>required int32 live = 8;</code> |
| */ |
| int getLive(); |
| |
| // required int32 releasing = 9; |
| /** |
| * <code>required int32 releasing = 9;</code> |
| */ |
| boolean hasReleasing(); |
| /** |
| * <code>required int32 releasing = 9;</code> |
| */ |
| int getReleasing(); |
| |
| // required int64 lastUsed = 10; |
| /** |
| * <code>required int64 lastUsed = 10;</code> |
| */ |
| boolean hasLastUsed(); |
| /** |
| * <code>required int64 lastUsed = 10;</code> |
| */ |
| long getLastUsed(); |
| |
| // required string name = 11; |
| /** |
| * <code>required string name = 11;</code> |
| */ |
| boolean hasName(); |
| /** |
| * <code>required string name = 11;</code> |
| */ |
| java.lang.String getName(); |
| /** |
| * <code>required string name = 11;</code> |
| */ |
| com.google.protobuf.ByteString |
| getNameBytes(); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.NodeEntryInformationProto} |
| */ |
| public static final class NodeEntryInformationProto extends |
| com.google.protobuf.GeneratedMessage |
| implements NodeEntryInformationProtoOrBuilder { |
| // Use NodeEntryInformationProto.newBuilder() to construct. |
| private NodeEntryInformationProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private NodeEntryInformationProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final NodeEntryInformationProto defaultInstance; |
| public static NodeEntryInformationProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public NodeEntryInformationProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private NodeEntryInformationProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 8: { |
| bitField0_ |= 0x00000001; |
| priority_ = input.readInt32(); |
| break; |
| } |
| case 16: { |
| bitField0_ |= 0x00000002; |
| requested_ = input.readInt32(); |
| break; |
| } |
| case 24: { |
| bitField0_ |= 0x00000004; |
| starting_ = input.readInt32(); |
| break; |
| } |
| case 32: { |
| bitField0_ |= 0x00000008; |
| startFailed_ = input.readInt32(); |
| break; |
| } |
| case 40: { |
| bitField0_ |= 0x00000010; |
| failed_ = input.readInt32(); |
| break; |
| } |
| case 48: { |
| bitField0_ |= 0x00000020; |
| failedRecently_ = input.readInt32(); |
| break; |
| } |
| case 56: { |
| bitField0_ |= 0x00000040; |
| preempted_ = input.readInt32(); |
| break; |
| } |
| case 64: { |
| bitField0_ |= 0x00000080; |
| live_ = input.readInt32(); |
| break; |
| } |
| case 72: { |
| bitField0_ |= 0x00000100; |
| releasing_ = input.readInt32(); |
| break; |
| } |
| case 80: { |
| bitField0_ |= 0x00000200; |
| lastUsed_ = input.readInt64(); |
| break; |
| } |
| case 90: { |
| bitField0_ |= 0x00000400; |
| name_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_NodeEntryInformationProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_NodeEntryInformationProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.NodeEntryInformationProto.class, org.apache.slider.api.proto.Messages.NodeEntryInformationProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<NodeEntryInformationProto> PARSER = |
| new com.google.protobuf.AbstractParser<NodeEntryInformationProto>() { |
| public NodeEntryInformationProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new NodeEntryInformationProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<NodeEntryInformationProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required int32 priority = 1; |
| public static final int PRIORITY_FIELD_NUMBER = 1; |
| private int priority_; |
| /** |
| * <code>required int32 priority = 1;</code> |
| */ |
| public boolean hasPriority() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required int32 priority = 1;</code> |
| */ |
| public int getPriority() { |
| return priority_; |
| } |
| |
| // required int32 requested = 2; |
| public static final int REQUESTED_FIELD_NUMBER = 2; |
| private int requested_; |
| /** |
| * <code>required int32 requested = 2;</code> |
| */ |
| public boolean hasRequested() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>required int32 requested = 2;</code> |
| */ |
| public int getRequested() { |
| return requested_; |
| } |
| |
| // required int32 starting = 3; |
| public static final int STARTING_FIELD_NUMBER = 3; |
| private int starting_; |
| /** |
| * <code>required int32 starting = 3;</code> |
| */ |
| public boolean hasStarting() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>required int32 starting = 3;</code> |
| */ |
| public int getStarting() { |
| return starting_; |
| } |
| |
| // required int32 startFailed = 4; |
| public static final int STARTFAILED_FIELD_NUMBER = 4; |
| private int startFailed_; |
| /** |
| * <code>required int32 startFailed = 4;</code> |
| */ |
| public boolean hasStartFailed() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| /** |
| * <code>required int32 startFailed = 4;</code> |
| */ |
| public int getStartFailed() { |
| return startFailed_; |
| } |
| |
| // required int32 failed = 5; |
| public static final int FAILED_FIELD_NUMBER = 5; |
| private int failed_; |
| /** |
| * <code>required int32 failed = 5;</code> |
| */ |
| public boolean hasFailed() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| /** |
| * <code>required int32 failed = 5;</code> |
| */ |
| public int getFailed() { |
| return failed_; |
| } |
| |
| // required int32 failedRecently = 6; |
| public static final int FAILEDRECENTLY_FIELD_NUMBER = 6; |
| private int failedRecently_; |
| /** |
| * <code>required int32 failedRecently = 6;</code> |
| */ |
| public boolean hasFailedRecently() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| /** |
| * <code>required int32 failedRecently = 6;</code> |
| */ |
| public int getFailedRecently() { |
| return failedRecently_; |
| } |
| |
| // required int32 preempted = 7; |
| public static final int PREEMPTED_FIELD_NUMBER = 7; |
| private int preempted_; |
| /** |
| * <code>required int32 preempted = 7;</code> |
| */ |
| public boolean hasPreempted() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| /** |
| * <code>required int32 preempted = 7;</code> |
| */ |
| public int getPreempted() { |
| return preempted_; |
| } |
| |
| // required int32 live = 8; |
| public static final int LIVE_FIELD_NUMBER = 8; |
| private int live_; |
| /** |
| * <code>required int32 live = 8;</code> |
| */ |
| public boolean hasLive() { |
| return ((bitField0_ & 0x00000080) == 0x00000080); |
| } |
| /** |
| * <code>required int32 live = 8;</code> |
| */ |
| public int getLive() { |
| return live_; |
| } |
| |
| // required int32 releasing = 9; |
| public static final int RELEASING_FIELD_NUMBER = 9; |
| private int releasing_; |
| /** |
| * <code>required int32 releasing = 9;</code> |
| */ |
| public boolean hasReleasing() { |
| return ((bitField0_ & 0x00000100) == 0x00000100); |
| } |
| /** |
| * <code>required int32 releasing = 9;</code> |
| */ |
| public int getReleasing() { |
| return releasing_; |
| } |
| |
| // required int64 lastUsed = 10; |
| public static final int LASTUSED_FIELD_NUMBER = 10; |
| private long lastUsed_; |
| /** |
| * <code>required int64 lastUsed = 10;</code> |
| */ |
| public boolean hasLastUsed() { |
| return ((bitField0_ & 0x00000200) == 0x00000200); |
| } |
| /** |
| * <code>required int64 lastUsed = 10;</code> |
| */ |
| public long getLastUsed() { |
| return lastUsed_; |
| } |
| |
| // required string name = 11; |
| public static final int NAME_FIELD_NUMBER = 11; |
| private java.lang.Object name_; |
| /** |
| * <code>required string name = 11;</code> |
| */ |
| public boolean hasName() { |
| return ((bitField0_ & 0x00000400) == 0x00000400); |
| } |
| /** |
| * <code>required string name = 11;</code> |
| */ |
| public java.lang.String getName() { |
| java.lang.Object ref = name_; |
| if (ref instanceof java.lang.String) { |
| return (java.lang.String) ref; |
| } else { |
| com.google.protobuf.ByteString bs = |
| (com.google.protobuf.ByteString) ref; |
| java.lang.String s = bs.toStringUtf8(); |
| if (bs.isValidUtf8()) { |
| name_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string name = 11;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getNameBytes() { |
| java.lang.Object ref = name_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| name_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| private void initFields() { |
| priority_ = 0; |
| requested_ = 0; |
| starting_ = 0; |
| startFailed_ = 0; |
| failed_ = 0; |
| failedRecently_ = 0; |
| preempted_ = 0; |
| live_ = 0; |
| releasing_ = 0; |
| lastUsed_ = 0L; |
| name_ = ""; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasPriority()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasRequested()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasStarting()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasStartFailed()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasFailed()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasFailedRecently()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasPreempted()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasLive()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasReleasing()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasLastUsed()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasName()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeInt32(1, priority_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeInt32(2, requested_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeInt32(3, starting_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeInt32(4, startFailed_); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| output.writeInt32(5, failed_); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| output.writeInt32(6, failedRecently_); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| output.writeInt32(7, preempted_); |
| } |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| output.writeInt32(8, live_); |
| } |
| if (((bitField0_ & 0x00000100) == 0x00000100)) { |
| output.writeInt32(9, releasing_); |
| } |
| if (((bitField0_ & 0x00000200) == 0x00000200)) { |
| output.writeInt64(10, lastUsed_); |
| } |
| if (((bitField0_ & 0x00000400) == 0x00000400)) { |
| output.writeBytes(11, getNameBytes()); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(1, priority_); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(2, requested_); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(3, starting_); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(4, startFailed_); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(5, failed_); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(6, failedRecently_); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(7, preempted_); |
| } |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(8, live_); |
| } |
| if (((bitField0_ & 0x00000100) == 0x00000100)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt32Size(9, releasing_); |
| } |
| if (((bitField0_ & 0x00000200) == 0x00000200)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt64Size(10, lastUsed_); |
| } |
| if (((bitField0_ & 0x00000400) == 0x00000400)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(11, getNameBytes()); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.NodeEntryInformationProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.NodeEntryInformationProto other = (org.apache.slider.api.proto.Messages.NodeEntryInformationProto) obj; |
| |
| boolean result = true; |
| result = result && (hasPriority() == other.hasPriority()); |
| if (hasPriority()) { |
| result = result && (getPriority() |
| == other.getPriority()); |
| } |
| result = result && (hasRequested() == other.hasRequested()); |
| if (hasRequested()) { |
| result = result && (getRequested() |
| == other.getRequested()); |
| } |
| result = result && (hasStarting() == other.hasStarting()); |
| if (hasStarting()) { |
| result = result && (getStarting() |
| == other.getStarting()); |
| } |
| result = result && (hasStartFailed() == other.hasStartFailed()); |
| if (hasStartFailed()) { |
| result = result && (getStartFailed() |
| == other.getStartFailed()); |
| } |
| result = result && (hasFailed() == other.hasFailed()); |
| if (hasFailed()) { |
| result = result && (getFailed() |
| == other.getFailed()); |
| } |
| result = result && (hasFailedRecently() == other.hasFailedRecently()); |
| if (hasFailedRecently()) { |
| result = result && (getFailedRecently() |
| == other.getFailedRecently()); |
| } |
| result = result && (hasPreempted() == other.hasPreempted()); |
| if (hasPreempted()) { |
| result = result && (getPreempted() |
| == other.getPreempted()); |
| } |
| result = result && (hasLive() == other.hasLive()); |
| if (hasLive()) { |
| result = result && (getLive() |
| == other.getLive()); |
| } |
| result = result && (hasReleasing() == other.hasReleasing()); |
| if (hasReleasing()) { |
| result = result && (getReleasing() |
| == other.getReleasing()); |
| } |
| result = result && (hasLastUsed() == other.hasLastUsed()); |
| if (hasLastUsed()) { |
| result = result && (getLastUsed() |
| == other.getLastUsed()); |
| } |
| result = result && (hasName() == other.hasName()); |
| if (hasName()) { |
| result = result && getName() |
| .equals(other.getName()); |
| } |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasPriority()) { |
| hash = (37 * hash) + PRIORITY_FIELD_NUMBER; |
| hash = (53 * hash) + getPriority(); |
| } |
| if (hasRequested()) { |
| hash = (37 * hash) + REQUESTED_FIELD_NUMBER; |
| hash = (53 * hash) + getRequested(); |
| } |
| if (hasStarting()) { |
| hash = (37 * hash) + STARTING_FIELD_NUMBER; |
| hash = (53 * hash) + getStarting(); |
| } |
| if (hasStartFailed()) { |
| hash = (37 * hash) + STARTFAILED_FIELD_NUMBER; |
| hash = (53 * hash) + getStartFailed(); |
| } |
| if (hasFailed()) { |
| hash = (37 * hash) + FAILED_FIELD_NUMBER; |
| hash = (53 * hash) + getFailed(); |
| } |
| if (hasFailedRecently()) { |
| hash = (37 * hash) + FAILEDRECENTLY_FIELD_NUMBER; |
| hash = (53 * hash) + getFailedRecently(); |
| } |
| if (hasPreempted()) { |
| hash = (37 * hash) + PREEMPTED_FIELD_NUMBER; |
| hash = (53 * hash) + getPreempted(); |
| } |
| if (hasLive()) { |
| hash = (37 * hash) + LIVE_FIELD_NUMBER; |
| hash = (53 * hash) + getLive(); |
| } |
| if (hasReleasing()) { |
| hash = (37 * hash) + RELEASING_FIELD_NUMBER; |
| hash = (53 * hash) + getReleasing(); |
| } |
| if (hasLastUsed()) { |
| hash = (37 * hash) + LASTUSED_FIELD_NUMBER; |
| hash = (53 * hash) + hashLong(getLastUsed()); |
| } |
| if (hasName()) { |
| hash = (37 * hash) + NAME_FIELD_NUMBER; |
| hash = (53 * hash) + getName().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.NodeEntryInformationProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.NodeEntryInformationProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.NodeEntryInformationProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.NodeEntryInformationProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.NodeEntryInformationProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.NodeEntryInformationProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.NodeEntryInformationProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.NodeEntryInformationProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.NodeEntryInformationProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.NodeEntryInformationProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.NodeEntryInformationProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.NodeEntryInformationProto} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.NodeEntryInformationProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_NodeEntryInformationProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_NodeEntryInformationProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.NodeEntryInformationProto.class, org.apache.slider.api.proto.Messages.NodeEntryInformationProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.NodeEntryInformationProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| priority_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| requested_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| starting_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| startFailed_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000008); |
| failed_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000010); |
| failedRecently_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000020); |
| preempted_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000040); |
| live_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000080); |
| releasing_ = 0; |
| bitField0_ = (bitField0_ & ~0x00000100); |
| lastUsed_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000200); |
| name_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000400); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_NodeEntryInformationProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.NodeEntryInformationProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.NodeEntryInformationProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.NodeEntryInformationProto build() { |
| org.apache.slider.api.proto.Messages.NodeEntryInformationProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.NodeEntryInformationProto buildPartial() { |
| org.apache.slider.api.proto.Messages.NodeEntryInformationProto result = new org.apache.slider.api.proto.Messages.NodeEntryInformationProto(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.priority_ = priority_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.requested_ = requested_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.starting_ = starting_; |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| result.startFailed_ = startFailed_; |
| if (((from_bitField0_ & 0x00000010) == 0x00000010)) { |
| to_bitField0_ |= 0x00000010; |
| } |
| result.failed_ = failed_; |
| if (((from_bitField0_ & 0x00000020) == 0x00000020)) { |
| to_bitField0_ |= 0x00000020; |
| } |
| result.failedRecently_ = failedRecently_; |
| if (((from_bitField0_ & 0x00000040) == 0x00000040)) { |
| to_bitField0_ |= 0x00000040; |
| } |
| result.preempted_ = preempted_; |
| if (((from_bitField0_ & 0x00000080) == 0x00000080)) { |
| to_bitField0_ |= 0x00000080; |
| } |
| result.live_ = live_; |
| if (((from_bitField0_ & 0x00000100) == 0x00000100)) { |
| to_bitField0_ |= 0x00000100; |
| } |
| result.releasing_ = releasing_; |
| if (((from_bitField0_ & 0x00000200) == 0x00000200)) { |
| to_bitField0_ |= 0x00000200; |
| } |
| result.lastUsed_ = lastUsed_; |
| if (((from_bitField0_ & 0x00000400) == 0x00000400)) { |
| to_bitField0_ |= 0x00000400; |
| } |
| result.name_ = name_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.NodeEntryInformationProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.NodeEntryInformationProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.NodeEntryInformationProto other) { |
| if (other == org.apache.slider.api.proto.Messages.NodeEntryInformationProto.getDefaultInstance()) return this; |
| if (other.hasPriority()) { |
| setPriority(other.getPriority()); |
| } |
| if (other.hasRequested()) { |
| setRequested(other.getRequested()); |
| } |
| if (other.hasStarting()) { |
| setStarting(other.getStarting()); |
| } |
| if (other.hasStartFailed()) { |
| setStartFailed(other.getStartFailed()); |
| } |
| if (other.hasFailed()) { |
| setFailed(other.getFailed()); |
| } |
| if (other.hasFailedRecently()) { |
| setFailedRecently(other.getFailedRecently()); |
| } |
| if (other.hasPreempted()) { |
| setPreempted(other.getPreempted()); |
| } |
| if (other.hasLive()) { |
| setLive(other.getLive()); |
| } |
| if (other.hasReleasing()) { |
| setReleasing(other.getReleasing()); |
| } |
| if (other.hasLastUsed()) { |
| setLastUsed(other.getLastUsed()); |
| } |
| if (other.hasName()) { |
| bitField0_ |= 0x00000400; |
| name_ = other.name_; |
| onChanged(); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasPriority()) { |
| |
| return false; |
| } |
| if (!hasRequested()) { |
| |
| return false; |
| } |
| if (!hasStarting()) { |
| |
| return false; |
| } |
| if (!hasStartFailed()) { |
| |
| return false; |
| } |
| if (!hasFailed()) { |
| |
| return false; |
| } |
| if (!hasFailedRecently()) { |
| |
| return false; |
| } |
| if (!hasPreempted()) { |
| |
| return false; |
| } |
| if (!hasLive()) { |
| |
| return false; |
| } |
| if (!hasReleasing()) { |
| |
| return false; |
| } |
| if (!hasLastUsed()) { |
| |
| return false; |
| } |
| if (!hasName()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.NodeEntryInformationProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.NodeEntryInformationProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // required int32 priority = 1; |
| private int priority_ ; |
| /** |
| * <code>required int32 priority = 1;</code> |
| */ |
| public boolean hasPriority() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required int32 priority = 1;</code> |
| */ |
| public int getPriority() { |
| return priority_; |
| } |
| /** |
| * <code>required int32 priority = 1;</code> |
| */ |
| public Builder setPriority(int value) { |
| bitField0_ |= 0x00000001; |
| priority_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required int32 priority = 1;</code> |
| */ |
| public Builder clearPriority() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| priority_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // required int32 requested = 2; |
| private int requested_ ; |
| /** |
| * <code>required int32 requested = 2;</code> |
| */ |
| public boolean hasRequested() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>required int32 requested = 2;</code> |
| */ |
| public int getRequested() { |
| return requested_; |
| } |
| /** |
| * <code>required int32 requested = 2;</code> |
| */ |
| public Builder setRequested(int value) { |
| bitField0_ |= 0x00000002; |
| requested_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required int32 requested = 2;</code> |
| */ |
| public Builder clearRequested() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| requested_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // required int32 starting = 3; |
| private int starting_ ; |
| /** |
| * <code>required int32 starting = 3;</code> |
| */ |
| public boolean hasStarting() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>required int32 starting = 3;</code> |
| */ |
| public int getStarting() { |
| return starting_; |
| } |
| /** |
| * <code>required int32 starting = 3;</code> |
| */ |
| public Builder setStarting(int value) { |
| bitField0_ |= 0x00000004; |
| starting_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required int32 starting = 3;</code> |
| */ |
| public Builder clearStarting() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| starting_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // required int32 startFailed = 4; |
| private int startFailed_ ; |
| /** |
| * <code>required int32 startFailed = 4;</code> |
| */ |
| public boolean hasStartFailed() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| /** |
| * <code>required int32 startFailed = 4;</code> |
| */ |
| public int getStartFailed() { |
| return startFailed_; |
| } |
| /** |
| * <code>required int32 startFailed = 4;</code> |
| */ |
| public Builder setStartFailed(int value) { |
| bitField0_ |= 0x00000008; |
| startFailed_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required int32 startFailed = 4;</code> |
| */ |
| public Builder clearStartFailed() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| startFailed_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // required int32 failed = 5; |
| private int failed_ ; |
| /** |
| * <code>required int32 failed = 5;</code> |
| */ |
| public boolean hasFailed() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| /** |
| * <code>required int32 failed = 5;</code> |
| */ |
| public int getFailed() { |
| return failed_; |
| } |
| /** |
| * <code>required int32 failed = 5;</code> |
| */ |
| public Builder setFailed(int value) { |
| bitField0_ |= 0x00000010; |
| failed_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required int32 failed = 5;</code> |
| */ |
| public Builder clearFailed() { |
| bitField0_ = (bitField0_ & ~0x00000010); |
| failed_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // required int32 failedRecently = 6; |
| private int failedRecently_ ; |
| /** |
| * <code>required int32 failedRecently = 6;</code> |
| */ |
| public boolean hasFailedRecently() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| /** |
| * <code>required int32 failedRecently = 6;</code> |
| */ |
| public int getFailedRecently() { |
| return failedRecently_; |
| } |
| /** |
| * <code>required int32 failedRecently = 6;</code> |
| */ |
| public Builder setFailedRecently(int value) { |
| bitField0_ |= 0x00000020; |
| failedRecently_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required int32 failedRecently = 6;</code> |
| */ |
| public Builder clearFailedRecently() { |
| bitField0_ = (bitField0_ & ~0x00000020); |
| failedRecently_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // required int32 preempted = 7; |
| private int preempted_ ; |
| /** |
| * <code>required int32 preempted = 7;</code> |
| */ |
| public boolean hasPreempted() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| /** |
| * <code>required int32 preempted = 7;</code> |
| */ |
| public int getPreempted() { |
| return preempted_; |
| } |
| /** |
| * <code>required int32 preempted = 7;</code> |
| */ |
| public Builder setPreempted(int value) { |
| bitField0_ |= 0x00000040; |
| preempted_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required int32 preempted = 7;</code> |
| */ |
| public Builder clearPreempted() { |
| bitField0_ = (bitField0_ & ~0x00000040); |
| preempted_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // required int32 live = 8; |
| private int live_ ; |
| /** |
| * <code>required int32 live = 8;</code> |
| */ |
| public boolean hasLive() { |
| return ((bitField0_ & 0x00000080) == 0x00000080); |
| } |
| /** |
| * <code>required int32 live = 8;</code> |
| */ |
| public int getLive() { |
| return live_; |
| } |
| /** |
| * <code>required int32 live = 8;</code> |
| */ |
| public Builder setLive(int value) { |
| bitField0_ |= 0x00000080; |
| live_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required int32 live = 8;</code> |
| */ |
| public Builder clearLive() { |
| bitField0_ = (bitField0_ & ~0x00000080); |
| live_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // required int32 releasing = 9; |
| private int releasing_ ; |
| /** |
| * <code>required int32 releasing = 9;</code> |
| */ |
| public boolean hasReleasing() { |
| return ((bitField0_ & 0x00000100) == 0x00000100); |
| } |
| /** |
| * <code>required int32 releasing = 9;</code> |
| */ |
| public int getReleasing() { |
| return releasing_; |
| } |
| /** |
| * <code>required int32 releasing = 9;</code> |
| */ |
| public Builder setReleasing(int value) { |
| bitField0_ |= 0x00000100; |
| releasing_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required int32 releasing = 9;</code> |
| */ |
| public Builder clearReleasing() { |
| bitField0_ = (bitField0_ & ~0x00000100); |
| releasing_ = 0; |
| onChanged(); |
| return this; |
| } |
| |
| // required int64 lastUsed = 10; |
| private long lastUsed_ ; |
| /** |
| * <code>required int64 lastUsed = 10;</code> |
| */ |
| public boolean hasLastUsed() { |
| return ((bitField0_ & 0x00000200) == 0x00000200); |
| } |
| /** |
| * <code>required int64 lastUsed = 10;</code> |
| */ |
| public long getLastUsed() { |
| return lastUsed_; |
| } |
| /** |
| * <code>required int64 lastUsed = 10;</code> |
| */ |
| public Builder setLastUsed(long value) { |
| bitField0_ |= 0x00000200; |
| lastUsed_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required int64 lastUsed = 10;</code> |
| */ |
| public Builder clearLastUsed() { |
| bitField0_ = (bitField0_ & ~0x00000200); |
| lastUsed_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| // required string name = 11; |
| private java.lang.Object name_ = ""; |
| /** |
| * <code>required string name = 11;</code> |
| */ |
| public boolean hasName() { |
| return ((bitField0_ & 0x00000400) == 0x00000400); |
| } |
| /** |
| * <code>required string name = 11;</code> |
| */ |
| public java.lang.String getName() { |
| java.lang.Object ref = name_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| name_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string name = 11;</code> |
| */ |
| 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; |
| } |
| } |
| /** |
| * <code>required string name = 11;</code> |
| */ |
| public Builder setName( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000400; |
| name_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string name = 11;</code> |
| */ |
| public Builder clearName() { |
| bitField0_ = (bitField0_ & ~0x00000400); |
| name_ = getDefaultInstance().getName(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string name = 11;</code> |
| */ |
| public Builder setNameBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000400; |
| name_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.NodeEntryInformationProto) |
| } |
| |
| static { |
| defaultInstance = new NodeEntryInformationProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.NodeEntryInformationProto) |
| } |
| |
| public interface NodeInformationProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required string hostname = 1; |
| /** |
| * <code>required string hostname = 1;</code> |
| */ |
| boolean hasHostname(); |
| /** |
| * <code>required string hostname = 1;</code> |
| */ |
| java.lang.String getHostname(); |
| /** |
| * <code>required string hostname = 1;</code> |
| */ |
| com.google.protobuf.ByteString |
| getHostnameBytes(); |
| |
| // required string state = 2; |
| /** |
| * <code>required string state = 2;</code> |
| */ |
| boolean hasState(); |
| /** |
| * <code>required string state = 2;</code> |
| */ |
| java.lang.String getState(); |
| /** |
| * <code>required string state = 2;</code> |
| */ |
| com.google.protobuf.ByteString |
| getStateBytes(); |
| |
| // required string httpAddress = 3; |
| /** |
| * <code>required string httpAddress = 3;</code> |
| */ |
| boolean hasHttpAddress(); |
| /** |
| * <code>required string httpAddress = 3;</code> |
| */ |
| java.lang.String getHttpAddress(); |
| /** |
| * <code>required string httpAddress = 3;</code> |
| */ |
| com.google.protobuf.ByteString |
| getHttpAddressBytes(); |
| |
| // required string rackName = 4; |
| /** |
| * <code>required string rackName = 4;</code> |
| */ |
| boolean hasRackName(); |
| /** |
| * <code>required string rackName = 4;</code> |
| */ |
| java.lang.String getRackName(); |
| /** |
| * <code>required string rackName = 4;</code> |
| */ |
| com.google.protobuf.ByteString |
| getRackNameBytes(); |
| |
| // required string labels = 5; |
| /** |
| * <code>required string labels = 5;</code> |
| */ |
| boolean hasLabels(); |
| /** |
| * <code>required string labels = 5;</code> |
| */ |
| java.lang.String getLabels(); |
| /** |
| * <code>required string labels = 5;</code> |
| */ |
| com.google.protobuf.ByteString |
| getLabelsBytes(); |
| |
| // required string healthReport = 6; |
| /** |
| * <code>required string healthReport = 6;</code> |
| */ |
| boolean hasHealthReport(); |
| /** |
| * <code>required string healthReport = 6;</code> |
| */ |
| java.lang.String getHealthReport(); |
| /** |
| * <code>required string healthReport = 6;</code> |
| */ |
| com.google.protobuf.ByteString |
| getHealthReportBytes(); |
| |
| // required int64 lastUpdated = 7; |
| /** |
| * <code>required int64 lastUpdated = 7;</code> |
| */ |
| boolean hasLastUpdated(); |
| /** |
| * <code>required int64 lastUpdated = 7;</code> |
| */ |
| long getLastUpdated(); |
| |
| // repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| java.util.List<org.apache.slider.api.proto.Messages.NodeEntryInformationProto> |
| getEntriesList(); |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| org.apache.slider.api.proto.Messages.NodeEntryInformationProto getEntries(int index); |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| int getEntriesCount(); |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| java.util.List<? extends org.apache.slider.api.proto.Messages.NodeEntryInformationProtoOrBuilder> |
| getEntriesOrBuilderList(); |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| org.apache.slider.api.proto.Messages.NodeEntryInformationProtoOrBuilder getEntriesOrBuilder( |
| int index); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.NodeInformationProto} |
| */ |
| public static final class NodeInformationProto extends |
| com.google.protobuf.GeneratedMessage |
| implements NodeInformationProtoOrBuilder { |
| // Use NodeInformationProto.newBuilder() to construct. |
| private NodeInformationProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private NodeInformationProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final NodeInformationProto defaultInstance; |
| public static NodeInformationProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public NodeInformationProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private NodeInformationProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| hostname_ = input.readBytes(); |
| break; |
| } |
| case 18: { |
| bitField0_ |= 0x00000002; |
| state_ = input.readBytes(); |
| break; |
| } |
| case 26: { |
| bitField0_ |= 0x00000004; |
| httpAddress_ = input.readBytes(); |
| break; |
| } |
| case 34: { |
| bitField0_ |= 0x00000008; |
| rackName_ = input.readBytes(); |
| break; |
| } |
| case 42: { |
| bitField0_ |= 0x00000010; |
| labels_ = input.readBytes(); |
| break; |
| } |
| case 50: { |
| bitField0_ |= 0x00000020; |
| healthReport_ = input.readBytes(); |
| break; |
| } |
| case 56: { |
| bitField0_ |= 0x00000040; |
| lastUpdated_ = input.readInt64(); |
| break; |
| } |
| case 66: { |
| if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { |
| entries_ = new java.util.ArrayList<org.apache.slider.api.proto.Messages.NodeEntryInformationProto>(); |
| mutable_bitField0_ |= 0x00000080; |
| } |
| entries_.add(input.readMessage(org.apache.slider.api.proto.Messages.NodeEntryInformationProto.PARSER, extensionRegistry)); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { |
| entries_ = java.util.Collections.unmodifiableList(entries_); |
| } |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_NodeInformationProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_NodeInformationProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.NodeInformationProto.class, org.apache.slider.api.proto.Messages.NodeInformationProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<NodeInformationProto> PARSER = |
| new com.google.protobuf.AbstractParser<NodeInformationProto>() { |
| public NodeInformationProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new NodeInformationProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<NodeInformationProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required string hostname = 1; |
| public static final int HOSTNAME_FIELD_NUMBER = 1; |
| private java.lang.Object hostname_; |
| /** |
| * <code>required string hostname = 1;</code> |
| */ |
| public boolean hasHostname() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string hostname = 1;</code> |
| */ |
| public java.lang.String getHostname() { |
| java.lang.Object ref = hostname_; |
| 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()) { |
| hostname_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string hostname = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getHostnameBytes() { |
| java.lang.Object ref = hostname_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| hostname_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // required string state = 2; |
| public static final int STATE_FIELD_NUMBER = 2; |
| private java.lang.Object state_; |
| /** |
| * <code>required string state = 2;</code> |
| */ |
| public boolean hasState() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>required string state = 2;</code> |
| */ |
| public java.lang.String getState() { |
| java.lang.Object ref = state_; |
| 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()) { |
| state_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string state = 2;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getStateBytes() { |
| java.lang.Object ref = state_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| state_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // required string httpAddress = 3; |
| public static final int HTTPADDRESS_FIELD_NUMBER = 3; |
| private java.lang.Object httpAddress_; |
| /** |
| * <code>required string httpAddress = 3;</code> |
| */ |
| public boolean hasHttpAddress() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>required string httpAddress = 3;</code> |
| */ |
| public java.lang.String getHttpAddress() { |
| java.lang.Object ref = httpAddress_; |
| 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()) { |
| httpAddress_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string httpAddress = 3;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getHttpAddressBytes() { |
| java.lang.Object ref = httpAddress_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| httpAddress_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // required string rackName = 4; |
| public static final int RACKNAME_FIELD_NUMBER = 4; |
| private java.lang.Object rackName_; |
| /** |
| * <code>required string rackName = 4;</code> |
| */ |
| public boolean hasRackName() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| /** |
| * <code>required string rackName = 4;</code> |
| */ |
| public java.lang.String getRackName() { |
| java.lang.Object ref = rackName_; |
| 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()) { |
| rackName_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string rackName = 4;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getRackNameBytes() { |
| java.lang.Object ref = rackName_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| rackName_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // required string labels = 5; |
| public static final int LABELS_FIELD_NUMBER = 5; |
| private java.lang.Object labels_; |
| /** |
| * <code>required string labels = 5;</code> |
| */ |
| public boolean hasLabels() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| /** |
| * <code>required string labels = 5;</code> |
| */ |
| public java.lang.String getLabels() { |
| java.lang.Object ref = labels_; |
| 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()) { |
| labels_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string labels = 5;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getLabelsBytes() { |
| java.lang.Object ref = labels_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| labels_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // required string healthReport = 6; |
| public static final int HEALTHREPORT_FIELD_NUMBER = 6; |
| private java.lang.Object healthReport_; |
| /** |
| * <code>required string healthReport = 6;</code> |
| */ |
| public boolean hasHealthReport() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| /** |
| * <code>required string healthReport = 6;</code> |
| */ |
| public java.lang.String getHealthReport() { |
| java.lang.Object ref = healthReport_; |
| 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()) { |
| healthReport_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string healthReport = 6;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getHealthReportBytes() { |
| java.lang.Object ref = healthReport_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| healthReport_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // required int64 lastUpdated = 7; |
| public static final int LASTUPDATED_FIELD_NUMBER = 7; |
| private long lastUpdated_; |
| /** |
| * <code>required int64 lastUpdated = 7;</code> |
| */ |
| public boolean hasLastUpdated() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| /** |
| * <code>required int64 lastUpdated = 7;</code> |
| */ |
| public long getLastUpdated() { |
| return lastUpdated_; |
| } |
| |
| // repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; |
| public static final int ENTRIES_FIELD_NUMBER = 8; |
| private java.util.List<org.apache.slider.api.proto.Messages.NodeEntryInformationProto> entries_; |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| public java.util.List<org.apache.slider.api.proto.Messages.NodeEntryInformationProto> getEntriesList() { |
| return entries_; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| public java.util.List<? extends org.apache.slider.api.proto.Messages.NodeEntryInformationProtoOrBuilder> |
| getEntriesOrBuilderList() { |
| return entries_; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| public int getEntriesCount() { |
| return entries_.size(); |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.NodeEntryInformationProto getEntries(int index) { |
| return entries_.get(index); |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.NodeEntryInformationProtoOrBuilder getEntriesOrBuilder( |
| int index) { |
| return entries_.get(index); |
| } |
| |
| private void initFields() { |
| hostname_ = ""; |
| state_ = ""; |
| httpAddress_ = ""; |
| rackName_ = ""; |
| labels_ = ""; |
| healthReport_ = ""; |
| lastUpdated_ = 0L; |
| entries_ = java.util.Collections.emptyList(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasHostname()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasState()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasHttpAddress()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasRackName()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasLabels()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasHealthReport()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasLastUpdated()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| for (int i = 0; i < getEntriesCount(); i++) { |
| if (!getEntries(i).isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getHostnameBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeBytes(2, getStateBytes()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeBytes(3, getHttpAddressBytes()); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeBytes(4, getRackNameBytes()); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| output.writeBytes(5, getLabelsBytes()); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| output.writeBytes(6, getHealthReportBytes()); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| output.writeInt64(7, lastUpdated_); |
| } |
| for (int i = 0; i < entries_.size(); i++) { |
| output.writeMessage(8, entries_.get(i)); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, getHostnameBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(2, getStateBytes()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(3, getHttpAddressBytes()); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(4, getRackNameBytes()); |
| } |
| if (((bitField0_ & 0x00000010) == 0x00000010)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(5, getLabelsBytes()); |
| } |
| if (((bitField0_ & 0x00000020) == 0x00000020)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(6, getHealthReportBytes()); |
| } |
| if (((bitField0_ & 0x00000040) == 0x00000040)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeInt64Size(7, lastUpdated_); |
| } |
| for (int i = 0; i < entries_.size(); i++) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(8, entries_.get(i)); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.NodeInformationProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.NodeInformationProto other = (org.apache.slider.api.proto.Messages.NodeInformationProto) obj; |
| |
| boolean result = true; |
| result = result && (hasHostname() == other.hasHostname()); |
| if (hasHostname()) { |
| result = result && getHostname() |
| .equals(other.getHostname()); |
| } |
| result = result && (hasState() == other.hasState()); |
| if (hasState()) { |
| result = result && getState() |
| .equals(other.getState()); |
| } |
| result = result && (hasHttpAddress() == other.hasHttpAddress()); |
| if (hasHttpAddress()) { |
| result = result && getHttpAddress() |
| .equals(other.getHttpAddress()); |
| } |
| result = result && (hasRackName() == other.hasRackName()); |
| if (hasRackName()) { |
| result = result && getRackName() |
| .equals(other.getRackName()); |
| } |
| result = result && (hasLabels() == other.hasLabels()); |
| if (hasLabels()) { |
| result = result && getLabels() |
| .equals(other.getLabels()); |
| } |
| result = result && (hasHealthReport() == other.hasHealthReport()); |
| if (hasHealthReport()) { |
| result = result && getHealthReport() |
| .equals(other.getHealthReport()); |
| } |
| result = result && (hasLastUpdated() == other.hasLastUpdated()); |
| if (hasLastUpdated()) { |
| result = result && (getLastUpdated() |
| == other.getLastUpdated()); |
| } |
| result = result && getEntriesList() |
| .equals(other.getEntriesList()); |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasHostname()) { |
| hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; |
| hash = (53 * hash) + getHostname().hashCode(); |
| } |
| if (hasState()) { |
| hash = (37 * hash) + STATE_FIELD_NUMBER; |
| hash = (53 * hash) + getState().hashCode(); |
| } |
| if (hasHttpAddress()) { |
| hash = (37 * hash) + HTTPADDRESS_FIELD_NUMBER; |
| hash = (53 * hash) + getHttpAddress().hashCode(); |
| } |
| if (hasRackName()) { |
| hash = (37 * hash) + RACKNAME_FIELD_NUMBER; |
| hash = (53 * hash) + getRackName().hashCode(); |
| } |
| if (hasLabels()) { |
| hash = (37 * hash) + LABELS_FIELD_NUMBER; |
| hash = (53 * hash) + getLabels().hashCode(); |
| } |
| if (hasHealthReport()) { |
| hash = (37 * hash) + HEALTHREPORT_FIELD_NUMBER; |
| hash = (53 * hash) + getHealthReport().hashCode(); |
| } |
| if (hasLastUpdated()) { |
| hash = (37 * hash) + LASTUPDATED_FIELD_NUMBER; |
| hash = (53 * hash) + hashLong(getLastUpdated()); |
| } |
| if (getEntriesCount() > 0) { |
| hash = (37 * hash) + ENTRIES_FIELD_NUMBER; |
| hash = (53 * hash) + getEntriesList().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.NodeInformationProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.NodeInformationProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.NodeInformationProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.NodeInformationProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.NodeInformationProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.NodeInformationProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.NodeInformationProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.NodeInformationProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.NodeInformationProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.NodeInformationProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.NodeInformationProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.NodeInformationProto} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.NodeInformationProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_NodeInformationProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_NodeInformationProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.NodeInformationProto.class, org.apache.slider.api.proto.Messages.NodeInformationProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.NodeInformationProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getEntriesFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| hostname_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| state_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| httpAddress_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| rackName_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000008); |
| labels_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000010); |
| healthReport_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000020); |
| lastUpdated_ = 0L; |
| bitField0_ = (bitField0_ & ~0x00000040); |
| if (entriesBuilder_ == null) { |
| entries_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000080); |
| } else { |
| entriesBuilder_.clear(); |
| } |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_NodeInformationProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.NodeInformationProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.NodeInformationProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.NodeInformationProto build() { |
| org.apache.slider.api.proto.Messages.NodeInformationProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.NodeInformationProto buildPartial() { |
| org.apache.slider.api.proto.Messages.NodeInformationProto result = new org.apache.slider.api.proto.Messages.NodeInformationProto(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.hostname_ = hostname_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.state_ = state_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.httpAddress_ = httpAddress_; |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| result.rackName_ = rackName_; |
| if (((from_bitField0_ & 0x00000010) == 0x00000010)) { |
| to_bitField0_ |= 0x00000010; |
| } |
| result.labels_ = labels_; |
| if (((from_bitField0_ & 0x00000020) == 0x00000020)) { |
| to_bitField0_ |= 0x00000020; |
| } |
| result.healthReport_ = healthReport_; |
| if (((from_bitField0_ & 0x00000040) == 0x00000040)) { |
| to_bitField0_ |= 0x00000040; |
| } |
| result.lastUpdated_ = lastUpdated_; |
| if (entriesBuilder_ == null) { |
| if (((bitField0_ & 0x00000080) == 0x00000080)) { |
| entries_ = java.util.Collections.unmodifiableList(entries_); |
| bitField0_ = (bitField0_ & ~0x00000080); |
| } |
| result.entries_ = entries_; |
| } else { |
| result.entries_ = entriesBuilder_.build(); |
| } |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.NodeInformationProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.NodeInformationProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.NodeInformationProto other) { |
| if (other == org.apache.slider.api.proto.Messages.NodeInformationProto.getDefaultInstance()) return this; |
| if (other.hasHostname()) { |
| bitField0_ |= 0x00000001; |
| hostname_ = other.hostname_; |
| onChanged(); |
| } |
| if (other.hasState()) { |
| bitField0_ |= 0x00000002; |
| state_ = other.state_; |
| onChanged(); |
| } |
| if (other.hasHttpAddress()) { |
| bitField0_ |= 0x00000004; |
| httpAddress_ = other.httpAddress_; |
| onChanged(); |
| } |
| if (other.hasRackName()) { |
| bitField0_ |= 0x00000008; |
| rackName_ = other.rackName_; |
| onChanged(); |
| } |
| if (other.hasLabels()) { |
| bitField0_ |= 0x00000010; |
| labels_ = other.labels_; |
| onChanged(); |
| } |
| if (other.hasHealthReport()) { |
| bitField0_ |= 0x00000020; |
| healthReport_ = other.healthReport_; |
| onChanged(); |
| } |
| if (other.hasLastUpdated()) { |
| setLastUpdated(other.getLastUpdated()); |
| } |
| if (entriesBuilder_ == null) { |
| if (!other.entries_.isEmpty()) { |
| if (entries_.isEmpty()) { |
| entries_ = other.entries_; |
| bitField0_ = (bitField0_ & ~0x00000080); |
| } else { |
| ensureEntriesIsMutable(); |
| entries_.addAll(other.entries_); |
| } |
| onChanged(); |
| } |
| } else { |
| if (!other.entries_.isEmpty()) { |
| if (entriesBuilder_.isEmpty()) { |
| entriesBuilder_.dispose(); |
| entriesBuilder_ = null; |
| entries_ = other.entries_; |
| bitField0_ = (bitField0_ & ~0x00000080); |
| entriesBuilder_ = |
| com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? |
| getEntriesFieldBuilder() : null; |
| } else { |
| entriesBuilder_.addAllMessages(other.entries_); |
| } |
| } |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasHostname()) { |
| |
| return false; |
| } |
| if (!hasState()) { |
| |
| return false; |
| } |
| if (!hasHttpAddress()) { |
| |
| return false; |
| } |
| if (!hasRackName()) { |
| |
| return false; |
| } |
| if (!hasLabels()) { |
| |
| return false; |
| } |
| if (!hasHealthReport()) { |
| |
| return false; |
| } |
| if (!hasLastUpdated()) { |
| |
| return false; |
| } |
| for (int i = 0; i < getEntriesCount(); i++) { |
| if (!getEntries(i).isInitialized()) { |
| |
| return false; |
| } |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.NodeInformationProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.NodeInformationProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // required string hostname = 1; |
| private java.lang.Object hostname_ = ""; |
| /** |
| * <code>required string hostname = 1;</code> |
| */ |
| public boolean hasHostname() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string hostname = 1;</code> |
| */ |
| public java.lang.String getHostname() { |
| java.lang.Object ref = hostname_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| hostname_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string hostname = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getHostnameBytes() { |
| java.lang.Object ref = hostname_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| hostname_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>required string hostname = 1;</code> |
| */ |
| public Builder setHostname( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| hostname_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string hostname = 1;</code> |
| */ |
| public Builder clearHostname() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| hostname_ = getDefaultInstance().getHostname(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string hostname = 1;</code> |
| */ |
| public Builder setHostnameBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| hostname_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // required string state = 2; |
| private java.lang.Object state_ = ""; |
| /** |
| * <code>required string state = 2;</code> |
| */ |
| public boolean hasState() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>required string state = 2;</code> |
| */ |
| public java.lang.String getState() { |
| java.lang.Object ref = state_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| state_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string state = 2;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getStateBytes() { |
| java.lang.Object ref = state_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| state_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>required string state = 2;</code> |
| */ |
| public Builder setState( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| state_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string state = 2;</code> |
| */ |
| public Builder clearState() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| state_ = getDefaultInstance().getState(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string state = 2;</code> |
| */ |
| public Builder setStateBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| state_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // required string httpAddress = 3; |
| private java.lang.Object httpAddress_ = ""; |
| /** |
| * <code>required string httpAddress = 3;</code> |
| */ |
| public boolean hasHttpAddress() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>required string httpAddress = 3;</code> |
| */ |
| public java.lang.String getHttpAddress() { |
| java.lang.Object ref = httpAddress_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| httpAddress_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string httpAddress = 3;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getHttpAddressBytes() { |
| java.lang.Object ref = httpAddress_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| httpAddress_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>required string httpAddress = 3;</code> |
| */ |
| public Builder setHttpAddress( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000004; |
| httpAddress_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string httpAddress = 3;</code> |
| */ |
| public Builder clearHttpAddress() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| httpAddress_ = getDefaultInstance().getHttpAddress(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string httpAddress = 3;</code> |
| */ |
| public Builder setHttpAddressBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000004; |
| httpAddress_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // required string rackName = 4; |
| private java.lang.Object rackName_ = ""; |
| /** |
| * <code>required string rackName = 4;</code> |
| */ |
| public boolean hasRackName() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| /** |
| * <code>required string rackName = 4;</code> |
| */ |
| public java.lang.String getRackName() { |
| java.lang.Object ref = rackName_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| rackName_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string rackName = 4;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getRackNameBytes() { |
| java.lang.Object ref = rackName_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| rackName_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>required string rackName = 4;</code> |
| */ |
| public Builder setRackName( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000008; |
| rackName_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string rackName = 4;</code> |
| */ |
| public Builder clearRackName() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| rackName_ = getDefaultInstance().getRackName(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string rackName = 4;</code> |
| */ |
| public Builder setRackNameBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000008; |
| rackName_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // required string labels = 5; |
| private java.lang.Object labels_ = ""; |
| /** |
| * <code>required string labels = 5;</code> |
| */ |
| public boolean hasLabels() { |
| return ((bitField0_ & 0x00000010) == 0x00000010); |
| } |
| /** |
| * <code>required string labels = 5;</code> |
| */ |
| public java.lang.String getLabels() { |
| java.lang.Object ref = labels_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| labels_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string labels = 5;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getLabelsBytes() { |
| java.lang.Object ref = labels_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| labels_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>required string labels = 5;</code> |
| */ |
| public Builder setLabels( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000010; |
| labels_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string labels = 5;</code> |
| */ |
| public Builder clearLabels() { |
| bitField0_ = (bitField0_ & ~0x00000010); |
| labels_ = getDefaultInstance().getLabels(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string labels = 5;</code> |
| */ |
| public Builder setLabelsBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000010; |
| labels_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // required string healthReport = 6; |
| private java.lang.Object healthReport_ = ""; |
| /** |
| * <code>required string healthReport = 6;</code> |
| */ |
| public boolean hasHealthReport() { |
| return ((bitField0_ & 0x00000020) == 0x00000020); |
| } |
| /** |
| * <code>required string healthReport = 6;</code> |
| */ |
| public java.lang.String getHealthReport() { |
| java.lang.Object ref = healthReport_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| healthReport_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string healthReport = 6;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getHealthReportBytes() { |
| java.lang.Object ref = healthReport_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| healthReport_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>required string healthReport = 6;</code> |
| */ |
| public Builder setHealthReport( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000020; |
| healthReport_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string healthReport = 6;</code> |
| */ |
| public Builder clearHealthReport() { |
| bitField0_ = (bitField0_ & ~0x00000020); |
| healthReport_ = getDefaultInstance().getHealthReport(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string healthReport = 6;</code> |
| */ |
| public Builder setHealthReportBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000020; |
| healthReport_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // required int64 lastUpdated = 7; |
| private long lastUpdated_ ; |
| /** |
| * <code>required int64 lastUpdated = 7;</code> |
| */ |
| public boolean hasLastUpdated() { |
| return ((bitField0_ & 0x00000040) == 0x00000040); |
| } |
| /** |
| * <code>required int64 lastUpdated = 7;</code> |
| */ |
| public long getLastUpdated() { |
| return lastUpdated_; |
| } |
| /** |
| * <code>required int64 lastUpdated = 7;</code> |
| */ |
| public Builder setLastUpdated(long value) { |
| bitField0_ |= 0x00000040; |
| lastUpdated_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required int64 lastUpdated = 7;</code> |
| */ |
| public Builder clearLastUpdated() { |
| bitField0_ = (bitField0_ & ~0x00000040); |
| lastUpdated_ = 0L; |
| onChanged(); |
| return this; |
| } |
| |
| // repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8; |
| private java.util.List<org.apache.slider.api.proto.Messages.NodeEntryInformationProto> entries_ = |
| java.util.Collections.emptyList(); |
| private void ensureEntriesIsMutable() { |
| if (!((bitField0_ & 0x00000080) == 0x00000080)) { |
| entries_ = new java.util.ArrayList<org.apache.slider.api.proto.Messages.NodeEntryInformationProto>(entries_); |
| bitField0_ |= 0x00000080; |
| } |
| } |
| |
| private com.google.protobuf.RepeatedFieldBuilder< |
| org.apache.slider.api.proto.Messages.NodeEntryInformationProto, org.apache.slider.api.proto.Messages.NodeEntryInformationProto.Builder, org.apache.slider.api.proto.Messages.NodeEntryInformationProtoOrBuilder> entriesBuilder_; |
| |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| public java.util.List<org.apache.slider.api.proto.Messages.NodeEntryInformationProto> getEntriesList() { |
| if (entriesBuilder_ == null) { |
| return java.util.Collections.unmodifiableList(entries_); |
| } else { |
| return entriesBuilder_.getMessageList(); |
| } |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| public int getEntriesCount() { |
| if (entriesBuilder_ == null) { |
| return entries_.size(); |
| } else { |
| return entriesBuilder_.getCount(); |
| } |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.NodeEntryInformationProto getEntries(int index) { |
| if (entriesBuilder_ == null) { |
| return entries_.get(index); |
| } else { |
| return entriesBuilder_.getMessage(index); |
| } |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| public Builder setEntries( |
| int index, org.apache.slider.api.proto.Messages.NodeEntryInformationProto value) { |
| if (entriesBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureEntriesIsMutable(); |
| entries_.set(index, value); |
| onChanged(); |
| } else { |
| entriesBuilder_.setMessage(index, value); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| public Builder setEntries( |
| int index, org.apache.slider.api.proto.Messages.NodeEntryInformationProto.Builder builderForValue) { |
| if (entriesBuilder_ == null) { |
| ensureEntriesIsMutable(); |
| entries_.set(index, builderForValue.build()); |
| onChanged(); |
| } else { |
| entriesBuilder_.setMessage(index, builderForValue.build()); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| public Builder addEntries(org.apache.slider.api.proto.Messages.NodeEntryInformationProto value) { |
| if (entriesBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureEntriesIsMutable(); |
| entries_.add(value); |
| onChanged(); |
| } else { |
| entriesBuilder_.addMessage(value); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| public Builder addEntries( |
| int index, org.apache.slider.api.proto.Messages.NodeEntryInformationProto value) { |
| if (entriesBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureEntriesIsMutable(); |
| entries_.add(index, value); |
| onChanged(); |
| } else { |
| entriesBuilder_.addMessage(index, value); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| public Builder addEntries( |
| org.apache.slider.api.proto.Messages.NodeEntryInformationProto.Builder builderForValue) { |
| if (entriesBuilder_ == null) { |
| ensureEntriesIsMutable(); |
| entries_.add(builderForValue.build()); |
| onChanged(); |
| } else { |
| entriesBuilder_.addMessage(builderForValue.build()); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| public Builder addEntries( |
| int index, org.apache.slider.api.proto.Messages.NodeEntryInformationProto.Builder builderForValue) { |
| if (entriesBuilder_ == null) { |
| ensureEntriesIsMutable(); |
| entries_.add(index, builderForValue.build()); |
| onChanged(); |
| } else { |
| entriesBuilder_.addMessage(index, builderForValue.build()); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| public Builder addAllEntries( |
| java.lang.Iterable<? extends org.apache.slider.api.proto.Messages.NodeEntryInformationProto> values) { |
| if (entriesBuilder_ == null) { |
| ensureEntriesIsMutable(); |
| super.addAll(values, entries_); |
| onChanged(); |
| } else { |
| entriesBuilder_.addAllMessages(values); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| public Builder clearEntries() { |
| if (entriesBuilder_ == null) { |
| entries_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000080); |
| onChanged(); |
| } else { |
| entriesBuilder_.clear(); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| public Builder removeEntries(int index) { |
| if (entriesBuilder_ == null) { |
| ensureEntriesIsMutable(); |
| entries_.remove(index); |
| onChanged(); |
| } else { |
| entriesBuilder_.remove(index); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.NodeEntryInformationProto.Builder getEntriesBuilder( |
| int index) { |
| return getEntriesFieldBuilder().getBuilder(index); |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.NodeEntryInformationProtoOrBuilder getEntriesOrBuilder( |
| int index) { |
| if (entriesBuilder_ == null) { |
| return entries_.get(index); } else { |
| return entriesBuilder_.getMessageOrBuilder(index); |
| } |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| public java.util.List<? extends org.apache.slider.api.proto.Messages.NodeEntryInformationProtoOrBuilder> |
| getEntriesOrBuilderList() { |
| if (entriesBuilder_ != null) { |
| return entriesBuilder_.getMessageOrBuilderList(); |
| } else { |
| return java.util.Collections.unmodifiableList(entries_); |
| } |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.NodeEntryInformationProto.Builder addEntriesBuilder() { |
| return getEntriesFieldBuilder().addBuilder( |
| org.apache.slider.api.proto.Messages.NodeEntryInformationProto.getDefaultInstance()); |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.NodeEntryInformationProto.Builder addEntriesBuilder( |
| int index) { |
| return getEntriesFieldBuilder().addBuilder( |
| index, org.apache.slider.api.proto.Messages.NodeEntryInformationProto.getDefaultInstance()); |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeEntryInformationProto entries = 8;</code> |
| */ |
| public java.util.List<org.apache.slider.api.proto.Messages.NodeEntryInformationProto.Builder> |
| getEntriesBuilderList() { |
| return getEntriesFieldBuilder().getBuilderList(); |
| } |
| private com.google.protobuf.RepeatedFieldBuilder< |
| org.apache.slider.api.proto.Messages.NodeEntryInformationProto, org.apache.slider.api.proto.Messages.NodeEntryInformationProto.Builder, org.apache.slider.api.proto.Messages.NodeEntryInformationProtoOrBuilder> |
| getEntriesFieldBuilder() { |
| if (entriesBuilder_ == null) { |
| entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< |
| org.apache.slider.api.proto.Messages.NodeEntryInformationProto, org.apache.slider.api.proto.Messages.NodeEntryInformationProto.Builder, org.apache.slider.api.proto.Messages.NodeEntryInformationProtoOrBuilder>( |
| entries_, |
| ((bitField0_ & 0x00000080) == 0x00000080), |
| getParentForChildren(), |
| isClean()); |
| entries_ = null; |
| } |
| return entriesBuilder_; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.NodeInformationProto) |
| } |
| |
| static { |
| defaultInstance = new NodeInformationProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.NodeInformationProto) |
| } |
| |
| public interface GetModelRequestProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetModelRequestProto} |
| */ |
| public static final class GetModelRequestProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetModelRequestProtoOrBuilder { |
| // Use GetModelRequestProto.newBuilder() to construct. |
| private GetModelRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetModelRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetModelRequestProto defaultInstance; |
| public static GetModelRequestProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetModelRequestProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetModelRequestProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| 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.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetModelRequestProto.class, org.apache.slider.api.proto.Messages.GetModelRequestProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetModelRequestProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetModelRequestProto>() { |
| public GetModelRequestProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetModelRequestProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetModelRequestProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private void initFields() { |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetModelRequestProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetModelRequestProto other = (org.apache.slider.api.proto.Messages.GetModelRequestProto) obj; |
| |
| boolean result = true; |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetModelRequestProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelRequestProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelRequestProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelRequestProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelRequestProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelRequestProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelRequestProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelRequestProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetModelRequestProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetModelRequestProto} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetModelRequestProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetModelRequestProto.class, org.apache.slider.api.proto.Messages.GetModelRequestProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetModelRequestProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelRequestProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetModelRequestProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetModelRequestProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetModelRequestProto build() { |
| org.apache.slider.api.proto.Messages.GetModelRequestProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetModelRequestProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetModelRequestProto result = new org.apache.slider.api.proto.Messages.GetModelRequestProto(this); |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetModelRequestProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetModelRequestProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetModelRequestProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetModelRequestProto.getDefaultInstance()) return this; |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetModelRequestProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetModelRequestProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetModelRequestProto) |
| } |
| |
| static { |
| defaultInstance = new GetModelRequestProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetModelRequestProto) |
| } |
| |
| public interface GetModelDesiredRequestProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetModelDesiredRequestProto} |
| */ |
| public static final class GetModelDesiredRequestProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetModelDesiredRequestProtoOrBuilder { |
| // Use GetModelDesiredRequestProto.newBuilder() to construct. |
| private GetModelDesiredRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetModelDesiredRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetModelDesiredRequestProto defaultInstance; |
| public static GetModelDesiredRequestProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetModelDesiredRequestProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetModelDesiredRequestProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| 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.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto.class, org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetModelDesiredRequestProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetModelDesiredRequestProto>() { |
| public GetModelDesiredRequestProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetModelDesiredRequestProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetModelDesiredRequestProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private void initFields() { |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto other = (org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto) obj; |
| |
| boolean result = true; |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetModelDesiredRequestProto} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetModelDesiredRequestProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto.class, org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredRequestProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto build() { |
| org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto result = new org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto(this); |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto.getDefaultInstance()) return this; |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetModelDesiredRequestProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetModelDesiredRequestProto) |
| } |
| |
| static { |
| defaultInstance = new GetModelDesiredRequestProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetModelDesiredRequestProto) |
| } |
| |
| public interface GetModelDesiredAppconfRequestProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetModelDesiredAppconfRequestProto} |
| */ |
| public static final class GetModelDesiredAppconfRequestProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetModelDesiredAppconfRequestProtoOrBuilder { |
| // Use GetModelDesiredAppconfRequestProto.newBuilder() to construct. |
| private GetModelDesiredAppconfRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetModelDesiredAppconfRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetModelDesiredAppconfRequestProto defaultInstance; |
| public static GetModelDesiredAppconfRequestProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetModelDesiredAppconfRequestProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetModelDesiredAppconfRequestProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| 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.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredAppconfRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredAppconfRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto.class, org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetModelDesiredAppconfRequestProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetModelDesiredAppconfRequestProto>() { |
| public GetModelDesiredAppconfRequestProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetModelDesiredAppconfRequestProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetModelDesiredAppconfRequestProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private void initFields() { |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto other = (org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto) obj; |
| |
| boolean result = true; |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetModelDesiredAppconfRequestProto} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredAppconfRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredAppconfRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto.class, org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredAppconfRequestProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto build() { |
| org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto result = new org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto(this); |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto.getDefaultInstance()) return this; |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetModelDesiredAppconfRequestProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetModelDesiredAppconfRequestProto) |
| } |
| |
| static { |
| defaultInstance = new GetModelDesiredAppconfRequestProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetModelDesiredAppconfRequestProto) |
| } |
| |
| public interface GetModelDesiredResourcesRequestProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetModelDesiredResourcesRequestProto} |
| */ |
| public static final class GetModelDesiredResourcesRequestProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetModelDesiredResourcesRequestProtoOrBuilder { |
| // Use GetModelDesiredResourcesRequestProto.newBuilder() to construct. |
| private GetModelDesiredResourcesRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetModelDesiredResourcesRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetModelDesiredResourcesRequestProto defaultInstance; |
| public static GetModelDesiredResourcesRequestProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetModelDesiredResourcesRequestProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetModelDesiredResourcesRequestProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| 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.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredResourcesRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredResourcesRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto.class, org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetModelDesiredResourcesRequestProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetModelDesiredResourcesRequestProto>() { |
| public GetModelDesiredResourcesRequestProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetModelDesiredResourcesRequestProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetModelDesiredResourcesRequestProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private void initFields() { |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto other = (org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto) obj; |
| |
| boolean result = true; |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetModelDesiredResourcesRequestProto} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredResourcesRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredResourcesRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto.class, org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelDesiredResourcesRequestProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto build() { |
| org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto result = new org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto(this); |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto.getDefaultInstance()) return this; |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetModelDesiredResourcesRequestProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetModelDesiredResourcesRequestProto) |
| } |
| |
| static { |
| defaultInstance = new GetModelDesiredResourcesRequestProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetModelDesiredResourcesRequestProto) |
| } |
| |
| public interface GetModelResolvedAppconfRequestProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetModelResolvedAppconfRequestProto} |
| */ |
| public static final class GetModelResolvedAppconfRequestProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetModelResolvedAppconfRequestProtoOrBuilder { |
| // Use GetModelResolvedAppconfRequestProto.newBuilder() to construct. |
| private GetModelResolvedAppconfRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetModelResolvedAppconfRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetModelResolvedAppconfRequestProto defaultInstance; |
| public static GetModelResolvedAppconfRequestProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetModelResolvedAppconfRequestProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetModelResolvedAppconfRequestProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| 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.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelResolvedAppconfRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelResolvedAppconfRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto.class, org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetModelResolvedAppconfRequestProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetModelResolvedAppconfRequestProto>() { |
| public GetModelResolvedAppconfRequestProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetModelResolvedAppconfRequestProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetModelResolvedAppconfRequestProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private void initFields() { |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto other = (org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto) obj; |
| |
| boolean result = true; |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetModelResolvedAppconfRequestProto} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelResolvedAppconfRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelResolvedAppconfRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto.class, org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelResolvedAppconfRequestProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto build() { |
| org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto result = new org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto(this); |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto.getDefaultInstance()) return this; |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetModelResolvedAppconfRequestProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetModelResolvedAppconfRequestProto) |
| } |
| |
| static { |
| defaultInstance = new GetModelResolvedAppconfRequestProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetModelResolvedAppconfRequestProto) |
| } |
| |
| public interface GetModelResolvedResourcesRequestProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetModelResolvedResourcesRequestProto} |
| */ |
| public static final class GetModelResolvedResourcesRequestProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetModelResolvedResourcesRequestProtoOrBuilder { |
| // Use GetModelResolvedResourcesRequestProto.newBuilder() to construct. |
| private GetModelResolvedResourcesRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetModelResolvedResourcesRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetModelResolvedResourcesRequestProto defaultInstance; |
| public static GetModelResolvedResourcesRequestProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetModelResolvedResourcesRequestProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetModelResolvedResourcesRequestProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| 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.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelResolvedResourcesRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelResolvedResourcesRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto.class, org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetModelResolvedResourcesRequestProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetModelResolvedResourcesRequestProto>() { |
| public GetModelResolvedResourcesRequestProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetModelResolvedResourcesRequestProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetModelResolvedResourcesRequestProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private void initFields() { |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto other = (org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto) obj; |
| |
| boolean result = true; |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetModelResolvedResourcesRequestProto} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelResolvedResourcesRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelResolvedResourcesRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto.class, org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelResolvedResourcesRequestProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto build() { |
| org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto result = new org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto(this); |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto.getDefaultInstance()) return this; |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetModelResolvedResourcesRequestProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetModelResolvedResourcesRequestProto) |
| } |
| |
| static { |
| defaultInstance = new GetModelResolvedResourcesRequestProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetModelResolvedResourcesRequestProto) |
| } |
| |
| public interface GetModelLiveResourcesRequestProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetModelLiveResourcesRequestProto} |
| */ |
| public static final class GetModelLiveResourcesRequestProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetModelLiveResourcesRequestProtoOrBuilder { |
| // Use GetModelLiveResourcesRequestProto.newBuilder() to construct. |
| private GetModelLiveResourcesRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetModelLiveResourcesRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetModelLiveResourcesRequestProto defaultInstance; |
| public static GetModelLiveResourcesRequestProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetModelLiveResourcesRequestProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetModelLiveResourcesRequestProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| 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.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelLiveResourcesRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelLiveResourcesRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto.class, org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetModelLiveResourcesRequestProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetModelLiveResourcesRequestProto>() { |
| public GetModelLiveResourcesRequestProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetModelLiveResourcesRequestProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetModelLiveResourcesRequestProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private void initFields() { |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto other = (org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto) obj; |
| |
| boolean result = true; |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetModelLiveResourcesRequestProto} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelLiveResourcesRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelLiveResourcesRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto.class, org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetModelLiveResourcesRequestProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto build() { |
| org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto result = new org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto(this); |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto.getDefaultInstance()) return this; |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetModelLiveResourcesRequestProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetModelLiveResourcesRequestProto) |
| } |
| |
| static { |
| defaultInstance = new GetModelLiveResourcesRequestProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetModelLiveResourcesRequestProto) |
| } |
| |
| public interface GetLiveContainersRequestProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetLiveContainersRequestProto} |
| */ |
| public static final class GetLiveContainersRequestProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetLiveContainersRequestProtoOrBuilder { |
| // Use GetLiveContainersRequestProto.newBuilder() to construct. |
| private GetLiveContainersRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetLiveContainersRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetLiveContainersRequestProto defaultInstance; |
| public static GetLiveContainersRequestProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetLiveContainersRequestProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetLiveContainersRequestProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| 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.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainersRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainersRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto.class, org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetLiveContainersRequestProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetLiveContainersRequestProto>() { |
| public GetLiveContainersRequestProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetLiveContainersRequestProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetLiveContainersRequestProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private void initFields() { |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto other = (org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto) obj; |
| |
| boolean result = true; |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetLiveContainersRequestProto} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetLiveContainersRequestProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainersRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainersRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto.class, org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainersRequestProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto build() { |
| org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto result = new org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto(this); |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto.getDefaultInstance()) return this; |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetLiveContainersRequestProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetLiveContainersRequestProto) |
| } |
| |
| static { |
| defaultInstance = new GetLiveContainersRequestProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetLiveContainersRequestProto) |
| } |
| |
| public interface GetLiveContainersResponseProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // repeated string names = 1; |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| java.util.List<java.lang.String> |
| getNamesList(); |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| int getNamesCount(); |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| java.lang.String getNames(int index); |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| com.google.protobuf.ByteString |
| getNamesBytes(int index); |
| |
| // repeated .org.apache.slider.api.ContainerInformationProto containers = 2; |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| java.util.List<org.apache.slider.api.proto.Messages.ContainerInformationProto> |
| getContainersList(); |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| org.apache.slider.api.proto.Messages.ContainerInformationProto getContainers(int index); |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| int getContainersCount(); |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| java.util.List<? extends org.apache.slider.api.proto.Messages.ContainerInformationProtoOrBuilder> |
| getContainersOrBuilderList(); |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| org.apache.slider.api.proto.Messages.ContainerInformationProtoOrBuilder getContainersOrBuilder( |
| int index); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetLiveContainersResponseProto} |
| */ |
| public static final class GetLiveContainersResponseProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetLiveContainersResponseProtoOrBuilder { |
| // Use GetLiveContainersResponseProto.newBuilder() to construct. |
| private GetLiveContainersResponseProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetLiveContainersResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetLiveContainersResponseProto defaultInstance; |
| public static GetLiveContainersResponseProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetLiveContainersResponseProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetLiveContainersResponseProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { |
| names_ = new com.google.protobuf.LazyStringArrayList(); |
| mutable_bitField0_ |= 0x00000001; |
| } |
| names_.add(input.readBytes()); |
| break; |
| } |
| case 18: { |
| if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { |
| containers_ = new java.util.ArrayList<org.apache.slider.api.proto.Messages.ContainerInformationProto>(); |
| mutable_bitField0_ |= 0x00000002; |
| } |
| containers_.add(input.readMessage(org.apache.slider.api.proto.Messages.ContainerInformationProto.PARSER, extensionRegistry)); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { |
| names_ = new com.google.protobuf.UnmodifiableLazyStringList(names_); |
| } |
| if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { |
| containers_ = java.util.Collections.unmodifiableList(containers_); |
| } |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainersResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainersResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto.class, org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetLiveContainersResponseProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetLiveContainersResponseProto>() { |
| public GetLiveContainersResponseProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetLiveContainersResponseProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetLiveContainersResponseProto> getParserForType() { |
| return PARSER; |
| } |
| |
| // repeated string names = 1; |
| public static final int NAMES_FIELD_NUMBER = 1; |
| private com.google.protobuf.LazyStringList names_; |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| public java.util.List<java.lang.String> |
| getNamesList() { |
| return names_; |
| } |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| public int getNamesCount() { |
| return names_.size(); |
| } |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| public java.lang.String getNames(int index) { |
| return names_.get(index); |
| } |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getNamesBytes(int index) { |
| return names_.getByteString(index); |
| } |
| |
| // repeated .org.apache.slider.api.ContainerInformationProto containers = 2; |
| public static final int CONTAINERS_FIELD_NUMBER = 2; |
| private java.util.List<org.apache.slider.api.proto.Messages.ContainerInformationProto> containers_; |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| public java.util.List<org.apache.slider.api.proto.Messages.ContainerInformationProto> getContainersList() { |
| return containers_; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| public java.util.List<? extends org.apache.slider.api.proto.Messages.ContainerInformationProtoOrBuilder> |
| getContainersOrBuilderList() { |
| return containers_; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| public int getContainersCount() { |
| return containers_.size(); |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.ContainerInformationProto getContainers(int index) { |
| return containers_.get(index); |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.ContainerInformationProtoOrBuilder getContainersOrBuilder( |
| int index) { |
| return containers_.get(index); |
| } |
| |
| private void initFields() { |
| names_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| containers_ = java.util.Collections.emptyList(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| for (int i = 0; i < names_.size(); i++) { |
| output.writeBytes(1, names_.getByteString(i)); |
| } |
| for (int i = 0; i < containers_.size(); i++) { |
| output.writeMessage(2, containers_.get(i)); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| { |
| int dataSize = 0; |
| for (int i = 0; i < names_.size(); i++) { |
| dataSize += com.google.protobuf.CodedOutputStream |
| .computeBytesSizeNoTag(names_.getByteString(i)); |
| } |
| size += dataSize; |
| size += 1 * getNamesList().size(); |
| } |
| for (int i = 0; i < containers_.size(); i++) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(2, containers_.get(i)); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto other = (org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto) obj; |
| |
| boolean result = true; |
| result = result && getNamesList() |
| .equals(other.getNamesList()); |
| result = result && getContainersList() |
| .equals(other.getContainersList()); |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (getNamesCount() > 0) { |
| hash = (37 * hash) + NAMES_FIELD_NUMBER; |
| hash = (53 * hash) + getNamesList().hashCode(); |
| } |
| if (getContainersCount() > 0) { |
| hash = (37 * hash) + CONTAINERS_FIELD_NUMBER; |
| hash = (53 * hash) + getContainersList().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetLiveContainersResponseProto} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetLiveContainersResponseProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainersResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainersResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto.class, org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getContainersFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| names_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| if (containersBuilder_ == null) { |
| containers_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000002); |
| } else { |
| containersBuilder_.clear(); |
| } |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainersResponseProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto build() { |
| org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto result = new org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto(this); |
| int from_bitField0_ = bitField0_; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| names_ = new com.google.protobuf.UnmodifiableLazyStringList( |
| names_); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } |
| result.names_ = names_; |
| if (containersBuilder_ == null) { |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| containers_ = java.util.Collections.unmodifiableList(containers_); |
| bitField0_ = (bitField0_ & ~0x00000002); |
| } |
| result.containers_ = containers_; |
| } else { |
| result.containers_ = containersBuilder_.build(); |
| } |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto.getDefaultInstance()) return this; |
| if (!other.names_.isEmpty()) { |
| if (names_.isEmpty()) { |
| names_ = other.names_; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } else { |
| ensureNamesIsMutable(); |
| names_.addAll(other.names_); |
| } |
| onChanged(); |
| } |
| if (containersBuilder_ == null) { |
| if (!other.containers_.isEmpty()) { |
| if (containers_.isEmpty()) { |
| containers_ = other.containers_; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| } else { |
| ensureContainersIsMutable(); |
| containers_.addAll(other.containers_); |
| } |
| onChanged(); |
| } |
| } else { |
| if (!other.containers_.isEmpty()) { |
| if (containersBuilder_.isEmpty()) { |
| containersBuilder_.dispose(); |
| containersBuilder_ = null; |
| containers_ = other.containers_; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| containersBuilder_ = |
| com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? |
| getContainersFieldBuilder() : null; |
| } else { |
| containersBuilder_.addAllMessages(other.containers_); |
| } |
| } |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetLiveContainersResponseProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // repeated string names = 1; |
| private com.google.protobuf.LazyStringList names_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| private void ensureNamesIsMutable() { |
| if (!((bitField0_ & 0x00000001) == 0x00000001)) { |
| names_ = new com.google.protobuf.LazyStringArrayList(names_); |
| bitField0_ |= 0x00000001; |
| } |
| } |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| public java.util.List<java.lang.String> |
| getNamesList() { |
| return java.util.Collections.unmodifiableList(names_); |
| } |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| public int getNamesCount() { |
| return names_.size(); |
| } |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| public java.lang.String getNames(int index) { |
| return names_.get(index); |
| } |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getNamesBytes(int index) { |
| return names_.getByteString(index); |
| } |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| public Builder setNames( |
| int index, java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureNamesIsMutable(); |
| names_.set(index, value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| public Builder addNames( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureNamesIsMutable(); |
| names_.add(value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| public Builder addAllNames( |
| java.lang.Iterable<java.lang.String> values) { |
| ensureNamesIsMutable(); |
| super.addAll(values, names_); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| public Builder clearNames() { |
| names_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| public Builder addNamesBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureNamesIsMutable(); |
| names_.add(value); |
| onChanged(); |
| return this; |
| } |
| |
| // repeated .org.apache.slider.api.ContainerInformationProto containers = 2; |
| private java.util.List<org.apache.slider.api.proto.Messages.ContainerInformationProto> containers_ = |
| java.util.Collections.emptyList(); |
| private void ensureContainersIsMutable() { |
| if (!((bitField0_ & 0x00000002) == 0x00000002)) { |
| containers_ = new java.util.ArrayList<org.apache.slider.api.proto.Messages.ContainerInformationProto>(containers_); |
| bitField0_ |= 0x00000002; |
| } |
| } |
| |
| private com.google.protobuf.RepeatedFieldBuilder< |
| org.apache.slider.api.proto.Messages.ContainerInformationProto, org.apache.slider.api.proto.Messages.ContainerInformationProto.Builder, org.apache.slider.api.proto.Messages.ContainerInformationProtoOrBuilder> containersBuilder_; |
| |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| public java.util.List<org.apache.slider.api.proto.Messages.ContainerInformationProto> getContainersList() { |
| if (containersBuilder_ == null) { |
| return java.util.Collections.unmodifiableList(containers_); |
| } else { |
| return containersBuilder_.getMessageList(); |
| } |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| public int getContainersCount() { |
| if (containersBuilder_ == null) { |
| return containers_.size(); |
| } else { |
| return containersBuilder_.getCount(); |
| } |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.ContainerInformationProto getContainers(int index) { |
| if (containersBuilder_ == null) { |
| return containers_.get(index); |
| } else { |
| return containersBuilder_.getMessage(index); |
| } |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| public Builder setContainers( |
| int index, org.apache.slider.api.proto.Messages.ContainerInformationProto value) { |
| if (containersBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureContainersIsMutable(); |
| containers_.set(index, value); |
| onChanged(); |
| } else { |
| containersBuilder_.setMessage(index, value); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| public Builder setContainers( |
| int index, org.apache.slider.api.proto.Messages.ContainerInformationProto.Builder builderForValue) { |
| if (containersBuilder_ == null) { |
| ensureContainersIsMutable(); |
| containers_.set(index, builderForValue.build()); |
| onChanged(); |
| } else { |
| containersBuilder_.setMessage(index, builderForValue.build()); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| public Builder addContainers(org.apache.slider.api.proto.Messages.ContainerInformationProto value) { |
| if (containersBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureContainersIsMutable(); |
| containers_.add(value); |
| onChanged(); |
| } else { |
| containersBuilder_.addMessage(value); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| public Builder addContainers( |
| int index, org.apache.slider.api.proto.Messages.ContainerInformationProto value) { |
| if (containersBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureContainersIsMutable(); |
| containers_.add(index, value); |
| onChanged(); |
| } else { |
| containersBuilder_.addMessage(index, value); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| public Builder addContainers( |
| org.apache.slider.api.proto.Messages.ContainerInformationProto.Builder builderForValue) { |
| if (containersBuilder_ == null) { |
| ensureContainersIsMutable(); |
| containers_.add(builderForValue.build()); |
| onChanged(); |
| } else { |
| containersBuilder_.addMessage(builderForValue.build()); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| public Builder addContainers( |
| int index, org.apache.slider.api.proto.Messages.ContainerInformationProto.Builder builderForValue) { |
| if (containersBuilder_ == null) { |
| ensureContainersIsMutable(); |
| containers_.add(index, builderForValue.build()); |
| onChanged(); |
| } else { |
| containersBuilder_.addMessage(index, builderForValue.build()); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| public Builder addAllContainers( |
| java.lang.Iterable<? extends org.apache.slider.api.proto.Messages.ContainerInformationProto> values) { |
| if (containersBuilder_ == null) { |
| ensureContainersIsMutable(); |
| super.addAll(values, containers_); |
| onChanged(); |
| } else { |
| containersBuilder_.addAllMessages(values); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| public Builder clearContainers() { |
| if (containersBuilder_ == null) { |
| containers_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000002); |
| onChanged(); |
| } else { |
| containersBuilder_.clear(); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| public Builder removeContainers(int index) { |
| if (containersBuilder_ == null) { |
| ensureContainersIsMutable(); |
| containers_.remove(index); |
| onChanged(); |
| } else { |
| containersBuilder_.remove(index); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.ContainerInformationProto.Builder getContainersBuilder( |
| int index) { |
| return getContainersFieldBuilder().getBuilder(index); |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.ContainerInformationProtoOrBuilder getContainersOrBuilder( |
| int index) { |
| if (containersBuilder_ == null) { |
| return containers_.get(index); } else { |
| return containersBuilder_.getMessageOrBuilder(index); |
| } |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| public java.util.List<? extends org.apache.slider.api.proto.Messages.ContainerInformationProtoOrBuilder> |
| getContainersOrBuilderList() { |
| if (containersBuilder_ != null) { |
| return containersBuilder_.getMessageOrBuilderList(); |
| } else { |
| return java.util.Collections.unmodifiableList(containers_); |
| } |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.ContainerInformationProto.Builder addContainersBuilder() { |
| return getContainersFieldBuilder().addBuilder( |
| org.apache.slider.api.proto.Messages.ContainerInformationProto.getDefaultInstance()); |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.ContainerInformationProto.Builder addContainersBuilder( |
| int index) { |
| return getContainersFieldBuilder().addBuilder( |
| index, org.apache.slider.api.proto.Messages.ContainerInformationProto.getDefaultInstance()); |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ContainerInformationProto containers = 2;</code> |
| */ |
| public java.util.List<org.apache.slider.api.proto.Messages.ContainerInformationProto.Builder> |
| getContainersBuilderList() { |
| return getContainersFieldBuilder().getBuilderList(); |
| } |
| private com.google.protobuf.RepeatedFieldBuilder< |
| org.apache.slider.api.proto.Messages.ContainerInformationProto, org.apache.slider.api.proto.Messages.ContainerInformationProto.Builder, org.apache.slider.api.proto.Messages.ContainerInformationProtoOrBuilder> |
| getContainersFieldBuilder() { |
| if (containersBuilder_ == null) { |
| containersBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< |
| org.apache.slider.api.proto.Messages.ContainerInformationProto, org.apache.slider.api.proto.Messages.ContainerInformationProto.Builder, org.apache.slider.api.proto.Messages.ContainerInformationProtoOrBuilder>( |
| containers_, |
| ((bitField0_ & 0x00000002) == 0x00000002), |
| getParentForChildren(), |
| isClean()); |
| containers_ = null; |
| } |
| return containersBuilder_; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetLiveContainersResponseProto) |
| } |
| |
| static { |
| defaultInstance = new GetLiveContainersResponseProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetLiveContainersResponseProto) |
| } |
| |
| public interface GetLiveContainerRequestProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required string containerId = 1; |
| /** |
| * <code>required string containerId = 1;</code> |
| */ |
| boolean hasContainerId(); |
| /** |
| * <code>required string containerId = 1;</code> |
| */ |
| java.lang.String getContainerId(); |
| /** |
| * <code>required string containerId = 1;</code> |
| */ |
| com.google.protobuf.ByteString |
| getContainerIdBytes(); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetLiveContainerRequestProto} |
| */ |
| public static final class GetLiveContainerRequestProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetLiveContainerRequestProtoOrBuilder { |
| // Use GetLiveContainerRequestProto.newBuilder() to construct. |
| private GetLiveContainerRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetLiveContainerRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetLiveContainerRequestProto defaultInstance; |
| public static GetLiveContainerRequestProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetLiveContainerRequestProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetLiveContainerRequestProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| containerId_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainerRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainerRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto.class, org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetLiveContainerRequestProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetLiveContainerRequestProto>() { |
| public GetLiveContainerRequestProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetLiveContainerRequestProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetLiveContainerRequestProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required string containerId = 1; |
| public static final int CONTAINERID_FIELD_NUMBER = 1; |
| private java.lang.Object containerId_; |
| /** |
| * <code>required string containerId = 1;</code> |
| */ |
| public boolean hasContainerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string containerId = 1;</code> |
| */ |
| public java.lang.String getContainerId() { |
| java.lang.Object ref = containerId_; |
| 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()) { |
| containerId_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string containerId = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getContainerIdBytes() { |
| java.lang.Object ref = containerId_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| containerId_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| private void initFields() { |
| containerId_ = ""; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasContainerId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getContainerIdBytes()); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, getContainerIdBytes()); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto other = (org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto) obj; |
| |
| boolean result = true; |
| result = result && (hasContainerId() == other.hasContainerId()); |
| if (hasContainerId()) { |
| result = result && getContainerId() |
| .equals(other.getContainerId()); |
| } |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasContainerId()) { |
| hash = (37 * hash) + CONTAINERID_FIELD_NUMBER; |
| hash = (53 * hash) + getContainerId().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetLiveContainerRequestProto} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetLiveContainerRequestProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainerRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainerRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto.class, org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| containerId_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveContainerRequestProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto build() { |
| org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto result = new org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.containerId_ = containerId_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto.getDefaultInstance()) return this; |
| if (other.hasContainerId()) { |
| bitField0_ |= 0x00000001; |
| containerId_ = other.containerId_; |
| onChanged(); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasContainerId()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetLiveContainerRequestProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // required string containerId = 1; |
| private java.lang.Object containerId_ = ""; |
| /** |
| * <code>required string containerId = 1;</code> |
| */ |
| public boolean hasContainerId() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string containerId = 1;</code> |
| */ |
| public java.lang.String getContainerId() { |
| java.lang.Object ref = containerId_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| containerId_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string containerId = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getContainerIdBytes() { |
| java.lang.Object ref = containerId_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| containerId_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>required string containerId = 1;</code> |
| */ |
| public Builder setContainerId( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| containerId_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string containerId = 1;</code> |
| */ |
| public Builder clearContainerId() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| containerId_ = getDefaultInstance().getContainerId(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string containerId = 1;</code> |
| */ |
| public Builder setContainerIdBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| containerId_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetLiveContainerRequestProto) |
| } |
| |
| static { |
| defaultInstance = new GetLiveContainerRequestProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetLiveContainerRequestProto) |
| } |
| |
| public interface GetLiveComponentsRequestProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetLiveComponentsRequestProto} |
| */ |
| public static final class GetLiveComponentsRequestProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetLiveComponentsRequestProtoOrBuilder { |
| // Use GetLiveComponentsRequestProto.newBuilder() to construct. |
| private GetLiveComponentsRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetLiveComponentsRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetLiveComponentsRequestProto defaultInstance; |
| public static GetLiveComponentsRequestProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetLiveComponentsRequestProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetLiveComponentsRequestProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| 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.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentsRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentsRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto.class, org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetLiveComponentsRequestProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetLiveComponentsRequestProto>() { |
| public GetLiveComponentsRequestProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetLiveComponentsRequestProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetLiveComponentsRequestProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private void initFields() { |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto other = (org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto) obj; |
| |
| boolean result = true; |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetLiveComponentsRequestProto} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentsRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentsRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto.class, org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentsRequestProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto build() { |
| org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto result = new org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto(this); |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto.getDefaultInstance()) return this; |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetLiveComponentsRequestProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetLiveComponentsRequestProto) |
| } |
| |
| static { |
| defaultInstance = new GetLiveComponentsRequestProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetLiveComponentsRequestProto) |
| } |
| |
| public interface GetLiveComponentsResponseProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // repeated string names = 1; |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| java.util.List<java.lang.String> |
| getNamesList(); |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| int getNamesCount(); |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| java.lang.String getNames(int index); |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| com.google.protobuf.ByteString |
| getNamesBytes(int index); |
| |
| // repeated .org.apache.slider.api.ComponentInformationProto components = 2; |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| java.util.List<org.apache.slider.api.proto.Messages.ComponentInformationProto> |
| getComponentsList(); |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| org.apache.slider.api.proto.Messages.ComponentInformationProto getComponents(int index); |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| int getComponentsCount(); |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| java.util.List<? extends org.apache.slider.api.proto.Messages.ComponentInformationProtoOrBuilder> |
| getComponentsOrBuilderList(); |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| org.apache.slider.api.proto.Messages.ComponentInformationProtoOrBuilder getComponentsOrBuilder( |
| int index); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetLiveComponentsResponseProto} |
| */ |
| public static final class GetLiveComponentsResponseProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetLiveComponentsResponseProtoOrBuilder { |
| // Use GetLiveComponentsResponseProto.newBuilder() to construct. |
| private GetLiveComponentsResponseProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetLiveComponentsResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetLiveComponentsResponseProto defaultInstance; |
| public static GetLiveComponentsResponseProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetLiveComponentsResponseProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetLiveComponentsResponseProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { |
| names_ = new com.google.protobuf.LazyStringArrayList(); |
| mutable_bitField0_ |= 0x00000001; |
| } |
| names_.add(input.readBytes()); |
| break; |
| } |
| case 18: { |
| if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { |
| components_ = new java.util.ArrayList<org.apache.slider.api.proto.Messages.ComponentInformationProto>(); |
| mutable_bitField0_ |= 0x00000002; |
| } |
| components_.add(input.readMessage(org.apache.slider.api.proto.Messages.ComponentInformationProto.PARSER, extensionRegistry)); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { |
| names_ = new com.google.protobuf.UnmodifiableLazyStringList(names_); |
| } |
| if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { |
| components_ = java.util.Collections.unmodifiableList(components_); |
| } |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentsResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentsResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto.class, org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetLiveComponentsResponseProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetLiveComponentsResponseProto>() { |
| public GetLiveComponentsResponseProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetLiveComponentsResponseProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetLiveComponentsResponseProto> getParserForType() { |
| return PARSER; |
| } |
| |
| // repeated string names = 1; |
| public static final int NAMES_FIELD_NUMBER = 1; |
| private com.google.protobuf.LazyStringList names_; |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| public java.util.List<java.lang.String> |
| getNamesList() { |
| return names_; |
| } |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| public int getNamesCount() { |
| return names_.size(); |
| } |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| public java.lang.String getNames(int index) { |
| return names_.get(index); |
| } |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getNamesBytes(int index) { |
| return names_.getByteString(index); |
| } |
| |
| // repeated .org.apache.slider.api.ComponentInformationProto components = 2; |
| public static final int COMPONENTS_FIELD_NUMBER = 2; |
| private java.util.List<org.apache.slider.api.proto.Messages.ComponentInformationProto> components_; |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| public java.util.List<org.apache.slider.api.proto.Messages.ComponentInformationProto> getComponentsList() { |
| return components_; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| public java.util.List<? extends org.apache.slider.api.proto.Messages.ComponentInformationProtoOrBuilder> |
| getComponentsOrBuilderList() { |
| return components_; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| public int getComponentsCount() { |
| return components_.size(); |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.ComponentInformationProto getComponents(int index) { |
| return components_.get(index); |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.ComponentInformationProtoOrBuilder getComponentsOrBuilder( |
| int index) { |
| return components_.get(index); |
| } |
| |
| private void initFields() { |
| names_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| components_ = java.util.Collections.emptyList(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| for (int i = 0; i < names_.size(); i++) { |
| output.writeBytes(1, names_.getByteString(i)); |
| } |
| for (int i = 0; i < components_.size(); i++) { |
| output.writeMessage(2, components_.get(i)); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| { |
| int dataSize = 0; |
| for (int i = 0; i < names_.size(); i++) { |
| dataSize += com.google.protobuf.CodedOutputStream |
| .computeBytesSizeNoTag(names_.getByteString(i)); |
| } |
| size += dataSize; |
| size += 1 * getNamesList().size(); |
| } |
| for (int i = 0; i < components_.size(); i++) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(2, components_.get(i)); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto other = (org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto) obj; |
| |
| boolean result = true; |
| result = result && getNamesList() |
| .equals(other.getNamesList()); |
| result = result && getComponentsList() |
| .equals(other.getComponentsList()); |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (getNamesCount() > 0) { |
| hash = (37 * hash) + NAMES_FIELD_NUMBER; |
| hash = (53 * hash) + getNamesList().hashCode(); |
| } |
| if (getComponentsCount() > 0) { |
| hash = (37 * hash) + COMPONENTS_FIELD_NUMBER; |
| hash = (53 * hash) + getComponentsList().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetLiveComponentsResponseProto} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentsResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentsResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto.class, org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getComponentsFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| names_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| if (componentsBuilder_ == null) { |
| components_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000002); |
| } else { |
| componentsBuilder_.clear(); |
| } |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentsResponseProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto build() { |
| org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto result = new org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto(this); |
| int from_bitField0_ = bitField0_; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| names_ = new com.google.protobuf.UnmodifiableLazyStringList( |
| names_); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } |
| result.names_ = names_; |
| if (componentsBuilder_ == null) { |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| components_ = java.util.Collections.unmodifiableList(components_); |
| bitField0_ = (bitField0_ & ~0x00000002); |
| } |
| result.components_ = components_; |
| } else { |
| result.components_ = componentsBuilder_.build(); |
| } |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto.getDefaultInstance()) return this; |
| if (!other.names_.isEmpty()) { |
| if (names_.isEmpty()) { |
| names_ = other.names_; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } else { |
| ensureNamesIsMutable(); |
| names_.addAll(other.names_); |
| } |
| onChanged(); |
| } |
| if (componentsBuilder_ == null) { |
| if (!other.components_.isEmpty()) { |
| if (components_.isEmpty()) { |
| components_ = other.components_; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| } else { |
| ensureComponentsIsMutable(); |
| components_.addAll(other.components_); |
| } |
| onChanged(); |
| } |
| } else { |
| if (!other.components_.isEmpty()) { |
| if (componentsBuilder_.isEmpty()) { |
| componentsBuilder_.dispose(); |
| componentsBuilder_ = null; |
| components_ = other.components_; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| componentsBuilder_ = |
| com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? |
| getComponentsFieldBuilder() : null; |
| } else { |
| componentsBuilder_.addAllMessages(other.components_); |
| } |
| } |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetLiveComponentsResponseProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // repeated string names = 1; |
| private com.google.protobuf.LazyStringList names_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| private void ensureNamesIsMutable() { |
| if (!((bitField0_ & 0x00000001) == 0x00000001)) { |
| names_ = new com.google.protobuf.LazyStringArrayList(names_); |
| bitField0_ |= 0x00000001; |
| } |
| } |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| public java.util.List<java.lang.String> |
| getNamesList() { |
| return java.util.Collections.unmodifiableList(names_); |
| } |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| public int getNamesCount() { |
| return names_.size(); |
| } |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| public java.lang.String getNames(int index) { |
| return names_.get(index); |
| } |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getNamesBytes(int index) { |
| return names_.getByteString(index); |
| } |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| public Builder setNames( |
| int index, java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureNamesIsMutable(); |
| names_.set(index, value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| public Builder addNames( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureNamesIsMutable(); |
| names_.add(value); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| public Builder addAllNames( |
| java.lang.Iterable<java.lang.String> values) { |
| ensureNamesIsMutable(); |
| super.addAll(values, names_); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| public Builder clearNames() { |
| names_ = com.google.protobuf.LazyStringArrayList.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>repeated string names = 1;</code> |
| */ |
| public Builder addNamesBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureNamesIsMutable(); |
| names_.add(value); |
| onChanged(); |
| return this; |
| } |
| |
| // repeated .org.apache.slider.api.ComponentInformationProto components = 2; |
| private java.util.List<org.apache.slider.api.proto.Messages.ComponentInformationProto> components_ = |
| java.util.Collections.emptyList(); |
| private void ensureComponentsIsMutable() { |
| if (!((bitField0_ & 0x00000002) == 0x00000002)) { |
| components_ = new java.util.ArrayList<org.apache.slider.api.proto.Messages.ComponentInformationProto>(components_); |
| bitField0_ |= 0x00000002; |
| } |
| } |
| |
| private com.google.protobuf.RepeatedFieldBuilder< |
| org.apache.slider.api.proto.Messages.ComponentInformationProto, org.apache.slider.api.proto.Messages.ComponentInformationProto.Builder, org.apache.slider.api.proto.Messages.ComponentInformationProtoOrBuilder> componentsBuilder_; |
| |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| public java.util.List<org.apache.slider.api.proto.Messages.ComponentInformationProto> getComponentsList() { |
| if (componentsBuilder_ == null) { |
| return java.util.Collections.unmodifiableList(components_); |
| } else { |
| return componentsBuilder_.getMessageList(); |
| } |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| public int getComponentsCount() { |
| if (componentsBuilder_ == null) { |
| return components_.size(); |
| } else { |
| return componentsBuilder_.getCount(); |
| } |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.ComponentInformationProto getComponents(int index) { |
| if (componentsBuilder_ == null) { |
| return components_.get(index); |
| } else { |
| return componentsBuilder_.getMessage(index); |
| } |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| public Builder setComponents( |
| int index, org.apache.slider.api.proto.Messages.ComponentInformationProto value) { |
| if (componentsBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureComponentsIsMutable(); |
| components_.set(index, value); |
| onChanged(); |
| } else { |
| componentsBuilder_.setMessage(index, value); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| public Builder setComponents( |
| int index, org.apache.slider.api.proto.Messages.ComponentInformationProto.Builder builderForValue) { |
| if (componentsBuilder_ == null) { |
| ensureComponentsIsMutable(); |
| components_.set(index, builderForValue.build()); |
| onChanged(); |
| } else { |
| componentsBuilder_.setMessage(index, builderForValue.build()); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| public Builder addComponents(org.apache.slider.api.proto.Messages.ComponentInformationProto value) { |
| if (componentsBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureComponentsIsMutable(); |
| components_.add(value); |
| onChanged(); |
| } else { |
| componentsBuilder_.addMessage(value); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| public Builder addComponents( |
| int index, org.apache.slider.api.proto.Messages.ComponentInformationProto value) { |
| if (componentsBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureComponentsIsMutable(); |
| components_.add(index, value); |
| onChanged(); |
| } else { |
| componentsBuilder_.addMessage(index, value); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| public Builder addComponents( |
| org.apache.slider.api.proto.Messages.ComponentInformationProto.Builder builderForValue) { |
| if (componentsBuilder_ == null) { |
| ensureComponentsIsMutable(); |
| components_.add(builderForValue.build()); |
| onChanged(); |
| } else { |
| componentsBuilder_.addMessage(builderForValue.build()); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| public Builder addComponents( |
| int index, org.apache.slider.api.proto.Messages.ComponentInformationProto.Builder builderForValue) { |
| if (componentsBuilder_ == null) { |
| ensureComponentsIsMutable(); |
| components_.add(index, builderForValue.build()); |
| onChanged(); |
| } else { |
| componentsBuilder_.addMessage(index, builderForValue.build()); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| public Builder addAllComponents( |
| java.lang.Iterable<? extends org.apache.slider.api.proto.Messages.ComponentInformationProto> values) { |
| if (componentsBuilder_ == null) { |
| ensureComponentsIsMutable(); |
| super.addAll(values, components_); |
| onChanged(); |
| } else { |
| componentsBuilder_.addAllMessages(values); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| public Builder clearComponents() { |
| if (componentsBuilder_ == null) { |
| components_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000002); |
| onChanged(); |
| } else { |
| componentsBuilder_.clear(); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| public Builder removeComponents(int index) { |
| if (componentsBuilder_ == null) { |
| ensureComponentsIsMutable(); |
| components_.remove(index); |
| onChanged(); |
| } else { |
| componentsBuilder_.remove(index); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.ComponentInformationProto.Builder getComponentsBuilder( |
| int index) { |
| return getComponentsFieldBuilder().getBuilder(index); |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.ComponentInformationProtoOrBuilder getComponentsOrBuilder( |
| int index) { |
| if (componentsBuilder_ == null) { |
| return components_.get(index); } else { |
| return componentsBuilder_.getMessageOrBuilder(index); |
| } |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| public java.util.List<? extends org.apache.slider.api.proto.Messages.ComponentInformationProtoOrBuilder> |
| getComponentsOrBuilderList() { |
| if (componentsBuilder_ != null) { |
| return componentsBuilder_.getMessageOrBuilderList(); |
| } else { |
| return java.util.Collections.unmodifiableList(components_); |
| } |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.ComponentInformationProto.Builder addComponentsBuilder() { |
| return getComponentsFieldBuilder().addBuilder( |
| org.apache.slider.api.proto.Messages.ComponentInformationProto.getDefaultInstance()); |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.ComponentInformationProto.Builder addComponentsBuilder( |
| int index) { |
| return getComponentsFieldBuilder().addBuilder( |
| index, org.apache.slider.api.proto.Messages.ComponentInformationProto.getDefaultInstance()); |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.ComponentInformationProto components = 2;</code> |
| */ |
| public java.util.List<org.apache.slider.api.proto.Messages.ComponentInformationProto.Builder> |
| getComponentsBuilderList() { |
| return getComponentsFieldBuilder().getBuilderList(); |
| } |
| private com.google.protobuf.RepeatedFieldBuilder< |
| org.apache.slider.api.proto.Messages.ComponentInformationProto, org.apache.slider.api.proto.Messages.ComponentInformationProto.Builder, org.apache.slider.api.proto.Messages.ComponentInformationProtoOrBuilder> |
| getComponentsFieldBuilder() { |
| if (componentsBuilder_ == null) { |
| componentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< |
| org.apache.slider.api.proto.Messages.ComponentInformationProto, org.apache.slider.api.proto.Messages.ComponentInformationProto.Builder, org.apache.slider.api.proto.Messages.ComponentInformationProtoOrBuilder>( |
| components_, |
| ((bitField0_ & 0x00000002) == 0x00000002), |
| getParentForChildren(), |
| isClean()); |
| components_ = null; |
| } |
| return componentsBuilder_; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetLiveComponentsResponseProto) |
| } |
| |
| static { |
| defaultInstance = new GetLiveComponentsResponseProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetLiveComponentsResponseProto) |
| } |
| |
| public interface GetLiveComponentRequestProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required string name = 1; |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| boolean hasName(); |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| java.lang.String getName(); |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| com.google.protobuf.ByteString |
| getNameBytes(); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetLiveComponentRequestProto} |
| */ |
| public static final class GetLiveComponentRequestProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetLiveComponentRequestProtoOrBuilder { |
| // Use GetLiveComponentRequestProto.newBuilder() to construct. |
| private GetLiveComponentRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetLiveComponentRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetLiveComponentRequestProto defaultInstance; |
| public static GetLiveComponentRequestProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetLiveComponentRequestProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetLiveComponentRequestProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| name_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto.class, org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetLiveComponentRequestProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetLiveComponentRequestProto>() { |
| public GetLiveComponentRequestProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetLiveComponentRequestProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetLiveComponentRequestProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required string name = 1; |
| public static final int NAME_FIELD_NUMBER = 1; |
| private java.lang.Object name_; |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| public boolean hasName() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| public java.lang.String getName() { |
| java.lang.Object ref = name_; |
| if (ref instanceof java.lang.String) { |
| return (java.lang.String) ref; |
| } else { |
| com.google.protobuf.ByteString bs = |
| (com.google.protobuf.ByteString) ref; |
| java.lang.String s = bs.toStringUtf8(); |
| if (bs.isValidUtf8()) { |
| name_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getNameBytes() { |
| java.lang.Object ref = name_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| name_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| private void initFields() { |
| name_ = ""; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasName()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getNameBytes()); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, getNameBytes()); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto other = (org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto) obj; |
| |
| boolean result = true; |
| result = result && (hasName() == other.hasName()); |
| if (hasName()) { |
| result = result && getName() |
| .equals(other.getName()); |
| } |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasName()) { |
| hash = (37 * hash) + NAME_FIELD_NUMBER; |
| hash = (53 * hash) + getName().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetLiveComponentRequestProto} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetLiveComponentRequestProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto.class, org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| name_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveComponentRequestProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto build() { |
| org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto result = new org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.name_ = name_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto.getDefaultInstance()) return this; |
| if (other.hasName()) { |
| bitField0_ |= 0x00000001; |
| name_ = other.name_; |
| onChanged(); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasName()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetLiveComponentRequestProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // required string name = 1; |
| private java.lang.Object name_ = ""; |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| public boolean hasName() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| public java.lang.String getName() { |
| java.lang.Object ref = name_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| name_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| 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; |
| } |
| } |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| public Builder setName( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| name_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| public Builder clearName() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| name_ = getDefaultInstance().getName(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| public Builder setNameBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| name_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetLiveComponentRequestProto) |
| } |
| |
| static { |
| defaultInstance = new GetLiveComponentRequestProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetLiveComponentRequestProto) |
| } |
| |
| public interface GetApplicationLivenessRequestProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetApplicationLivenessRequestProto} |
| */ |
| public static final class GetApplicationLivenessRequestProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetApplicationLivenessRequestProtoOrBuilder { |
| // Use GetApplicationLivenessRequestProto.newBuilder() to construct. |
| private GetApplicationLivenessRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetApplicationLivenessRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetApplicationLivenessRequestProto defaultInstance; |
| public static GetApplicationLivenessRequestProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetApplicationLivenessRequestProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetApplicationLivenessRequestProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| 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.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetApplicationLivenessRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetApplicationLivenessRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto.class, org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetApplicationLivenessRequestProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetApplicationLivenessRequestProto>() { |
| public GetApplicationLivenessRequestProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetApplicationLivenessRequestProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetApplicationLivenessRequestProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private void initFields() { |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto other = (org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto) obj; |
| |
| boolean result = true; |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetApplicationLivenessRequestProto} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetApplicationLivenessRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetApplicationLivenessRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto.class, org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetApplicationLivenessRequestProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto build() { |
| org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto result = new org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto(this); |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto.getDefaultInstance()) return this; |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetApplicationLivenessRequestProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetApplicationLivenessRequestProto) |
| } |
| |
| static { |
| defaultInstance = new GetApplicationLivenessRequestProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetApplicationLivenessRequestProto) |
| } |
| |
| public interface EmptyPayloadProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.EmptyPayloadProto} |
| */ |
| public static final class EmptyPayloadProto extends |
| com.google.protobuf.GeneratedMessage |
| implements EmptyPayloadProtoOrBuilder { |
| // Use EmptyPayloadProto.newBuilder() to construct. |
| private EmptyPayloadProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private EmptyPayloadProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final EmptyPayloadProto defaultInstance; |
| public static EmptyPayloadProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public EmptyPayloadProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private EmptyPayloadProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| 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.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EmptyPayloadProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EmptyPayloadProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.EmptyPayloadProto.class, org.apache.slider.api.proto.Messages.EmptyPayloadProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<EmptyPayloadProto> PARSER = |
| new com.google.protobuf.AbstractParser<EmptyPayloadProto>() { |
| public EmptyPayloadProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new EmptyPayloadProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<EmptyPayloadProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private void initFields() { |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.EmptyPayloadProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.EmptyPayloadProto other = (org.apache.slider.api.proto.Messages.EmptyPayloadProto) obj; |
| |
| boolean result = true; |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.EmptyPayloadProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.EmptyPayloadProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.EmptyPayloadProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.EmptyPayloadProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.EmptyPayloadProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.EmptyPayloadProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.EmptyPayloadProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.EmptyPayloadProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.EmptyPayloadProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.EmptyPayloadProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.EmptyPayloadProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.EmptyPayloadProto} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.EmptyPayloadProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EmptyPayloadProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EmptyPayloadProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.EmptyPayloadProto.class, org.apache.slider.api.proto.Messages.EmptyPayloadProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.EmptyPayloadProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_EmptyPayloadProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.EmptyPayloadProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.EmptyPayloadProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.EmptyPayloadProto build() { |
| org.apache.slider.api.proto.Messages.EmptyPayloadProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.EmptyPayloadProto buildPartial() { |
| org.apache.slider.api.proto.Messages.EmptyPayloadProto result = new org.apache.slider.api.proto.Messages.EmptyPayloadProto(this); |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.EmptyPayloadProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.EmptyPayloadProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.EmptyPayloadProto other) { |
| if (other == org.apache.slider.api.proto.Messages.EmptyPayloadProto.getDefaultInstance()) return this; |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.EmptyPayloadProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.EmptyPayloadProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.EmptyPayloadProto) |
| } |
| |
| static { |
| defaultInstance = new EmptyPayloadProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.EmptyPayloadProto) |
| } |
| |
| public interface WrappedJsonProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required string json = 1; |
| /** |
| * <code>required string json = 1;</code> |
| */ |
| boolean hasJson(); |
| /** |
| * <code>required string json = 1;</code> |
| */ |
| java.lang.String getJson(); |
| /** |
| * <code>required string json = 1;</code> |
| */ |
| com.google.protobuf.ByteString |
| getJsonBytes(); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.WrappedJsonProto} |
| * |
| * <pre> |
| ** |
| *Generic JSON, often containing data structures serialized as a string |
| * </pre> |
| */ |
| public static final class WrappedJsonProto extends |
| com.google.protobuf.GeneratedMessage |
| implements WrappedJsonProtoOrBuilder { |
| // Use WrappedJsonProto.newBuilder() to construct. |
| private WrappedJsonProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private WrappedJsonProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final WrappedJsonProto defaultInstance; |
| public static WrappedJsonProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public WrappedJsonProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private WrappedJsonProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| json_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_WrappedJsonProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_WrappedJsonProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.WrappedJsonProto.class, org.apache.slider.api.proto.Messages.WrappedJsonProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<WrappedJsonProto> PARSER = |
| new com.google.protobuf.AbstractParser<WrappedJsonProto>() { |
| public WrappedJsonProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new WrappedJsonProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<WrappedJsonProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required string json = 1; |
| public static final int JSON_FIELD_NUMBER = 1; |
| private java.lang.Object json_; |
| /** |
| * <code>required string json = 1;</code> |
| */ |
| public boolean hasJson() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string json = 1;</code> |
| */ |
| public java.lang.String getJson() { |
| java.lang.Object ref = json_; |
| 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()) { |
| json_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string json = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getJsonBytes() { |
| java.lang.Object ref = json_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| json_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| private void initFields() { |
| json_ = ""; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasJson()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getJsonBytes()); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, getJsonBytes()); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.WrappedJsonProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.WrappedJsonProto other = (org.apache.slider.api.proto.Messages.WrappedJsonProto) obj; |
| |
| boolean result = true; |
| result = result && (hasJson() == other.hasJson()); |
| if (hasJson()) { |
| result = result && getJson() |
| .equals(other.getJson()); |
| } |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasJson()) { |
| hash = (37 * hash) + JSON_FIELD_NUMBER; |
| hash = (53 * hash) + getJson().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.WrappedJsonProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.WrappedJsonProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.WrappedJsonProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.WrappedJsonProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.WrappedJsonProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.WrappedJsonProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.WrappedJsonProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.WrappedJsonProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.WrappedJsonProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.WrappedJsonProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.WrappedJsonProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.WrappedJsonProto} |
| * |
| * <pre> |
| ** |
| *Generic JSON, often containing data structures serialized as a string |
| * </pre> |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.WrappedJsonProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_WrappedJsonProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_WrappedJsonProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.WrappedJsonProto.class, org.apache.slider.api.proto.Messages.WrappedJsonProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.WrappedJsonProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| json_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_WrappedJsonProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.WrappedJsonProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.WrappedJsonProto build() { |
| org.apache.slider.api.proto.Messages.WrappedJsonProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.WrappedJsonProto buildPartial() { |
| org.apache.slider.api.proto.Messages.WrappedJsonProto result = new org.apache.slider.api.proto.Messages.WrappedJsonProto(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.json_ = json_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.WrappedJsonProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.WrappedJsonProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.WrappedJsonProto other) { |
| if (other == org.apache.slider.api.proto.Messages.WrappedJsonProto.getDefaultInstance()) return this; |
| if (other.hasJson()) { |
| bitField0_ |= 0x00000001; |
| json_ = other.json_; |
| onChanged(); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasJson()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.WrappedJsonProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.WrappedJsonProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // required string json = 1; |
| private java.lang.Object json_ = ""; |
| /** |
| * <code>required string json = 1;</code> |
| */ |
| public boolean hasJson() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string json = 1;</code> |
| */ |
| public java.lang.String getJson() { |
| java.lang.Object ref = json_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| json_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string json = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getJsonBytes() { |
| java.lang.Object ref = json_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| json_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>required string json = 1;</code> |
| */ |
| public Builder setJson( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| json_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string json = 1;</code> |
| */ |
| public Builder clearJson() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| json_ = getDefaultInstance().getJson(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string json = 1;</code> |
| */ |
| public Builder setJsonBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| json_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.WrappedJsonProto) |
| } |
| |
| static { |
| defaultInstance = new WrappedJsonProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.WrappedJsonProto) |
| } |
| |
| public interface GetCertificateStoreRequestProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // optional string hostname = 1; |
| /** |
| * <code>optional string hostname = 1;</code> |
| */ |
| boolean hasHostname(); |
| /** |
| * <code>optional string hostname = 1;</code> |
| */ |
| java.lang.String getHostname(); |
| /** |
| * <code>optional string hostname = 1;</code> |
| */ |
| com.google.protobuf.ByteString |
| getHostnameBytes(); |
| |
| // required string requesterId = 2; |
| /** |
| * <code>required string requesterId = 2;</code> |
| */ |
| boolean hasRequesterId(); |
| /** |
| * <code>required string requesterId = 2;</code> |
| */ |
| java.lang.String getRequesterId(); |
| /** |
| * <code>required string requesterId = 2;</code> |
| */ |
| com.google.protobuf.ByteString |
| getRequesterIdBytes(); |
| |
| // required string password = 3; |
| /** |
| * <code>required string password = 3;</code> |
| */ |
| boolean hasPassword(); |
| /** |
| * <code>required string password = 3;</code> |
| */ |
| java.lang.String getPassword(); |
| /** |
| * <code>required string password = 3;</code> |
| */ |
| com.google.protobuf.ByteString |
| getPasswordBytes(); |
| |
| // required string type = 4; |
| /** |
| * <code>required string type = 4;</code> |
| */ |
| boolean hasType(); |
| /** |
| * <code>required string type = 4;</code> |
| */ |
| java.lang.String getType(); |
| /** |
| * <code>required string type = 4;</code> |
| */ |
| com.google.protobuf.ByteString |
| getTypeBytes(); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetCertificateStoreRequestProto} |
| */ |
| public static final class GetCertificateStoreRequestProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetCertificateStoreRequestProtoOrBuilder { |
| // Use GetCertificateStoreRequestProto.newBuilder() to construct. |
| private GetCertificateStoreRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetCertificateStoreRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetCertificateStoreRequestProto defaultInstance; |
| public static GetCertificateStoreRequestProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetCertificateStoreRequestProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetCertificateStoreRequestProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| hostname_ = input.readBytes(); |
| break; |
| } |
| case 18: { |
| bitField0_ |= 0x00000002; |
| requesterId_ = input.readBytes(); |
| break; |
| } |
| case 26: { |
| bitField0_ |= 0x00000004; |
| password_ = input.readBytes(); |
| break; |
| } |
| case 34: { |
| bitField0_ |= 0x00000008; |
| type_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetCertificateStoreRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetCertificateStoreRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto.class, org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetCertificateStoreRequestProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetCertificateStoreRequestProto>() { |
| public GetCertificateStoreRequestProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetCertificateStoreRequestProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetCertificateStoreRequestProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // optional string hostname = 1; |
| public static final int HOSTNAME_FIELD_NUMBER = 1; |
| private java.lang.Object hostname_; |
| /** |
| * <code>optional string hostname = 1;</code> |
| */ |
| public boolean hasHostname() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>optional string hostname = 1;</code> |
| */ |
| public java.lang.String getHostname() { |
| java.lang.Object ref = hostname_; |
| 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()) { |
| hostname_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>optional string hostname = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getHostnameBytes() { |
| java.lang.Object ref = hostname_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| hostname_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // required string requesterId = 2; |
| public static final int REQUESTERID_FIELD_NUMBER = 2; |
| private java.lang.Object requesterId_; |
| /** |
| * <code>required string requesterId = 2;</code> |
| */ |
| public boolean hasRequesterId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>required string requesterId = 2;</code> |
| */ |
| public java.lang.String getRequesterId() { |
| java.lang.Object ref = requesterId_; |
| 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()) { |
| requesterId_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string requesterId = 2;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getRequesterIdBytes() { |
| java.lang.Object ref = requesterId_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| requesterId_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // required string password = 3; |
| public static final int PASSWORD_FIELD_NUMBER = 3; |
| private java.lang.Object password_; |
| /** |
| * <code>required string password = 3;</code> |
| */ |
| public boolean hasPassword() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>required string password = 3;</code> |
| */ |
| public java.lang.String getPassword() { |
| java.lang.Object ref = password_; |
| 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()) { |
| password_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string password = 3;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getPasswordBytes() { |
| java.lang.Object ref = password_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| password_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| // required string type = 4; |
| public static final int TYPE_FIELD_NUMBER = 4; |
| private java.lang.Object type_; |
| /** |
| * <code>required string type = 4;</code> |
| */ |
| public boolean hasType() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| /** |
| * <code>required string type = 4;</code> |
| */ |
| public java.lang.String getType() { |
| java.lang.Object ref = type_; |
| 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()) { |
| type_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string type = 4;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getTypeBytes() { |
| java.lang.Object ref = type_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| type_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| private void initFields() { |
| hostname_ = ""; |
| requesterId_ = ""; |
| password_ = ""; |
| type_ = ""; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasRequesterId()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasPassword()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| if (!hasType()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getHostnameBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| output.writeBytes(2, getRequesterIdBytes()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| output.writeBytes(3, getPasswordBytes()); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| output.writeBytes(4, getTypeBytes()); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, getHostnameBytes()); |
| } |
| if (((bitField0_ & 0x00000002) == 0x00000002)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(2, getRequesterIdBytes()); |
| } |
| if (((bitField0_ & 0x00000004) == 0x00000004)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(3, getPasswordBytes()); |
| } |
| if (((bitField0_ & 0x00000008) == 0x00000008)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(4, getTypeBytes()); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto other = (org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto) obj; |
| |
| boolean result = true; |
| result = result && (hasHostname() == other.hasHostname()); |
| if (hasHostname()) { |
| result = result && getHostname() |
| .equals(other.getHostname()); |
| } |
| result = result && (hasRequesterId() == other.hasRequesterId()); |
| if (hasRequesterId()) { |
| result = result && getRequesterId() |
| .equals(other.getRequesterId()); |
| } |
| result = result && (hasPassword() == other.hasPassword()); |
| if (hasPassword()) { |
| result = result && getPassword() |
| .equals(other.getPassword()); |
| } |
| result = result && (hasType() == other.hasType()); |
| if (hasType()) { |
| result = result && getType() |
| .equals(other.getType()); |
| } |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasHostname()) { |
| hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; |
| hash = (53 * hash) + getHostname().hashCode(); |
| } |
| if (hasRequesterId()) { |
| hash = (37 * hash) + REQUESTERID_FIELD_NUMBER; |
| hash = (53 * hash) + getRequesterId().hashCode(); |
| } |
| if (hasPassword()) { |
| hash = (37 * hash) + PASSWORD_FIELD_NUMBER; |
| hash = (53 * hash) + getPassword().hashCode(); |
| } |
| if (hasType()) { |
| hash = (37 * hash) + TYPE_FIELD_NUMBER; |
| hash = (53 * hash) + getType().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetCertificateStoreRequestProto} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetCertificateStoreRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetCertificateStoreRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto.class, org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| hostname_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| requesterId_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000002); |
| password_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000004); |
| type_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000008); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetCertificateStoreRequestProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto build() { |
| org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto result = new org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.hostname_ = hostname_; |
| if (((from_bitField0_ & 0x00000002) == 0x00000002)) { |
| to_bitField0_ |= 0x00000002; |
| } |
| result.requesterId_ = requesterId_; |
| if (((from_bitField0_ & 0x00000004) == 0x00000004)) { |
| to_bitField0_ |= 0x00000004; |
| } |
| result.password_ = password_; |
| if (((from_bitField0_ & 0x00000008) == 0x00000008)) { |
| to_bitField0_ |= 0x00000008; |
| } |
| result.type_ = type_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto.getDefaultInstance()) return this; |
| if (other.hasHostname()) { |
| bitField0_ |= 0x00000001; |
| hostname_ = other.hostname_; |
| onChanged(); |
| } |
| if (other.hasRequesterId()) { |
| bitField0_ |= 0x00000002; |
| requesterId_ = other.requesterId_; |
| onChanged(); |
| } |
| if (other.hasPassword()) { |
| bitField0_ |= 0x00000004; |
| password_ = other.password_; |
| onChanged(); |
| } |
| if (other.hasType()) { |
| bitField0_ |= 0x00000008; |
| type_ = other.type_; |
| onChanged(); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasRequesterId()) { |
| |
| return false; |
| } |
| if (!hasPassword()) { |
| |
| return false; |
| } |
| if (!hasType()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetCertificateStoreRequestProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // optional string hostname = 1; |
| private java.lang.Object hostname_ = ""; |
| /** |
| * <code>optional string hostname = 1;</code> |
| */ |
| public boolean hasHostname() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>optional string hostname = 1;</code> |
| */ |
| public java.lang.String getHostname() { |
| java.lang.Object ref = hostname_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| hostname_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>optional string hostname = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getHostnameBytes() { |
| java.lang.Object ref = hostname_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| hostname_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>optional string hostname = 1;</code> |
| */ |
| public Builder setHostname( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| hostname_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string hostname = 1;</code> |
| */ |
| public Builder clearHostname() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| hostname_ = getDefaultInstance().getHostname(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>optional string hostname = 1;</code> |
| */ |
| public Builder setHostnameBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| hostname_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // required string requesterId = 2; |
| private java.lang.Object requesterId_ = ""; |
| /** |
| * <code>required string requesterId = 2;</code> |
| */ |
| public boolean hasRequesterId() { |
| return ((bitField0_ & 0x00000002) == 0x00000002); |
| } |
| /** |
| * <code>required string requesterId = 2;</code> |
| */ |
| public java.lang.String getRequesterId() { |
| java.lang.Object ref = requesterId_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| requesterId_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string requesterId = 2;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getRequesterIdBytes() { |
| java.lang.Object ref = requesterId_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| requesterId_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>required string requesterId = 2;</code> |
| */ |
| public Builder setRequesterId( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| requesterId_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string requesterId = 2;</code> |
| */ |
| public Builder clearRequesterId() { |
| bitField0_ = (bitField0_ & ~0x00000002); |
| requesterId_ = getDefaultInstance().getRequesterId(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string requesterId = 2;</code> |
| */ |
| public Builder setRequesterIdBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000002; |
| requesterId_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // required string password = 3; |
| private java.lang.Object password_ = ""; |
| /** |
| * <code>required string password = 3;</code> |
| */ |
| public boolean hasPassword() { |
| return ((bitField0_ & 0x00000004) == 0x00000004); |
| } |
| /** |
| * <code>required string password = 3;</code> |
| */ |
| public java.lang.String getPassword() { |
| java.lang.Object ref = password_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| password_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string password = 3;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getPasswordBytes() { |
| java.lang.Object ref = password_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| password_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>required string password = 3;</code> |
| */ |
| public Builder setPassword( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000004; |
| password_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string password = 3;</code> |
| */ |
| public Builder clearPassword() { |
| bitField0_ = (bitField0_ & ~0x00000004); |
| password_ = getDefaultInstance().getPassword(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string password = 3;</code> |
| */ |
| public Builder setPasswordBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000004; |
| password_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // required string type = 4; |
| private java.lang.Object type_ = ""; |
| /** |
| * <code>required string type = 4;</code> |
| */ |
| public boolean hasType() { |
| return ((bitField0_ & 0x00000008) == 0x00000008); |
| } |
| /** |
| * <code>required string type = 4;</code> |
| */ |
| public java.lang.String getType() { |
| java.lang.Object ref = type_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| type_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string type = 4;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getTypeBytes() { |
| java.lang.Object ref = type_; |
| if (ref instanceof String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| type_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| /** |
| * <code>required string type = 4;</code> |
| */ |
| public Builder setType( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000008; |
| type_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string type = 4;</code> |
| */ |
| public Builder clearType() { |
| bitField0_ = (bitField0_ & ~0x00000008); |
| type_ = getDefaultInstance().getType(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string type = 4;</code> |
| */ |
| public Builder setTypeBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000008; |
| type_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetCertificateStoreRequestProto) |
| } |
| |
| static { |
| defaultInstance = new GetCertificateStoreRequestProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetCertificateStoreRequestProto) |
| } |
| |
| public interface GetCertificateStoreResponseProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required bytes store = 1; |
| /** |
| * <code>required bytes store = 1;</code> |
| */ |
| boolean hasStore(); |
| /** |
| * <code>required bytes store = 1;</code> |
| */ |
| com.google.protobuf.ByteString getStore(); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetCertificateStoreResponseProto} |
| */ |
| public static final class GetCertificateStoreResponseProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetCertificateStoreResponseProtoOrBuilder { |
| // Use GetCertificateStoreResponseProto.newBuilder() to construct. |
| private GetCertificateStoreResponseProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetCertificateStoreResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetCertificateStoreResponseProto defaultInstance; |
| public static GetCertificateStoreResponseProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetCertificateStoreResponseProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetCertificateStoreResponseProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| store_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetCertificateStoreResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetCertificateStoreResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto.class, org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetCertificateStoreResponseProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetCertificateStoreResponseProto>() { |
| public GetCertificateStoreResponseProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetCertificateStoreResponseProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetCertificateStoreResponseProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required bytes store = 1; |
| public static final int STORE_FIELD_NUMBER = 1; |
| private com.google.protobuf.ByteString store_; |
| /** |
| * <code>required bytes store = 1;</code> |
| */ |
| public boolean hasStore() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required bytes store = 1;</code> |
| */ |
| public com.google.protobuf.ByteString getStore() { |
| return store_; |
| } |
| |
| private void initFields() { |
| store_ = com.google.protobuf.ByteString.EMPTY; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasStore()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, store_); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, store_); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto other = (org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto) obj; |
| |
| boolean result = true; |
| result = result && (hasStore() == other.hasStore()); |
| if (hasStore()) { |
| result = result && getStore() |
| .equals(other.getStore()); |
| } |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasStore()) { |
| hash = (37 * hash) + STORE_FIELD_NUMBER; |
| hash = (53 * hash) + getStore().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetCertificateStoreResponseProto} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetCertificateStoreResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetCertificateStoreResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto.class, org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| store_ = com.google.protobuf.ByteString.EMPTY; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetCertificateStoreResponseProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto build() { |
| org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto result = new org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.store_ = store_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto.getDefaultInstance()) return this; |
| if (other.hasStore()) { |
| setStore(other.getStore()); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasStore()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetCertificateStoreResponseProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // required bytes store = 1; |
| private com.google.protobuf.ByteString store_ = com.google.protobuf.ByteString.EMPTY; |
| /** |
| * <code>required bytes store = 1;</code> |
| */ |
| public boolean hasStore() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required bytes store = 1;</code> |
| */ |
| public com.google.protobuf.ByteString getStore() { |
| return store_; |
| } |
| /** |
| * <code>required bytes store = 1;</code> |
| */ |
| public Builder setStore(com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| store_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required bytes store = 1;</code> |
| */ |
| public Builder clearStore() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| store_ = getDefaultInstance().getStore(); |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetCertificateStoreResponseProto) |
| } |
| |
| static { |
| defaultInstance = new GetCertificateStoreResponseProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetCertificateStoreResponseProto) |
| } |
| |
| public interface GetLiveNodesRequestProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetLiveNodesRequestProto} |
| */ |
| public static final class GetLiveNodesRequestProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetLiveNodesRequestProtoOrBuilder { |
| // Use GetLiveNodesRequestProto.newBuilder() to construct. |
| private GetLiveNodesRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetLiveNodesRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetLiveNodesRequestProto defaultInstance; |
| public static GetLiveNodesRequestProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetLiveNodesRequestProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetLiveNodesRequestProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| 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.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodesRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodesRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto.class, org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetLiveNodesRequestProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetLiveNodesRequestProto>() { |
| public GetLiveNodesRequestProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetLiveNodesRequestProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetLiveNodesRequestProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private void initFields() { |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto other = (org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto) obj; |
| |
| boolean result = true; |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetLiveNodesRequestProto} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetLiveNodesRequestProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodesRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodesRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto.class, org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodesRequestProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto build() { |
| org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto result = new org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto(this); |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto.getDefaultInstance()) return this; |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetLiveNodesRequestProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetLiveNodesRequestProto) |
| } |
| |
| static { |
| defaultInstance = new GetLiveNodesRequestProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetLiveNodesRequestProto) |
| } |
| |
| public interface GetLiveNodesResponseProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // repeated .org.apache.slider.api.NodeInformationProto nodes = 1; |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| java.util.List<org.apache.slider.api.proto.Messages.NodeInformationProto> |
| getNodesList(); |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| org.apache.slider.api.proto.Messages.NodeInformationProto getNodes(int index); |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| int getNodesCount(); |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| java.util.List<? extends org.apache.slider.api.proto.Messages.NodeInformationProtoOrBuilder> |
| getNodesOrBuilderList(); |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| org.apache.slider.api.proto.Messages.NodeInformationProtoOrBuilder getNodesOrBuilder( |
| int index); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetLiveNodesResponseProto} |
| */ |
| public static final class GetLiveNodesResponseProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetLiveNodesResponseProtoOrBuilder { |
| // Use GetLiveNodesResponseProto.newBuilder() to construct. |
| private GetLiveNodesResponseProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetLiveNodesResponseProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetLiveNodesResponseProto defaultInstance; |
| public static GetLiveNodesResponseProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetLiveNodesResponseProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetLiveNodesResponseProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { |
| nodes_ = new java.util.ArrayList<org.apache.slider.api.proto.Messages.NodeInformationProto>(); |
| mutable_bitField0_ |= 0x00000001; |
| } |
| nodes_.add(input.readMessage(org.apache.slider.api.proto.Messages.NodeInformationProto.PARSER, extensionRegistry)); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { |
| nodes_ = java.util.Collections.unmodifiableList(nodes_); |
| } |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodesResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodesResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto.class, org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetLiveNodesResponseProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetLiveNodesResponseProto>() { |
| public GetLiveNodesResponseProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetLiveNodesResponseProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetLiveNodesResponseProto> getParserForType() { |
| return PARSER; |
| } |
| |
| // repeated .org.apache.slider.api.NodeInformationProto nodes = 1; |
| public static final int NODES_FIELD_NUMBER = 1; |
| private java.util.List<org.apache.slider.api.proto.Messages.NodeInformationProto> nodes_; |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| public java.util.List<org.apache.slider.api.proto.Messages.NodeInformationProto> getNodesList() { |
| return nodes_; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| public java.util.List<? extends org.apache.slider.api.proto.Messages.NodeInformationProtoOrBuilder> |
| getNodesOrBuilderList() { |
| return nodes_; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| public int getNodesCount() { |
| return nodes_.size(); |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.NodeInformationProto getNodes(int index) { |
| return nodes_.get(index); |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.NodeInformationProtoOrBuilder getNodesOrBuilder( |
| int index) { |
| return nodes_.get(index); |
| } |
| |
| private void initFields() { |
| nodes_ = java.util.Collections.emptyList(); |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| for (int i = 0; i < getNodesCount(); i++) { |
| if (!getNodes(i).isInitialized()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| for (int i = 0; i < nodes_.size(); i++) { |
| output.writeMessage(1, nodes_.get(i)); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| for (int i = 0; i < nodes_.size(); i++) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeMessageSize(1, nodes_.get(i)); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto other = (org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto) obj; |
| |
| boolean result = true; |
| result = result && getNodesList() |
| .equals(other.getNodesList()); |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (getNodesCount() > 0) { |
| hash = (37 * hash) + NODES_FIELD_NUMBER; |
| hash = (53 * hash) + getNodesList().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetLiveNodesResponseProto} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetLiveNodesResponseProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodesResponseProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodesResponseProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto.class, org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| getNodesFieldBuilder(); |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| if (nodesBuilder_ == null) { |
| nodes_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } else { |
| nodesBuilder_.clear(); |
| } |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodesResponseProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto build() { |
| org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto result = new org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto(this); |
| int from_bitField0_ = bitField0_; |
| if (nodesBuilder_ == null) { |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| nodes_ = java.util.Collections.unmodifiableList(nodes_); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } |
| result.nodes_ = nodes_; |
| } else { |
| result.nodes_ = nodesBuilder_.build(); |
| } |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto.getDefaultInstance()) return this; |
| if (nodesBuilder_ == null) { |
| if (!other.nodes_.isEmpty()) { |
| if (nodes_.isEmpty()) { |
| nodes_ = other.nodes_; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| } else { |
| ensureNodesIsMutable(); |
| nodes_.addAll(other.nodes_); |
| } |
| onChanged(); |
| } |
| } else { |
| if (!other.nodes_.isEmpty()) { |
| if (nodesBuilder_.isEmpty()) { |
| nodesBuilder_.dispose(); |
| nodesBuilder_ = null; |
| nodes_ = other.nodes_; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| nodesBuilder_ = |
| com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? |
| getNodesFieldBuilder() : null; |
| } else { |
| nodesBuilder_.addAllMessages(other.nodes_); |
| } |
| } |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| for (int i = 0; i < getNodesCount(); i++) { |
| if (!getNodes(i).isInitialized()) { |
| |
| return false; |
| } |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetLiveNodesResponseProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // repeated .org.apache.slider.api.NodeInformationProto nodes = 1; |
| private java.util.List<org.apache.slider.api.proto.Messages.NodeInformationProto> nodes_ = |
| java.util.Collections.emptyList(); |
| private void ensureNodesIsMutable() { |
| if (!((bitField0_ & 0x00000001) == 0x00000001)) { |
| nodes_ = new java.util.ArrayList<org.apache.slider.api.proto.Messages.NodeInformationProto>(nodes_); |
| bitField0_ |= 0x00000001; |
| } |
| } |
| |
| private com.google.protobuf.RepeatedFieldBuilder< |
| org.apache.slider.api.proto.Messages.NodeInformationProto, org.apache.slider.api.proto.Messages.NodeInformationProto.Builder, org.apache.slider.api.proto.Messages.NodeInformationProtoOrBuilder> nodesBuilder_; |
| |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| public java.util.List<org.apache.slider.api.proto.Messages.NodeInformationProto> getNodesList() { |
| if (nodesBuilder_ == null) { |
| return java.util.Collections.unmodifiableList(nodes_); |
| } else { |
| return nodesBuilder_.getMessageList(); |
| } |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| public int getNodesCount() { |
| if (nodesBuilder_ == null) { |
| return nodes_.size(); |
| } else { |
| return nodesBuilder_.getCount(); |
| } |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.NodeInformationProto getNodes(int index) { |
| if (nodesBuilder_ == null) { |
| return nodes_.get(index); |
| } else { |
| return nodesBuilder_.getMessage(index); |
| } |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| public Builder setNodes( |
| int index, org.apache.slider.api.proto.Messages.NodeInformationProto value) { |
| if (nodesBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureNodesIsMutable(); |
| nodes_.set(index, value); |
| onChanged(); |
| } else { |
| nodesBuilder_.setMessage(index, value); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| public Builder setNodes( |
| int index, org.apache.slider.api.proto.Messages.NodeInformationProto.Builder builderForValue) { |
| if (nodesBuilder_ == null) { |
| ensureNodesIsMutable(); |
| nodes_.set(index, builderForValue.build()); |
| onChanged(); |
| } else { |
| nodesBuilder_.setMessage(index, builderForValue.build()); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| public Builder addNodes(org.apache.slider.api.proto.Messages.NodeInformationProto value) { |
| if (nodesBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureNodesIsMutable(); |
| nodes_.add(value); |
| onChanged(); |
| } else { |
| nodesBuilder_.addMessage(value); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| public Builder addNodes( |
| int index, org.apache.slider.api.proto.Messages.NodeInformationProto value) { |
| if (nodesBuilder_ == null) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| ensureNodesIsMutable(); |
| nodes_.add(index, value); |
| onChanged(); |
| } else { |
| nodesBuilder_.addMessage(index, value); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| public Builder addNodes( |
| org.apache.slider.api.proto.Messages.NodeInformationProto.Builder builderForValue) { |
| if (nodesBuilder_ == null) { |
| ensureNodesIsMutable(); |
| nodes_.add(builderForValue.build()); |
| onChanged(); |
| } else { |
| nodesBuilder_.addMessage(builderForValue.build()); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| public Builder addNodes( |
| int index, org.apache.slider.api.proto.Messages.NodeInformationProto.Builder builderForValue) { |
| if (nodesBuilder_ == null) { |
| ensureNodesIsMutable(); |
| nodes_.add(index, builderForValue.build()); |
| onChanged(); |
| } else { |
| nodesBuilder_.addMessage(index, builderForValue.build()); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| public Builder addAllNodes( |
| java.lang.Iterable<? extends org.apache.slider.api.proto.Messages.NodeInformationProto> values) { |
| if (nodesBuilder_ == null) { |
| ensureNodesIsMutable(); |
| super.addAll(values, nodes_); |
| onChanged(); |
| } else { |
| nodesBuilder_.addAllMessages(values); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| public Builder clearNodes() { |
| if (nodesBuilder_ == null) { |
| nodes_ = java.util.Collections.emptyList(); |
| bitField0_ = (bitField0_ & ~0x00000001); |
| onChanged(); |
| } else { |
| nodesBuilder_.clear(); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| public Builder removeNodes(int index) { |
| if (nodesBuilder_ == null) { |
| ensureNodesIsMutable(); |
| nodes_.remove(index); |
| onChanged(); |
| } else { |
| nodesBuilder_.remove(index); |
| } |
| return this; |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.NodeInformationProto.Builder getNodesBuilder( |
| int index) { |
| return getNodesFieldBuilder().getBuilder(index); |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.NodeInformationProtoOrBuilder getNodesOrBuilder( |
| int index) { |
| if (nodesBuilder_ == null) { |
| return nodes_.get(index); } else { |
| return nodesBuilder_.getMessageOrBuilder(index); |
| } |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| public java.util.List<? extends org.apache.slider.api.proto.Messages.NodeInformationProtoOrBuilder> |
| getNodesOrBuilderList() { |
| if (nodesBuilder_ != null) { |
| return nodesBuilder_.getMessageOrBuilderList(); |
| } else { |
| return java.util.Collections.unmodifiableList(nodes_); |
| } |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.NodeInformationProto.Builder addNodesBuilder() { |
| return getNodesFieldBuilder().addBuilder( |
| org.apache.slider.api.proto.Messages.NodeInformationProto.getDefaultInstance()); |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| public org.apache.slider.api.proto.Messages.NodeInformationProto.Builder addNodesBuilder( |
| int index) { |
| return getNodesFieldBuilder().addBuilder( |
| index, org.apache.slider.api.proto.Messages.NodeInformationProto.getDefaultInstance()); |
| } |
| /** |
| * <code>repeated .org.apache.slider.api.NodeInformationProto nodes = 1;</code> |
| */ |
| public java.util.List<org.apache.slider.api.proto.Messages.NodeInformationProto.Builder> |
| getNodesBuilderList() { |
| return getNodesFieldBuilder().getBuilderList(); |
| } |
| private com.google.protobuf.RepeatedFieldBuilder< |
| org.apache.slider.api.proto.Messages.NodeInformationProto, org.apache.slider.api.proto.Messages.NodeInformationProto.Builder, org.apache.slider.api.proto.Messages.NodeInformationProtoOrBuilder> |
| getNodesFieldBuilder() { |
| if (nodesBuilder_ == null) { |
| nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< |
| org.apache.slider.api.proto.Messages.NodeInformationProto, org.apache.slider.api.proto.Messages.NodeInformationProto.Builder, org.apache.slider.api.proto.Messages.NodeInformationProtoOrBuilder>( |
| nodes_, |
| ((bitField0_ & 0x00000001) == 0x00000001), |
| getParentForChildren(), |
| isClean()); |
| nodes_ = null; |
| } |
| return nodesBuilder_; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetLiveNodesResponseProto) |
| } |
| |
| static { |
| defaultInstance = new GetLiveNodesResponseProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetLiveNodesResponseProto) |
| } |
| |
| public interface GetLiveNodeRequestProtoOrBuilder |
| extends com.google.protobuf.MessageOrBuilder { |
| |
| // required string name = 1; |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| boolean hasName(); |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| java.lang.String getName(); |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| com.google.protobuf.ByteString |
| getNameBytes(); |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetLiveNodeRequestProto} |
| */ |
| public static final class GetLiveNodeRequestProto extends |
| com.google.protobuf.GeneratedMessage |
| implements GetLiveNodeRequestProtoOrBuilder { |
| // Use GetLiveNodeRequestProto.newBuilder() to construct. |
| private GetLiveNodeRequestProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) { |
| super(builder); |
| this.unknownFields = builder.getUnknownFields(); |
| } |
| private GetLiveNodeRequestProto(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } |
| |
| private static final GetLiveNodeRequestProto defaultInstance; |
| public static GetLiveNodeRequestProto getDefaultInstance() { |
| return defaultInstance; |
| } |
| |
| public GetLiveNodeRequestProto getDefaultInstanceForType() { |
| return defaultInstance; |
| } |
| |
| private final com.google.protobuf.UnknownFieldSet unknownFields; |
| @java.lang.Override |
| public final com.google.protobuf.UnknownFieldSet |
| getUnknownFields() { |
| return this.unknownFields; |
| } |
| private GetLiveNodeRequestProto( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| initFields(); |
| 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; |
| default: { |
| if (!parseUnknownField(input, unknownFields, |
| extensionRegistry, tag)) { |
| done = true; |
| } |
| break; |
| } |
| case 10: { |
| bitField0_ |= 0x00000001; |
| name_ = input.readBytes(); |
| break; |
| } |
| } |
| } |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| throw e.setUnfinishedMessage(this); |
| } catch (java.io.IOException e) { |
| throw new com.google.protobuf.InvalidProtocolBufferException( |
| e.getMessage()).setUnfinishedMessage(this); |
| } finally { |
| this.unknownFields = unknownFields.build(); |
| makeExtensionsImmutable(); |
| } |
| } |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodeRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodeRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto.class, org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto.Builder.class); |
| } |
| |
| public static com.google.protobuf.Parser<GetLiveNodeRequestProto> PARSER = |
| new com.google.protobuf.AbstractParser<GetLiveNodeRequestProto>() { |
| public GetLiveNodeRequestProto parsePartialFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return new GetLiveNodeRequestProto(input, extensionRegistry); |
| } |
| }; |
| |
| @java.lang.Override |
| public com.google.protobuf.Parser<GetLiveNodeRequestProto> getParserForType() { |
| return PARSER; |
| } |
| |
| private int bitField0_; |
| // required string name = 1; |
| public static final int NAME_FIELD_NUMBER = 1; |
| private java.lang.Object name_; |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| public boolean hasName() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| public java.lang.String getName() { |
| java.lang.Object ref = name_; |
| if (ref instanceof java.lang.String) { |
| return (java.lang.String) ref; |
| } else { |
| com.google.protobuf.ByteString bs = |
| (com.google.protobuf.ByteString) ref; |
| java.lang.String s = bs.toStringUtf8(); |
| if (bs.isValidUtf8()) { |
| name_ = s; |
| } |
| return s; |
| } |
| } |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| public com.google.protobuf.ByteString |
| getNameBytes() { |
| java.lang.Object ref = name_; |
| if (ref instanceof java.lang.String) { |
| com.google.protobuf.ByteString b = |
| com.google.protobuf.ByteString.copyFromUtf8( |
| (java.lang.String) ref); |
| name_ = b; |
| return b; |
| } else { |
| return (com.google.protobuf.ByteString) ref; |
| } |
| } |
| |
| private void initFields() { |
| name_ = ""; |
| } |
| private byte memoizedIsInitialized = -1; |
| public final boolean isInitialized() { |
| byte isInitialized = memoizedIsInitialized; |
| if (isInitialized != -1) return isInitialized == 1; |
| |
| if (!hasName()) { |
| memoizedIsInitialized = 0; |
| return false; |
| } |
| memoizedIsInitialized = 1; |
| return true; |
| } |
| |
| public void writeTo(com.google.protobuf.CodedOutputStream output) |
| throws java.io.IOException { |
| getSerializedSize(); |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| output.writeBytes(1, getNameBytes()); |
| } |
| getUnknownFields().writeTo(output); |
| } |
| |
| private int memoizedSerializedSize = -1; |
| public int getSerializedSize() { |
| int size = memoizedSerializedSize; |
| if (size != -1) return size; |
| |
| size = 0; |
| if (((bitField0_ & 0x00000001) == 0x00000001)) { |
| size += com.google.protobuf.CodedOutputStream |
| .computeBytesSize(1, getNameBytes()); |
| } |
| size += getUnknownFields().getSerializedSize(); |
| memoizedSerializedSize = size; |
| return size; |
| } |
| |
| private static final long serialVersionUID = 0L; |
| @java.lang.Override |
| protected java.lang.Object writeReplace() |
| throws java.io.ObjectStreamException { |
| return super.writeReplace(); |
| } |
| |
| @java.lang.Override |
| public boolean equals(final java.lang.Object obj) { |
| if (obj == this) { |
| return true; |
| } |
| if (!(obj instanceof org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto)) { |
| return super.equals(obj); |
| } |
| org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto other = (org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto) obj; |
| |
| boolean result = true; |
| result = result && (hasName() == other.hasName()); |
| if (hasName()) { |
| result = result && getName() |
| .equals(other.getName()); |
| } |
| result = result && |
| getUnknownFields().equals(other.getUnknownFields()); |
| return result; |
| } |
| |
| private int memoizedHashCode = 0; |
| @java.lang.Override |
| public int hashCode() { |
| if (memoizedHashCode != 0) { |
| return memoizedHashCode; |
| } |
| int hash = 41; |
| hash = (19 * hash) + getDescriptorForType().hashCode(); |
| if (hasName()) { |
| hash = (37 * hash) + NAME_FIELD_NUMBER; |
| hash = (53 * hash) + getName().hashCode(); |
| } |
| hash = (29 * hash) + getUnknownFields().hashCode(); |
| memoizedHashCode = hash; |
| return hash; |
| } |
| |
| public static org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto parseFrom( |
| com.google.protobuf.ByteString data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto parseFrom( |
| com.google.protobuf.ByteString data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto parseFrom(byte[] data) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto parseFrom( |
| byte[] data, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws com.google.protobuf.InvalidProtocolBufferException { |
| return PARSER.parseFrom(data, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto parseFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto parseFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto parseDelimitedFrom(java.io.InputStream input) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto parseDelimitedFrom( |
| java.io.InputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseDelimitedFrom(input, extensionRegistry); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input); |
| } |
| public static org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto parseFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| return PARSER.parseFrom(input, extensionRegistry); |
| } |
| |
| public static Builder newBuilder() { return Builder.create(); } |
| public Builder newBuilderForType() { return newBuilder(); } |
| public static Builder newBuilder(org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto prototype) { |
| return newBuilder().mergeFrom(prototype); |
| } |
| public Builder toBuilder() { return newBuilder(this); } |
| |
| @java.lang.Override |
| protected Builder newBuilderForType( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| Builder builder = new Builder(parent); |
| return builder; |
| } |
| /** |
| * Protobuf type {@code org.apache.slider.api.GetLiveNodeRequestProto} |
| */ |
| public static final class Builder extends |
| com.google.protobuf.GeneratedMessage.Builder<Builder> |
| implements org.apache.slider.api.proto.Messages.GetLiveNodeRequestProtoOrBuilder { |
| public static final com.google.protobuf.Descriptors.Descriptor |
| getDescriptor() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodeRequestProto_descriptor; |
| } |
| |
| protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internalGetFieldAccessorTable() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodeRequestProto_fieldAccessorTable |
| .ensureFieldAccessorsInitialized( |
| org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto.class, org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto.Builder.class); |
| } |
| |
| // Construct using org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto.newBuilder() |
| private Builder() { |
| maybeForceBuilderInitialization(); |
| } |
| |
| private Builder( |
| com.google.protobuf.GeneratedMessage.BuilderParent parent) { |
| super(parent); |
| maybeForceBuilderInitialization(); |
| } |
| private void maybeForceBuilderInitialization() { |
| if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { |
| } |
| } |
| private static Builder create() { |
| return new Builder(); |
| } |
| |
| public Builder clear() { |
| super.clear(); |
| name_ = ""; |
| bitField0_ = (bitField0_ & ~0x00000001); |
| return this; |
| } |
| |
| public Builder clone() { |
| return create().mergeFrom(buildPartial()); |
| } |
| |
| public com.google.protobuf.Descriptors.Descriptor |
| getDescriptorForType() { |
| return org.apache.slider.api.proto.Messages.internal_static_org_apache_slider_api_GetLiveNodeRequestProto_descriptor; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto getDefaultInstanceForType() { |
| return org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto.getDefaultInstance(); |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto build() { |
| org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto result = buildPartial(); |
| if (!result.isInitialized()) { |
| throw newUninitializedMessageException(result); |
| } |
| return result; |
| } |
| |
| public org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto buildPartial() { |
| org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto result = new org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto(this); |
| int from_bitField0_ = bitField0_; |
| int to_bitField0_ = 0; |
| if (((from_bitField0_ & 0x00000001) == 0x00000001)) { |
| to_bitField0_ |= 0x00000001; |
| } |
| result.name_ = name_; |
| result.bitField0_ = to_bitField0_; |
| onBuilt(); |
| return result; |
| } |
| |
| public Builder mergeFrom(com.google.protobuf.Message other) { |
| if (other instanceof org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto) { |
| return mergeFrom((org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto)other); |
| } else { |
| super.mergeFrom(other); |
| return this; |
| } |
| } |
| |
| public Builder mergeFrom(org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto other) { |
| if (other == org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto.getDefaultInstance()) return this; |
| if (other.hasName()) { |
| bitField0_ |= 0x00000001; |
| name_ = other.name_; |
| onChanged(); |
| } |
| this.mergeUnknownFields(other.getUnknownFields()); |
| return this; |
| } |
| |
| public final boolean isInitialized() { |
| if (!hasName()) { |
| |
| return false; |
| } |
| return true; |
| } |
| |
| public Builder mergeFrom( |
| com.google.protobuf.CodedInputStream input, |
| com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| throws java.io.IOException { |
| org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto parsedMessage = null; |
| try { |
| parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); |
| } catch (com.google.protobuf.InvalidProtocolBufferException e) { |
| parsedMessage = (org.apache.slider.api.proto.Messages.GetLiveNodeRequestProto) e.getUnfinishedMessage(); |
| throw e; |
| } finally { |
| if (parsedMessage != null) { |
| mergeFrom(parsedMessage); |
| } |
| } |
| return this; |
| } |
| private int bitField0_; |
| |
| // required string name = 1; |
| private java.lang.Object name_ = ""; |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| public boolean hasName() { |
| return ((bitField0_ & 0x00000001) == 0x00000001); |
| } |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| public java.lang.String getName() { |
| java.lang.Object ref = name_; |
| if (!(ref instanceof java.lang.String)) { |
| java.lang.String s = ((com.google.protobuf.ByteString) ref) |
| .toStringUtf8(); |
| name_ = s; |
| return s; |
| } else { |
| return (java.lang.String) ref; |
| } |
| } |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| 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; |
| } |
| } |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| public Builder setName( |
| java.lang.String value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| name_ = value; |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| public Builder clearName() { |
| bitField0_ = (bitField0_ & ~0x00000001); |
| name_ = getDefaultInstance().getName(); |
| onChanged(); |
| return this; |
| } |
| /** |
| * <code>required string name = 1;</code> |
| */ |
| public Builder setNameBytes( |
| com.google.protobuf.ByteString value) { |
| if (value == null) { |
| throw new NullPointerException(); |
| } |
| bitField0_ |= 0x00000001; |
| name_ = value; |
| onChanged(); |
| return this; |
| } |
| |
| // @@protoc_insertion_point(builder_scope:org.apache.slider.api.GetLiveNodeRequestProto) |
| } |
| |
| static { |
| defaultInstance = new GetLiveNodeRequestProto(true); |
| defaultInstance.initFields(); |
| } |
| |
| // @@protoc_insertion_point(class_scope:org.apache.slider.api.GetLiveNodeRequestProto) |
| } |
| |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_RoleInstanceState_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_RoleInstanceState_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_StopClusterRequestProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_StopClusterRequestProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_StopClusterResponseProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_StopClusterResponseProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_UpgradeContainersRequestProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_UpgradeContainersRequestProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_UpgradeContainersResponseProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_UpgradeContainersResponseProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_FlexClusterRequestProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_FlexClusterRequestProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_FlexClusterResponseProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_FlexClusterResponseProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetJSONClusterStatusRequestProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetJSONClusterStatusRequestProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetJSONClusterStatusResponseProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetJSONClusterStatusResponseProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_ListNodeUUIDsByRoleRequestProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_ListNodeUUIDsByRoleRequestProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_ListNodeUUIDsByRoleResponseProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_ListNodeUUIDsByRoleResponseProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetNodeRequestProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetNodeRequestProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetNodeResponseProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetNodeResponseProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetClusterNodesRequestProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetClusterNodesRequestProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetClusterNodesResponseProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetClusterNodesResponseProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_EchoRequestProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_EchoRequestProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_EchoResponseProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_EchoResponseProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_KillContainerRequestProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_KillContainerRequestProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_KillContainerResponseProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_KillContainerResponseProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_AMSuicideRequestProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_AMSuicideRequestProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_AMSuicideResponseProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_AMSuicideResponseProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetInstanceDefinitionRequestProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetInstanceDefinitionRequestProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetInstanceDefinitionResponseProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetInstanceDefinitionResponseProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_ApplicationLivenessInformationProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_ApplicationLivenessInformationProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_ComponentInformationProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_ComponentInformationProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_ContainerInformationProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_ContainerInformationProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_PingInformationProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_PingInformationProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_NodeEntryInformationProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_NodeEntryInformationProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_NodeInformationProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_NodeInformationProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetModelRequestProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetModelRequestProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetModelDesiredRequestProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetModelDesiredRequestProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetModelDesiredAppconfRequestProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetModelDesiredAppconfRequestProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetModelDesiredResourcesRequestProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetModelDesiredResourcesRequestProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetModelResolvedAppconfRequestProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetModelResolvedAppconfRequestProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetModelResolvedResourcesRequestProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetModelResolvedResourcesRequestProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetModelLiveResourcesRequestProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetModelLiveResourcesRequestProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetLiveContainersRequestProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetLiveContainersRequestProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetLiveContainersResponseProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetLiveContainersResponseProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetLiveContainerRequestProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetLiveContainerRequestProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetLiveComponentsRequestProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetLiveComponentsRequestProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetLiveComponentsResponseProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetLiveComponentsResponseProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetLiveComponentRequestProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetLiveComponentRequestProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetApplicationLivenessRequestProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetApplicationLivenessRequestProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_EmptyPayloadProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_EmptyPayloadProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_WrappedJsonProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_WrappedJsonProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetCertificateStoreRequestProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetCertificateStoreRequestProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetCertificateStoreResponseProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetCertificateStoreResponseProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetLiveNodesRequestProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetLiveNodesRequestProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetLiveNodesResponseProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetLiveNodesResponseProto_fieldAccessorTable; |
| private static com.google.protobuf.Descriptors.Descriptor |
| internal_static_org_apache_slider_api_GetLiveNodeRequestProto_descriptor; |
| private static |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable |
| internal_static_org_apache_slider_api_GetLiveNodeRequestProto_fieldAccessorTable; |
| |
| public static com.google.protobuf.Descriptors.FileDescriptor |
| getDescriptor() { |
| return descriptor; |
| } |
| private static com.google.protobuf.Descriptors.FileDescriptor |
| descriptor; |
| static { |
| java.lang.String[] descriptorData = { |
| "\n\033SliderClusterMessages.proto\022\025org.apach" + |
| "e.slider.api\"\227\002\n\021RoleInstanceState\022\014\n\004na" + |
| "me\030\001 \002(\t\022\014\n\004role\030\002 \001(\t\022\r\n\005state\030\004 \002(\r\022\020\n" + |
| "\010exitCode\030\005 \002(\r\022\017\n\007command\030\006 \001(\t\022\023\n\013diag" + |
| "nostics\030\007 \001(\t\022\016\n\006output\030\010 \003(\t\022\023\n\013environ" + |
| "ment\030\t \003(\t\022\016\n\006roleId\030\n \002(\r\022\020\n\010released\030\013" + |
| " \002(\010\022\022\n\ncreateTime\030\014 \002(\003\022\021\n\tstartTime\030\r " + |
| "\002(\003\022\014\n\004host\030\016 \002(\t\022\017\n\007hostURL\030\017 \002(\t\022\022\n\nap" + |
| "pVersion\030\020 \001(\t\"*\n\027StopClusterRequestProt" + |
| "o\022\017\n\007message\030\001 \002(\t\"\032\n\030StopClusterRespons", |
| "eProto\"V\n\035UpgradeContainersRequestProto\022" + |
| "\017\n\007message\030\001 \002(\t\022\021\n\tcontainer\030\002 \003(\t\022\021\n\tc" + |
| "omponent\030\003 \003(\t\" \n\036UpgradeContainersRespo" + |
| "nseProto\".\n\027FlexClusterRequestProto\022\023\n\013c" + |
| "lusterSpec\030\001 \002(\t\",\n\030FlexClusterResponseP" + |
| "roto\022\020\n\010response\030\001 \002(\010\"\"\n GetJSONCluster" + |
| "StatusRequestProto\"8\n!GetJSONClusterStat" + |
| "usResponseProto\022\023\n\013clusterSpec\030\001 \002(\t\"/\n\037" + |
| "ListNodeUUIDsByRoleRequestProto\022\014\n\004role\030" + |
| "\001 \002(\t\"0\n ListNodeUUIDsByRoleResponseProt", |
| "o\022\014\n\004uuid\030\001 \003(\t\"#\n\023GetNodeRequestProto\022\014" + |
| "\n\004uuid\030\001 \002(\t\"U\n\024GetNodeResponseProto\022=\n\013" + |
| "clusterNode\030\001 \002(\0132(.org.apache.slider.ap" + |
| "i.RoleInstanceState\"+\n\033GetClusterNodesRe" + |
| "questProto\022\014\n\004uuid\030\001 \003(\t\"]\n\034GetClusterNo" + |
| "desResponseProto\022=\n\013clusterNode\030\001 \003(\0132(." + |
| "org.apache.slider.api.RoleInstanceState\"" + |
| " \n\020EchoRequestProto\022\014\n\004text\030\001 \002(\t\"!\n\021Ech" + |
| "oResponseProto\022\014\n\004text\030\001 \002(\t\"\'\n\031KillCont" + |
| "ainerRequestProto\022\n\n\002id\030\001 \002(\t\"-\n\032KillCon", |
| "tainerResponseProto\022\017\n\007success\030\001 \002(\010\"D\n\025" + |
| "AMSuicideRequestProto\022\014\n\004text\030\001 \002(\t\022\016\n\006s" + |
| "ignal\030\002 \002(\005\022\r\n\005delay\030\003 \002(\005\"\030\n\026AMSuicideR" + |
| "esponseProto\"#\n!GetInstanceDefinitionReq" + |
| "uestProto\"^\n\"GetInstanceDefinitionRespon" + |
| "seProto\022\020\n\010internal\030\001 \002(\t\022\021\n\tresources\030\002" + |
| " \002(\t\022\023\n\013application\030\003 \002(\t\"`\n#Application" + |
| "LivenessInformationProto\022\034\n\024allRequestsS" + |
| "atisfied\030\001 \001(\010\022\033\n\023requestsOutstanding\030\002 " + |
| "\001(\005\"\256\003\n\031ComponentInformationProto\022\014\n\004nam", |
| "e\030\001 \001(\t\022\020\n\010priority\030\002 \001(\005\022\017\n\007desired\030\003 \001" + |
| "(\005\022\016\n\006actual\030\004 \001(\005\022\021\n\treleasing\030\005 \001(\005\022\021\n" + |
| "\trequested\030\006 \001(\005\022\016\n\006failed\030\007 \001(\005\022\017\n\007star" + |
| "ted\030\010 \001(\005\022\023\n\013startFailed\030\t \001(\005\022\021\n\tcomple" + |
| "ted\030\n \001(\005\022\026\n\016totalRequested\030\013 \001(\005\022\026\n\016fai" + |
| "lureMessage\030\014 \001(\t\022\027\n\017placementPolicy\030\r \001" + |
| "(\005\022\022\n\ncontainers\030\016 \003(\t\022\026\n\016failedRecently" + |
| "\030\017 \001(\005\022\022\n\nnodeFailed\030\020 \001(\005\022\021\n\tpreempted\030" + |
| "\021 \001(\005\022%\n\035pendingAntiAffineRequestCount\030\022" + |
| " \001(\005\022\036\n\026isAARequestOutstanding\030\023 \001(\010\"\210\002\n", |
| "\031ContainerInformationProto\022\023\n\013containerI" + |
| "d\030\001 \001(\t\022\021\n\tcomponent\030\002 \001(\t\022\020\n\010released\030\003" + |
| " \001(\010\022\r\n\005state\030\004 \001(\005\022\020\n\010exitCode\030\005 \001(\005\022\023\n" + |
| "\013diagnostics\030\006 \001(\t\022\022\n\ncreateTime\030\007 \001(\003\022\021" + |
| "\n\tstartTime\030\010 \001(\003\022\016\n\006output\030\t \003(\t\022\014\n\004hos" + |
| "t\030\n \001(\t\022\017\n\007hostURL\030\013 \001(\t\022\021\n\tplacement\030\014 " + |
| "\001(\t\022\022\n\nappVersion\030\r \001(\t\"N\n\024PingInformati" + |
| "onProto\022\014\n\004text\030\001 \001(\t\022\014\n\004verb\030\002 \001(\t\022\014\n\004b" + |
| "ody\030\003 \001(\t\022\014\n\004time\030\004 \001(\003\"\343\001\n\031NodeEntryInf" + |
| "ormationProto\022\020\n\010priority\030\001 \002(\005\022\021\n\treque", |
| "sted\030\002 \002(\005\022\020\n\010starting\030\003 \002(\005\022\023\n\013startFai" + |
| "led\030\004 \002(\005\022\016\n\006failed\030\005 \002(\005\022\026\n\016failedRecen" + |
| "tly\030\006 \002(\005\022\021\n\tpreempted\030\007 \002(\005\022\014\n\004live\030\010 \002" + |
| "(\005\022\021\n\treleasing\030\t \002(\005\022\020\n\010lastUsed\030\n \002(\003\022" + |
| "\014\n\004name\030\013 \002(\t\"\334\001\n\024NodeInformationProto\022\020" + |
| "\n\010hostname\030\001 \002(\t\022\r\n\005state\030\002 \002(\t\022\023\n\013httpA" + |
| "ddress\030\003 \002(\t\022\020\n\010rackName\030\004 \002(\t\022\016\n\006labels" + |
| "\030\005 \002(\t\022\024\n\014healthReport\030\006 \002(\t\022\023\n\013lastUpda" + |
| "ted\030\007 \002(\003\022A\n\007entries\030\010 \003(\01320.org.apache." + |
| "slider.api.NodeEntryInformationProto\"\026\n\024", |
| "GetModelRequestProto\"\035\n\033GetModelDesiredR" + |
| "equestProto\"$\n\"GetModelDesiredAppconfReq" + |
| "uestProto\"&\n$GetModelDesiredResourcesReq" + |
| "uestProto\"%\n#GetModelResolvedAppconfRequ" + |
| "estProto\"\'\n%GetModelResolvedResourcesReq" + |
| "uestProto\"#\n!GetModelLiveResourcesReques" + |
| "tProto\"\037\n\035GetLiveContainersRequestProto\"" + |
| "u\n\036GetLiveContainersResponseProto\022\r\n\005nam" + |
| "es\030\001 \003(\t\022D\n\ncontainers\030\002 \003(\01320.org.apach" + |
| "e.slider.api.ContainerInformationProto\"3", |
| "\n\034GetLiveContainerRequestProto\022\023\n\013contai" + |
| "nerId\030\001 \002(\t\"\037\n\035GetLiveComponentsRequestP" + |
| "roto\"u\n\036GetLiveComponentsResponseProto\022\r" + |
| "\n\005names\030\001 \003(\t\022D\n\ncomponents\030\002 \003(\01320.org." + |
| "apache.slider.api.ComponentInformationPr" + |
| "oto\",\n\034GetLiveComponentRequestProto\022\014\n\004n" + |
| "ame\030\001 \002(\t\"$\n\"GetApplicationLivenessReque" + |
| "stProto\"\023\n\021EmptyPayloadProto\" \n\020WrappedJ" + |
| "sonProto\022\014\n\004json\030\001 \002(\t\"h\n\037GetCertificate" + |
| "StoreRequestProto\022\020\n\010hostname\030\001 \001(\t\022\023\n\013r", |
| "equesterId\030\002 \002(\t\022\020\n\010password\030\003 \002(\t\022\014\n\004ty" + |
| "pe\030\004 \002(\t\"1\n GetCertificateStoreResponseP" + |
| "roto\022\r\n\005store\030\001 \002(\014\"\032\n\030GetLiveNodesReque" + |
| "stProto\"W\n\031GetLiveNodesResponseProto\022:\n\005" + |
| "nodes\030\001 \003(\0132+.org.apache.slider.api.Node" + |
| "InformationProto\"\'\n\027GetLiveNodeRequestPr" + |
| "oto\022\014\n\004name\030\001 \002(\tB-\n\033org.apache.slider.a" + |
| "pi.protoB\010Messages\210\001\001\240\001\001" |
| }; |
| com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = |
| new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { |
| public com.google.protobuf.ExtensionRegistry assignDescriptors( |
| com.google.protobuf.Descriptors.FileDescriptor root) { |
| descriptor = root; |
| internal_static_org_apache_slider_api_RoleInstanceState_descriptor = |
| getDescriptor().getMessageTypes().get(0); |
| internal_static_org_apache_slider_api_RoleInstanceState_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_RoleInstanceState_descriptor, |
| new java.lang.String[] { "Name", "Role", "State", "ExitCode", "Command", "Diagnostics", "Output", "Environment", "RoleId", "Released", "CreateTime", "StartTime", "Host", "HostURL", "AppVersion", }); |
| internal_static_org_apache_slider_api_StopClusterRequestProto_descriptor = |
| getDescriptor().getMessageTypes().get(1); |
| internal_static_org_apache_slider_api_StopClusterRequestProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_StopClusterRequestProto_descriptor, |
| new java.lang.String[] { "Message", }); |
| internal_static_org_apache_slider_api_StopClusterResponseProto_descriptor = |
| getDescriptor().getMessageTypes().get(2); |
| internal_static_org_apache_slider_api_StopClusterResponseProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_StopClusterResponseProto_descriptor, |
| new java.lang.String[] { }); |
| internal_static_org_apache_slider_api_UpgradeContainersRequestProto_descriptor = |
| getDescriptor().getMessageTypes().get(3); |
| internal_static_org_apache_slider_api_UpgradeContainersRequestProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_UpgradeContainersRequestProto_descriptor, |
| new java.lang.String[] { "Message", "Container", "Component", }); |
| internal_static_org_apache_slider_api_UpgradeContainersResponseProto_descriptor = |
| getDescriptor().getMessageTypes().get(4); |
| internal_static_org_apache_slider_api_UpgradeContainersResponseProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_UpgradeContainersResponseProto_descriptor, |
| new java.lang.String[] { }); |
| internal_static_org_apache_slider_api_FlexClusterRequestProto_descriptor = |
| getDescriptor().getMessageTypes().get(5); |
| internal_static_org_apache_slider_api_FlexClusterRequestProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_FlexClusterRequestProto_descriptor, |
| new java.lang.String[] { "ClusterSpec", }); |
| internal_static_org_apache_slider_api_FlexClusterResponseProto_descriptor = |
| getDescriptor().getMessageTypes().get(6); |
| internal_static_org_apache_slider_api_FlexClusterResponseProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_FlexClusterResponseProto_descriptor, |
| new java.lang.String[] { "Response", }); |
| internal_static_org_apache_slider_api_GetJSONClusterStatusRequestProto_descriptor = |
| getDescriptor().getMessageTypes().get(7); |
| internal_static_org_apache_slider_api_GetJSONClusterStatusRequestProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetJSONClusterStatusRequestProto_descriptor, |
| new java.lang.String[] { }); |
| internal_static_org_apache_slider_api_GetJSONClusterStatusResponseProto_descriptor = |
| getDescriptor().getMessageTypes().get(8); |
| internal_static_org_apache_slider_api_GetJSONClusterStatusResponseProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetJSONClusterStatusResponseProto_descriptor, |
| new java.lang.String[] { "ClusterSpec", }); |
| internal_static_org_apache_slider_api_ListNodeUUIDsByRoleRequestProto_descriptor = |
| getDescriptor().getMessageTypes().get(9); |
| internal_static_org_apache_slider_api_ListNodeUUIDsByRoleRequestProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_ListNodeUUIDsByRoleRequestProto_descriptor, |
| new java.lang.String[] { "Role", }); |
| internal_static_org_apache_slider_api_ListNodeUUIDsByRoleResponseProto_descriptor = |
| getDescriptor().getMessageTypes().get(10); |
| internal_static_org_apache_slider_api_ListNodeUUIDsByRoleResponseProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_ListNodeUUIDsByRoleResponseProto_descriptor, |
| new java.lang.String[] { "Uuid", }); |
| internal_static_org_apache_slider_api_GetNodeRequestProto_descriptor = |
| getDescriptor().getMessageTypes().get(11); |
| internal_static_org_apache_slider_api_GetNodeRequestProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetNodeRequestProto_descriptor, |
| new java.lang.String[] { "Uuid", }); |
| internal_static_org_apache_slider_api_GetNodeResponseProto_descriptor = |
| getDescriptor().getMessageTypes().get(12); |
| internal_static_org_apache_slider_api_GetNodeResponseProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetNodeResponseProto_descriptor, |
| new java.lang.String[] { "ClusterNode", }); |
| internal_static_org_apache_slider_api_GetClusterNodesRequestProto_descriptor = |
| getDescriptor().getMessageTypes().get(13); |
| internal_static_org_apache_slider_api_GetClusterNodesRequestProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetClusterNodesRequestProto_descriptor, |
| new java.lang.String[] { "Uuid", }); |
| internal_static_org_apache_slider_api_GetClusterNodesResponseProto_descriptor = |
| getDescriptor().getMessageTypes().get(14); |
| internal_static_org_apache_slider_api_GetClusterNodesResponseProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetClusterNodesResponseProto_descriptor, |
| new java.lang.String[] { "ClusterNode", }); |
| internal_static_org_apache_slider_api_EchoRequestProto_descriptor = |
| getDescriptor().getMessageTypes().get(15); |
| internal_static_org_apache_slider_api_EchoRequestProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_EchoRequestProto_descriptor, |
| new java.lang.String[] { "Text", }); |
| internal_static_org_apache_slider_api_EchoResponseProto_descriptor = |
| getDescriptor().getMessageTypes().get(16); |
| internal_static_org_apache_slider_api_EchoResponseProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_EchoResponseProto_descriptor, |
| new java.lang.String[] { "Text", }); |
| internal_static_org_apache_slider_api_KillContainerRequestProto_descriptor = |
| getDescriptor().getMessageTypes().get(17); |
| internal_static_org_apache_slider_api_KillContainerRequestProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_KillContainerRequestProto_descriptor, |
| new java.lang.String[] { "Id", }); |
| internal_static_org_apache_slider_api_KillContainerResponseProto_descriptor = |
| getDescriptor().getMessageTypes().get(18); |
| internal_static_org_apache_slider_api_KillContainerResponseProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_KillContainerResponseProto_descriptor, |
| new java.lang.String[] { "Success", }); |
| internal_static_org_apache_slider_api_AMSuicideRequestProto_descriptor = |
| getDescriptor().getMessageTypes().get(19); |
| internal_static_org_apache_slider_api_AMSuicideRequestProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_AMSuicideRequestProto_descriptor, |
| new java.lang.String[] { "Text", "Signal", "Delay", }); |
| internal_static_org_apache_slider_api_AMSuicideResponseProto_descriptor = |
| getDescriptor().getMessageTypes().get(20); |
| internal_static_org_apache_slider_api_AMSuicideResponseProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_AMSuicideResponseProto_descriptor, |
| new java.lang.String[] { }); |
| internal_static_org_apache_slider_api_GetInstanceDefinitionRequestProto_descriptor = |
| getDescriptor().getMessageTypes().get(21); |
| internal_static_org_apache_slider_api_GetInstanceDefinitionRequestProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetInstanceDefinitionRequestProto_descriptor, |
| new java.lang.String[] { }); |
| internal_static_org_apache_slider_api_GetInstanceDefinitionResponseProto_descriptor = |
| getDescriptor().getMessageTypes().get(22); |
| internal_static_org_apache_slider_api_GetInstanceDefinitionResponseProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetInstanceDefinitionResponseProto_descriptor, |
| new java.lang.String[] { "Internal", "Resources", "Application", }); |
| internal_static_org_apache_slider_api_ApplicationLivenessInformationProto_descriptor = |
| getDescriptor().getMessageTypes().get(23); |
| internal_static_org_apache_slider_api_ApplicationLivenessInformationProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_ApplicationLivenessInformationProto_descriptor, |
| new java.lang.String[] { "AllRequestsSatisfied", "RequestsOutstanding", }); |
| internal_static_org_apache_slider_api_ComponentInformationProto_descriptor = |
| getDescriptor().getMessageTypes().get(24); |
| internal_static_org_apache_slider_api_ComponentInformationProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_ComponentInformationProto_descriptor, |
| new java.lang.String[] { "Name", "Priority", "Desired", "Actual", "Releasing", "Requested", "Failed", "Started", "StartFailed", "Completed", "TotalRequested", "FailureMessage", "PlacementPolicy", "Containers", "FailedRecently", "NodeFailed", "Preempted", "PendingAntiAffineRequestCount", "IsAARequestOutstanding", }); |
| internal_static_org_apache_slider_api_ContainerInformationProto_descriptor = |
| getDescriptor().getMessageTypes().get(25); |
| internal_static_org_apache_slider_api_ContainerInformationProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_ContainerInformationProto_descriptor, |
| new java.lang.String[] { "ContainerId", "Component", "Released", "State", "ExitCode", "Diagnostics", "CreateTime", "StartTime", "Output", "Host", "HostURL", "Placement", "AppVersion", }); |
| internal_static_org_apache_slider_api_PingInformationProto_descriptor = |
| getDescriptor().getMessageTypes().get(26); |
| internal_static_org_apache_slider_api_PingInformationProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_PingInformationProto_descriptor, |
| new java.lang.String[] { "Text", "Verb", "Body", "Time", }); |
| internal_static_org_apache_slider_api_NodeEntryInformationProto_descriptor = |
| getDescriptor().getMessageTypes().get(27); |
| internal_static_org_apache_slider_api_NodeEntryInformationProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_NodeEntryInformationProto_descriptor, |
| new java.lang.String[] { "Priority", "Requested", "Starting", "StartFailed", "Failed", "FailedRecently", "Preempted", "Live", "Releasing", "LastUsed", "Name", }); |
| internal_static_org_apache_slider_api_NodeInformationProto_descriptor = |
| getDescriptor().getMessageTypes().get(28); |
| internal_static_org_apache_slider_api_NodeInformationProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_NodeInformationProto_descriptor, |
| new java.lang.String[] { "Hostname", "State", "HttpAddress", "RackName", "Labels", "HealthReport", "LastUpdated", "Entries", }); |
| internal_static_org_apache_slider_api_GetModelRequestProto_descriptor = |
| getDescriptor().getMessageTypes().get(29); |
| internal_static_org_apache_slider_api_GetModelRequestProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetModelRequestProto_descriptor, |
| new java.lang.String[] { }); |
| internal_static_org_apache_slider_api_GetModelDesiredRequestProto_descriptor = |
| getDescriptor().getMessageTypes().get(30); |
| internal_static_org_apache_slider_api_GetModelDesiredRequestProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetModelDesiredRequestProto_descriptor, |
| new java.lang.String[] { }); |
| internal_static_org_apache_slider_api_GetModelDesiredAppconfRequestProto_descriptor = |
| getDescriptor().getMessageTypes().get(31); |
| internal_static_org_apache_slider_api_GetModelDesiredAppconfRequestProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetModelDesiredAppconfRequestProto_descriptor, |
| new java.lang.String[] { }); |
| internal_static_org_apache_slider_api_GetModelDesiredResourcesRequestProto_descriptor = |
| getDescriptor().getMessageTypes().get(32); |
| internal_static_org_apache_slider_api_GetModelDesiredResourcesRequestProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetModelDesiredResourcesRequestProto_descriptor, |
| new java.lang.String[] { }); |
| internal_static_org_apache_slider_api_GetModelResolvedAppconfRequestProto_descriptor = |
| getDescriptor().getMessageTypes().get(33); |
| internal_static_org_apache_slider_api_GetModelResolvedAppconfRequestProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetModelResolvedAppconfRequestProto_descriptor, |
| new java.lang.String[] { }); |
| internal_static_org_apache_slider_api_GetModelResolvedResourcesRequestProto_descriptor = |
| getDescriptor().getMessageTypes().get(34); |
| internal_static_org_apache_slider_api_GetModelResolvedResourcesRequestProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetModelResolvedResourcesRequestProto_descriptor, |
| new java.lang.String[] { }); |
| internal_static_org_apache_slider_api_GetModelLiveResourcesRequestProto_descriptor = |
| getDescriptor().getMessageTypes().get(35); |
| internal_static_org_apache_slider_api_GetModelLiveResourcesRequestProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetModelLiveResourcesRequestProto_descriptor, |
| new java.lang.String[] { }); |
| internal_static_org_apache_slider_api_GetLiveContainersRequestProto_descriptor = |
| getDescriptor().getMessageTypes().get(36); |
| internal_static_org_apache_slider_api_GetLiveContainersRequestProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetLiveContainersRequestProto_descriptor, |
| new java.lang.String[] { }); |
| internal_static_org_apache_slider_api_GetLiveContainersResponseProto_descriptor = |
| getDescriptor().getMessageTypes().get(37); |
| internal_static_org_apache_slider_api_GetLiveContainersResponseProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetLiveContainersResponseProto_descriptor, |
| new java.lang.String[] { "Names", "Containers", }); |
| internal_static_org_apache_slider_api_GetLiveContainerRequestProto_descriptor = |
| getDescriptor().getMessageTypes().get(38); |
| internal_static_org_apache_slider_api_GetLiveContainerRequestProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetLiveContainerRequestProto_descriptor, |
| new java.lang.String[] { "ContainerId", }); |
| internal_static_org_apache_slider_api_GetLiveComponentsRequestProto_descriptor = |
| getDescriptor().getMessageTypes().get(39); |
| internal_static_org_apache_slider_api_GetLiveComponentsRequestProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetLiveComponentsRequestProto_descriptor, |
| new java.lang.String[] { }); |
| internal_static_org_apache_slider_api_GetLiveComponentsResponseProto_descriptor = |
| getDescriptor().getMessageTypes().get(40); |
| internal_static_org_apache_slider_api_GetLiveComponentsResponseProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetLiveComponentsResponseProto_descriptor, |
| new java.lang.String[] { "Names", "Components", }); |
| internal_static_org_apache_slider_api_GetLiveComponentRequestProto_descriptor = |
| getDescriptor().getMessageTypes().get(41); |
| internal_static_org_apache_slider_api_GetLiveComponentRequestProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetLiveComponentRequestProto_descriptor, |
| new java.lang.String[] { "Name", }); |
| internal_static_org_apache_slider_api_GetApplicationLivenessRequestProto_descriptor = |
| getDescriptor().getMessageTypes().get(42); |
| internal_static_org_apache_slider_api_GetApplicationLivenessRequestProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetApplicationLivenessRequestProto_descriptor, |
| new java.lang.String[] { }); |
| internal_static_org_apache_slider_api_EmptyPayloadProto_descriptor = |
| getDescriptor().getMessageTypes().get(43); |
| internal_static_org_apache_slider_api_EmptyPayloadProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_EmptyPayloadProto_descriptor, |
| new java.lang.String[] { }); |
| internal_static_org_apache_slider_api_WrappedJsonProto_descriptor = |
| getDescriptor().getMessageTypes().get(44); |
| internal_static_org_apache_slider_api_WrappedJsonProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_WrappedJsonProto_descriptor, |
| new java.lang.String[] { "Json", }); |
| internal_static_org_apache_slider_api_GetCertificateStoreRequestProto_descriptor = |
| getDescriptor().getMessageTypes().get(45); |
| internal_static_org_apache_slider_api_GetCertificateStoreRequestProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetCertificateStoreRequestProto_descriptor, |
| new java.lang.String[] { "Hostname", "RequesterId", "Password", "Type", }); |
| internal_static_org_apache_slider_api_GetCertificateStoreResponseProto_descriptor = |
| getDescriptor().getMessageTypes().get(46); |
| internal_static_org_apache_slider_api_GetCertificateStoreResponseProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetCertificateStoreResponseProto_descriptor, |
| new java.lang.String[] { "Store", }); |
| internal_static_org_apache_slider_api_GetLiveNodesRequestProto_descriptor = |
| getDescriptor().getMessageTypes().get(47); |
| internal_static_org_apache_slider_api_GetLiveNodesRequestProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetLiveNodesRequestProto_descriptor, |
| new java.lang.String[] { }); |
| internal_static_org_apache_slider_api_GetLiveNodesResponseProto_descriptor = |
| getDescriptor().getMessageTypes().get(48); |
| internal_static_org_apache_slider_api_GetLiveNodesResponseProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetLiveNodesResponseProto_descriptor, |
| new java.lang.String[] { "Nodes", }); |
| internal_static_org_apache_slider_api_GetLiveNodeRequestProto_descriptor = |
| getDescriptor().getMessageTypes().get(49); |
| internal_static_org_apache_slider_api_GetLiveNodeRequestProto_fieldAccessorTable = new |
| com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
| internal_static_org_apache_slider_api_GetLiveNodeRequestProto_descriptor, |
| new java.lang.String[] { "Name", }); |
| return null; |
| } |
| }; |
| com.google.protobuf.Descriptors.FileDescriptor |
| .internalBuildGeneratedFileFrom(descriptorData, |
| new com.google.protobuf.Descriptors.FileDescriptor[] { |
| }, assigner); |
| } |
| |
| // @@protoc_insertion_point(outer_class_scope) |
| } |