• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/devtools/cloudtrace/v2/trace.proto
18 
19 package com.google.devtools.cloudtrace.v2;
20 
21 public interface TruncatableStringOrBuilder
22     extends
23     // @@protoc_insertion_point(interface_extends:google.devtools.cloudtrace.v2.TruncatableString)
24     com.google.protobuf.MessageOrBuilder {
25 
26   /**
27    *
28    *
29    * <pre>
30    * The shortened string. For example, if the original string is 500
31    * bytes long and the limit of the string is 128 bytes, then
32    * `value` contains the first 128 bytes of the 500-byte string.
33    * Truncation always happens on a UTF8 character boundary. If there
34    * are multi-byte characters in the string, then the length of the
35    * shortened string might be less than the size limit.
36    * </pre>
37    *
38    * <code>string value = 1;</code>
39    *
40    * @return The value.
41    */
getValue()42   java.lang.String getValue();
43   /**
44    *
45    *
46    * <pre>
47    * The shortened string. For example, if the original string is 500
48    * bytes long and the limit of the string is 128 bytes, then
49    * `value` contains the first 128 bytes of the 500-byte string.
50    * Truncation always happens on a UTF8 character boundary. If there
51    * are multi-byte characters in the string, then the length of the
52    * shortened string might be less than the size limit.
53    * </pre>
54    *
55    * <code>string value = 1;</code>
56    *
57    * @return The bytes for value.
58    */
getValueBytes()59   com.google.protobuf.ByteString getValueBytes();
60 
61   /**
62    *
63    *
64    * <pre>
65    * The number of bytes removed from the original string. If this
66    * value is 0, then the string was not shortened.
67    * </pre>
68    *
69    * <code>int32 truncated_byte_count = 2;</code>
70    *
71    * @return The truncatedByteCount.
72    */
getTruncatedByteCount()73   int getTruncatedByteCount();
74 }
75