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/type/date.proto 18 19 package com.google.type; 20 21 public interface DateOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.type.Date) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Year of the date. Must be from 1 to 9999, or 0 to specify a date without 31 * a year. 32 * </pre> 33 * 34 * <code>int32 year = 1;</code> 35 * 36 * @return The year. 37 */ getYear()38 int getYear(); 39 40 /** 41 * 42 * 43 * <pre> 44 * Month of a year. Must be from 1 to 12, or 0 to specify a year without a 45 * month and day. 46 * </pre> 47 * 48 * <code>int32 month = 2;</code> 49 * 50 * @return The month. 51 */ getMonth()52 int getMonth(); 53 54 /** 55 * 56 * 57 * <pre> 58 * Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 59 * to specify a year by itself or a year and month where the day isn't 60 * significant. 61 * </pre> 62 * 63 * <code>int32 day = 3;</code> 64 * 65 * @return The day. 66 */ getDay()67 int getDay(); 68 } 69