public void setBytesValue(BytesRef value) {if (!(fieldsData instanceof BytesRef)) {throw new IllegalArgumentException("cannot change value type from " + fieldsData.getClass().getSimpleName() + " to BytesRef");}if (type.indexOptions() != IndexOptions.NONE) {throw new IllegalArgumentException("cannot set a BytesRef value on an indexed field");}if (value == null) {throw new IllegalArgumentException("value must not be null");}fieldsData = value;}
public virtual void SetBytesValue(BytesRef value){if (!(FieldsData is BytesRef)){throw new System.ArgumentException("cannot change value type from " + FieldsData.GetType().Name + " to BytesRef");}if (m_type.IsIndexed){throw new System.ArgumentException("cannot set a BytesRef value on an indexed field");}FieldsData = value;}