1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/webrisk/v1/webrisk.proto 18 19 package com.google.webrisk.v1; 20 21 public interface RiceDeltaEncodingOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.webrisk.v1.RiceDeltaEncoding) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * The offset of the first entry in the encoded data, or, if only a single 31 * integer was encoded, that single integer's value. If the field is empty or 32 * missing, assume zero. 33 * </pre> 34 * 35 * <code>int64 first_value = 1;</code> 36 * 37 * @return The firstValue. 38 */ getFirstValue()39 long getFirstValue(); 40 41 /** 42 * 43 * 44 * <pre> 45 * The Golomb-Rice parameter, which is a number between 2 and 28. This field 46 * is missing (that is, zero) if `num_entries` is zero. 47 * </pre> 48 * 49 * <code>int32 rice_parameter = 2;</code> 50 * 51 * @return The riceParameter. 52 */ getRiceParameter()53 int getRiceParameter(); 54 55 /** 56 * 57 * 58 * <pre> 59 * The number of entries that are delta encoded in the encoded data. If only a 60 * single integer was encoded, this will be zero and the single value will be 61 * stored in `first_value`. 62 * </pre> 63 * 64 * <code>int32 entry_count = 3;</code> 65 * 66 * @return The entryCount. 67 */ getEntryCount()68 int getEntryCount(); 69 70 /** 71 * 72 * 73 * <pre> 74 * The encoded deltas that are encoded using the Golomb-Rice coder. 75 * </pre> 76 * 77 * <code>bytes encoded_data = 4;</code> 78 * 79 * @return The encodedData. 80 */ getEncodedData()81 com.google.protobuf.ByteString getEncodedData(); 82 } 83