yijunyu/c-to-rust huggingface dataset:
// Original:
public int serialize(int offset, byte[] data, EscherSerializationListener listener) {listener.beforeRecordSerialize( offset, getRecordId(), this );LittleEndian.putShort(data, offset, getOptions());LittleEndian.putShort(data, offset+2, getRecordId());int remainingBytes = thedata.length;for (EscherRecord r : _childRecords) {remainingBytes += r.getRecordSize();}LittleEndian.putInt(data, offset+4, remainingBytes);System.arraycopy(thedata, 0, data, offset+8, thedata.length);int pos = offset+8+thedata.length;for (EscherRecord r : _childRecords) {pos += r.serialize(pos, data, listener );}listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );return pos - offset;}

// Translation:
public override int Serialize(int offset, byte[] data, EscherSerializationListener listener){listener.BeforeRecordSerialize(offset, RecordId, this);LittleEndian.PutShort(data, offset, Options);LittleEndian.PutShort(data, offset + 2, RecordId);int remainingBytes = _thedata.Length;for (IEnumerator iterator = ChildRecords.GetEnumerator(); iterator.MoveNext(); ){EscherRecord r = (EscherRecord)iterator.Current;remainingBytes += r.RecordSize;}LittleEndian.PutInt(data, offset + 4, remainingBytes);Array.Copy(_thedata, 0, data, offset + 8, _thedata.Length);int pos = offset + 8 + _thedata.Length;for (IEnumerator iterator = ChildRecords.GetEnumerator(); iterator.MoveNext(); ){EscherRecord r = (EscherRecord)iterator.Current;pos += r.Serialize(pos, data);}listener.AfterRecordSerialize(pos, RecordId, pos - offset, this);return pos - offset;}
// Original:
public void inform(ResourceLoader loader) throws IOException {if (stopWordFiles != null) {if (FORMAT_WORDSET.equalsIgnoreCase(format)) {stopWords = getWordSet(loader, stopWordFiles, ignoreCase);} else if (FORMAT_SNOWBALL.equalsIgnoreCase(format)) {stopWords = getSnowballWordSet(loader, stopWordFiles, ignoreCase);} else {throw new IllegalArgumentException("Unknown 'format' specified for 'words' file: " + format);}} else {if (null != format) {throw new IllegalArgumentException("'format' can not be specified w/o an explicit 'words' file: " + format);}stopWords = new CharArraySet(EnglishAnalyzer.ENGLISH_STOP_WORDS_SET, ignoreCase);}}

// Translation:
public virtual void Inform(IResourceLoader loader){if (stopWordFiles != null){if (FORMAT_WORDSET.Equals(format, StringComparison.OrdinalIgnoreCase)){stopWords = GetWordSet(loader, stopWordFiles, ignoreCase);}else if (FORMAT_SNOWBALL.Equals(format, StringComparison.OrdinalIgnoreCase)){stopWords = GetSnowballWordSet(loader, stopWordFiles, ignoreCase);}else{throw new System.ArgumentException("Unknown 'format' specified for 'words' file: " + format);}}else{if (null != format){throw new System.ArgumentException("'format' can not be specified w/o an explicit 'words' file: " + format);}stopWords = new CharArraySet(m_luceneMatchVersion, StopAnalyzer.ENGLISH_STOP_WORDS_SET, ignoreCase);}}
// Original:
public PredicateTransition(ATNState target, int ruleIndex, int predIndex, boolean isCtxDependent) {super(target);this.ruleIndex = ruleIndex;this.predIndex = predIndex;this.isCtxDependent = isCtxDependent;}

// Translation:
public PredicateTransition(ATNState target, int ruleIndex, int predIndex, bool isCtxDependent): base(target){this.ruleIndex = ruleIndex;this.predIndex = predIndex;this.isCtxDependent = isCtxDependent;}
// Original:
public CharFilter(Reader input) {super(input);this.input = input;}

// Translation:
public CharFilter(TextReader input){this.m_input = input;}
// Original:
public final DoubleBuffer put(DoubleBuffer buf) {throw new ReadOnlyBufferException();}

// Translation:
public sealed override java.nio.DoubleBuffer put(java.nio.DoubleBuffer buf){throw new java.nio.ReadOnlyBufferException();}
// Original:
public AssociateVpcCidrBlockResult associateVpcCidrBlock(AssociateVpcCidrBlockRequest request) {request = beforeClientExecution(request);return executeAssociateVpcCidrBlock(request);}

