/** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ServingStatus valueOf(int value) { return forNumber(value); }
public static ServingStatus valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (status_ != io.grpc.health.v1.HealthProto.HealthCheckResponse.ServingStatus.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, status_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (status_ != io.grpc.health.v1.HealthProto.HealthCheckResponse.ServingStatus.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, status_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (status_ != io.grpc.health.v1.HealthProto.HealthCheckResponse.ServingStatus.UNKNOWN.getNumber()) { output.writeEnum(1, status_); } unknownFields.writeTo(output); }
/** * <code>.grpc.health.v1.HealthCheckResponse.ServingStatus status = 1;</code> */ public io.grpc.health.v1.HealthProto.HealthCheckResponse.ServingStatus getStatus() { @SuppressWarnings("deprecation") io.grpc.health.v1.HealthProto.HealthCheckResponse.ServingStatus result = io.grpc.health.v1.HealthProto.HealthCheckResponse.ServingStatus.valueOf(status_); return result == null ? io.grpc.health.v1.HealthProto.HealthCheckResponse.ServingStatus.UNRECOGNIZED : result; }
/** * <code>.grpc.health.v1.HealthCheckResponse.ServingStatus status = 1;</code> */ public Builder setStatus(io.grpc.health.v1.HealthProto.HealthCheckResponse.ServingStatus value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /**
/** * <code>.grpc.health.v1.HealthCheckResponse.ServingStatus status = 1;</code> */ public io.grpc.health.v1.HealthProto.HealthCheckResponse.ServingStatus getStatus() { @SuppressWarnings("deprecation") io.grpc.health.v1.HealthProto.HealthCheckResponse.ServingStatus result = io.grpc.health.v1.HealthProto.HealthCheckResponse.ServingStatus.valueOf(status_); return result == null ? io.grpc.health.v1.HealthProto.HealthCheckResponse.ServingStatus.UNRECOGNIZED : result; }
/** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ServingStatus valueOf(int value) { return forNumber(value); }
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor
@java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (status_ != io.grpc.health.v1.HealthProto.HealthCheckResponse.ServingStatus.UNKNOWN.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, status_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
public static ServingStatus valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; }
public static ServingStatus valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; }
/** * <code>.grpc.health.v1.HealthCheckResponse.ServingStatus status = 1;</code> */ public Builder setStatus(io.grpc.health.v1.HealthProto.HealthCheckResponse.ServingStatus value) { if (value == null) { throw new NullPointerException(); } status_ = value.getNumber(); onChanged(); return this; } /**
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (status_ != io.grpc.health.v1.HealthProto.HealthCheckResponse.ServingStatus.UNKNOWN.getNumber()) { output.writeEnum(1, status_); } unknownFields.writeTo(output); }
/** * <code>.grpc.health.v1.HealthCheckResponse.ServingStatus status = 1;</code> */ public io.grpc.health.v1.HealthProto.HealthCheckResponse.ServingStatus getStatus() { @SuppressWarnings("deprecation") io.grpc.health.v1.HealthProto.HealthCheckResponse.ServingStatus result = io.grpc.health.v1.HealthProto.HealthCheckResponse.ServingStatus.valueOf(status_); return result == null ? io.grpc.health.v1.HealthProto.HealthCheckResponse.ServingStatus.UNRECOGNIZED : result; } /**
/** * <code>.grpc.health.v1.HealthCheckResponse.ServingStatus status = 1;</code> */ public io.grpc.health.v1.HealthProto.HealthCheckResponse.ServingStatus getStatus() { @SuppressWarnings("deprecation") io.grpc.health.v1.HealthProto.HealthCheckResponse.ServingStatus result = io.grpc.health.v1.HealthProto.HealthCheckResponse.ServingStatus.valueOf(status_); return result == null ? io.grpc.health.v1.HealthProto.HealthCheckResponse.ServingStatus.UNRECOGNIZED : result; } /**
/** * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ServingStatus valueOf(int value) { return forNumber(value); }