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/privacy/dlp/v2/dlp.proto 18 19 package com.google.privacy.dlp.v2; 20 21 public interface LocationOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.privacy.dlp.v2.Location) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Zero-based byte offsets delimiting the finding. 31 * These are relative to the finding's containing element. 32 * Note that when the content is not textual, this references 33 * the UTF-8 encoded textual representation of the content. 34 * Omitted if content is an image. 35 * </pre> 36 * 37 * <code>.google.privacy.dlp.v2.Range byte_range = 1;</code> 38 * 39 * @return Whether the byteRange field is set. 40 */ hasByteRange()41 boolean hasByteRange(); 42 /** 43 * 44 * 45 * <pre> 46 * Zero-based byte offsets delimiting the finding. 47 * These are relative to the finding's containing element. 48 * Note that when the content is not textual, this references 49 * the UTF-8 encoded textual representation of the content. 50 * Omitted if content is an image. 51 * </pre> 52 * 53 * <code>.google.privacy.dlp.v2.Range byte_range = 1;</code> 54 * 55 * @return The byteRange. 56 */ getByteRange()57 com.google.privacy.dlp.v2.Range getByteRange(); 58 /** 59 * 60 * 61 * <pre> 62 * Zero-based byte offsets delimiting the finding. 63 * These are relative to the finding's containing element. 64 * Note that when the content is not textual, this references 65 * the UTF-8 encoded textual representation of the content. 66 * Omitted if content is an image. 67 * </pre> 68 * 69 * <code>.google.privacy.dlp.v2.Range byte_range = 1;</code> 70 */ getByteRangeOrBuilder()71 com.google.privacy.dlp.v2.RangeOrBuilder getByteRangeOrBuilder(); 72 73 /** 74 * 75 * 76 * <pre> 77 * Unicode character offsets delimiting the finding. 78 * These are relative to the finding's containing element. 79 * Provided when the content is text. 80 * </pre> 81 * 82 * <code>.google.privacy.dlp.v2.Range codepoint_range = 2;</code> 83 * 84 * @return Whether the codepointRange field is set. 85 */ hasCodepointRange()86 boolean hasCodepointRange(); 87 /** 88 * 89 * 90 * <pre> 91 * Unicode character offsets delimiting the finding. 92 * These are relative to the finding's containing element. 93 * Provided when the content is text. 94 * </pre> 95 * 96 * <code>.google.privacy.dlp.v2.Range codepoint_range = 2;</code> 97 * 98 * @return The codepointRange. 99 */ getCodepointRange()100 com.google.privacy.dlp.v2.Range getCodepointRange(); 101 /** 102 * 103 * 104 * <pre> 105 * Unicode character offsets delimiting the finding. 106 * These are relative to the finding's containing element. 107 * Provided when the content is text. 108 * </pre> 109 * 110 * <code>.google.privacy.dlp.v2.Range codepoint_range = 2;</code> 111 */ getCodepointRangeOrBuilder()112 com.google.privacy.dlp.v2.RangeOrBuilder getCodepointRangeOrBuilder(); 113 114 /** 115 * 116 * 117 * <pre> 118 * List of nested objects pointing to the precise location of the finding 119 * within the file or record. 120 * </pre> 121 * 122 * <code>repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;</code> 123 */ getContentLocationsList()124 java.util.List<com.google.privacy.dlp.v2.ContentLocation> getContentLocationsList(); 125 /** 126 * 127 * 128 * <pre> 129 * List of nested objects pointing to the precise location of the finding 130 * within the file or record. 131 * </pre> 132 * 133 * <code>repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;</code> 134 */ getContentLocations(int index)135 com.google.privacy.dlp.v2.ContentLocation getContentLocations(int index); 136 /** 137 * 138 * 139 * <pre> 140 * List of nested objects pointing to the precise location of the finding 141 * within the file or record. 142 * </pre> 143 * 144 * <code>repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;</code> 145 */ getContentLocationsCount()146 int getContentLocationsCount(); 147 /** 148 * 149 * 150 * <pre> 151 * List of nested objects pointing to the precise location of the finding 152 * within the file or record. 153 * </pre> 154 * 155 * <code>repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;</code> 156 */ 157 java.util.List<? extends com.google.privacy.dlp.v2.ContentLocationOrBuilder> getContentLocationsOrBuilderList()158 getContentLocationsOrBuilderList(); 159 /** 160 * 161 * 162 * <pre> 163 * List of nested objects pointing to the precise location of the finding 164 * within the file or record. 165 * </pre> 166 * 167 * <code>repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;</code> 168 */ getContentLocationsOrBuilder(int index)169 com.google.privacy.dlp.v2.ContentLocationOrBuilder getContentLocationsOrBuilder(int index); 170 171 /** 172 * 173 * 174 * <pre> 175 * Information about the container where this finding occurred, if available. 176 * </pre> 177 * 178 * <code>.google.privacy.dlp.v2.Container container = 8;</code> 179 * 180 * @return Whether the container field is set. 181 */ hasContainer()182 boolean hasContainer(); 183 /** 184 * 185 * 186 * <pre> 187 * Information about the container where this finding occurred, if available. 188 * </pre> 189 * 190 * <code>.google.privacy.dlp.v2.Container container = 8;</code> 191 * 192 * @return The container. 193 */ getContainer()194 com.google.privacy.dlp.v2.Container getContainer(); 195 /** 196 * 197 * 198 * <pre> 199 * Information about the container where this finding occurred, if available. 200 * </pre> 201 * 202 * <code>.google.privacy.dlp.v2.Container container = 8;</code> 203 */ getContainerOrBuilder()204 com.google.privacy.dlp.v2.ContainerOrBuilder getContainerOrBuilder(); 205 } 206