// Translation:
public virtual AssociateVpcCidrBlockResponse AssociateVpcCidrBlock(AssociateVpcCidrBlockRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateVpcCidrBlockRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateVpcCidrBlockResponseUnmarshaller.Instance;return Invoke<AssociateVpcCidrBlockResponse>(request, options);}
// Original:
public static Date getJavaDate(double date, boolean use1904windowing, TimeZone tz, boolean roundSeconds) {Calendar calendar = getJavaCalendar(date, use1904windowing, tz, roundSeconds);return calendar == null ? null : calendar.getTime();}

// Translation:
public static DateTime GetJavaDate(double date, bool use1904windowing, TimeZone tz, bool roundSeconds){return GetJavaCalendar(date, use1904windowing, roundSeconds);}
// Original:
public AttachTypedLinkResult attachTypedLink(AttachTypedLinkRequest request) {request = beforeClientExecution(request);return executeAttachTypedLink(request);}

// Translation:
public virtual AttachTypedLinkResponse AttachTypedLink(AttachTypedLinkRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachTypedLinkRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachTypedLinkResponseUnmarshaller.Instance;return Invoke<AttachTypedLinkResponse>(request, options);}
// Original:
public static CellValue getError(int errorCode) {return new CellValue(CellType.ERROR, 0.0, false, null, errorCode);}

// Translation:
public static CellValue GetError(int errorCode){return new CellValue(CellType.Error, 0.0, false, null, errorCode);}
// Original:
public short getHeaderValue() {return headerValue;}

// Translation:
public short GetHeaderValue(){return headerValue;}
// Original:
public DescribeFindingsResult describeFindings(DescribeFindingsRequest request) {request = beforeClientExecution(request);return executeDescribeFindings(request);}

// Translation:
public virtual DescribeFindingsResponse DescribeFindings(DescribeFindingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFindingsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFindingsResponseUnmarshaller.Instance;return Invoke<DescribeFindingsResponse>(request, options);}
// Original:
public GetSdkTypeResult getSdkType(GetSdkTypeRequest request) {request = beforeClientExecution(request);return executeGetSdkType(request);}

// Translation:
public virtual GetSdkTypeResponse GetSdkType(GetSdkTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSdkTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSdkTypeResponseUnmarshaller.Instance;return Invoke<GetSdkTypeResponse>(request, options);}
// Original:
public PutLifecycleConfigurationResult putLifecycleConfiguration(PutLifecycleConfigurationRequest request) {request = beforeClientExecution(request);return executePutLifecycleConfiguration(request);}

// Translation:
public virtual PutLifecycleConfigurationResponse PutLifecycleConfiguration(PutLifecycleConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutLifecycleConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = PutLifecycleConfigurationResponseUnmarshaller.Instance;return Invoke<PutLifecycleConfigurationResponse>(request, options);}
// Original:
public CommonToken create(int type, String text) {return new CommonToken(type, text);}

// Translation:
public virtual CommonToken Create(int type, string text){return new CommonToken(type, text);}
// Original:
public CommitBuilder() {parentIds = EMPTY_OBJECTID_LIST;encoding = UTF_8;}

// Translation:
public CommitBuilder(){parentIds = EMPTY_OBJECTID_LIST;encoding = Constants.CHARSET;}
// Original:
public boolean isWholeColumnReference() {return isWholeColumnReference(_version, _firstCell, _lastCell);}

// Translation:
public bool IsWholeColumnReference(){return IsWholeColumnReference(_firstCell, _lastCell);}
// Original:
public final T add(T element) {size++;heap[size] = element;upHeap(size);return heap[1];}

// Translation:
public T Add(T element){size++;heap[size] = element;UpHeap();return heap[1];}
// Original:
public ListTagCommand tagList() {return new ListTagCommand(repo);}

// Translation:
public virtual ListTagCommand TagList(){return new ListTagCommand(repo);}
// Original:
public DescribeLoadBalancerPoliciesResult describeLoadBalancerPolicies() {return describeLoadBalancerPolicies(new DescribeLoadBalancerPoliciesRequest());}

// Translation:
public virtual DescribeLoadBalancerPoliciesResponse DescribeLoadBalancerPolicies(){return DescribeLoadBalancerPolicies(new DescribeLoadBalancerPoliciesRequest());}
// Original:
public LikePhotoRequest() {super("CloudPhoto", "2017-07-11", "LikePhoto", "cloudphoto");setProtocol(ProtocolType.HTTPS);}

