Apache.Hadoop.Hbase.Thrift.Hbase.getTableNames_result.Write C# (CSharp) Method

Write() public method

public Write ( TProtocol oprot ) : void
oprot Thrift.Protocol.TProtocol
return void
            public void Write(TProtocol oprot)
            {
                TStruct struc = new TStruct("getTableNames_result");
                oprot.WriteStructBegin(struc);
                TField field = new TField();

                if (this.__isset.success) {
                  if (this.success != null) {
                field.Name = "success";
                field.Type = TType.List;
                field.ID = 0;
                oprot.WriteFieldBegin(field);
                {
                  oprot.WriteListBegin(new TList(TType.String, this.success.Count));
                  foreach (byte[] _iter12 in this.success)
                  {
                oprot.WriteBinary(_iter12);
                oprot.WriteListEnd();
                  }
                }
                oprot.WriteFieldEnd();
                  }
                } else if (this.__isset.io) {
                  if (this.io != null) {
                field.Name = "io";
                field.Type = TType.Struct;
                field.ID = 1;
                oprot.WriteFieldBegin(field);
                this.io.Write(oprot);
                oprot.WriteFieldEnd();
                  }
                }
                oprot.WriteFieldStop();
                oprot.WriteStructEnd();
            }