// 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 { /** * <code>required string req = 1;</code> */ boolean hasReq(); /** * <code>required string req = 1;</code> */ java.lang.String getReq(); /** * <code>required string req = 1;</code> */ com.google.protobuf.ByteString getReqBytes(); /** * <code>optional string opt = 2;</code> */ boolean hasOpt(); /** * <code>optional string opt = 2;</code> */ java.lang.String getOpt(); /** * <code>optional string opt = 2;</code> */ com.google.protobuf.ByteString getOptBytes(); /** * <code>repeated string rep = 3;</code> */ com.google.protobuf.ProtocolStringList getRepList(); /** * <code>repeated string rep = 3;</code> */ int getRepCount(); /** * <code>repeated string rep = 3;</code> */ java.lang.String getRep(int index); /** * <code>repeated string rep = 3;</code> */ 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<StringWrapperSize> PARSER = new com.google.protobuf.AbstractParser<StringWrapperSize>() { 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<StringWrapperSize> getParserForType() { return PARSER; } private int bitField0_; public static final int REQ_FIELD_NUMBER = 1; private java.lang.Object req_; /** * <code>required string req = 1;</code> */ public boolean hasReq() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string req = 1;</code> */ 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; } } /** * <code>required string req = 1;</code> */ 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_; /** * <code>optional string opt = 2;</code> */ public boolean hasOpt() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string opt = 2;</code> */ 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; } } /** * <code>optional string opt = 2;</code> */ 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_; /** * <code>repeated string rep = 3;</code> */ public com.google.protobuf.ProtocolStringList getRepList() { return rep_; } /** * <code>repeated string rep = 3;</code> */ public int getRepCount() { return rep_.size(); } /** * <code>repeated string rep = 3;</code> */ public java.lang.String getRep(int index) { return rep_.get(index); } /** * <code>repeated string rep = 3;</code> */ 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<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_ = ""; /** * <code>required string req = 1;</code> */ public boolean hasReq() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string req = 1;</code> */ 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; } } /** * <code>required string req = 1;</code> */ 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; } } /** * <code>required string req = 1;</code> */ public Builder setReq( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; req_ = value; onChanged(); return this; } /** * <code>required string req = 1;</code> */ public Builder clearReq() { bitField0_ = (bitField0_ & ~0x00000001); req_ = getDefaultInstance().getReq(); onChanged(); return this; } /** * <code>required string req = 1;</code> */ 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_ = ""; /** * <code>optional string opt = 2;</code> */ public boolean hasOpt() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string opt = 2;</code> */ 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; } } /** * <code>optional string opt = 2;</code> */ 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; } } /** * <code>optional string opt = 2;</code> */ public Builder setOpt( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; opt_ = value; onChanged(); return this; } /** * <code>optional string opt = 2;</code> */ public Builder clearOpt() { bitField0_ = (bitField0_ & ~0x00000002); opt_ = getDefaultInstance().getOpt(); onChanged(); return this; } /** * <code>optional string opt = 2;</code> */ 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; } } /** * <code>repeated string rep = 3;</code> */ public com.google.protobuf.ProtocolStringList getRepList() { return rep_.getUnmodifiableView(); } /** * <code>repeated string rep = 3;</code> */ public int getRepCount() { return rep_.size(); } /** * <code>repeated string rep = 3;</code> */ public java.lang.String getRep(int index) { return rep_.get(index); } /** * <code>repeated string rep = 3;</code> */ public com.google.protobuf.ByteString getRepBytes(int index) { return rep_.getByteString(index); } /** * <code>repeated string rep = 3;</code> */ public Builder setRep( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRepIsMutable(); rep_.set(index, value); onChanged(); return this; } /** * <code>repeated string rep = 3;</code> */ public Builder addRep( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureRepIsMutable(); rep_.add(value); onChanged(); return this; } /** * <code>repeated string rep = 3;</code> */ public Builder addAllRep( java.lang.Iterable<java.lang.String> values) { ensureRepIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, rep_); onChanged(); return this; } /** * <code>repeated string rep = 3;</code> */ public Builder clearRep() { rep_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * <code>repeated string rep = 3;</code> */ 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 { /** * <code>required bytes req = 1;</code> */ boolean hasReq(); /** * <code>required bytes req = 1;</code> */ com.google.protobuf.ByteString getReq(); /** * <code>optional bytes opt = 2;</code> */ boolean hasOpt(); /** * <code>optional bytes opt = 2;</code> */ com.google.protobuf.ByteString getOpt(); /** * <code>repeated bytes rep = 3;</code> */ java.util.List<com.google.protobuf.ByteString> getRepList(); /** * <code>repeated bytes rep = 3;</code> */ int getRepCount(); /** * <code>repeated bytes rep = 3;</code> */ 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<BytesWrapperSize> PARSER = new com.google.protobuf.AbstractParser<BytesWrapperSize>() { 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<BytesWrapperSize> getParserForType() { return PARSER; } private int bitField0_; public static final int REQ_FIELD_NUMBER = 1; private com.google.protobuf.ByteString req_; /** * <code>required bytes req = 1;</code> */ public boolean hasReq() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required bytes req = 1;</code> */ public com.google.protobuf.ByteString getReq() { return req_; } public static final int OPT_FIELD_NUMBER = 2; private com.google.protobuf.ByteString opt_; /** * <code>optional bytes opt = 2;</code> */ public boolean hasOpt() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bytes opt = 2;</code> */ public com.google.protobuf.ByteString getOpt() { return opt_; } public static final int REP_FIELD_NUMBER = 3; private java.util.List<com.google.protobuf.ByteString> rep_; /** * <code>repeated bytes rep = 3;</code> */ public java.util.List<com.google.protobuf.ByteString> getRepList() { return rep_; } /** * <code>repeated bytes rep = 3;</code> */ public int getRepCount() { return rep_.size(); } /** * <code>repeated bytes rep = 3;</code> */ 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<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; /** * <code>required bytes req = 1;</code> */ public boolean hasReq() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required bytes req = 1;</code> */ public com.google.protobuf.ByteString getReq() { return req_; } /** * <code>required bytes req = 1;</code> */ public Builder setReq(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; req_ = value; onChanged(); return this; } /** * <code>required bytes req = 1;</code> */ public Builder clearReq() { bitField0_ = (bitField0_ & ~0x00000001); req_ = getDefaultInstance().getReq(); onChanged(); return this; } private com.google.protobuf.ByteString opt_ = com.google.protobuf.ByteString.EMPTY; /** * <code>optional bytes opt = 2;</code> */ public boolean hasOpt() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bytes opt = 2;</code> */ public com.google.protobuf.ByteString getOpt() { return opt_; } /** * <code>optional bytes opt = 2;</code> */ public Builder setOpt(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; opt_ = value; onChanged(); return this; } /** * <code>optional bytes opt = 2;</code> */ public Builder clearOpt() { bitField0_ = (bitField0_ & ~0x00000002); opt_ = getDefaultInstance().getOpt(); onChanged(); return this; } private java.util.List<com.google.protobuf.ByteString> rep_ = java.util.Collections.emptyList(); private void ensureRepIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { rep_ = new java.util.ArrayList<com.google.protobuf.ByteString>(rep_); bitField0_ |= 0x00000004; } } /** * <code>repeated bytes rep = 3;</code> */ public java.util.List<com.google.protobuf.ByteString> getRepList() { return java.util.Collections.unmodifiableList(rep_); } /** * <code>repeated bytes rep = 3;</code> */ public int getRepCount() { return rep_.size(); } /** * <code>repeated bytes rep = 3;</code> */ public com.google.protobuf.ByteString getRep(int index) { return rep_.get(index); } /** * <code>repeated bytes rep = 3;</code> */ public Builder setRep( int index, com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRepIsMutable(); rep_.set(index, value); onChanged(); return this; } /** * <code>repeated bytes rep = 3;</code> */ public Builder addRep(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureRepIsMutable(); rep_.add(value); onChanged(); return this; } /** * <code>repeated bytes rep = 3;</code> */ public Builder addAllRep( java.lang.Iterable<? extends com.google.protobuf.ByteString> values) { ensureRepIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, rep_); onChanged(); return this; } /** * <code>repeated bytes rep = 3;</code> */ 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) }