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/automl/v1/data_items.proto 18 19 package com.google.cloud.automl.v1; 20 21 public interface TextSnippetOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.automl.v1.TextSnippet) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Required. The content of the text snippet as a string. Up to 250000 31 * characters long. 32 * </pre> 33 * 34 * <code>string content = 1;</code> 35 * 36 * @return The content. 37 */ getContent()38 java.lang.String getContent(); 39 /** 40 * 41 * 42 * <pre> 43 * Required. The content of the text snippet as a string. Up to 250000 44 * characters long. 45 * </pre> 46 * 47 * <code>string content = 1;</code> 48 * 49 * @return The bytes for content. 50 */ getContentBytes()51 com.google.protobuf.ByteString getContentBytes(); 52 53 /** 54 * 55 * 56 * <pre> 57 * Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed 58 * values are "text/html" and "text/plain". If left blank, the format is 59 * automatically determined from the type of the uploaded [content][google.cloud.automl.v1.TextSnippet.content]. 60 * </pre> 61 * 62 * <code>string mime_type = 2;</code> 63 * 64 * @return The mimeType. 65 */ getMimeType()66 java.lang.String getMimeType(); 67 /** 68 * 69 * 70 * <pre> 71 * Optional. The format of [content][google.cloud.automl.v1.TextSnippet.content]. Currently the only two allowed 72 * values are "text/html" and "text/plain". If left blank, the format is 73 * automatically determined from the type of the uploaded [content][google.cloud.automl.v1.TextSnippet.content]. 74 * </pre> 75 * 76 * <code>string mime_type = 2;</code> 77 * 78 * @return The bytes for mimeType. 79 */ getMimeTypeBytes()80 com.google.protobuf.ByteString getMimeTypeBytes(); 81 82 /** 83 * 84 * 85 * <pre> 86 * Output only. HTTP URI where you can download the content. 87 * </pre> 88 * 89 * <code>string content_uri = 4;</code> 90 * 91 * @return The contentUri. 92 */ getContentUri()93 java.lang.String getContentUri(); 94 /** 95 * 96 * 97 * <pre> 98 * Output only. HTTP URI where you can download the content. 99 * </pre> 100 * 101 * <code>string content_uri = 4;</code> 102 * 103 * @return The bytes for contentUri. 104 */ getContentUriBytes()105 com.google.protobuf.ByteString getContentUriBytes(); 106 } 107