proto2_test_check_utf8_size.TestCheckUtf8Size Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protobufel-protobuf-test-protos Show documentation
Show all versions of protobufel-protobuf-test-protos Show documentation
Shared Test Resources - test .proto files
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: com/google/protobuf/test_check_utf8_size.proto
package proto2_test_check_utf8_size;
public final class TestCheckUtf8Size {
private TestCheckUtf8Size() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface StringWrapperSizeOrBuilder extends
// @@protoc_insertion_point(interface_extends:proto2_test_check_utf8_size.StringWrapperSize)
com.google.protobuf.MessageOrBuilder {
/**
* required string req = 1;
*/
boolean hasReq();
/**
* required string req = 1;
*/
java.lang.String getReq();
/**
* required string req = 1;
*/
com.google.protobuf.ByteString
getReqBytes();
/**
* optional string opt = 2;
*/
boolean hasOpt();
/**
* optional string opt = 2;
*/
java.lang.String getOpt();
/**
* optional string opt = 2;
*/
com.google.protobuf.ByteString
getOptBytes();
/**
* repeated string rep = 3;
*/
com.google.protobuf.ProtocolStringList
getRepList();
/**
* repeated string rep = 3;
*/
int getRepCount();
/**
* repeated string rep = 3;
*/
java.lang.String getRep(int index);
/**
* repeated string rep = 3;
*/
com.google.protobuf.ByteString
getRepBytes(int index);
}
/**
* Protobuf type {@code proto2_test_check_utf8_size.StringWrapperSize}
*/
public static final class StringWrapperSize extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:proto2_test_check_utf8_size.StringWrapperSize)
StringWrapperSizeOrBuilder {
// Use StringWrapperSize.newBuilder() to construct.
private StringWrapperSize(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private StringWrapperSize(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final StringWrapperSize defaultInstance;
public static StringWrapperSize getDefaultInstance() {
return defaultInstance;
}
public StringWrapperSize getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto2_test_check_utf8_size.TestCheckUtf8Size.internal_static_proto2_test_check_utf8_size_StringWrapperSize_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto2_test_check_utf8_size.TestCheckUtf8Size.internal_static_proto2_test_check_utf8_size_StringWrapperSize_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto2_test_check_utf8_size.TestCheckUtf8Size.StringWrapperSize.class, proto2_test_check_utf8_size.TestCheckUtf8Size.StringWrapperSize.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public StringWrapperSize parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int REQ_FIELD_NUMBER = 1;
private java.lang.Object req_;
/**
* required string req = 1;
*/
public boolean hasReq() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string req = 1;
*/
public java.lang.String getReq() {
java.lang.Object ref = req_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
req_ = s;
return s;
}
}
/**
* required string req = 1;
*/
public com.google.protobuf.ByteString
getReqBytes() {
java.lang.Object ref = req_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
req_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OPT_FIELD_NUMBER = 2;
private java.lang.Object opt_;
/**
* optional string opt = 2;
*/
public boolean hasOpt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string opt = 2;
*/
public java.lang.String getOpt() {
java.lang.Object ref = opt_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
opt_ = s;
return s;
}
}
/**
* optional string opt = 2;
*/
public com.google.protobuf.ByteString
getOptBytes() {
java.lang.Object ref = opt_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
opt_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REP_FIELD_NUMBER = 3;
private com.google.protobuf.LazyStringList rep_;
/**
* repeated string rep = 3;
*/
public com.google.protobuf.ProtocolStringList
getRepList() {
return rep_;
}
/**
* repeated string rep = 3;
*/
public int getRepCount() {
return rep_.size();
}
/**
* repeated string rep = 3;
*/
public java.lang.String getRep(int index) {
return rep_.get(index);
}
/**
* repeated string rep = 3;
*/
public com.google.protobuf.ByteString
getRepBytes(int index) {
return rep_.getByteString(index);
}
private void initFields() {
req_ = "";
opt_ = "";
rep_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
public static proto2_test_check_utf8_size.TestCheckUtf8Size.StringWrapperSize parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto2_test_check_utf8_size.TestCheckUtf8Size.StringWrapperSize parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto2_test_check_utf8_size.TestCheckUtf8Size.StringWrapperSize parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto2_test_check_utf8_size.TestCheckUtf8Size.StringWrapperSize parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto2_test_check_utf8_size.TestCheckUtf8Size.StringWrapperSize parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static proto2_test_check_utf8_size.TestCheckUtf8Size.StringWrapperSize parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static proto2_test_check_utf8_size.TestCheckUtf8Size.StringWrapperSize parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static proto2_test_check_utf8_size.TestCheckUtf8Size.StringWrapperSize parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static proto2_test_check_utf8_size.TestCheckUtf8Size.StringWrapperSize parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static proto2_test_check_utf8_size.TestCheckUtf8Size.StringWrapperSize parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(proto2_test_check_utf8_size.TestCheckUtf8Size.StringWrapperSize prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code proto2_test_check_utf8_size.StringWrapperSize}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:proto2_test_check_utf8_size.StringWrapperSize)
proto2_test_check_utf8_size.TestCheckUtf8Size.StringWrapperSizeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto2_test_check_utf8_size.TestCheckUtf8Size.internal_static_proto2_test_check_utf8_size_StringWrapperSize_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto2_test_check_utf8_size.TestCheckUtf8Size.internal_static_proto2_test_check_utf8_size_StringWrapperSize_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto2_test_check_utf8_size.TestCheckUtf8Size.StringWrapperSize.class, proto2_test_check_utf8_size.TestCheckUtf8Size.StringWrapperSize.Builder.class);
}
// Construct using proto2_test_check_utf8_size.TestCheckUtf8Size.StringWrapperSize.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
req_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
opt_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
rep_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto2_test_check_utf8_size.TestCheckUtf8Size.internal_static_proto2_test_check_utf8_size_StringWrapperSize_descriptor;
}
public proto2_test_check_utf8_size.TestCheckUtf8Size.StringWrapperSize getDefaultInstanceForType() {
return proto2_test_check_utf8_size.TestCheckUtf8Size.StringWrapperSize.getDefaultInstance();
}
public proto2_test_check_utf8_size.TestCheckUtf8Size.StringWrapperSize build() {
proto2_test_check_utf8_size.TestCheckUtf8Size.StringWrapperSize result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public proto2_test_check_utf8_size.TestCheckUtf8Size.StringWrapperSize buildPartial() {
proto2_test_check_utf8_size.TestCheckUtf8Size.StringWrapperSize result = new proto2_test_check_utf8_size.TestCheckUtf8Size.StringWrapperSize(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.req_ = req_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.opt_ = opt_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
rep_ = rep_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.rep_ = rep_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
private int bitField0_;
private java.lang.Object req_ = "";
/**
* required string req = 1;
*/
public boolean hasReq() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string req = 1;
*/
public java.lang.String getReq() {
java.lang.Object ref = req_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
req_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string req = 1;
*/
public com.google.protobuf.ByteString
getReqBytes() {
java.lang.Object ref = req_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
req_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* required string req = 1;
*/
public Builder setReq(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
req_ = value;
onChanged();
return this;
}
/**
* required string req = 1;
*/
public Builder clearReq() {
bitField0_ = (bitField0_ & ~0x00000001);
req_ = getDefaultInstance().getReq();
onChanged();
return this;
}
/**
* required string req = 1;
*/
public Builder setReqBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000001;
req_ = value;
onChanged();
return this;
}
private java.lang.Object opt_ = "";
/**
* optional string opt = 2;
*/
public boolean hasOpt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string opt = 2;
*/
public java.lang.String getOpt() {
java.lang.Object ref = opt_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
opt_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string opt = 2;
*/
public com.google.protobuf.ByteString
getOptBytes() {
java.lang.Object ref = opt_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
opt_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string opt = 2;
*/
public Builder setOpt(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
opt_ = value;
onChanged();
return this;
}
/**
* optional string opt = 2;
*/
public Builder clearOpt() {
bitField0_ = (bitField0_ & ~0x00000002);
opt_ = getDefaultInstance().getOpt();
onChanged();
return this;
}
/**
* optional string opt = 2;
*/
public Builder setOptBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
bitField0_ |= 0x00000002;
opt_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList rep_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureRepIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
rep_ = new com.google.protobuf.LazyStringArrayList(rep_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated string rep = 3;
*/
public com.google.protobuf.ProtocolStringList
getRepList() {
return rep_.getUnmodifiableView();
}
/**
* repeated string rep = 3;
*/
public int getRepCount() {
return rep_.size();
}
/**
* repeated string rep = 3;
*/
public java.lang.String getRep(int index) {
return rep_.get(index);
}
/**
* repeated string rep = 3;
*/
public com.google.protobuf.ByteString
getRepBytes(int index) {
return rep_.getByteString(index);
}
/**
* repeated string rep = 3;
*/
public Builder setRep(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepIsMutable();
rep_.set(index, value);
onChanged();
return this;
}
/**
* repeated string rep = 3;
*/
public Builder addRep(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepIsMutable();
rep_.add(value);
onChanged();
return this;
}
/**
* repeated string rep = 3;
*/
public Builder addAllRep(
java.lang.Iterable values) {
ensureRepIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, rep_);
onChanged();
return this;
}
/**
* repeated string rep = 3;
*/
public Builder clearRep() {
rep_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* repeated string rep = 3;
*/
public Builder addRepBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureRepIsMutable();
rep_.add(value);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:proto2_test_check_utf8_size.StringWrapperSize)
}
static {
defaultInstance = new StringWrapperSize(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:proto2_test_check_utf8_size.StringWrapperSize)
}
public interface BytesWrapperSizeOrBuilder extends
// @@protoc_insertion_point(interface_extends:proto2_test_check_utf8_size.BytesWrapperSize)
com.google.protobuf.MessageOrBuilder {
/**
* required bytes req = 1;
*/
boolean hasReq();
/**
* required bytes req = 1;
*/
com.google.protobuf.ByteString getReq();
/**
* optional bytes opt = 2;
*/
boolean hasOpt();
/**
* optional bytes opt = 2;
*/
com.google.protobuf.ByteString getOpt();
/**
* repeated bytes rep = 3;
*/
java.util.List getRepList();
/**
* repeated bytes rep = 3;
*/
int getRepCount();
/**
* repeated bytes rep = 3;
*/
com.google.protobuf.ByteString getRep(int index);
}
/**
* Protobuf type {@code proto2_test_check_utf8_size.BytesWrapperSize}
*/
public static final class BytesWrapperSize extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:proto2_test_check_utf8_size.BytesWrapperSize)
BytesWrapperSizeOrBuilder {
// Use BytesWrapperSize.newBuilder() to construct.
private BytesWrapperSize(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private BytesWrapperSize(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final BytesWrapperSize defaultInstance;
public static BytesWrapperSize getDefaultInstance() {
return defaultInstance;
}
public BytesWrapperSize getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto2_test_check_utf8_size.TestCheckUtf8Size.internal_static_proto2_test_check_utf8_size_BytesWrapperSize_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto2_test_check_utf8_size.TestCheckUtf8Size.internal_static_proto2_test_check_utf8_size_BytesWrapperSize_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto2_test_check_utf8_size.TestCheckUtf8Size.BytesWrapperSize.class, proto2_test_check_utf8_size.TestCheckUtf8Size.BytesWrapperSize.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public BytesWrapperSize parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int REQ_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString req_;
/**
* required bytes req = 1;
*/
public boolean hasReq() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required bytes req = 1;
*/
public com.google.protobuf.ByteString getReq() {
return req_;
}
public static final int OPT_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString opt_;
/**
* optional bytes opt = 2;
*/
public boolean hasOpt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bytes opt = 2;
*/
public com.google.protobuf.ByteString getOpt() {
return opt_;
}
public static final int REP_FIELD_NUMBER = 3;
private java.util.List rep_;
/**
* repeated bytes rep = 3;
*/
public java.util.List
getRepList() {
return rep_;
}
/**
* repeated bytes rep = 3;
*/
public int getRepCount() {
return rep_.size();
}
/**
* repeated bytes rep = 3;
*/
public com.google.protobuf.ByteString getRep(int index) {
return rep_.get(index);
}
private void initFields() {
req_ = com.google.protobuf.ByteString.EMPTY;
opt_ = com.google.protobuf.ByteString.EMPTY;
rep_ = java.util.Collections.emptyList();
}
public static proto2_test_check_utf8_size.TestCheckUtf8Size.BytesWrapperSize parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto2_test_check_utf8_size.TestCheckUtf8Size.BytesWrapperSize parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto2_test_check_utf8_size.TestCheckUtf8Size.BytesWrapperSize parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static proto2_test_check_utf8_size.TestCheckUtf8Size.BytesWrapperSize parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static proto2_test_check_utf8_size.TestCheckUtf8Size.BytesWrapperSize parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static proto2_test_check_utf8_size.TestCheckUtf8Size.BytesWrapperSize parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static proto2_test_check_utf8_size.TestCheckUtf8Size.BytesWrapperSize parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static proto2_test_check_utf8_size.TestCheckUtf8Size.BytesWrapperSize parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static proto2_test_check_utf8_size.TestCheckUtf8Size.BytesWrapperSize parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static proto2_test_check_utf8_size.TestCheckUtf8Size.BytesWrapperSize parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(proto2_test_check_utf8_size.TestCheckUtf8Size.BytesWrapperSize prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code proto2_test_check_utf8_size.BytesWrapperSize}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:proto2_test_check_utf8_size.BytesWrapperSize)
proto2_test_check_utf8_size.TestCheckUtf8Size.BytesWrapperSizeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return proto2_test_check_utf8_size.TestCheckUtf8Size.internal_static_proto2_test_check_utf8_size_BytesWrapperSize_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return proto2_test_check_utf8_size.TestCheckUtf8Size.internal_static_proto2_test_check_utf8_size_BytesWrapperSize_fieldAccessorTable
.ensureFieldAccessorsInitialized(
proto2_test_check_utf8_size.TestCheckUtf8Size.BytesWrapperSize.class, proto2_test_check_utf8_size.TestCheckUtf8Size.BytesWrapperSize.Builder.class);
}
// Construct using proto2_test_check_utf8_size.TestCheckUtf8Size.BytesWrapperSize.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
req_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
opt_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
rep_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return proto2_test_check_utf8_size.TestCheckUtf8Size.internal_static_proto2_test_check_utf8_size_BytesWrapperSize_descriptor;
}
public proto2_test_check_utf8_size.TestCheckUtf8Size.BytesWrapperSize getDefaultInstanceForType() {
return proto2_test_check_utf8_size.TestCheckUtf8Size.BytesWrapperSize.getDefaultInstance();
}
public proto2_test_check_utf8_size.TestCheckUtf8Size.BytesWrapperSize build() {
proto2_test_check_utf8_size.TestCheckUtf8Size.BytesWrapperSize result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public proto2_test_check_utf8_size.TestCheckUtf8Size.BytesWrapperSize buildPartial() {
proto2_test_check_utf8_size.TestCheckUtf8Size.BytesWrapperSize result = new proto2_test_check_utf8_size.TestCheckUtf8Size.BytesWrapperSize(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.req_ = req_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.opt_ = opt_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
rep_ = java.util.Collections.unmodifiableList(rep_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.rep_ = rep_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
private int bitField0_;
private com.google.protobuf.ByteString req_ = com.google.protobuf.ByteString.EMPTY;
/**
* required bytes req = 1;
*/
public boolean hasReq() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required bytes req = 1;
*/
public com.google.protobuf.ByteString getReq() {
return req_;
}
/**
* required bytes req = 1;
*/
public Builder setReq(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
req_ = value;
onChanged();
return this;
}
/**
* required bytes req = 1;
*/
public Builder clearReq() {
bitField0_ = (bitField0_ & ~0x00000001);
req_ = getDefaultInstance().getReq();
onChanged();
return this;
}
private com.google.protobuf.ByteString opt_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes opt = 2;
*/
public boolean hasOpt() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bytes opt = 2;
*/
public com.google.protobuf.ByteString getOpt() {
return opt_;
}
/**
* optional bytes opt = 2;
*/
public Builder setOpt(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
opt_ = value;
onChanged();
return this;
}
/**
* optional bytes opt = 2;
*/
public Builder clearOpt() {
bitField0_ = (bitField0_ & ~0x00000002);
opt_ = getDefaultInstance().getOpt();
onChanged();
return this;
}
private java.util.List rep_ = java.util.Collections.emptyList();
private void ensureRepIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
rep_ = new java.util.ArrayList(rep_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated bytes rep = 3;
*/
public java.util.List
getRepList() {
return java.util.Collections.unmodifiableList(rep_);
}
/**
* repeated bytes rep = 3;
*/
public int getRepCount() {
return rep_.size();
}
/**
* repeated bytes rep = 3;
*/
public com.google.protobuf.ByteString getRep(int index) {
return rep_.get(index);
}
/**
* repeated bytes rep = 3;
*/
public Builder setRep(
int index, com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepIsMutable();
rep_.set(index, value);
onChanged();
return this;
}
/**
* repeated bytes rep = 3;
*/
public Builder addRep(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureRepIsMutable();
rep_.add(value);
onChanged();
return this;
}
/**
* repeated bytes rep = 3;
*/
public Builder addAllRep(
java.lang.Iterable extends com.google.protobuf.ByteString> values) {
ensureRepIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, rep_);
onChanged();
return this;
}
/**
* repeated bytes rep = 3;
*/
public Builder clearRep() {
rep_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:proto2_test_check_utf8_size.BytesWrapperSize)
}
static {
defaultInstance = new BytesWrapperSize(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:proto2_test_check_utf8_size.BytesWrapperSize)
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_proto2_test_check_utf8_size_StringWrapperSize_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_proto2_test_check_utf8_size_StringWrapperSize_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_proto2_test_check_utf8_size_BytesWrapperSize_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_proto2_test_check_utf8_size_BytesWrapperSize_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n.com/google/protobuf/test_check_utf8_si" +
"ze.proto\022\033proto2_test_check_utf8_size\":\n" +
"\021StringWrapperSize\022\013\n\003req\030\001 \002(\t\022\013\n\003opt\030\002" +
" \001(\t\022\013\n\003rep\030\003 \003(\t\"9\n\020BytesWrapperSize\022\013\n" +
"\003req\030\001 \002(\014\022\013\n\003opt\030\002 \001(\014\022\013\n\003rep\030\003 \003(\014B\030B\021" +
"TestCheckUtf8SizeH\002\330\001\001"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
internal_static_proto2_test_check_utf8_size_StringWrapperSize_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_proto2_test_check_utf8_size_StringWrapperSize_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_proto2_test_check_utf8_size_StringWrapperSize_descriptor,
new java.lang.String[] { "Req", "Opt", "Rep", });
internal_static_proto2_test_check_utf8_size_BytesWrapperSize_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_proto2_test_check_utf8_size_BytesWrapperSize_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_proto2_test_check_utf8_size_BytesWrapperSize_descriptor,
new java.lang.String[] { "Req", "Opt", "Rep", });
}
// @@protoc_insertion_point(outer_class_scope)
}