public static Type 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()]; }
.computeEnumSize(2, type_.getNumber());
ucar.nc2.stream.NcStreamProto.Attribute.Type value = ucar.nc2.stream.NcStreamProto.Attribute.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue);
ucar.nc2.stream.NcStreamProto.Attribute.Type value = ucar.nc2.stream.NcStreamProto.Attribute.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue);
size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); if (type_ != ucar.nc2.stream.NcStreamProto.Attribute.Type.STRING.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_);
.computeEnumSize(2, type_.getNumber());
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } if (type_ != ucar.nc2.stream.NcStreamProto.Attribute.Type.STRING.getNumber()) { output.writeEnum(2, type_); } if (len_ != 0) { output.writeUInt32(3, len_); } if (!data_.isEmpty()) { output.writeBytes(4, data_); } for (int i = 0; i < sdata_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 5, sdata_.getRaw(i)); } if (unsigned_ != false) { output.writeBool(6, unsigned_); } if (dataType_ != ucar.nc2.stream.NcStreamProto.DataType.CHAR.getNumber()) { output.writeEnum(7, dataType_); } }
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.writeEnum(2, type_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, len_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, data_); } for (int i = 0; i < sdata_.size(); i++) { output.writeBytes(5, sdata_.getByteString(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(6, unsigned_); } getUnknownFields().writeTo(output); }
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.writeEnum(2, type_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeUInt32(3, len_); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, data_); } for (int i = 0; i < sdata_.size(); i++) { output.writeBytes(5, sdata_.getByteString(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBool(6, unsigned_); } getUnknownFields().writeTo(output); }
/** * <code>optional .Attribute.Type type = 2;</code> * * <pre> * < 5.0 * </pre> */ public Builder setType(ucar.nc2.stream.NcStreamProto.Attribute.Type value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /**
/** * <code>optional .Attribute.Type type = 2;</code> * * <pre> * < 5.0 * </pre> */ public ucar.nc2.stream.NcStreamProto.Attribute.Type getType() { ucar.nc2.stream.NcStreamProto.Attribute.Type result = ucar.nc2.stream.NcStreamProto.Attribute.Type.valueOf(type_); return result == null ? ucar.nc2.stream.NcStreamProto.Attribute.Type.UNRECOGNIZED : result; } /**
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
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor
/** * <code>optional .Attribute.Type type = 2;</code> * * <pre> * < 5.0 * </pre> */ public ucar.nc2.stream.NcStreamProto.Attribute.Type getType() { ucar.nc2.stream.NcStreamProto.Attribute.Type result = ucar.nc2.stream.NcStreamProto.Attribute.Type.valueOf(type_); return result == null ? ucar.nc2.stream.NcStreamProto.Attribute.Type.UNRECOGNIZED : result; }
public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; }
public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; }
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor