yijunyu/c-to-rust huggingface dataset:
// Original:
public static IntsRef toUTF32(char[] s, int offset, int length, IntsRefBuilder scratch) {int charIdx = offset;int intIdx = 0;final int charLimit = offset + length;while(charIdx < charLimit) {scratch.grow(intIdx+1);final int utf32 = Character.codePointAt(s, charIdx, charLimit);scratch.setIntAt(intIdx, utf32);charIdx += Character.charCount(utf32);intIdx++;}scratch.setLength(intIdx);return scratch.get();}

// Translation:
public static Int32sRef ToUTF32(char[] s, int offset, int length, Int32sRef scratch){int charIdx = offset;int intIdx = 0;int charLimit = offset + length;while (charIdx < charLimit){scratch.Grow(intIdx + 1);int utf32 = Character.CodePointAt(s, charIdx, charLimit);scratch.Int32s[intIdx] = utf32;charIdx += Character.CharCount(utf32);intIdx++;}scratch.Length = intIdx;return scratch;}
// Original:
public void skipBytes(long count) {pos -= count;}

// Translation:
public override void SkipBytes(int count){pos -= count;}
// Original:
public void addDataValidation(DVRecord dvRecord) {_validationList.add(dvRecord);_headerRec.setDVRecNo(_validationList.size());}

// Translation:
public void AddDataValidation(DVRecord dvRecord){_validationList.Add(dvRecord);_headerRec.DVRecNo = (_validationList.Count);}
// Original:
public void setDoubleValue(double value) {if (!(fieldsData instanceof Double)) {throw new IllegalArgumentException("cannot change value type from " + fieldsData.getClass().getSimpleName() + " to Double");}fieldsData = Double.valueOf(value);}

