public static final class TruncatableString.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TruncatableString.Builder> implements TruncatableStringOrBuilder
Represents a string that might be shortened to a specified length.Protobuf type
google.devtools.cloudtrace.v2.TruncatableString| Modifier and Type | Method and Description |
|---|---|
TruncatableString.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TruncatableString |
build() |
TruncatableString |
buildPartial() |
TruncatableString.Builder |
clear() |
TruncatableString.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TruncatableString.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TruncatableString.Builder |
clearTruncatedByteCount()
The number of bytes removed from the original string.
|
TruncatableString.Builder |
clearValue()
The shortened string.
|
TruncatableString.Builder |
clone() |
TruncatableString |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getTruncatedByteCount()
The number of bytes removed from the original string.
|
String |
getValue()
The shortened string.
|
com.google.protobuf.ByteString |
getValueBytes()
The shortened string.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TruncatableString.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TruncatableString.Builder |
mergeFrom(com.google.protobuf.Message other) |
TruncatableString.Builder |
mergeFrom(TruncatableString other) |
TruncatableString.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TruncatableString.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TruncatableString.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TruncatableString.Builder |
setTruncatedByteCount(int value)
The number of bytes removed from the original string.
|
TruncatableString.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TruncatableString.Builder |
setValue(String value)
The shortened string.
|
TruncatableString.Builder |
setValueBytes(com.google.protobuf.ByteString value)
The shortened string.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TruncatableString.Builder>public TruncatableString.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<TruncatableString.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TruncatableString.Builder>public TruncatableString getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TruncatableString build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TruncatableString buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TruncatableString.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TruncatableString.Builder>public TruncatableString.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TruncatableString.Builder>public TruncatableString.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TruncatableString.Builder>public TruncatableString.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TruncatableString.Builder>public TruncatableString.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TruncatableString.Builder>public TruncatableString.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TruncatableString.Builder>public TruncatableString.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TruncatableString.Builder>public TruncatableString.Builder mergeFrom(TruncatableString other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TruncatableString.Builder>public TruncatableString.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TruncatableString.Builder>IOExceptionpublic String getValue()
The shortened string. For example, if the original string is 500 bytes long and the limit of the string is 128 bytes, then `value` contains the first 128 bytes of the 500-byte string. Truncation always happens on a UTF8 character boundary. If there are multi-byte characters in the string, then the length of the shortened string might be less than the size limit.
string value = 1;getValue in interface TruncatableStringOrBuilderpublic com.google.protobuf.ByteString getValueBytes()
The shortened string. For example, if the original string is 500 bytes long and the limit of the string is 128 bytes, then `value` contains the first 128 bytes of the 500-byte string. Truncation always happens on a UTF8 character boundary. If there are multi-byte characters in the string, then the length of the shortened string might be less than the size limit.
string value = 1;getValueBytes in interface TruncatableStringOrBuilderpublic TruncatableString.Builder setValue(String value)
The shortened string. For example, if the original string is 500 bytes long and the limit of the string is 128 bytes, then `value` contains the first 128 bytes of the 500-byte string. Truncation always happens on a UTF8 character boundary. If there are multi-byte characters in the string, then the length of the shortened string might be less than the size limit.
string value = 1;value - The value to set.public TruncatableString.Builder clearValue()
The shortened string. For example, if the original string is 500 bytes long and the limit of the string is 128 bytes, then `value` contains the first 128 bytes of the 500-byte string. Truncation always happens on a UTF8 character boundary. If there are multi-byte characters in the string, then the length of the shortened string might be less than the size limit.
string value = 1;public TruncatableString.Builder setValueBytes(com.google.protobuf.ByteString value)
The shortened string. For example, if the original string is 500 bytes long and the limit of the string is 128 bytes, then `value` contains the first 128 bytes of the 500-byte string. Truncation always happens on a UTF8 character boundary. If there are multi-byte characters in the string, then the length of the shortened string might be less than the size limit.
string value = 1;value - The bytes for value to set.public int getTruncatedByteCount()
The number of bytes removed from the original string. If this value is 0, then the string was not shortened.
int32 truncated_byte_count = 2;getTruncatedByteCount in interface TruncatableStringOrBuilderpublic TruncatableString.Builder setTruncatedByteCount(int value)
The number of bytes removed from the original string. If this value is 0, then the string was not shortened.
int32 truncated_byte_count = 2;value - The truncatedByteCount to set.public TruncatableString.Builder clearTruncatedByteCount()
The number of bytes removed from the original string. If this value is 0, then the string was not shortened.
int32 truncated_byte_count = 2;public final TruncatableString.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TruncatableString.Builder>public final TruncatableString.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TruncatableString.Builder>Copyright © 2024 Google LLC. All rights reserved.