// Generated by the protocol buffer compiler. DO NOT EDIT! // source: userfeedback/proto/web.proto package userfeedback; public final class Web { private Web() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public interface WebDataOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional .userfeedback.Navigator navigator = 1; /** * <code>optional .userfeedback.Navigator navigator = 1;</code> * * <pre> * Data captured from DOM Navigator object. * </pre> */ boolean hasNavigator(); /** * <code>optional .userfeedback.Navigator navigator = 1;</code> * * <pre> * Data captured from DOM Navigator object. * </pre> */ userfeedback.Dom.Navigator getNavigator(); /** * <code>optional .userfeedback.Navigator navigator = 1;</code> * * <pre> * Data captured from DOM Navigator object. * </pre> */ userfeedback.Dom.NavigatorOrBuilder getNavigatorOrBuilder(); // optional .userfeedback.ExtensionDetails extension_details = 2; /** * <code>optional .userfeedback.ExtensionDetails extension_details = 2;</code> * * <pre> * Details of the extension from which this data was sent. * </pre> */ boolean hasExtensionDetails(); /** * <code>optional .userfeedback.ExtensionDetails extension_details = 2;</code> * * <pre> * Details of the extension from which this data was sent. * </pre> */ userfeedback.Web.ExtensionDetails getExtensionDetails(); /** * <code>optional .userfeedback.ExtensionDetails extension_details = 2;</code> * * <pre> * Details of the extension from which this data was sent. * </pre> */ userfeedback.Web.ExtensionDetailsOrBuilder getExtensionDetailsOrBuilder(); // optional string url = 3; /** * <code>optional string url = 3;</code> * * <pre> * The URL of the document. * Useful when user opts out from sending html structure. * </pre> */ boolean hasUrl(); /** * <code>optional string url = 3;</code> * * <pre> * The URL of the document. * Useful when user opts out from sending html structure. * </pre> */ java.lang.String getUrl(); /** * <code>optional string url = 3;</code> * * <pre> * The URL of the document. * Useful when user opts out from sending html structure. * </pre> */ com.google.protobuf.ByteString getUrlBytes(); // repeated .userfeedback.Annotation annotation = 4; /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ java.util.List<userfeedback.Annotations.Annotation> getAnnotationList(); /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ userfeedback.Annotations.Annotation getAnnotation(int index); /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ int getAnnotationCount(); /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ java.util.List<? extends userfeedback.Annotations.AnnotationOrBuilder> getAnnotationOrBuilderList(); /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ userfeedback.Annotations.AnnotationOrBuilder getAnnotationOrBuilder( int index); // optional string suggestion_id = 5; /** * <code>optional string suggestion_id = 5;</code> * * <pre> * The ID of the suggestion selected by the user. * Possible values: * - Not set if no suggestions were shown, either because the version of * the client did not support suggestions, suggestions were disabled or * no matching suggestions were found. * - NONE_OF_THE_ABOVE if the user has chosen "None of the above". * - Empty string if suggestions were shown but the user hasn't chosen * any of them (and also she hasn't chosen "None of the above"). * - Actual suggestion identifier as returned from the server. * </pre> */ boolean hasSuggestionId(); /** * <code>optional string suggestion_id = 5;</code> * * <pre> * The ID of the suggestion selected by the user. * Possible values: * - Not set if no suggestions were shown, either because the version of * the client did not support suggestions, suggestions were disabled or * no matching suggestions were found. * - NONE_OF_THE_ABOVE if the user has chosen "None of the above". * - Empty string if suggestions were shown but the user hasn't chosen * any of them (and also she hasn't chosen "None of the above"). * - Actual suggestion identifier as returned from the server. * </pre> */ java.lang.String getSuggestionId(); /** * <code>optional string suggestion_id = 5;</code> * * <pre> * The ID of the suggestion selected by the user. * Possible values: * - Not set if no suggestions were shown, either because the version of * the client did not support suggestions, suggestions were disabled or * no matching suggestions were found. * - NONE_OF_THE_ABOVE if the user has chosen "None of the above". * - Empty string if suggestions were shown but the user hasn't chosen * any of them (and also she hasn't chosen "None of the above"). * - Actual suggestion identifier as returned from the server. * </pre> */ com.google.protobuf.ByteString getSuggestionIdBytes(); // repeated .userfeedback.ProductSpecificData product_specific_data = 6; /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ java.util.List<userfeedback.Web.ProductSpecificData> getProductSpecificDataList(); /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ userfeedback.Web.ProductSpecificData getProductSpecificData(int index); /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ int getProductSpecificDataCount(); /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ java.util.List<? extends userfeedback.Web.ProductSpecificDataOrBuilder> getProductSpecificDataOrBuilderList(); /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ userfeedback.Web.ProductSpecificDataOrBuilder getProductSpecificDataOrBuilder( int index); // repeated .userfeedback.ProductSpecificData additional_form_content = 7; /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ java.util.List<userfeedback.Web.ProductSpecificData> getAdditionalFormContentList(); /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ userfeedback.Web.ProductSpecificData getAdditionalFormContent(int index); /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ int getAdditionalFormContentCount(); /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ java.util.List<? extends userfeedback.Web.ProductSpecificDataOrBuilder> getAdditionalFormContentOrBuilderList(); /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ userfeedback.Web.ProductSpecificDataOrBuilder getAdditionalFormContentOrBuilder( int index); } /** * Protobuf type {@code userfeedback.WebData} * * <pre> * Data present in feedbacks sent from web extension. * </pre> */ public static final class WebData extends com.google.protobuf.GeneratedMessage implements WebDataOrBuilder { // Use WebData.newBuilder() to construct. private WebData(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private WebData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final WebData defaultInstance; public static WebData getDefaultInstance() { return defaultInstance; } public WebData getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private WebData( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { userfeedback.Dom.Navigator.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = navigator_.toBuilder(); } navigator_ = input.readMessage(userfeedback.Dom.Navigator.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(navigator_); navigator_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { userfeedback.Web.ExtensionDetails.Builder subBuilder = null; if (((bitField0_ & 0x00000002) == 0x00000002)) { subBuilder = extensionDetails_.toBuilder(); } extensionDetails_ = input.readMessage(userfeedback.Web.ExtensionDetails.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(extensionDetails_); extensionDetails_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { bitField0_ |= 0x00000004; url_ = input.readBytes(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { annotation_ = new java.util.ArrayList<userfeedback.Annotations.Annotation>(); mutable_bitField0_ |= 0x00000008; } annotation_.add(input.readMessage(userfeedback.Annotations.Annotation.PARSER, extensionRegistry)); break; } case 42: { bitField0_ |= 0x00000008; suggestionId_ = input.readBytes(); break; } case 50: { if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { productSpecificData_ = new java.util.ArrayList<userfeedback.Web.ProductSpecificData>(); mutable_bitField0_ |= 0x00000020; } productSpecificData_.add(input.readMessage(userfeedback.Web.ProductSpecificData.PARSER, extensionRegistry)); break; } case 58: { if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { additionalFormContent_ = new java.util.ArrayList<userfeedback.Web.ProductSpecificData>(); mutable_bitField0_ |= 0x00000040; } additionalFormContent_.add(input.readMessage(userfeedback.Web.ProductSpecificData.PARSER, extensionRegistry)); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { annotation_ = java.util.Collections.unmodifiableList(annotation_); } if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { productSpecificData_ = java.util.Collections.unmodifiableList(productSpecificData_); } if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { additionalFormContent_ = java.util.Collections.unmodifiableList(additionalFormContent_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return userfeedback.Web.internal_static_userfeedback_WebData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return userfeedback.Web.internal_static_userfeedback_WebData_fieldAccessorTable .ensureFieldAccessorsInitialized( userfeedback.Web.WebData.class, userfeedback.Web.WebData.Builder.class); } public static com.google.protobuf.Parser<WebData> PARSER = new com.google.protobuf.AbstractParser<WebData>() { public WebData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new WebData(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<WebData> getParserForType() { return PARSER; } private int bitField0_; // optional .userfeedback.Navigator navigator = 1; public static final int NAVIGATOR_FIELD_NUMBER = 1; private userfeedback.Dom.Navigator navigator_; /** * <code>optional .userfeedback.Navigator navigator = 1;</code> * * <pre> * Data captured from DOM Navigator object. * </pre> */ public boolean hasNavigator() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .userfeedback.Navigator navigator = 1;</code> * * <pre> * Data captured from DOM Navigator object. * </pre> */ public userfeedback.Dom.Navigator getNavigator() { return navigator_; } /** * <code>optional .userfeedback.Navigator navigator = 1;</code> * * <pre> * Data captured from DOM Navigator object. * </pre> */ public userfeedback.Dom.NavigatorOrBuilder getNavigatorOrBuilder() { return navigator_; } // optional .userfeedback.ExtensionDetails extension_details = 2; public static final int EXTENSION_DETAILS_FIELD_NUMBER = 2; private userfeedback.Web.ExtensionDetails extensionDetails_; /** * <code>optional .userfeedback.ExtensionDetails extension_details = 2;</code> * * <pre> * Details of the extension from which this data was sent. * </pre> */ public boolean hasExtensionDetails() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .userfeedback.ExtensionDetails extension_details = 2;</code> * * <pre> * Details of the extension from which this data was sent. * </pre> */ public userfeedback.Web.ExtensionDetails getExtensionDetails() { return extensionDetails_; } /** * <code>optional .userfeedback.ExtensionDetails extension_details = 2;</code> * * <pre> * Details of the extension from which this data was sent. * </pre> */ public userfeedback.Web.ExtensionDetailsOrBuilder getExtensionDetailsOrBuilder() { return extensionDetails_; } // optional string url = 3; public static final int URL_FIELD_NUMBER = 3; private java.lang.Object url_; /** * <code>optional string url = 3;</code> * * <pre> * The URL of the document. * Useful when user opts out from sending html structure. * </pre> */ public boolean hasUrl() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string url = 3;</code> * * <pre> * The URL of the document. * Useful when user opts out from sending html structure. * </pre> */ public java.lang.String getUrl() { java.lang.Object ref = url_; 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(); if (bs.isValidUtf8()) { url_ = s; } return s; } } /** * <code>optional string url = 3;</code> * * <pre> * The URL of the document. * Useful when user opts out from sending html structure. * </pre> */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated .userfeedback.Annotation annotation = 4; public static final int ANNOTATION_FIELD_NUMBER = 4; private java.util.List<userfeedback.Annotations.Annotation> annotation_; /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ public java.util.List<userfeedback.Annotations.Annotation> getAnnotationList() { return annotation_; } /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ public java.util.List<? extends userfeedback.Annotations.AnnotationOrBuilder> getAnnotationOrBuilderList() { return annotation_; } /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ public int getAnnotationCount() { return annotation_.size(); } /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ public userfeedback.Annotations.Annotation getAnnotation(int index) { return annotation_.get(index); } /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ public userfeedback.Annotations.AnnotationOrBuilder getAnnotationOrBuilder( int index) { return annotation_.get(index); } // optional string suggestion_id = 5; public static final int SUGGESTION_ID_FIELD_NUMBER = 5; private java.lang.Object suggestionId_; /** * <code>optional string suggestion_id = 5;</code> * * <pre> * The ID of the suggestion selected by the user. * Possible values: * - Not set if no suggestions were shown, either because the version of * the client did not support suggestions, suggestions were disabled or * no matching suggestions were found. * - NONE_OF_THE_ABOVE if the user has chosen "None of the above". * - Empty string if suggestions were shown but the user hasn't chosen * any of them (and also she hasn't chosen "None of the above"). * - Actual suggestion identifier as returned from the server. * </pre> */ public boolean hasSuggestionId() { return ((bitField0_ & 0x00000008) == 0x00000008); } /** * <code>optional string suggestion_id = 5;</code> * * <pre> * The ID of the suggestion selected by the user. * Possible values: * - Not set if no suggestions were shown, either because the version of * the client did not support suggestions, suggestions were disabled or * no matching suggestions were found. * - NONE_OF_THE_ABOVE if the user has chosen "None of the above". * - Empty string if suggestions were shown but the user hasn't chosen * any of them (and also she hasn't chosen "None of the above"). * - Actual suggestion identifier as returned from the server. * </pre> */ public java.lang.String getSuggestionId() { java.lang.Object ref = suggestionId_; 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(); if (bs.isValidUtf8()) { suggestionId_ = s; } return s; } } /** * <code>optional string suggestion_id = 5;</code> * * <pre> * The ID of the suggestion selected by the user. * Possible values: * - Not set if no suggestions were shown, either because the version of * the client did not support suggestions, suggestions were disabled or * no matching suggestions were found. * - NONE_OF_THE_ABOVE if the user has chosen "None of the above". * - Empty string if suggestions were shown but the user hasn't chosen * any of them (and also she hasn't chosen "None of the above"). * - Actual suggestion identifier as returned from the server. * </pre> */ public com.google.protobuf.ByteString getSuggestionIdBytes() { java.lang.Object ref = suggestionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); suggestionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated .userfeedback.ProductSpecificData product_specific_data = 6; public static final int PRODUCT_SPECIFIC_DATA_FIELD_NUMBER = 6; private java.util.List<userfeedback.Web.ProductSpecificData> productSpecificData_; /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ public java.util.List<userfeedback.Web.ProductSpecificData> getProductSpecificDataList() { return productSpecificData_; } /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ public java.util.List<? extends userfeedback.Web.ProductSpecificDataOrBuilder> getProductSpecificDataOrBuilderList() { return productSpecificData_; } /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ public int getProductSpecificDataCount() { return productSpecificData_.size(); } /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ public userfeedback.Web.ProductSpecificData getProductSpecificData(int index) { return productSpecificData_.get(index); } /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ public userfeedback.Web.ProductSpecificDataOrBuilder getProductSpecificDataOrBuilder( int index) { return productSpecificData_.get(index); } // repeated .userfeedback.ProductSpecificData additional_form_content = 7; public static final int ADDITIONAL_FORM_CONTENT_FIELD_NUMBER = 7; private java.util.List<userfeedback.Web.ProductSpecificData> additionalFormContent_; /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ public java.util.List<userfeedback.Web.ProductSpecificData> getAdditionalFormContentList() { return additionalFormContent_; } /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ public java.util.List<? extends userfeedback.Web.ProductSpecificDataOrBuilder> getAdditionalFormContentOrBuilderList() { return additionalFormContent_; } /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ public int getAdditionalFormContentCount() { return additionalFormContent_.size(); } /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ public userfeedback.Web.ProductSpecificData getAdditionalFormContent(int index) { return additionalFormContent_.get(index); } /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ public userfeedback.Web.ProductSpecificDataOrBuilder getAdditionalFormContentOrBuilder( int index) { return additionalFormContent_.get(index); } private void initFields() { navigator_ = userfeedback.Dom.Navigator.getDefaultInstance(); extensionDetails_ = userfeedback.Web.ExtensionDetails.getDefaultInstance(); url_ = ""; annotation_ = java.util.Collections.emptyList(); suggestionId_ = ""; productSpecificData_ = java.util.Collections.emptyList(); additionalFormContent_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (hasNavigator()) { if (!getNavigator().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasExtensionDetails()) { if (!getExtensionDetails().isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getAnnotationCount(); i++) { if (!getAnnotation(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getProductSpecificDataCount(); i++) { if (!getProductSpecificData(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getAdditionalFormContentCount(); i++) { if (!getAdditionalFormContent(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, navigator_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeMessage(2, extensionDetails_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getUrlBytes()); } for (int i = 0; i < annotation_.size(); i++) { output.writeMessage(4, annotation_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(5, getSuggestionIdBytes()); } for (int i = 0; i < productSpecificData_.size(); i++) { output.writeMessage(6, productSpecificData_.get(i)); } for (int i = 0; i < additionalFormContent_.size(); i++) { output.writeMessage(7, additionalFormContent_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, navigator_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, extensionDetails_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getUrlBytes()); } for (int i = 0; i < annotation_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, annotation_.get(i)); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getSuggestionIdBytes()); } for (int i = 0; i < productSpecificData_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, productSpecificData_.get(i)); } for (int i = 0; i < additionalFormContent_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, additionalFormContent_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static userfeedback.Web.WebData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static userfeedback.Web.WebData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static userfeedback.Web.WebData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static userfeedback.Web.WebData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static userfeedback.Web.WebData parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static userfeedback.Web.WebData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static userfeedback.Web.WebData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static userfeedback.Web.WebData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static userfeedback.Web.WebData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static userfeedback.Web.WebData 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(userfeedback.Web.WebData 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 userfeedback.WebData} * * <pre> * Data present in feedbacks sent from web extension. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements userfeedback.Web.WebDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return userfeedback.Web.internal_static_userfeedback_WebData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return userfeedback.Web.internal_static_userfeedback_WebData_fieldAccessorTable .ensureFieldAccessorsInitialized( userfeedback.Web.WebData.class, userfeedback.Web.WebData.Builder.class); } // Construct using userfeedback.Web.WebData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getNavigatorFieldBuilder(); getExtensionDetailsFieldBuilder(); getAnnotationFieldBuilder(); getProductSpecificDataFieldBuilder(); getAdditionalFormContentFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (navigatorBuilder_ == null) { navigator_ = userfeedback.Dom.Navigator.getDefaultInstance(); } else { navigatorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (extensionDetailsBuilder_ == null) { extensionDetails_ = userfeedback.Web.ExtensionDetails.getDefaultInstance(); } else { extensionDetailsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); url_ = ""; bitField0_ = (bitField0_ & ~0x00000004); if (annotationBuilder_ == null) { annotation_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { annotationBuilder_.clear(); } suggestionId_ = ""; bitField0_ = (bitField0_ & ~0x00000010); if (productSpecificDataBuilder_ == null) { productSpecificData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { productSpecificDataBuilder_.clear(); } if (additionalFormContentBuilder_ == null) { additionalFormContent_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); } else { additionalFormContentBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return userfeedback.Web.internal_static_userfeedback_WebData_descriptor; } public userfeedback.Web.WebData getDefaultInstanceForType() { return userfeedback.Web.WebData.getDefaultInstance(); } public userfeedback.Web.WebData build() { userfeedback.Web.WebData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public userfeedback.Web.WebData buildPartial() { userfeedback.Web.WebData result = new userfeedback.Web.WebData(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } if (navigatorBuilder_ == null) { result.navigator_ = navigator_; } else { result.navigator_ = navigatorBuilder_.build(); } if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } if (extensionDetailsBuilder_ == null) { result.extensionDetails_ = extensionDetails_; } else { result.extensionDetails_ = extensionDetailsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.url_ = url_; if (annotationBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { annotation_ = java.util.Collections.unmodifiableList(annotation_); bitField0_ = (bitField0_ & ~0x00000008); } result.annotation_ = annotation_; } else { result.annotation_ = annotationBuilder_.build(); } if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000008; } result.suggestionId_ = suggestionId_; if (productSpecificDataBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { productSpecificData_ = java.util.Collections.unmodifiableList(productSpecificData_); bitField0_ = (bitField0_ & ~0x00000020); } result.productSpecificData_ = productSpecificData_; } else { result.productSpecificData_ = productSpecificDataBuilder_.build(); } if (additionalFormContentBuilder_ == null) { if (((bitField0_ & 0x00000040) == 0x00000040)) { additionalFormContent_ = java.util.Collections.unmodifiableList(additionalFormContent_); bitField0_ = (bitField0_ & ~0x00000040); } result.additionalFormContent_ = additionalFormContent_; } else { result.additionalFormContent_ = additionalFormContentBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof userfeedback.Web.WebData) { return mergeFrom((userfeedback.Web.WebData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(userfeedback.Web.WebData other) { if (other == userfeedback.Web.WebData.getDefaultInstance()) return this; if (other.hasNavigator()) { mergeNavigator(other.getNavigator()); } if (other.hasExtensionDetails()) { mergeExtensionDetails(other.getExtensionDetails()); } if (other.hasUrl()) { bitField0_ |= 0x00000004; url_ = other.url_; onChanged(); } if (annotationBuilder_ == null) { if (!other.annotation_.isEmpty()) { if (annotation_.isEmpty()) { annotation_ = other.annotation_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureAnnotationIsMutable(); annotation_.addAll(other.annotation_); } onChanged(); } } else { if (!other.annotation_.isEmpty()) { if (annotationBuilder_.isEmpty()) { annotationBuilder_.dispose(); annotationBuilder_ = null; annotation_ = other.annotation_; bitField0_ = (bitField0_ & ~0x00000008); annotationBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getAnnotationFieldBuilder() : null; } else { annotationBuilder_.addAllMessages(other.annotation_); } } } if (other.hasSuggestionId()) { bitField0_ |= 0x00000010; suggestionId_ = other.suggestionId_; onChanged(); } if (productSpecificDataBuilder_ == null) { if (!other.productSpecificData_.isEmpty()) { if (productSpecificData_.isEmpty()) { productSpecificData_ = other.productSpecificData_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureProductSpecificDataIsMutable(); productSpecificData_.addAll(other.productSpecificData_); } onChanged(); } } else { if (!other.productSpecificData_.isEmpty()) { if (productSpecificDataBuilder_.isEmpty()) { productSpecificDataBuilder_.dispose(); productSpecificDataBuilder_ = null; productSpecificData_ = other.productSpecificData_; bitField0_ = (bitField0_ & ~0x00000020); productSpecificDataBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getProductSpecificDataFieldBuilder() : null; } else { productSpecificDataBuilder_.addAllMessages(other.productSpecificData_); } } } if (additionalFormContentBuilder_ == null) { if (!other.additionalFormContent_.isEmpty()) { if (additionalFormContent_.isEmpty()) { additionalFormContent_ = other.additionalFormContent_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureAdditionalFormContentIsMutable(); additionalFormContent_.addAll(other.additionalFormContent_); } onChanged(); } } else { if (!other.additionalFormContent_.isEmpty()) { if (additionalFormContentBuilder_.isEmpty()) { additionalFormContentBuilder_.dispose(); additionalFormContentBuilder_ = null; additionalFormContent_ = other.additionalFormContent_; bitField0_ = (bitField0_ & ~0x00000040); additionalFormContentBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getAdditionalFormContentFieldBuilder() : null; } else { additionalFormContentBuilder_.addAllMessages(other.additionalFormContent_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (hasNavigator()) { if (!getNavigator().isInitialized()) { return false; } } if (hasExtensionDetails()) { if (!getExtensionDetails().isInitialized()) { return false; } } for (int i = 0; i < getAnnotationCount(); i++) { if (!getAnnotation(i).isInitialized()) { return false; } } for (int i = 0; i < getProductSpecificDataCount(); i++) { if (!getProductSpecificData(i).isInitialized()) { return false; } } for (int i = 0; i < getAdditionalFormContentCount(); i++) { if (!getAdditionalFormContent(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { userfeedback.Web.WebData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (userfeedback.Web.WebData) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional .userfeedback.Navigator navigator = 1; private userfeedback.Dom.Navigator navigator_ = userfeedback.Dom.Navigator.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< userfeedback.Dom.Navigator, userfeedback.Dom.Navigator.Builder, userfeedback.Dom.NavigatorOrBuilder> navigatorBuilder_; /** * <code>optional .userfeedback.Navigator navigator = 1;</code> * * <pre> * Data captured from DOM Navigator object. * </pre> */ public boolean hasNavigator() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional .userfeedback.Navigator navigator = 1;</code> * * <pre> * Data captured from DOM Navigator object. * </pre> */ public userfeedback.Dom.Navigator getNavigator() { if (navigatorBuilder_ == null) { return navigator_; } else { return navigatorBuilder_.getMessage(); } } /** * <code>optional .userfeedback.Navigator navigator = 1;</code> * * <pre> * Data captured from DOM Navigator object. * </pre> */ public Builder setNavigator(userfeedback.Dom.Navigator value) { if (navigatorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } navigator_ = value; onChanged(); } else { navigatorBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * <code>optional .userfeedback.Navigator navigator = 1;</code> * * <pre> * Data captured from DOM Navigator object. * </pre> */ public Builder setNavigator( userfeedback.Dom.Navigator.Builder builderForValue) { if (navigatorBuilder_ == null) { navigator_ = builderForValue.build(); onChanged(); } else { navigatorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * <code>optional .userfeedback.Navigator navigator = 1;</code> * * <pre> * Data captured from DOM Navigator object. * </pre> */ public Builder mergeNavigator(userfeedback.Dom.Navigator value) { if (navigatorBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && navigator_ != userfeedback.Dom.Navigator.getDefaultInstance()) { navigator_ = userfeedback.Dom.Navigator.newBuilder(navigator_).mergeFrom(value).buildPartial(); } else { navigator_ = value; } onChanged(); } else { navigatorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * <code>optional .userfeedback.Navigator navigator = 1;</code> * * <pre> * Data captured from DOM Navigator object. * </pre> */ public Builder clearNavigator() { if (navigatorBuilder_ == null) { navigator_ = userfeedback.Dom.Navigator.getDefaultInstance(); onChanged(); } else { navigatorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * <code>optional .userfeedback.Navigator navigator = 1;</code> * * <pre> * Data captured from DOM Navigator object. * </pre> */ public userfeedback.Dom.Navigator.Builder getNavigatorBuilder() { bitField0_ |= 0x00000001; onChanged(); return getNavigatorFieldBuilder().getBuilder(); } /** * <code>optional .userfeedback.Navigator navigator = 1;</code> * * <pre> * Data captured from DOM Navigator object. * </pre> */ public userfeedback.Dom.NavigatorOrBuilder getNavigatorOrBuilder() { if (navigatorBuilder_ != null) { return navigatorBuilder_.getMessageOrBuilder(); } else { return navigator_; } } /** * <code>optional .userfeedback.Navigator navigator = 1;</code> * * <pre> * Data captured from DOM Navigator object. * </pre> */ private com.google.protobuf.SingleFieldBuilder< userfeedback.Dom.Navigator, userfeedback.Dom.Navigator.Builder, userfeedback.Dom.NavigatorOrBuilder> getNavigatorFieldBuilder() { if (navigatorBuilder_ == null) { navigatorBuilder_ = new com.google.protobuf.SingleFieldBuilder< userfeedback.Dom.Navigator, userfeedback.Dom.Navigator.Builder, userfeedback.Dom.NavigatorOrBuilder>( navigator_, getParentForChildren(), isClean()); navigator_ = null; } return navigatorBuilder_; } // optional .userfeedback.ExtensionDetails extension_details = 2; private userfeedback.Web.ExtensionDetails extensionDetails_ = userfeedback.Web.ExtensionDetails.getDefaultInstance(); private com.google.protobuf.SingleFieldBuilder< userfeedback.Web.ExtensionDetails, userfeedback.Web.ExtensionDetails.Builder, userfeedback.Web.ExtensionDetailsOrBuilder> extensionDetailsBuilder_; /** * <code>optional .userfeedback.ExtensionDetails extension_details = 2;</code> * * <pre> * Details of the extension from which this data was sent. * </pre> */ public boolean hasExtensionDetails() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional .userfeedback.ExtensionDetails extension_details = 2;</code> * * <pre> * Details of the extension from which this data was sent. * </pre> */ public userfeedback.Web.ExtensionDetails getExtensionDetails() { if (extensionDetailsBuilder_ == null) { return extensionDetails_; } else { return extensionDetailsBuilder_.getMessage(); } } /** * <code>optional .userfeedback.ExtensionDetails extension_details = 2;</code> * * <pre> * Details of the extension from which this data was sent. * </pre> */ public Builder setExtensionDetails(userfeedback.Web.ExtensionDetails value) { if (extensionDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } extensionDetails_ = value; onChanged(); } else { extensionDetailsBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .userfeedback.ExtensionDetails extension_details = 2;</code> * * <pre> * Details of the extension from which this data was sent. * </pre> */ public Builder setExtensionDetails( userfeedback.Web.ExtensionDetails.Builder builderForValue) { if (extensionDetailsBuilder_ == null) { extensionDetails_ = builderForValue.build(); onChanged(); } else { extensionDetailsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .userfeedback.ExtensionDetails extension_details = 2;</code> * * <pre> * Details of the extension from which this data was sent. * </pre> */ public Builder mergeExtensionDetails(userfeedback.Web.ExtensionDetails value) { if (extensionDetailsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002) && extensionDetails_ != userfeedback.Web.ExtensionDetails.getDefaultInstance()) { extensionDetails_ = userfeedback.Web.ExtensionDetails.newBuilder(extensionDetails_).mergeFrom(value).buildPartial(); } else { extensionDetails_ = value; } onChanged(); } else { extensionDetailsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * <code>optional .userfeedback.ExtensionDetails extension_details = 2;</code> * * <pre> * Details of the extension from which this data was sent. * </pre> */ public Builder clearExtensionDetails() { if (extensionDetailsBuilder_ == null) { extensionDetails_ = userfeedback.Web.ExtensionDetails.getDefaultInstance(); onChanged(); } else { extensionDetailsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * <code>optional .userfeedback.ExtensionDetails extension_details = 2;</code> * * <pre> * Details of the extension from which this data was sent. * </pre> */ public userfeedback.Web.ExtensionDetails.Builder getExtensionDetailsBuilder() { bitField0_ |= 0x00000002; onChanged(); return getExtensionDetailsFieldBuilder().getBuilder(); } /** * <code>optional .userfeedback.ExtensionDetails extension_details = 2;</code> * * <pre> * Details of the extension from which this data was sent. * </pre> */ public userfeedback.Web.ExtensionDetailsOrBuilder getExtensionDetailsOrBuilder() { if (extensionDetailsBuilder_ != null) { return extensionDetailsBuilder_.getMessageOrBuilder(); } else { return extensionDetails_; } } /** * <code>optional .userfeedback.ExtensionDetails extension_details = 2;</code> * * <pre> * Details of the extension from which this data was sent. * </pre> */ private com.google.protobuf.SingleFieldBuilder< userfeedback.Web.ExtensionDetails, userfeedback.Web.ExtensionDetails.Builder, userfeedback.Web.ExtensionDetailsOrBuilder> getExtensionDetailsFieldBuilder() { if (extensionDetailsBuilder_ == null) { extensionDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilder< userfeedback.Web.ExtensionDetails, userfeedback.Web.ExtensionDetails.Builder, userfeedback.Web.ExtensionDetailsOrBuilder>( extensionDetails_, getParentForChildren(), isClean()); extensionDetails_ = null; } return extensionDetailsBuilder_; } // optional string url = 3; private java.lang.Object url_ = ""; /** * <code>optional string url = 3;</code> * * <pre> * The URL of the document. * Useful when user opts out from sending html structure. * </pre> */ public boolean hasUrl() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional string url = 3;</code> * * <pre> * The URL of the document. * Useful when user opts out from sending html structure. * </pre> */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); url_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string url = 3;</code> * * <pre> * The URL of the document. * Useful when user opts out from sending html structure. * </pre> */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string url = 3;</code> * * <pre> * The URL of the document. * Useful when user opts out from sending html structure. * </pre> */ public Builder setUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; url_ = value; onChanged(); return this; } /** * <code>optional string url = 3;</code> * * <pre> * The URL of the document. * Useful when user opts out from sending html structure. * </pre> */ public Builder clearUrl() { bitField0_ = (bitField0_ & ~0x00000004); url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** * <code>optional string url = 3;</code> * * <pre> * The URL of the document. * Useful when user opts out from sending html structure. * </pre> */ public Builder setUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; url_ = value; onChanged(); return this; } // repeated .userfeedback.Annotation annotation = 4; private java.util.List<userfeedback.Annotations.Annotation> annotation_ = java.util.Collections.emptyList(); private void ensureAnnotationIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { annotation_ = new java.util.ArrayList<userfeedback.Annotations.Annotation>(annotation_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilder< userfeedback.Annotations.Annotation, userfeedback.Annotations.Annotation.Builder, userfeedback.Annotations.AnnotationOrBuilder> annotationBuilder_; /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ public java.util.List<userfeedback.Annotations.Annotation> getAnnotationList() { if (annotationBuilder_ == null) { return java.util.Collections.unmodifiableList(annotation_); } else { return annotationBuilder_.getMessageList(); } } /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ public int getAnnotationCount() { if (annotationBuilder_ == null) { return annotation_.size(); } else { return annotationBuilder_.getCount(); } } /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ public userfeedback.Annotations.Annotation getAnnotation(int index) { if (annotationBuilder_ == null) { return annotation_.get(index); } else { return annotationBuilder_.getMessage(index); } } /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ public Builder setAnnotation( int index, userfeedback.Annotations.Annotation value) { if (annotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAnnotationIsMutable(); annotation_.set(index, value); onChanged(); } else { annotationBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ public Builder setAnnotation( int index, userfeedback.Annotations.Annotation.Builder builderForValue) { if (annotationBuilder_ == null) { ensureAnnotationIsMutable(); annotation_.set(index, builderForValue.build()); onChanged(); } else { annotationBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ public Builder addAnnotation(userfeedback.Annotations.Annotation value) { if (annotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAnnotationIsMutable(); annotation_.add(value); onChanged(); } else { annotationBuilder_.addMessage(value); } return this; } /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ public Builder addAnnotation( int index, userfeedback.Annotations.Annotation value) { if (annotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAnnotationIsMutable(); annotation_.add(index, value); onChanged(); } else { annotationBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ public Builder addAnnotation( userfeedback.Annotations.Annotation.Builder builderForValue) { if (annotationBuilder_ == null) { ensureAnnotationIsMutable(); annotation_.add(builderForValue.build()); onChanged(); } else { annotationBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ public Builder addAnnotation( int index, userfeedback.Annotations.Annotation.Builder builderForValue) { if (annotationBuilder_ == null) { ensureAnnotationIsMutable(); annotation_.add(index, builderForValue.build()); onChanged(); } else { annotationBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ public Builder addAllAnnotation( java.lang.Iterable<? extends userfeedback.Annotations.Annotation> values) { if (annotationBuilder_ == null) { ensureAnnotationIsMutable(); super.addAll(values, annotation_); onChanged(); } else { annotationBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ public Builder clearAnnotation() { if (annotationBuilder_ == null) { annotation_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { annotationBuilder_.clear(); } return this; } /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ public Builder removeAnnotation(int index) { if (annotationBuilder_ == null) { ensureAnnotationIsMutable(); annotation_.remove(index); onChanged(); } else { annotationBuilder_.remove(index); } return this; } /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ public userfeedback.Annotations.Annotation.Builder getAnnotationBuilder( int index) { return getAnnotationFieldBuilder().getBuilder(index); } /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ public userfeedback.Annotations.AnnotationOrBuilder getAnnotationOrBuilder( int index) { if (annotationBuilder_ == null) { return annotation_.get(index); } else { return annotationBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ public java.util.List<? extends userfeedback.Annotations.AnnotationOrBuilder> getAnnotationOrBuilderList() { if (annotationBuilder_ != null) { return annotationBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(annotation_); } } /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ public userfeedback.Annotations.Annotation.Builder addAnnotationBuilder() { return getAnnotationFieldBuilder().addBuilder( userfeedback.Annotations.Annotation.getDefaultInstance()); } /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ public userfeedback.Annotations.Annotation.Builder addAnnotationBuilder( int index) { return getAnnotationFieldBuilder().addBuilder( index, userfeedback.Annotations.Annotation.getDefaultInstance()); } /** * <code>repeated .userfeedback.Annotation annotation = 4;</code> * * <pre> * A list of annotations. * </pre> */ public java.util.List<userfeedback.Annotations.Annotation.Builder> getAnnotationBuilderList() { return getAnnotationFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< userfeedback.Annotations.Annotation, userfeedback.Annotations.Annotation.Builder, userfeedback.Annotations.AnnotationOrBuilder> getAnnotationFieldBuilder() { if (annotationBuilder_ == null) { annotationBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< userfeedback.Annotations.Annotation, userfeedback.Annotations.Annotation.Builder, userfeedback.Annotations.AnnotationOrBuilder>( annotation_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); annotation_ = null; } return annotationBuilder_; } // optional string suggestion_id = 5; private java.lang.Object suggestionId_ = ""; /** * <code>optional string suggestion_id = 5;</code> * * <pre> * The ID of the suggestion selected by the user. * Possible values: * - Not set if no suggestions were shown, either because the version of * the client did not support suggestions, suggestions were disabled or * no matching suggestions were found. * - NONE_OF_THE_ABOVE if the user has chosen "None of the above". * - Empty string if suggestions were shown but the user hasn't chosen * any of them (and also she hasn't chosen "None of the above"). * - Actual suggestion identifier as returned from the server. * </pre> */ public boolean hasSuggestionId() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** * <code>optional string suggestion_id = 5;</code> * * <pre> * The ID of the suggestion selected by the user. * Possible values: * - Not set if no suggestions were shown, either because the version of * the client did not support suggestions, suggestions were disabled or * no matching suggestions were found. * - NONE_OF_THE_ABOVE if the user has chosen "None of the above". * - Empty string if suggestions were shown but the user hasn't chosen * any of them (and also she hasn't chosen "None of the above"). * - Actual suggestion identifier as returned from the server. * </pre> */ public java.lang.String getSuggestionId() { java.lang.Object ref = suggestionId_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); suggestionId_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string suggestion_id = 5;</code> * * <pre> * The ID of the suggestion selected by the user. * Possible values: * - Not set if no suggestions were shown, either because the version of * the client did not support suggestions, suggestions were disabled or * no matching suggestions were found. * - NONE_OF_THE_ABOVE if the user has chosen "None of the above". * - Empty string if suggestions were shown but the user hasn't chosen * any of them (and also she hasn't chosen "None of the above"). * - Actual suggestion identifier as returned from the server. * </pre> */ public com.google.protobuf.ByteString getSuggestionIdBytes() { java.lang.Object ref = suggestionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); suggestionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string suggestion_id = 5;</code> * * <pre> * The ID of the suggestion selected by the user. * Possible values: * - Not set if no suggestions were shown, either because the version of * the client did not support suggestions, suggestions were disabled or * no matching suggestions were found. * - NONE_OF_THE_ABOVE if the user has chosen "None of the above". * - Empty string if suggestions were shown but the user hasn't chosen * any of them (and also she hasn't chosen "None of the above"). * - Actual suggestion identifier as returned from the server. * </pre> */ public Builder setSuggestionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; suggestionId_ = value; onChanged(); return this; } /** * <code>optional string suggestion_id = 5;</code> * * <pre> * The ID of the suggestion selected by the user. * Possible values: * - Not set if no suggestions were shown, either because the version of * the client did not support suggestions, suggestions were disabled or * no matching suggestions were found. * - NONE_OF_THE_ABOVE if the user has chosen "None of the above". * - Empty string if suggestions were shown but the user hasn't chosen * any of them (and also she hasn't chosen "None of the above"). * - Actual suggestion identifier as returned from the server. * </pre> */ public Builder clearSuggestionId() { bitField0_ = (bitField0_ & ~0x00000010); suggestionId_ = getDefaultInstance().getSuggestionId(); onChanged(); return this; } /** * <code>optional string suggestion_id = 5;</code> * * <pre> * The ID of the suggestion selected by the user. * Possible values: * - Not set if no suggestions were shown, either because the version of * the client did not support suggestions, suggestions were disabled or * no matching suggestions were found. * - NONE_OF_THE_ABOVE if the user has chosen "None of the above". * - Empty string if suggestions were shown but the user hasn't chosen * any of them (and also she hasn't chosen "None of the above"). * - Actual suggestion identifier as returned from the server. * </pre> */ public Builder setSuggestionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; suggestionId_ = value; onChanged(); return this; } // repeated .userfeedback.ProductSpecificData product_specific_data = 6; private java.util.List<userfeedback.Web.ProductSpecificData> productSpecificData_ = java.util.Collections.emptyList(); private void ensureProductSpecificDataIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { productSpecificData_ = new java.util.ArrayList<userfeedback.Web.ProductSpecificData>(productSpecificData_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilder< userfeedback.Web.ProductSpecificData, userfeedback.Web.ProductSpecificData.Builder, userfeedback.Web.ProductSpecificDataOrBuilder> productSpecificDataBuilder_; /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ public java.util.List<userfeedback.Web.ProductSpecificData> getProductSpecificDataList() { if (productSpecificDataBuilder_ == null) { return java.util.Collections.unmodifiableList(productSpecificData_); } else { return productSpecificDataBuilder_.getMessageList(); } } /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ public int getProductSpecificDataCount() { if (productSpecificDataBuilder_ == null) { return productSpecificData_.size(); } else { return productSpecificDataBuilder_.getCount(); } } /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ public userfeedback.Web.ProductSpecificData getProductSpecificData(int index) { if (productSpecificDataBuilder_ == null) { return productSpecificData_.get(index); } else { return productSpecificDataBuilder_.getMessage(index); } } /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ public Builder setProductSpecificData( int index, userfeedback.Web.ProductSpecificData value) { if (productSpecificDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProductSpecificDataIsMutable(); productSpecificData_.set(index, value); onChanged(); } else { productSpecificDataBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ public Builder setProductSpecificData( int index, userfeedback.Web.ProductSpecificData.Builder builderForValue) { if (productSpecificDataBuilder_ == null) { ensureProductSpecificDataIsMutable(); productSpecificData_.set(index, builderForValue.build()); onChanged(); } else { productSpecificDataBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ public Builder addProductSpecificData(userfeedback.Web.ProductSpecificData value) { if (productSpecificDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProductSpecificDataIsMutable(); productSpecificData_.add(value); onChanged(); } else { productSpecificDataBuilder_.addMessage(value); } return this; } /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ public Builder addProductSpecificData( int index, userfeedback.Web.ProductSpecificData value) { if (productSpecificDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureProductSpecificDataIsMutable(); productSpecificData_.add(index, value); onChanged(); } else { productSpecificDataBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ public Builder addProductSpecificData( userfeedback.Web.ProductSpecificData.Builder builderForValue) { if (productSpecificDataBuilder_ == null) { ensureProductSpecificDataIsMutable(); productSpecificData_.add(builderForValue.build()); onChanged(); } else { productSpecificDataBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ public Builder addProductSpecificData( int index, userfeedback.Web.ProductSpecificData.Builder builderForValue) { if (productSpecificDataBuilder_ == null) { ensureProductSpecificDataIsMutable(); productSpecificData_.add(index, builderForValue.build()); onChanged(); } else { productSpecificDataBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ public Builder addAllProductSpecificData( java.lang.Iterable<? extends userfeedback.Web.ProductSpecificData> values) { if (productSpecificDataBuilder_ == null) { ensureProductSpecificDataIsMutable(); super.addAll(values, productSpecificData_); onChanged(); } else { productSpecificDataBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ public Builder clearProductSpecificData() { if (productSpecificDataBuilder_ == null) { productSpecificData_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { productSpecificDataBuilder_.clear(); } return this; } /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ public Builder removeProductSpecificData(int index) { if (productSpecificDataBuilder_ == null) { ensureProductSpecificDataIsMutable(); productSpecificData_.remove(index); onChanged(); } else { productSpecificDataBuilder_.remove(index); } return this; } /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ public userfeedback.Web.ProductSpecificData.Builder getProductSpecificDataBuilder( int index) { return getProductSpecificDataFieldBuilder().getBuilder(index); } /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ public userfeedback.Web.ProductSpecificDataOrBuilder getProductSpecificDataOrBuilder( int index) { if (productSpecificDataBuilder_ == null) { return productSpecificData_.get(index); } else { return productSpecificDataBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ public java.util.List<? extends userfeedback.Web.ProductSpecificDataOrBuilder> getProductSpecificDataOrBuilderList() { if (productSpecificDataBuilder_ != null) { return productSpecificDataBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(productSpecificData_); } } /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ public userfeedback.Web.ProductSpecificData.Builder addProductSpecificDataBuilder() { return getProductSpecificDataFieldBuilder().addBuilder( userfeedback.Web.ProductSpecificData.getDefaultInstance()); } /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ public userfeedback.Web.ProductSpecificData.Builder addProductSpecificDataBuilder( int index) { return getProductSpecificDataFieldBuilder().addBuilder( index, userfeedback.Web.ProductSpecificData.getDefaultInstance()); } /** * <code>repeated .userfeedback.ProductSpecificData product_specific_data = 6;</code> */ public java.util.List<userfeedback.Web.ProductSpecificData.Builder> getProductSpecificDataBuilderList() { return getProductSpecificDataFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< userfeedback.Web.ProductSpecificData, userfeedback.Web.ProductSpecificData.Builder, userfeedback.Web.ProductSpecificDataOrBuilder> getProductSpecificDataFieldBuilder() { if (productSpecificDataBuilder_ == null) { productSpecificDataBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< userfeedback.Web.ProductSpecificData, userfeedback.Web.ProductSpecificData.Builder, userfeedback.Web.ProductSpecificDataOrBuilder>( productSpecificData_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); productSpecificData_ = null; } return productSpecificDataBuilder_; } // repeated .userfeedback.ProductSpecificData additional_form_content = 7; private java.util.List<userfeedback.Web.ProductSpecificData> additionalFormContent_ = java.util.Collections.emptyList(); private void ensureAdditionalFormContentIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { additionalFormContent_ = new java.util.ArrayList<userfeedback.Web.ProductSpecificData>(additionalFormContent_); bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilder< userfeedback.Web.ProductSpecificData, userfeedback.Web.ProductSpecificData.Builder, userfeedback.Web.ProductSpecificDataOrBuilder> additionalFormContentBuilder_; /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ public java.util.List<userfeedback.Web.ProductSpecificData> getAdditionalFormContentList() { if (additionalFormContentBuilder_ == null) { return java.util.Collections.unmodifiableList(additionalFormContent_); } else { return additionalFormContentBuilder_.getMessageList(); } } /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ public int getAdditionalFormContentCount() { if (additionalFormContentBuilder_ == null) { return additionalFormContent_.size(); } else { return additionalFormContentBuilder_.getCount(); } } /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ public userfeedback.Web.ProductSpecificData getAdditionalFormContent(int index) { if (additionalFormContentBuilder_ == null) { return additionalFormContent_.get(index); } else { return additionalFormContentBuilder_.getMessage(index); } } /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ public Builder setAdditionalFormContent( int index, userfeedback.Web.ProductSpecificData value) { if (additionalFormContentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAdditionalFormContentIsMutable(); additionalFormContent_.set(index, value); onChanged(); } else { additionalFormContentBuilder_.setMessage(index, value); } return this; } /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ public Builder setAdditionalFormContent( int index, userfeedback.Web.ProductSpecificData.Builder builderForValue) { if (additionalFormContentBuilder_ == null) { ensureAdditionalFormContentIsMutable(); additionalFormContent_.set(index, builderForValue.build()); onChanged(); } else { additionalFormContentBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ public Builder addAdditionalFormContent(userfeedback.Web.ProductSpecificData value) { if (additionalFormContentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAdditionalFormContentIsMutable(); additionalFormContent_.add(value); onChanged(); } else { additionalFormContentBuilder_.addMessage(value); } return this; } /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ public Builder addAdditionalFormContent( int index, userfeedback.Web.ProductSpecificData value) { if (additionalFormContentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAdditionalFormContentIsMutable(); additionalFormContent_.add(index, value); onChanged(); } else { additionalFormContentBuilder_.addMessage(index, value); } return this; } /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ public Builder addAdditionalFormContent( userfeedback.Web.ProductSpecificData.Builder builderForValue) { if (additionalFormContentBuilder_ == null) { ensureAdditionalFormContentIsMutable(); additionalFormContent_.add(builderForValue.build()); onChanged(); } else { additionalFormContentBuilder_.addMessage(builderForValue.build()); } return this; } /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ public Builder addAdditionalFormContent( int index, userfeedback.Web.ProductSpecificData.Builder builderForValue) { if (additionalFormContentBuilder_ == null) { ensureAdditionalFormContentIsMutable(); additionalFormContent_.add(index, builderForValue.build()); onChanged(); } else { additionalFormContentBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ public Builder addAllAdditionalFormContent( java.lang.Iterable<? extends userfeedback.Web.ProductSpecificData> values) { if (additionalFormContentBuilder_ == null) { ensureAdditionalFormContentIsMutable(); super.addAll(values, additionalFormContent_); onChanged(); } else { additionalFormContentBuilder_.addAllMessages(values); } return this; } /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ public Builder clearAdditionalFormContent() { if (additionalFormContentBuilder_ == null) { additionalFormContent_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { additionalFormContentBuilder_.clear(); } return this; } /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ public Builder removeAdditionalFormContent(int index) { if (additionalFormContentBuilder_ == null) { ensureAdditionalFormContentIsMutable(); additionalFormContent_.remove(index); onChanged(); } else { additionalFormContentBuilder_.remove(index); } return this; } /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ public userfeedback.Web.ProductSpecificData.Builder getAdditionalFormContentBuilder( int index) { return getAdditionalFormContentFieldBuilder().getBuilder(index); } /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ public userfeedback.Web.ProductSpecificDataOrBuilder getAdditionalFormContentOrBuilder( int index) { if (additionalFormContentBuilder_ == null) { return additionalFormContent_.get(index); } else { return additionalFormContentBuilder_.getMessageOrBuilder(index); } } /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ public java.util.List<? extends userfeedback.Web.ProductSpecificDataOrBuilder> getAdditionalFormContentOrBuilderList() { if (additionalFormContentBuilder_ != null) { return additionalFormContentBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(additionalFormContent_); } } /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ public userfeedback.Web.ProductSpecificData.Builder addAdditionalFormContentBuilder() { return getAdditionalFormContentFieldBuilder().addBuilder( userfeedback.Web.ProductSpecificData.getDefaultInstance()); } /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ public userfeedback.Web.ProductSpecificData.Builder addAdditionalFormContentBuilder( int index) { return getAdditionalFormContentFieldBuilder().addBuilder( index, userfeedback.Web.ProductSpecificData.getDefaultInstance()); } /** * <code>repeated .userfeedback.ProductSpecificData additional_form_content = 7;</code> * * <pre> * Additional data from forms that is not part of the primary description. * </pre> */ public java.util.List<userfeedback.Web.ProductSpecificData.Builder> getAdditionalFormContentBuilderList() { return getAdditionalFormContentFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< userfeedback.Web.ProductSpecificData, userfeedback.Web.ProductSpecificData.Builder, userfeedback.Web.ProductSpecificDataOrBuilder> getAdditionalFormContentFieldBuilder() { if (additionalFormContentBuilder_ == null) { additionalFormContentBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< userfeedback.Web.ProductSpecificData, userfeedback.Web.ProductSpecificData.Builder, userfeedback.Web.ProductSpecificDataOrBuilder>( additionalFormContent_, ((bitField0_ & 0x00000040) == 0x00000040), getParentForChildren(), isClean()); additionalFormContent_ = null; } return additionalFormContentBuilder_; } // @@protoc_insertion_point(builder_scope:userfeedback.WebData) } static { defaultInstance = new WebData(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:userfeedback.WebData) } public interface ExtensionDetailsOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string extension_version = 1; /** * <code>required string extension_version = 1;</code> * * <pre> * Indicates browser and mpm release. * </pre> */ boolean hasExtensionVersion(); /** * <code>required string extension_version = 1;</code> * * <pre> * Indicates browser and mpm release. * </pre> */ java.lang.String getExtensionVersion(); /** * <code>required string extension_version = 1;</code> * * <pre> * Indicates browser and mpm release. * </pre> */ com.google.protobuf.ByteString getExtensionVersionBytes(); // required string protocol_version = 2; /** * <code>required string protocol_version = 2;</code> */ boolean hasProtocolVersion(); /** * <code>required string protocol_version = 2;</code> */ java.lang.String getProtocolVersion(); /** * <code>required string protocol_version = 2;</code> */ com.google.protobuf.ByteString getProtocolVersionBytes(); } /** * Protobuf type {@code userfeedback.ExtensionDetails} */ public static final class ExtensionDetails extends com.google.protobuf.GeneratedMessage implements ExtensionDetailsOrBuilder { // Use ExtensionDetails.newBuilder() to construct. private ExtensionDetails(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ExtensionDetails(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ExtensionDetails defaultInstance; public static ExtensionDetails getDefaultInstance() { return defaultInstance; } public ExtensionDetails getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ExtensionDetails( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; extensionVersion_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; protocolVersion_ = input.readBytes(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return userfeedback.Web.internal_static_userfeedback_ExtensionDetails_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return userfeedback.Web.internal_static_userfeedback_ExtensionDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( userfeedback.Web.ExtensionDetails.class, userfeedback.Web.ExtensionDetails.Builder.class); } public static com.google.protobuf.Parser<ExtensionDetails> PARSER = new com.google.protobuf.AbstractParser<ExtensionDetails>() { public ExtensionDetails parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ExtensionDetails(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ExtensionDetails> getParserForType() { return PARSER; } private int bitField0_; // required string extension_version = 1; public static final int EXTENSION_VERSION_FIELD_NUMBER = 1; private java.lang.Object extensionVersion_; /** * <code>required string extension_version = 1;</code> * * <pre> * Indicates browser and mpm release. * </pre> */ public boolean hasExtensionVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string extension_version = 1;</code> * * <pre> * Indicates browser and mpm release. * </pre> */ public java.lang.String getExtensionVersion() { java.lang.Object ref = extensionVersion_; 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(); if (bs.isValidUtf8()) { extensionVersion_ = s; } return s; } } /** * <code>required string extension_version = 1;</code> * * <pre> * Indicates browser and mpm release. * </pre> */ public com.google.protobuf.ByteString getExtensionVersionBytes() { java.lang.Object ref = extensionVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extensionVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required string protocol_version = 2; public static final int PROTOCOL_VERSION_FIELD_NUMBER = 2; private java.lang.Object protocolVersion_; /** * <code>required string protocol_version = 2;</code> */ public boolean hasProtocolVersion() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required string protocol_version = 2;</code> */ public java.lang.String getProtocolVersion() { java.lang.Object ref = protocolVersion_; 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(); if (bs.isValidUtf8()) { protocolVersion_ = s; } return s; } } /** * <code>required string protocol_version = 2;</code> */ public com.google.protobuf.ByteString getProtocolVersionBytes() { java.lang.Object ref = protocolVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); protocolVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { extensionVersion_ = ""; protocolVersion_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasExtensionVersion()) { memoizedIsInitialized = 0; return false; } if (!hasProtocolVersion()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getExtensionVersionBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getProtocolVersionBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getExtensionVersionBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getProtocolVersionBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static userfeedback.Web.ExtensionDetails parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static userfeedback.Web.ExtensionDetails parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static userfeedback.Web.ExtensionDetails parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static userfeedback.Web.ExtensionDetails parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static userfeedback.Web.ExtensionDetails parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static userfeedback.Web.ExtensionDetails parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static userfeedback.Web.ExtensionDetails parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static userfeedback.Web.ExtensionDetails parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static userfeedback.Web.ExtensionDetails parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static userfeedback.Web.ExtensionDetails 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(userfeedback.Web.ExtensionDetails 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 userfeedback.ExtensionDetails} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements userfeedback.Web.ExtensionDetailsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return userfeedback.Web.internal_static_userfeedback_ExtensionDetails_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return userfeedback.Web.internal_static_userfeedback_ExtensionDetails_fieldAccessorTable .ensureFieldAccessorsInitialized( userfeedback.Web.ExtensionDetails.class, userfeedback.Web.ExtensionDetails.Builder.class); } // Construct using userfeedback.Web.ExtensionDetails.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(); extensionVersion_ = ""; bitField0_ = (bitField0_ & ~0x00000001); protocolVersion_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return userfeedback.Web.internal_static_userfeedback_ExtensionDetails_descriptor; } public userfeedback.Web.ExtensionDetails getDefaultInstanceForType() { return userfeedback.Web.ExtensionDetails.getDefaultInstance(); } public userfeedback.Web.ExtensionDetails build() { userfeedback.Web.ExtensionDetails result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public userfeedback.Web.ExtensionDetails buildPartial() { userfeedback.Web.ExtensionDetails result = new userfeedback.Web.ExtensionDetails(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.extensionVersion_ = extensionVersion_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.protocolVersion_ = protocolVersion_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof userfeedback.Web.ExtensionDetails) { return mergeFrom((userfeedback.Web.ExtensionDetails)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(userfeedback.Web.ExtensionDetails other) { if (other == userfeedback.Web.ExtensionDetails.getDefaultInstance()) return this; if (other.hasExtensionVersion()) { bitField0_ |= 0x00000001; extensionVersion_ = other.extensionVersion_; onChanged(); } if (other.hasProtocolVersion()) { bitField0_ |= 0x00000002; protocolVersion_ = other.protocolVersion_; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasExtensionVersion()) { return false; } if (!hasProtocolVersion()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { userfeedback.Web.ExtensionDetails parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (userfeedback.Web.ExtensionDetails) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string extension_version = 1; private java.lang.Object extensionVersion_ = ""; /** * <code>required string extension_version = 1;</code> * * <pre> * Indicates browser and mpm release. * </pre> */ public boolean hasExtensionVersion() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string extension_version = 1;</code> * * <pre> * Indicates browser and mpm release. * </pre> */ public java.lang.String getExtensionVersion() { java.lang.Object ref = extensionVersion_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); extensionVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>required string extension_version = 1;</code> * * <pre> * Indicates browser and mpm release. * </pre> */ public com.google.protobuf.ByteString getExtensionVersionBytes() { java.lang.Object ref = extensionVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); extensionVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>required string extension_version = 1;</code> * * <pre> * Indicates browser and mpm release. * </pre> */ public Builder setExtensionVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; extensionVersion_ = value; onChanged(); return this; } /** * <code>required string extension_version = 1;</code> * * <pre> * Indicates browser and mpm release. * </pre> */ public Builder clearExtensionVersion() { bitField0_ = (bitField0_ & ~0x00000001); extensionVersion_ = getDefaultInstance().getExtensionVersion(); onChanged(); return this; } /** * <code>required string extension_version = 1;</code> * * <pre> * Indicates browser and mpm release. * </pre> */ public Builder setExtensionVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; extensionVersion_ = value; onChanged(); return this; } // required string protocol_version = 2; private java.lang.Object protocolVersion_ = ""; /** * <code>required string protocol_version = 2;</code> */ public boolean hasProtocolVersion() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>required string protocol_version = 2;</code> */ public java.lang.String getProtocolVersion() { java.lang.Object ref = protocolVersion_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); protocolVersion_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>required string protocol_version = 2;</code> */ public com.google.protobuf.ByteString getProtocolVersionBytes() { java.lang.Object ref = protocolVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); protocolVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>required string protocol_version = 2;</code> */ public Builder setProtocolVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; protocolVersion_ = value; onChanged(); return this; } /** * <code>required string protocol_version = 2;</code> */ public Builder clearProtocolVersion() { bitField0_ = (bitField0_ & ~0x00000002); protocolVersion_ = getDefaultInstance().getProtocolVersion(); onChanged(); return this; } /** * <code>required string protocol_version = 2;</code> */ public Builder setProtocolVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; protocolVersion_ = value; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:userfeedback.ExtensionDetails) } static { defaultInstance = new ExtensionDetails(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:userfeedback.ExtensionDetails) } public interface InternalWebDataOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated string email_receiver = 1; /** * <code>repeated string email_receiver = 1;</code> * * <pre> * List of user names in google.com domain to which feedback should be sent * directly apart from submitting it to server. * </pre> */ java.util.List<java.lang.String> getEmailReceiverList(); /** * <code>repeated string email_receiver = 1;</code> * * <pre> * List of user names in google.com domain to which feedback should be sent * directly apart from submitting it to server. * </pre> */ int getEmailReceiverCount(); /** * <code>repeated string email_receiver = 1;</code> * * <pre> * List of user names in google.com domain to which feedback should be sent * directly apart from submitting it to server. * </pre> */ java.lang.String getEmailReceiver(int index); /** * <code>repeated string email_receiver = 1;</code> * * <pre> * List of user names in google.com domain to which feedback should be sent * directly apart from submitting it to server. * </pre> */ com.google.protobuf.ByteString getEmailReceiverBytes(int index); // optional string subject = 2; /** * <code>optional string subject = 2;</code> * * <pre> * Subject of the problem entered by user. * </pre> */ boolean hasSubject(); /** * <code>optional string subject = 2;</code> * * <pre> * Subject of the problem entered by user. * </pre> */ java.lang.String getSubject(); /** * <code>optional string subject = 2;</code> * * <pre> * Subject of the problem entered by user. * </pre> */ com.google.protobuf.ByteString getSubjectBytes(); // optional bool DEPRECATED_urgent = 3 [default = false]; /** * <code>optional bool DEPRECATED_urgent = 3 [default = false];</code> * * <pre> * If this flag is set then product support team should be notified * immediately. * </pre> */ boolean hasDEPRECATEDUrgent(); /** * <code>optional bool DEPRECATED_urgent = 3 [default = false];</code> * * <pre> * If this flag is set then product support team should be notified * immediately. * </pre> */ boolean getDEPRECATEDUrgent(); } /** * Protobuf type {@code userfeedback.InternalWebData} * * <pre> * Additional data sent by the internal version. * </pre> */ public static final class InternalWebData extends com.google.protobuf.GeneratedMessage implements InternalWebDataOrBuilder { // Use InternalWebData.newBuilder() to construct. private InternalWebData(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private InternalWebData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final InternalWebData defaultInstance; public static InternalWebData getDefaultInstance() { return defaultInstance; } public InternalWebData getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private InternalWebData( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { emailReceiver_ = new com.google.protobuf.LazyStringArrayList(); mutable_bitField0_ |= 0x00000001; } emailReceiver_.add(input.readBytes()); break; } case 18: { bitField0_ |= 0x00000001; subject_ = input.readBytes(); break; } case 24: { bitField0_ |= 0x00000002; dEPRECATEDUrgent_ = input.readBool(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { emailReceiver_ = new com.google.protobuf.UnmodifiableLazyStringList(emailReceiver_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return userfeedback.Web.internal_static_userfeedback_InternalWebData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return userfeedback.Web.internal_static_userfeedback_InternalWebData_fieldAccessorTable .ensureFieldAccessorsInitialized( userfeedback.Web.InternalWebData.class, userfeedback.Web.InternalWebData.Builder.class); } public static com.google.protobuf.Parser<InternalWebData> PARSER = new com.google.protobuf.AbstractParser<InternalWebData>() { public InternalWebData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InternalWebData(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<InternalWebData> getParserForType() { return PARSER; } private int bitField0_; // repeated string email_receiver = 1; public static final int EMAIL_RECEIVER_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList emailReceiver_; /** * <code>repeated string email_receiver = 1;</code> * * <pre> * List of user names in google.com domain to which feedback should be sent * directly apart from submitting it to server. * </pre> */ public java.util.List<java.lang.String> getEmailReceiverList() { return emailReceiver_; } /** * <code>repeated string email_receiver = 1;</code> * * <pre> * List of user names in google.com domain to which feedback should be sent * directly apart from submitting it to server. * </pre> */ public int getEmailReceiverCount() { return emailReceiver_.size(); } /** * <code>repeated string email_receiver = 1;</code> * * <pre> * List of user names in google.com domain to which feedback should be sent * directly apart from submitting it to server. * </pre> */ public java.lang.String getEmailReceiver(int index) { return emailReceiver_.get(index); } /** * <code>repeated string email_receiver = 1;</code> * * <pre> * List of user names in google.com domain to which feedback should be sent * directly apart from submitting it to server. * </pre> */ public com.google.protobuf.ByteString getEmailReceiverBytes(int index) { return emailReceiver_.getByteString(index); } // optional string subject = 2; public static final int SUBJECT_FIELD_NUMBER = 2; private java.lang.Object subject_; /** * <code>optional string subject = 2;</code> * * <pre> * Subject of the problem entered by user. * </pre> */ public boolean hasSubject() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional string subject = 2;</code> * * <pre> * Subject of the problem entered by user. * </pre> */ public java.lang.String getSubject() { java.lang.Object ref = subject_; 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(); if (bs.isValidUtf8()) { subject_ = s; } return s; } } /** * <code>optional string subject = 2;</code> * * <pre> * Subject of the problem entered by user. * </pre> */ public com.google.protobuf.ByteString getSubjectBytes() { java.lang.Object ref = subject_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subject_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional bool DEPRECATED_urgent = 3 [default = false]; public static final int DEPRECATED_URGENT_FIELD_NUMBER = 3; private boolean dEPRECATEDUrgent_; /** * <code>optional bool DEPRECATED_urgent = 3 [default = false];</code> * * <pre> * If this flag is set then product support team should be notified * immediately. * </pre> */ public boolean hasDEPRECATEDUrgent() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional bool DEPRECATED_urgent = 3 [default = false];</code> * * <pre> * If this flag is set then product support team should be notified * immediately. * </pre> */ public boolean getDEPRECATEDUrgent() { return dEPRECATEDUrgent_; } private void initFields() { emailReceiver_ = com.google.protobuf.LazyStringArrayList.EMPTY; subject_ = ""; dEPRECATEDUrgent_ = false; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < emailReceiver_.size(); i++) { output.writeBytes(1, emailReceiver_.getByteString(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(2, getSubjectBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(3, dEPRECATEDUrgent_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < emailReceiver_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(emailReceiver_.getByteString(i)); } size += dataSize; size += 1 * getEmailReceiverList().size(); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getSubjectBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, dEPRECATEDUrgent_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static userfeedback.Web.InternalWebData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static userfeedback.Web.InternalWebData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static userfeedback.Web.InternalWebData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static userfeedback.Web.InternalWebData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static userfeedback.Web.InternalWebData parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static userfeedback.Web.InternalWebData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static userfeedback.Web.InternalWebData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static userfeedback.Web.InternalWebData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static userfeedback.Web.InternalWebData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static userfeedback.Web.InternalWebData 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(userfeedback.Web.InternalWebData 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 userfeedback.InternalWebData} * * <pre> * Additional data sent by the internal version. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements userfeedback.Web.InternalWebDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return userfeedback.Web.internal_static_userfeedback_InternalWebData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return userfeedback.Web.internal_static_userfeedback_InternalWebData_fieldAccessorTable .ensureFieldAccessorsInitialized( userfeedback.Web.InternalWebData.class, userfeedback.Web.InternalWebData.Builder.class); } // Construct using userfeedback.Web.InternalWebData.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(); emailReceiver_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); subject_ = ""; bitField0_ = (bitField0_ & ~0x00000002); dEPRECATEDUrgent_ = false; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return userfeedback.Web.internal_static_userfeedback_InternalWebData_descriptor; } public userfeedback.Web.InternalWebData getDefaultInstanceForType() { return userfeedback.Web.InternalWebData.getDefaultInstance(); } public userfeedback.Web.InternalWebData build() { userfeedback.Web.InternalWebData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public userfeedback.Web.InternalWebData buildPartial() { userfeedback.Web.InternalWebData result = new userfeedback.Web.InternalWebData(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { emailReceiver_ = new com.google.protobuf.UnmodifiableLazyStringList( emailReceiver_); bitField0_ = (bitField0_ & ~0x00000001); } result.emailReceiver_ = emailReceiver_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000001; } result.subject_ = subject_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.dEPRECATEDUrgent_ = dEPRECATEDUrgent_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof userfeedback.Web.InternalWebData) { return mergeFrom((userfeedback.Web.InternalWebData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(userfeedback.Web.InternalWebData other) { if (other == userfeedback.Web.InternalWebData.getDefaultInstance()) return this; if (!other.emailReceiver_.isEmpty()) { if (emailReceiver_.isEmpty()) { emailReceiver_ = other.emailReceiver_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEmailReceiverIsMutable(); emailReceiver_.addAll(other.emailReceiver_); } onChanged(); } if (other.hasSubject()) { bitField0_ |= 0x00000002; subject_ = other.subject_; onChanged(); } if (other.hasDEPRECATEDUrgent()) { setDEPRECATEDUrgent(other.getDEPRECATEDUrgent()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { userfeedback.Web.InternalWebData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (userfeedback.Web.InternalWebData) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // repeated string email_receiver = 1; private com.google.protobuf.LazyStringList emailReceiver_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureEmailReceiverIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { emailReceiver_ = new com.google.protobuf.LazyStringArrayList(emailReceiver_); bitField0_ |= 0x00000001; } } /** * <code>repeated string email_receiver = 1;</code> * * <pre> * List of user names in google.com domain to which feedback should be sent * directly apart from submitting it to server. * </pre> */ public java.util.List<java.lang.String> getEmailReceiverList() { return java.util.Collections.unmodifiableList(emailReceiver_); } /** * <code>repeated string email_receiver = 1;</code> * * <pre> * List of user names in google.com domain to which feedback should be sent * directly apart from submitting it to server. * </pre> */ public int getEmailReceiverCount() { return emailReceiver_.size(); } /** * <code>repeated string email_receiver = 1;</code> * * <pre> * List of user names in google.com domain to which feedback should be sent * directly apart from submitting it to server. * </pre> */ public java.lang.String getEmailReceiver(int index) { return emailReceiver_.get(index); } /** * <code>repeated string email_receiver = 1;</code> * * <pre> * List of user names in google.com domain to which feedback should be sent * directly apart from submitting it to server. * </pre> */ public com.google.protobuf.ByteString getEmailReceiverBytes(int index) { return emailReceiver_.getByteString(index); } /** * <code>repeated string email_receiver = 1;</code> * * <pre> * List of user names in google.com domain to which feedback should be sent * directly apart from submitting it to server. * </pre> */ public Builder setEmailReceiver( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEmailReceiverIsMutable(); emailReceiver_.set(index, value); onChanged(); return this; } /** * <code>repeated string email_receiver = 1;</code> * * <pre> * List of user names in google.com domain to which feedback should be sent * directly apart from submitting it to server. * </pre> */ public Builder addEmailReceiver( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureEmailReceiverIsMutable(); emailReceiver_.add(value); onChanged(); return this; } /** * <code>repeated string email_receiver = 1;</code> * * <pre> * List of user names in google.com domain to which feedback should be sent * directly apart from submitting it to server. * </pre> */ public Builder addAllEmailReceiver( java.lang.Iterable<java.lang.String> values) { ensureEmailReceiverIsMutable(); super.addAll(values, emailReceiver_); onChanged(); return this; } /** * <code>repeated string email_receiver = 1;</code> * * <pre> * List of user names in google.com domain to which feedback should be sent * directly apart from submitting it to server. * </pre> */ public Builder clearEmailReceiver() { emailReceiver_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * <code>repeated string email_receiver = 1;</code> * * <pre> * List of user names in google.com domain to which feedback should be sent * directly apart from submitting it to server. * </pre> */ public Builder addEmailReceiverBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureEmailReceiverIsMutable(); emailReceiver_.add(value); onChanged(); return this; } // optional string subject = 2; private java.lang.Object subject_ = ""; /** * <code>optional string subject = 2;</code> * * <pre> * Subject of the problem entered by user. * </pre> */ public boolean hasSubject() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string subject = 2;</code> * * <pre> * Subject of the problem entered by user. * </pre> */ public java.lang.String getSubject() { java.lang.Object ref = subject_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); subject_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string subject = 2;</code> * * <pre> * Subject of the problem entered by user. * </pre> */ public com.google.protobuf.ByteString getSubjectBytes() { java.lang.Object ref = subject_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); subject_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string subject = 2;</code> * * <pre> * Subject of the problem entered by user. * </pre> */ public Builder setSubject( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; subject_ = value; onChanged(); return this; } /** * <code>optional string subject = 2;</code> * * <pre> * Subject of the problem entered by user. * </pre> */ public Builder clearSubject() { bitField0_ = (bitField0_ & ~0x00000002); subject_ = getDefaultInstance().getSubject(); onChanged(); return this; } /** * <code>optional string subject = 2;</code> * * <pre> * Subject of the problem entered by user. * </pre> */ public Builder setSubjectBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; subject_ = value; onChanged(); return this; } // optional bool DEPRECATED_urgent = 3 [default = false]; private boolean dEPRECATEDUrgent_ ; /** * <code>optional bool DEPRECATED_urgent = 3 [default = false];</code> * * <pre> * If this flag is set then product support team should be notified * immediately. * </pre> */ public boolean hasDEPRECATEDUrgent() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional bool DEPRECATED_urgent = 3 [default = false];</code> * * <pre> * If this flag is set then product support team should be notified * immediately. * </pre> */ public boolean getDEPRECATEDUrgent() { return dEPRECATEDUrgent_; } /** * <code>optional bool DEPRECATED_urgent = 3 [default = false];</code> * * <pre> * If this flag is set then product support team should be notified * immediately. * </pre> */ public Builder setDEPRECATEDUrgent(boolean value) { bitField0_ |= 0x00000004; dEPRECATEDUrgent_ = value; onChanged(); return this; } /** * <code>optional bool DEPRECATED_urgent = 3 [default = false];</code> * * <pre> * If this flag is set then product support team should be notified * immediately. * </pre> */ public Builder clearDEPRECATEDUrgent() { bitField0_ = (bitField0_ & ~0x00000004); dEPRECATEDUrgent_ = false; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:userfeedback.InternalWebData) } static { defaultInstance = new InternalWebData(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:userfeedback.InternalWebData) } public interface ProductSpecificDataOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string key = 1; /** * <code>required string key = 1;</code> */ boolean hasKey(); /** * <code>required string key = 1;</code> */ java.lang.String getKey(); /** * <code>required string key = 1;</code> */ com.google.protobuf.ByteString getKeyBytes(); // optional string value = 2; /** * <code>optional string value = 2;</code> */ boolean hasValue(); /** * <code>optional string value = 2;</code> */ java.lang.String getValue(); /** * <code>optional string value = 2;</code> */ com.google.protobuf.ByteString getValueBytes(); // optional .userfeedback.ProductSpecificData.Type type = 3 [default = STRING]; /** * <code>optional .userfeedback.ProductSpecificData.Type type = 3 [default = STRING];</code> */ boolean hasType(); /** * <code>optional .userfeedback.ProductSpecificData.Type type = 3 [default = STRING];</code> */ userfeedback.Web.ProductSpecificData.Type getType(); } /** * Protobuf type {@code userfeedback.ProductSpecificData} * * <pre> * Product specific data. Contains one key/value pair that is specific to the * product for which feedback is submitted, and a type for the PSD. * </pre> */ public static final class ProductSpecificData extends com.google.protobuf.GeneratedMessage implements ProductSpecificDataOrBuilder { // Use ProductSpecificData.newBuilder() to construct. private ProductSpecificData(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private ProductSpecificData(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final ProductSpecificData defaultInstance; public static ProductSpecificData getDefaultInstance() { return defaultInstance; } public ProductSpecificData getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ProductSpecificData( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 10: { bitField0_ |= 0x00000001; key_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; value_ = input.readBytes(); break; } case 24: { int rawValue = input.readEnum(); userfeedback.Web.ProductSpecificData.Type value = userfeedback.Web.ProductSpecificData.Type.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { bitField0_ |= 0x00000004; type_ = value; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return userfeedback.Web.internal_static_userfeedback_ProductSpecificData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return userfeedback.Web.internal_static_userfeedback_ProductSpecificData_fieldAccessorTable .ensureFieldAccessorsInitialized( userfeedback.Web.ProductSpecificData.class, userfeedback.Web.ProductSpecificData.Builder.class); } public static com.google.protobuf.Parser<ProductSpecificData> PARSER = new com.google.protobuf.AbstractParser<ProductSpecificData>() { public ProductSpecificData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ProductSpecificData(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<ProductSpecificData> getParserForType() { return PARSER; } /** * Protobuf enum {@code userfeedback.ProductSpecificData.Type} */ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /** * <code>STRING = 1;</code> */ STRING(0, 1), /** * <code>ENUM = 2;</code> */ ENUM(1, 2), /** * <code>NUMBER = 3;</code> */ NUMBER(2, 3), ; /** * <code>STRING = 1;</code> */ public static final int STRING_VALUE = 1; /** * <code>ENUM = 2;</code> */ public static final int ENUM_VALUE = 2; /** * <code>NUMBER = 3;</code> */ public static final int NUMBER_VALUE = 3; public final int getNumber() { return value; } public static Type valueOf(int value) { switch (value) { case 1: return STRING; case 2: return ENUM; case 3: return NUMBER; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<Type> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<Type> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<Type>() { public Type findValueByNumber(int number) { return Type.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return userfeedback.Web.ProductSpecificData.getDescriptor().getEnumTypes().get(0); } private static final Type[] VALUES = values(); public static Type valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private Type(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:userfeedback.ProductSpecificData.Type) } private int bitField0_; // required string key = 1; public static final int KEY_FIELD_NUMBER = 1; private java.lang.Object key_; /** * <code>required string key = 1;</code> */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string key = 1;</code> */ public java.lang.String getKey() { java.lang.Object ref = key_; 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(); if (bs.isValidUtf8()) { key_ = s; } return s; } } /** * <code>required string key = 1;</code> */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string value = 2; public static final int VALUE_FIELD_NUMBER = 2; private java.lang.Object value_; /** * <code>optional string value = 2;</code> */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string value = 2;</code> */ public java.lang.String getValue() { java.lang.Object ref = value_; 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(); if (bs.isValidUtf8()) { value_ = s; } return s; } } /** * <code>optional string value = 2;</code> */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional .userfeedback.ProductSpecificData.Type type = 3 [default = STRING]; public static final int TYPE_FIELD_NUMBER = 3; private userfeedback.Web.ProductSpecificData.Type type_; /** * <code>optional .userfeedback.ProductSpecificData.Type type = 3 [default = STRING];</code> */ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .userfeedback.ProductSpecificData.Type type = 3 [default = STRING];</code> */ public userfeedback.Web.ProductSpecificData.Type getType() { return type_; } private void initFields() { key_ = ""; value_ = ""; type_ = userfeedback.Web.ProductSpecificData.Type.STRING; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasKey()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getKeyBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getValueBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeEnum(3, type_.getNumber()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getKeyBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getValueBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, type_.getNumber()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static userfeedback.Web.ProductSpecificData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static userfeedback.Web.ProductSpecificData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static userfeedback.Web.ProductSpecificData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static userfeedback.Web.ProductSpecificData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static userfeedback.Web.ProductSpecificData parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static userfeedback.Web.ProductSpecificData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static userfeedback.Web.ProductSpecificData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static userfeedback.Web.ProductSpecificData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static userfeedback.Web.ProductSpecificData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static userfeedback.Web.ProductSpecificData 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(userfeedback.Web.ProductSpecificData 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 userfeedback.ProductSpecificData} * * <pre> * Product specific data. Contains one key/value pair that is specific to the * product for which feedback is submitted, and a type for the PSD. * </pre> */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements userfeedback.Web.ProductSpecificDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return userfeedback.Web.internal_static_userfeedback_ProductSpecificData_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return userfeedback.Web.internal_static_userfeedback_ProductSpecificData_fieldAccessorTable .ensureFieldAccessorsInitialized( userfeedback.Web.ProductSpecificData.class, userfeedback.Web.ProductSpecificData.Builder.class); } // Construct using userfeedback.Web.ProductSpecificData.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(); key_ = ""; bitField0_ = (bitField0_ & ~0x00000001); value_ = ""; bitField0_ = (bitField0_ & ~0x00000002); type_ = userfeedback.Web.ProductSpecificData.Type.STRING; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return userfeedback.Web.internal_static_userfeedback_ProductSpecificData_descriptor; } public userfeedback.Web.ProductSpecificData getDefaultInstanceForType() { return userfeedback.Web.ProductSpecificData.getDefaultInstance(); } public userfeedback.Web.ProductSpecificData build() { userfeedback.Web.ProductSpecificData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public userfeedback.Web.ProductSpecificData buildPartial() { userfeedback.Web.ProductSpecificData result = new userfeedback.Web.ProductSpecificData(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.key_ = key_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.value_ = value_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.type_ = type_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof userfeedback.Web.ProductSpecificData) { return mergeFrom((userfeedback.Web.ProductSpecificData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(userfeedback.Web.ProductSpecificData other) { if (other == userfeedback.Web.ProductSpecificData.getDefaultInstance()) return this; if (other.hasKey()) { bitField0_ |= 0x00000001; key_ = other.key_; onChanged(); } if (other.hasValue()) { bitField0_ |= 0x00000002; value_ = other.value_; onChanged(); } if (other.hasType()) { setType(other.getType()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasKey()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { userfeedback.Web.ProductSpecificData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (userfeedback.Web.ProductSpecificData) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // required string key = 1; private java.lang.Object key_ = ""; /** * <code>required string key = 1;</code> */ public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>required string key = 1;</code> */ public java.lang.String getKey() { java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); key_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>required string key = 1;</code> */ public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>required string key = 1;</code> */ public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } /** * <code>required string key = 1;</code> */ public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * <code>required string key = 1;</code> */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } // optional string value = 2; private java.lang.Object value_ = ""; /** * <code>optional string value = 2;</code> */ public boolean hasValue() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional string value = 2;</code> */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); value_ = s; return s; } else { return (java.lang.String) ref; } } /** * <code>optional string value = 2;</code> */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * <code>optional string value = 2;</code> */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } /** * <code>optional string value = 2;</code> */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** * <code>optional string value = 2;</code> */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } // optional .userfeedback.ProductSpecificData.Type type = 3 [default = STRING]; private userfeedback.Web.ProductSpecificData.Type type_ = userfeedback.Web.ProductSpecificData.Type.STRING; /** * <code>optional .userfeedback.ProductSpecificData.Type type = 3 [default = STRING];</code> */ public boolean hasType() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * <code>optional .userfeedback.ProductSpecificData.Type type = 3 [default = STRING];</code> */ public userfeedback.Web.ProductSpecificData.Type getType() { return type_; } /** * <code>optional .userfeedback.ProductSpecificData.Type type = 3 [default = STRING];</code> */ public Builder setType(userfeedback.Web.ProductSpecificData.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; type_ = value; onChanged(); return this; } /** * <code>optional .userfeedback.ProductSpecificData.Type type = 3 [default = STRING];</code> */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000004); type_ = userfeedback.Web.ProductSpecificData.Type.STRING; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:userfeedback.ProductSpecificData) } static { defaultInstance = new ProductSpecificData(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:userfeedback.ProductSpecificData) } private static com.google.protobuf.Descriptors.Descriptor internal_static_userfeedback_WebData_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_userfeedback_WebData_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_userfeedback_ExtensionDetails_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_userfeedback_ExtensionDetails_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_userfeedback_InternalWebData_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_userfeedback_InternalWebData_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_userfeedback_ProductSpecificData_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_userfeedback_ProductSpecificData_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\034userfeedback/proto/web.proto\022\014userfeed" + "back\032$userfeedback/proto/annotations.pro" + "to\032\034userfeedback/proto/dom.proto\032\035userfe" + "edback/proto/math.proto\"\310\002\n\007WebData\022*\n\tn" + "avigator\030\001 \001(\0132\027.userfeedback.Navigator\022" + "9\n\021extension_details\030\002 \001(\0132\036.userfeedbac" + "k.ExtensionDetails\022\013\n\003url\030\003 \001(\t\022,\n\nannot" + "ation\030\004 \003(\0132\030.userfeedback.Annotation\022\025\n" + "\rsuggestion_id\030\005 \001(\t\022@\n\025product_specific" + "_data\030\006 \003(\0132!.userfeedback.ProductSpecif", "icData\022B\n\027additional_form_content\030\007 \003(\0132" + "!.userfeedback.ProductSpecificData\"G\n\020Ex" + "tensionDetails\022\031\n\021extension_version\030\001 \002(" + "\t\022\030\n\020protocol_version\030\002 \002(\t\"\\\n\017InternalW" + "ebData\022\026\n\016email_receiver\030\001 \003(\t\022\017\n\007subjec" + "t\030\002 \001(\t\022 \n\021DEPRECATED_urgent\030\003 \001(\010:\005fals" + "e\"\231\001\n\023ProductSpecificData\022\013\n\003key\030\001 \002(\t\022\r" + "\n\005value\030\002 \001(\t\022<\n\004type\030\003 \001(\0162&.userfeedba" + "ck.ProductSpecificData.Type:\006STRING\"(\n\004T" + "ype\022\n\n\006STRING\020\001\022\010\n\004ENUM\020\002\022\n\n\006NUMBER\020\003" }; 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; internal_static_userfeedback_WebData_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_userfeedback_WebData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_userfeedback_WebData_descriptor, new java.lang.String[] { "Navigator", "ExtensionDetails", "Url", "Annotation", "SuggestionId", "ProductSpecificData", "AdditionalFormContent", }); internal_static_userfeedback_ExtensionDetails_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_userfeedback_ExtensionDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_userfeedback_ExtensionDetails_descriptor, new java.lang.String[] { "ExtensionVersion", "ProtocolVersion", }); internal_static_userfeedback_InternalWebData_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_userfeedback_InternalWebData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_userfeedback_InternalWebData_descriptor, new java.lang.String[] { "EmailReceiver", "Subject", "DEPRECATEDUrgent", }); internal_static_userfeedback_ProductSpecificData_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_userfeedback_ProductSpecificData_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_userfeedback_ProductSpecificData_descriptor, new java.lang.String[] { "Key", "Value", "Type", }); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { userfeedback.Annotations.getDescriptor(), userfeedback.Dom.getDescriptor(), userfeedback.Math.getDescriptor(), }, assigner); } // @@protoc_insertion_point(outer_class_scope) }