// Translation:
public LikePhotoRequest(): base("CloudPhoto", "2017-07-11", "LikePhoto", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
// Original:
public ByteBuffer putShort(int index, short value) {throw new ReadOnlyBufferException();}

// Translation:
public override java.nio.ByteBuffer putShort(int index, short value){throw new java.nio.ReadOnlyBufferException();}
// Original:
public E pollLast() {return (size == 0) ? null : removeLastImpl();}

// Translation:
public virtual E pollLast(){return (_size == 0) ? default(E) : removeLastImpl();}
// Original:
@Override public int size() {return countMap.size();}

// Translation:
public override int size(){return this._enclosing._size;}
// Original:
public static float[] copyOf(float[] original, int newLength) {if (newLength < 0) {throw new NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}

// Translation:
public static float[] copyOf(float[] original, int newLength){if (newLength < 0){throw new java.lang.NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}
// Original:
public LogoutUserResult logoutUser(LogoutUserRequest request) {request = beforeClientExecution(request);return executeLogoutUser(request);}

// Translation:
public virtual LogoutUserResponse LogoutUser(LogoutUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = LogoutUserRequestMarshaller.Instance;options.ResponseUnmarshaller = LogoutUserResponseUnmarshaller.Instance;return Invoke<LogoutUserResponse>(request, options);}
// Original:
public final boolean matches(char c) {return Character.isLetter(c);}

// Translation:
public bool Matches(char c){return char.IsLetter(c);}
// Original:
public ListResolverEndpointIpAddressesResult listResolverEndpointIpAddresses(ListResolverEndpointIpAddressesRequest request) {request = beforeClientExecution(request);return executeListResolverEndpointIpAddresses(request);}

// Translation:
public virtual ListResolverEndpointIpAddressesResponse ListResolverEndpointIpAddresses(ListResolverEndpointIpAddressesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListResolverEndpointIpAddressesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListResolverEndpointIpAddressesResponseUnmarshaller.Instance;return Invoke<ListResolverEndpointIpAddressesResponse>(request, options);}
// Original:
public ListHealthChecksResult listHealthChecks(ListHealthChecksRequest request) {request = beforeClientExecution(request);return executeListHealthChecks(request);}

// Translation:
public virtual ListHealthChecksResponse ListHealthChecks(ListHealthChecksRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListHealthChecksRequestMarshaller.Instance;options.ResponseUnmarshaller = ListHealthChecksResponseUnmarshaller.Instance;return Invoke<ListHealthChecksResponse>(request, options);}
// Original:
@Override public int indexOf(Object object) {Slice slice = this.slice;Object[] snapshot = elements;slice.checkConcurrentModification(snapshot);int result = CopyOnWriteArrayList.indexOf(object, snapshot, slice.from, slice.to);return (result != -1) ? (result - slice.from) : -1;}

// Translation:
public virtual int indexOf(object @object){object[] snapshot = elements;return indexOf(@object, snapshot, 0, snapshot.Length);}
// Original:
public GetQualificationScoreResult getQualificationScore(GetQualificationScoreRequest request) {request = beforeClientExecution(request);return executeGetQualificationScore(request);}

// Translation:
public virtual GetQualificationScoreResponse GetQualificationScore(GetQualificationScoreRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetQualificationScoreRequestMarshaller.Instance;options.ResponseUnmarshaller = GetQualificationScoreResponseUnmarshaller.Instance;return Invoke<GetQualificationScoreResponse>(request, options);}
// Original:
public ListMeetingsResult listMeetings(ListMeetingsRequest request) {request = beforeClientExecution(request);return executeListMeetings(request);}

// Translation:
public virtual ListMeetingsResponse ListMeetings(ListMeetingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListMeetingsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListMeetingsResponseUnmarshaller.Instance;return Invoke<ListMeetingsResponse>(request, options);}
// Original:
public LookupPolicyResult lookupPolicy(LookupPolicyRequest request) {request = beforeClientExecution(request);return executeLookupPolicy(request);}

// Translation:
public virtual LookupPolicyResponse LookupPolicy(LookupPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = LookupPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = LookupPolicyResponseUnmarshaller.Instance;return Invoke<LookupPolicyResponse>(request, options);}
// Original:
public ListAssessmentRunAgentsResult listAssessmentRunAgents(ListAssessmentRunAgentsRequest request) {request = beforeClientExecution(request);return executeListAssessmentRunAgents(request);}

// Translation:
public virtual ListAssessmentRunAgentsResponse ListAssessmentRunAgents(ListAssessmentRunAgentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAssessmentRunAgentsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAssessmentRunAgentsResponseUnmarshaller.Instance;return Invoke<ListAssessmentRunAgentsResponse>(request, options);}
// Original:
public UpdateEndpointWeightsAndCapacitiesResult updateEndpointWeightsAndCapacities(UpdateEndpointWeightsAndCapacitiesRequest request) {request = beforeClientExecution(request);return executeUpdateEndpointWeightsAndCapacities(request);}

// Translation:
public virtual UpdateEndpointWeightsAndCapacitiesResponse UpdateEndpointWeightsAndCapacities(UpdateEndpointWeightsAndCapacitiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateEndpointWeightsAndCapacitiesRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateEndpointWeightsAndCapacitiesResponseUnmarshaller.Instance;return Invoke<UpdateEndpointWeightsAndCapacitiesResponse>(request, options);}
// Original:
public UpdateCloudFrontOriginAccessIdentityResult updateCloudFrontOriginAccessIdentity(UpdateCloudFrontOriginAccessIdentityRequest request) {request = beforeClientExecution(request);return executeUpdateCloudFrontOriginAccessIdentity(request);}

// Translation:
public virtual UpdateCloudFrontOriginAccessIdentityResponse UpdateCloudFrontOriginAccessIdentity(UpdateCloudFrontOriginAccessIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateCloudFrontOriginAccessIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateCloudFrontOriginAccessIdentityResponseUnmarshaller.Instance;return Invoke<UpdateCloudFrontOriginAccessIdentityResponse>(request, options);}
// Original:
public BatchPutAttributesRequest(String domainName, java.util.List<ReplaceableItem> items) {setDomainName(domainName);setItems(items);}

// Translation:
public BatchPutAttributesRequest(string domainName, List<ReplaceableItem> items){_domainName = domainName;_items = items;}
// Original:
public DeleteAnomalyDetectorResult deleteAnomalyDetector(DeleteAnomalyDetectorRequest request) {request = beforeClientExecution(request);return executeDeleteAnomalyDetector(request);}

// Translation:
public virtual DeleteAnomalyDetectorResponse DeleteAnomalyDetector(DeleteAnomalyDetectorRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAnomalyDetectorRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAnomalyDetectorResponseUnmarshaller.Instance;return Invoke<DeleteAnomalyDetectorResponse>(request, options);}
// Original:
public DeleteSpotDatafeedSubscriptionResult deleteSpotDatafeedSubscription() {return deleteSpotDatafeedSubscription(new DeleteSpotDatafeedSubscriptionRequest());}

// Translation:
public virtual DeleteSpotDatafeedSubscriptionResponse DeleteSpotDatafeedSubscription(){return DeleteSpotDatafeedSubscription(new DeleteSpotDatafeedSubscriptionRequest());}
// Original:
public void unread(char[] buffer, int offset, int length) throws IOException {synchronized (lock) {checkNotClosed();if (length > pos) {throw new IOException("Pushback buffer full");}Arrays.checkOffsetAndCount(buffer.length, offset, length);for (int i = offset + length - 1; i >= offset; i--) {unread(buffer[i]);}}}

// Translation:
public virtual void unread(char[] buffer, int offset, int length){lock (@lock){checkNotClosed();if (length > pos){throw new System.IO.IOException("Pushback buffer full");}java.util.Arrays.checkOffsetAndCount(buffer.Length, offset, length);{for (int i = offset + length - 1; i >= offset; i--){unread(buffer[i]);}}}}
// Original:
public String getOldPrefix() {return this.oldPrefix;}

// Translation:
public virtual string GetOldPrefix(){return this.oldPrefix;}
// Original:
public CommonGramsFilterFactory(Map<String,String> args) {super(args);commonWordFiles = get(args, "words");format = get(args, "format");ignoreCase = getBoolean(args, "ignoreCase", false);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

// Translation:
public CommonGramsFilterFactory(IDictionary<string, string> args): base(args){commonWordFiles = Get(args, "words");format = Get(args, "format");ignoreCase = GetBoolean(args, "ignoreCase", false);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
// Original:
public DeleteCorsConfigurationResult deleteCorsConfiguration(DeleteCorsConfigurationRequest request) {request = beforeClientExecution(request);return executeDeleteCorsConfiguration(request);}

// Translation:
public virtual DeleteCorsConfigurationResponse DeleteCorsConfiguration(DeleteCorsConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCorsConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCorsConfigurationResponseUnmarshaller.Instance;return Invoke<DeleteCorsConfigurationResponse>(request, options);}
// Original:
public void write(String str, int offset, int count) {if (str == null) {throw new NullPointerException("str == null");}if ((offset | count) < 0 || offset > str.length() - count) {throw new StringIndexOutOfBoundsException(str, offset, count);}synchronized (lock) {expand(count);str.getChars(offset, offset + count, buf, this.count);this.count += count;}}

// Translation:
public override void write(string str, int offset, int count){if (str == null){throw new System.ArgumentNullException("str == null");}if ((offset | count) < 0 || offset > str.Length - count){throw new java.lang.StringIndexOutOfBoundsException(str, offset, count);}lock (@lock){expand(count);Sharpen.StringHelper.GetCharsForString(str, offset, offset + count, buf, this.count);this.count += count;}}
// Original:
public GetMethodResult getMethod(GetMethodRequest request) {request = beforeClientExecution(request);return executeGetMethod(request);}

// Translation:
public virtual GetMethodResponse GetMethod(GetMethodRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetMethodRequestMarshaller.Instance;options.ResponseUnmarshaller = GetMethodResponseUnmarshaller.Instance;return Invoke<GetMethodResponse>(request, options);}
// Original:
public Repository getRepository() {return repo;}

// Translation:
public virtual Repository GetRepository(){return repo;}
// Original:
public DeleteTrafficMirrorFilterRuleResult deleteTrafficMirrorFilterRule(DeleteTrafficMirrorFilterRuleRequest request) {request = beforeClientExecution(request);return executeDeleteTrafficMirrorFilterRule(request);}

// Translation:
public virtual DeleteTrafficMirrorFilterRuleResponse DeleteTrafficMirrorFilterRule(DeleteTrafficMirrorFilterRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTrafficMirrorFilterRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTrafficMirrorFilterRuleResponseUnmarshaller.Instance;return Invoke<DeleteTrafficMirrorFilterRuleResponse>(request, options);}
// Original:
public CreateLabelingJobResult createLabelingJob(CreateLabelingJobRequest request) {request = beforeClientExecution(request);return executeCreateLabelingJob(request);}

// Translation:
public virtual CreateLabelingJobResponse CreateLabelingJob(CreateLabelingJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLabelingJobRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLabelingJobResponseUnmarshaller.Instance;return Invoke<CreateLabelingJobResponse>(request, options);}
// Original:
@Override public boolean equals(Object other) {if (other instanceof CopyOnWriteArrayList) {return this == other|| Arrays.equals(elements, ((CopyOnWriteArrayList<?>) other).elements);} else if (other instanceof List) {Object[] snapshot = elements;Iterator<?> i = ((List<?>) other).iterator();for (Object o : snapshot) {if (!i.hasNext() || !Objects.equal(o, i.next())) {return false;}}return !i.hasNext();} else {return false;}}

// Translation:
public override bool Equals(object other){if (other is java.util.concurrent.CopyOnWriteArrayList<E>){return this == other || java.util.Arrays.equals(elements, ((java.util.concurrent.CopyOnWriteArrayList<E>)other).elements);}else{if (other is java.util.List<E>){object[] snapshot = elements;java.util.Iterator<E> i = ((java.util.List<E>)other).iterator();foreach (object o in snapshot){if (!i.hasNext() || !libcore.util.Objects.equal(o, i.next())){return false;}}return !i.hasNext();}else{return false;}}}
// Original:
public DeleteCustomMetadataResult deleteCustomMetadata(DeleteCustomMetadataRequest request) {request = beforeClientExecution(request);return executeDeleteCustomMetadata(request);}

// Translation:
public virtual DeleteCustomMetadataResponse DeleteCustomMetadata(DeleteCustomMetadataRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCustomMetadataRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCustomMetadataResponseUnmarshaller.Instance;return Invoke<DeleteCustomMetadataResponse>(request, options);}
// Original:
public DescribeNetworkAclsResult describeNetworkAcls(DescribeNetworkAclsRequest request) {request = beforeClientExecution(request);return executeDescribeNetworkAcls(request);}

// Translation:
public virtual DescribeNetworkAclsResponse DescribeNetworkAcls(DescribeNetworkAclsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeNetworkAclsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeNetworkAclsResponseUnmarshaller.Instance;return Invoke<DescribeNetworkAclsResponse>(request, options);}
// Original:
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[CONTINUE RECORD]\n");buffer.append("    .data = ").append(HexDump.toHex(_data)).append("\n");buffer.append("[/CONTINUE RECORD]\n");return buffer.toString();}

// Translation:
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[CONTINUE RECORD]\n");buffer.Append("    .data        = ").Append(StringUtil.ToHexString(sid)).Append("\n");buffer.Append("[/CONTINUE RECORD]\n");return buffer.ToString();}
// Original:
public UnsubscribeRequest(String subscriptionArn) {setSubscriptionArn(subscriptionArn);}

// Translation:
public UnsubscribeRequest(string subscriptionArn){_subscriptionArn = subscriptionArn;}