// Translation:
public virtual void SetDoubleValue(double value){if (!(FieldsData is Double)){throw new System.ArgumentException("cannot change value type from " + FieldsData.GetType().Name + " to Double");}FieldsData = new Double(value);}
// Original:
public DeleteRepoAuthorizationRequest() {super("cr", "2016-06-07", "DeleteRepoAuthorization", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/authorizations/[AuthorizeId]");setMethod(MethodType.DELETE);}

// Translation:
public DeleteRepoAuthorizationRequest(): base("cr", "2016-06-07", "DeleteRepoAuthorization", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/authorizations/[AuthorizeId]";Method = MethodType.DELETE;}
// Original:
public final void writeObject(Object object) throws IOException {writeObject(object, false);}

// Translation:
public virtual void writeObject(object @object){throw new System.NotImplementedException();}
// Original:
public String toString() {byte[] raw = toByteArray();CanonicalTreeParser p = new CanonicalTreeParser();p.reset(raw);StringBuilder r = new StringBuilder();r.append("Tree={");if (!p.eof()) {r.append('\n');try {new ObjectChecker().checkTree(raw);} catch (CorruptObjectException error) {r.append("*** ERROR: ").append(error.getMessage()).append("\n");r.append('\n');}}while (!p.eof()) {final FileMode mode = p.getEntryFileMode();r.append(mode);r.append(' ');r.append(Constants.typeString(mode.getObjectType()));r.append(' ');r.append(p.getEntryObjectId().name());r.append(' ');r.append(p.getEntryPathString());r.append('\n');p.next();}r.append("}");return r.toString();}

// Translation:
public override string ToString(){byte[] raw = ToByteArray();CanonicalTreeParser p = new CanonicalTreeParser();p.Reset(raw);StringBuilder r = new StringBuilder();r.Append("Tree={");if (!p.Eof){r.Append('\n');try{new ObjectChecker().CheckTree(raw);}catch (CorruptObjectException error){r.Append("*** ERROR: ").Append(error.Message).Append("\n");r.Append('\n');}}while (!p.Eof){FileMode mode = p.EntryFileMode;r.Append(mode);r.Append(' ');r.Append(Constants.TypeString(mode.GetObjectType()));r.Append(' ');r.Append(p.EntryObjectId.Name);r.Append(' ');r.Append(p.EntryPathString);r.Append('\n');p.Next();}r.Append("}");return r.ToString();}
// Original:
public char getChar(int index) {return (char) getShort(index);}

// Translation:
public override char getChar(int index){return (char)getShort(index);}
// Original:
public String toString() {return "I(ne)";}

// Translation:
public override string ToString(){return "I(ne)";}
// Original:
public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[GUTS]\n");buffer.append("    .leftgutter     = ").append(Integer.toHexString(getLeftRowGutter())).append("\n");buffer.append("    .topgutter      = ").append(Integer.toHexString(getTopColGutter())).append("\n");buffer.append("    .rowlevelmax    = ").append(Integer.toHexString(getRowLevelMax())).append("\n");buffer.append("    .collevelmax    = ").append(Integer.toHexString(getColLevelMax())).append("\n");buffer.append("[/GUTS]\n");return buffer.toString();}

// Translation:
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[GUTS]\n");buffer.Append("    .leftgutter     = ").Append(StringUtil.ToHexString(LeftRowGutter)).Append("\n");buffer.Append("    .topgutter      = ").Append(StringUtil.ToHexString(TopColGutter)).Append("\n");buffer.Append("    .rowlevelmax    = ").Append(StringUtil.ToHexString(RowLevelMax)).Append("\n");buffer.Append("    .collevelmax    = ").Append(StringUtil.ToHexString(ColLevelMax)).Append("\n");buffer.Append("[/GUTS]\n");return buffer.ToString();}
// Original:
public ParseTree getChild(int i) {return null;}

// Translation:
public virtual IParseTree GetChild(int i){return null;}
// Original:
public ListInvalidationsResult listInvalidations(ListInvalidationsRequest request) {request = beforeClientExecution(request);return executeListInvalidations(request);}

// Translation:
public virtual ListInvalidationsResponse ListInvalidations(ListInvalidationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListInvalidationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListInvalidationsResponseUnmarshaller.Instance;return Invoke<ListInvalidationsResponse>(request, options);}
// Original:
public TokenStream newSinkTokenStream() {return new SinkTokenStream(this.cloneAttributes(), cachedStates);}

// Translation:
public SinkTokenStream NewSinkTokenStream(){return NewSinkTokenStream(ACCEPT_ALL_FILTER);}
// Original:
public PrecedencePredicate(int precedence) {this.precedence = precedence;}

// Translation:
public PrecedencePredicate(int precedence){this.precedence = precedence;}
// Original:
public ReadPresetResult readPreset(ReadPresetRequest request) {request = beforeClientExecution(request);return executeReadPreset(request);}

// Translation:
public virtual ReadPresetResponse ReadPreset(ReadPresetRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReadPresetRequestMarshaller.Instance;options.ResponseUnmarshaller = ReadPresetResponseUnmarshaller.Instance;return Invoke<ReadPresetResponse>(request, options);}
// Original:
public File getIndexFile() throws NoWorkTreeException {if (isBare())throw new NoWorkTreeException();return indexFile;}

// Translation:
public virtual FilePath GetIndexFile(){if (IsBare){throw new NoWorkTreeException();}return indexFile;}
// Original:
public ListApplicationsResult listApplications(ListApplicationsRequest request) {request = beforeClientExecution(request);return executeListApplications(request);}

// Translation:
public virtual ListApplicationsResponse ListApplications(ListApplicationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListApplicationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListApplicationsResponseUnmarshaller.Instance;return Invoke<ListApplicationsResponse>(request, options);}
// Original:
public DataValidationConstraint createNumericConstraint(int validationType,int operatorType, String formula1, String formula2) {return DVConstraint.createNumericConstraint(validationType, operatorType, formula1, formula2);}

// Translation:
public IDataValidationConstraint CreateNumericConstraint(int validationType, int operatorType, String formula1, String formula2){return DVConstraint.CreateNumericConstraint(validationType, operatorType, formula1, formula2);}
// Original:
public int read(byte[] buffer) throws IOException {return read(buffer, 0, buffer.length);}

// Translation:
public virtual int read(byte[] buffer){throw new System.NotImplementedException();}
// Original:
public String toFormulaString() {return _value ? "TRUE" : "FALSE";}

// Translation:
public override String ToFormulaString(){return field_1_value ? "TRUE" : "FALSE";}
// Original:
public void write(char[] chars, int offset, int count) {Arrays.checkOffsetAndCount(chars.length, offset, count);if (count == 0) {return;}buf.append(chars, offset, count);}

// Translation:
public override void write(char[] chars, int offset, int count){java.util.Arrays.checkOffsetAndCount(chars.Length, offset, count);if (count == 0){return;}buf.append(chars, offset, count);}
// Original:
public void ReInit(CharStream stream) {token_source.ReInit(stream);token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 10; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();}

// Translation:
public override void ReInit(ICharStream stream){TokenSource.ReInit(stream);Token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 21; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();}
// Original:
public RevokeDBSecurityGroupIngressRequest(String dBSecurityGroupName) {setDBSecurityGroupName(dBSecurityGroupName);}

// Translation:
public RevokeDBSecurityGroupIngressRequest(string dbSecurityGroupName){_dbSecurityGroupName = dbSecurityGroupName;}
// Original:
public InitiateDocumentVersionUploadResult initiateDocumentVersionUpload(InitiateDocumentVersionUploadRequest request) {request = beforeClientExecution(request);return executeInitiateDocumentVersionUpload(request);}

// Translation:
public virtual InitiateDocumentVersionUploadResponse InitiateDocumentVersionUpload(InitiateDocumentVersionUploadRequest request){var options = new InvokeOptions();options.RequestMarshaller = InitiateDocumentVersionUploadRequestMarshaller.Instance;options.ResponseUnmarshaller = InitiateDocumentVersionUploadResponseUnmarshaller.Instance;return Invoke<InitiateDocumentVersionUploadResponse>(request, options);}
// Original:
public MemAreaPtg(int subexLen) {field_1_reserved = 0;field_2_subex_len = subexLen;}

// Translation:
public MemAreaPtg(int subexLen){field_1_reserved = 0;field_2_subex_len = subexLen;}
// Original:
public FtrHeader() {associatedRange = new CellRangeAddress(0, 0, 0, 0);}

// Translation:
public FtrHeader(){reserved = new byte[8];}
// Original:
public IntBuffer compact() {if (byteBuffer.isReadOnly()) {throw new ReadOnlyBufferException();}byteBuffer.limit(limit * SizeOf.INT);byteBuffer.position(position * SizeOf.INT);byteBuffer.compact();byteBuffer.clear();position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}

// Translation:
public override java.nio.IntBuffer compact(){if (byteBuffer.isReadOnly()){throw new java.nio.ReadOnlyBufferException();}byteBuffer.limit(_limit * libcore.io.SizeOf.INT);byteBuffer.position(_position * libcore.io.SizeOf.INT);byteBuffer.compact();byteBuffer.clear();_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;}
// Original:
public String getRawAuthority() {return authority;}

// Translation:
public string getRawAuthority(){return authority;}
// Original:
public void write(byte[] b, int off, int len) throws IOException {if ((off < 0) || (off > b.length) || (len < 0) ||((off + len) > b.length) || ((off + len) < 0)) {throw new IndexOutOfBoundsException();} else if (len == 0) {return;}do {createBlockIfNeeded();int writeBytes = Math.min(buffer.remaining(), len);buffer.put(b, off, writeBytes);off += writeBytes;len -= writeBytes;} while (len > 0);}

// Translation:
public override void Write(byte[] b, int off, int len){if ((off < 0) || (off > b.Length) || (len < 0) ||((off + len) > b.Length) || ((off + len) < 0)){throw new IndexOutOfRangeException();}else if (len == 0){return;}do{CreateBlockIfNeeded();int writeBytes = Math.Min(buffer.Remaining(), len);buffer.Write(b, off, writeBytes);off += writeBytes;len -= writeBytes;} while (len > 0);}
// Original:
public static void validateSimple(String s, String legal)throws URISyntaxException {for (int i = 0; i < s.length(); i++) {char ch = s.charAt(i);if (!((ch >= 'a' && ch <= 'z')|| (ch >= 'A' && ch <= 'Z')|| (ch >= '0' && ch <= '9')|| legal.indexOf(ch) > -1)) {throw new URISyntaxException(s, "Illegal character", i);}}}

// Translation:
public static void validateSimple(string s, string legal){{for (int i = 0; i < s.Length; i++){char ch = s[i];if (!((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <='9') || legal.IndexOf(ch) > -1)){throw new java.net.URISyntaxException(s, "Illegal character", i);}}}}
// Original:
public static String readUnicodeString(LittleEndianInput in) {int nChars = in.readUShort();byte flag = in.readByte();if ((flag & 0x01) == 0) {return readCompressedUnicode(in, nChars);}return readUnicodeLE(in, nChars);}

// Translation:
public static String ReadUnicodeString(ILittleEndianInput in1){int nChars = in1.ReadUShort();byte flag = (byte)in1.ReadByte();if ((flag & 0x01) == 0){return ReadCompressedUnicode(in1, nChars);}return ReadUnicodeLE(in1, nChars);}
// Original:
public DocValuesOrdinalsReader(String field) {this.field = field;}

// Translation:
public DocValuesOrdinalsReader(string field){this.field = field;}
// Original:
public AdvertiseByoipCidrResult advertiseByoipCidr(AdvertiseByoipCidrRequest request) {request = beforeClientExecution(request);return executeAdvertiseByoipCidr(request);}

// Translation:
public virtual AdvertiseByoipCidrResponse AdvertiseByoipCidr(AdvertiseByoipCidrRequest request){var options = new InvokeOptions();options.RequestMarshaller = AdvertiseByoipCidrRequestMarshaller.Instance;options.ResponseUnmarshaller = AdvertiseByoipCidrResponseUnmarshaller.Instance;return Invoke<AdvertiseByoipCidrResponse>(request, options);}
// Original:
public DescribeAlarmsResult describeAlarms() {return describeAlarms(new DescribeAlarmsRequest());}

// Translation:
public virtual DescribeAlarmsResponse DescribeAlarms(){return DescribeAlarms(new DescribeAlarmsRequest());}
// Original:
public DescribeCrossAccountAccessRoleResult describeCrossAccountAccessRole(DescribeCrossAccountAccessRoleRequest request) {request = beforeClientExecution(request);return executeDescribeCrossAccountAccessRole(request);}

// Translation:
public virtual DescribeCrossAccountAccessRoleResponse DescribeCrossAccountAccessRole(DescribeCrossAccountAccessRoleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCrossAccountAccessRoleRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCrossAccountAccessRoleResponseUnmarshaller.Instance;return Invoke<DescribeCrossAccountAccessRoleResponse>(request, options);}
// Original:
public StringBuilder reverse() {reverse0();return this;}

// Translation:
public java.lang.StringBuilder reverse(){reverse0();return this;}
// Original:
public DescribeImagesResult describeImages(DescribeImagesRequest request) {request = beforeClientExecution(request);return executeDescribeImages(request);}

// Translation:
public virtual DescribeImagesResponse DescribeImages(DescribeImagesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeImagesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeImagesResponseUnmarshaller.Instance;return Invoke<DescribeImagesResponse>(request, options);}
// Original:
public CreateDhcpOptionsRequest(java.util.List<DhcpConfiguration> dhcpConfigurations) {setDhcpConfigurations(dhcpConfigurations);}

// Translation:
public CreateDhcpOptionsRequest(List<DhcpConfiguration> dhcpConfigurations){_dhcpConfigurations = dhcpConfigurations;}
// Original:
public StartChatContactResult startChatContact(StartChatContactRequest request) {request = beforeClientExecution(request);return executeStartChatContact(request);}

// Translation:
public virtual StartChatContactResponse StartChatContact(StartChatContactRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartChatContactRequestMarshaller.Instance;options.ResponseUnmarshaller = StartChatContactResponseUnmarshaller.Instance;return Invoke<StartChatContactResponse>(request, options);}
// Original:
public GetCampaignsResult getCampaigns(GetCampaignsRequest request) {request = beforeClientExecution(request);return executeGetCampaigns(request);}

// Translation:
public virtual GetCampaignsResponse GetCampaigns(GetCampaignsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCampaignsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCampaignsResponseUnmarshaller.Instance;return Invoke<GetCampaignsResponse>(request, options);}
// Original:
public GetAssessmentReportResult getAssessmentReport(GetAssessmentReportRequest request) {request = beforeClientExecution(request);return executeGetAssessmentReport(request);}

// Translation:
public virtual GetAssessmentReportResponse GetAssessmentReport(GetAssessmentReportRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAssessmentReportRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAssessmentReportResponseUnmarshaller.Instance;return Invoke<GetAssessmentReportResponse>(request, options);}
// Original:
public void reportAmbiguity(Parser recognizer,DFA dfa,int startIndex,int stopIndex,boolean exact,BitSet ambigAlts,ATNConfigSet configs){if (exactOnly && !exact) {return;}String format = "reportAmbiguity d=%s: ambigAlts=%s, input='%s'";String decision = getDecisionDescription(recognizer, dfa);BitSet conflictingAlts = getConflictingAlts(ambigAlts, configs);String text = recognizer.getTokenStream().getText(Interval.of(startIndex, stopIndex));String message = String.format(format, decision, conflictingAlts, text);recognizer.notifyErrorListeners(message);}

// Translation:
public override void ReportAmbiguity(Parser recognizer, DFA dfa, int startIndex, int stopIndex, bool exact, BitSet ambigAlts, ATNConfigSet configs){if (exactOnly && !exact){return;}string format = "reportAmbiguity d={0}: ambigAlts={1}, input='{2}'";string decision = GetDecisionDescription(recognizer, dfa);BitSet conflictingAlts = GetConflictingAlts(ambigAlts, configs);string text = ((ITokenStream)recognizer.InputStream).GetText(Interval.Of(startIndex, stopIndex));string message = string.Format(format, decision, conflictingAlts, text);recognizer.NotifyErrorListeners(message);}
// Original:
public Object[] toArray() {synchronized (Hashtable.this) {return super.toArray();}}

// Translation:
public override object[] toArray(){lock (this._enclosing){return base.toArray();}}
// Original:
public boolean contains(Object o) {if (o instanceof RevFlag)return (mask & ((RevFlag) o).mask) != 0;return false;}

// Translation:
public override bool Contains(object o){if (o is RevFlag){return (mask & ((RevFlag)o).mask) != 0;}return false;}
// Original:
public DisableAlarmActionsResult disableAlarmActions(DisableAlarmActionsRequest request) {request = beforeClientExecution(request);return executeDisableAlarmActions(request);}

// Translation:
public virtual DisableAlarmActionsResponse DisableAlarmActions(DisableAlarmActionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableAlarmActionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableAlarmActionsResponseUnmarshaller.Instance;return Invoke<DisableAlarmActionsResponse>(request, options);}
// Original:
public RegisterDBProxyTargetsResult registerDBProxyTargets(RegisterDBProxyTargetsRequest request) {request = beforeClientExecution(request);return executeRegisterDBProxyTargets(request);}

// Translation:
public virtual RegisterDBProxyTargetsResponse RegisterDBProxyTargets(RegisterDBProxyTargetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterDBProxyTargetsRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterDBProxyTargetsResponseUnmarshaller.Instance;return Invoke<RegisterDBProxyTargetsResponse>(request, options);}
// Original:
public static void fill(byte[] array, int start, int end, byte value) {Arrays.checkStartAndEnd(array.length, start, end);for (int i = start; i < end; i++) {array[i] = value;}}

// Translation:
public static void fill(byte[] array, int start, int end, byte value){java.util.Arrays.checkStartAndEnd(array.Length, start, end);{for (int i = start; i < end; i++){array[i] = value;}}}
// Original:
public boolean containsColumn(int columnIndex) {return _firstCol <= columnIndex && columnIndex <= _lastCol;}

// Translation:
public bool ContainsColumn(int columnIndex){return _first_col <= columnIndex && columnIndex <= _last_col;}
// Original:
public Hashtable() {table = (HashtableEntry<K, V>[]) EMPTY_TABLE;threshold = -1; }

// Translation:
public Hashtable(){table = (java.util.Hashtable.HashtableEntry<K, V>[])EMPTY_TABLE;threshold = -1;}
// Original:
public final AttributeFactory getAttributeFactory() {return this.factory;}

// Translation:
public AttributeFactory GetAttributeFactory(){return this.factory;}
// Original:
public void onChange(boolean selfChange) {refreshData();}

// Translation:
public override void onChange(bool selfChange){this._enclosing.onContentChanged();}
// Original:
public ListObjectAttributesResult listObjectAttributes(ListObjectAttributesRequest request) {request = beforeClientExecution(request);return executeListObjectAttributes(request);}

// Translation:
public virtual ListObjectAttributesResponse ListObjectAttributes(ListObjectAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListObjectAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListObjectAttributesResponseUnmarshaller.Instance;return Invoke<ListObjectAttributesResponse>(request, options);}
// Original:
public GetDeploymentsResult getDeployments(GetDeploymentsRequest request) {request = beforeClientExecution(request);return executeGetDeployments(request);}

// Translation:
public virtual GetDeploymentsResponse GetDeployments(GetDeploymentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDeploymentsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDeploymentsResponseUnmarshaller.Instance;return Invoke<GetDeploymentsResponse>(request, options);}
// Original:
public ListWorkGroupsResult listWorkGroups(ListWorkGroupsRequest request) {request = beforeClientExecution(request);return executeListWorkGroups(request);}

// Translation:
public virtual ListWorkGroupsResponse ListWorkGroups(ListWorkGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListWorkGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListWorkGroupsResponseUnmarshaller.Instance;return Invoke<ListWorkGroupsResponse>(request, options);}
// Original:
public CreatePhotoStoreRequest() {super("CloudPhoto", "2017-07-11", "CreatePhotoStore", "cloudphoto");setProtocol(ProtocolType.HTTPS);}

// Translation:
public CreatePhotoStoreRequest(): base("CloudPhoto", "2017-07-11", "CreatePhotoStore", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
// Original:
public PutMethodResult putMethod(PutMethodRequest request) {request = beforeClientExecution(request);return executePutMethod(request);}

// Translation:
public virtual PutMethodResponse PutMethod(PutMethodRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutMethodRequestMarshaller.Instance;options.ResponseUnmarshaller = PutMethodResponseUnmarshaller.Instance;return Invoke<PutMethodResponse>(request, options);}
// Original:
public DescribeServiceAccessPoliciesResult describeServiceAccessPolicies(DescribeServiceAccessPoliciesRequest request) {request = beforeClientExecution(request);return executeDescribeServiceAccessPolicies(request);}

// Translation:
public virtual DescribeServiceAccessPoliciesResponse DescribeServiceAccessPolicies(DescribeServiceAccessPoliciesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeServiceAccessPoliciesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeServiceAccessPoliciesResponseUnmarshaller.Instance;return Invoke<DescribeServiceAccessPoliciesResponse>(request, options);}