Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/type/timeofday.proto
package org.apache.rocketmq.shaded.com.google.type;
/**
*
*
*
* Represents a time of day. The date and time zone are either not significant
* or are specified elsewhere. An API may choose to allow leap seconds. Related
* types are [google.type.Date][google.type.Date] and
* `google.protobuf.Timestamp`.
*
*
* Protobuf type {@code google.type.TimeOfDay}
*/
public final class TimeOfDay extends org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.type.TimeOfDay)
TimeOfDayOrBuilder {
private static final long serialVersionUID = 0L;
// Use TimeOfDay.newBuilder() to construct.
private TimeOfDay(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private TimeOfDay() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new TimeOfDay();
}
@java.lang.Override
public final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private TimeOfDay(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.Builder unknownFields =
org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8:
{
hours_ = input.readInt32();
break;
}
case 16:
{
minutes_ = input.readInt32();
break;
}
case 24:
{
seconds_ = input.readInt32();
break;
}
case 32:
{
nanos_ = input.readInt32();
break;
}
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (org.apache.rocketmq.shaded.com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return org.apache.rocketmq.shaded.com.google.type.TimeOfDayProto.internal_static_google_type_TimeOfDay_descriptor;
}
@java.lang.Override
protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.rocketmq.shaded.com.google.type.TimeOfDayProto.internal_static_google_type_TimeOfDay_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.rocketmq.shaded.com.google.type.TimeOfDay.class, org.apache.rocketmq.shaded.com.google.type.TimeOfDay.Builder.class);
}
public static final int HOURS_FIELD_NUMBER = 1;
private int hours_;
/**
*
*
*
* Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
* to allow the value "24:00:00" for scenarios like business closing time.
*
*
* int32 hours = 1;
*
* @return The hours.
*/
@java.lang.Override
public int getHours() {
return hours_;
}
public static final int MINUTES_FIELD_NUMBER = 2;
private int minutes_;
/**
*
*
*
* Minutes of hour of day. Must be from 0 to 59.
*
*
* int32 minutes = 2;
*
* @return The minutes.
*/
@java.lang.Override
public int getMinutes() {
return minutes_;
}
public static final int SECONDS_FIELD_NUMBER = 3;
private int seconds_;
/**
*
*
*
* Seconds of minutes of the time. Must normally be from 0 to 59. An API may
* allow the value 60 if it allows leap-seconds.
*
*
* int32 seconds = 3;
*
* @return The seconds.
*/
@java.lang.Override
public int getSeconds() {
return seconds_;
}
public static final int NANOS_FIELD_NUMBER = 4;
private int nanos_;
/**
*
*
*
* Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
*
* Represents a time of day. The date and time zone are either not significant
* or are specified elsewhere. An API may choose to allow leap seconds. Related
* types are [google.type.Date][google.type.Date] and
* `google.protobuf.Timestamp`.
*
*
* Protobuf type {@code google.type.TimeOfDay}
*/
public static final class Builder extends org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.type.TimeOfDay)
org.apache.rocketmq.shaded.com.google.type.TimeOfDayOrBuilder {
public static final org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return org.apache.rocketmq.shaded.com.google.type.TimeOfDayProto.internal_static_google_type_TimeOfDay_descriptor;
}
@java.lang.Override
protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.rocketmq.shaded.com.google.type.TimeOfDayProto.internal_static_google_type_TimeOfDay_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.rocketmq.shaded.com.google.type.TimeOfDay.class, org.apache.rocketmq.shaded.com.google.type.TimeOfDay.Builder.class);
}
// Construct using org.apache.rocketmq.shaded.com.google.type.TimeOfDay.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
hours_ = 0;
minutes_ = 0;
seconds_ = 0;
nanos_ = 0;
return this;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return org.apache.rocketmq.shaded.com.google.type.TimeOfDayProto.internal_static_google_type_TimeOfDay_descriptor;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.type.TimeOfDay getDefaultInstanceForType() {
return org.apache.rocketmq.shaded.com.google.type.TimeOfDay.getDefaultInstance();
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.type.TimeOfDay build() {
org.apache.rocketmq.shaded.com.google.type.TimeOfDay result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.type.TimeOfDay buildPartial() {
org.apache.rocketmq.shaded.com.google.type.TimeOfDay result = new org.apache.rocketmq.shaded.com.google.type.TimeOfDay(this);
result.hours_ = hours_;
result.minutes_ = minutes_;
result.seconds_ = seconds_;
result.nanos_ = nanos_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
org.apache.rocketmq.shaded.com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(org.apache.rocketmq.shaded.com.google.protobuf.Message other) {
if (other instanceof org.apache.rocketmq.shaded.com.google.type.TimeOfDay) {
return mergeFrom((org.apache.rocketmq.shaded.com.google.type.TimeOfDay) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.apache.rocketmq.shaded.com.google.type.TimeOfDay other) {
if (other == org.apache.rocketmq.shaded.com.google.type.TimeOfDay.getDefaultInstance()) return this;
if (other.getHours() != 0) {
setHours(other.getHours());
}
if (other.getMinutes() != 0) {
setMinutes(other.getMinutes());
}
if (other.getSeconds() != 0) {
setSeconds(other.getSeconds());
}
if (other.getNanos() != 0) {
setNanos(other.getNanos());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.apache.rocketmq.shaded.com.google.type.TimeOfDay parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.apache.rocketmq.shaded.com.google.type.TimeOfDay) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int hours_;
/**
*
*
*
* Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
* to allow the value "24:00:00" for scenarios like business closing time.
*
*
* int32 hours = 1;
*
* @return The hours.
*/
@java.lang.Override
public int getHours() {
return hours_;
}
/**
*
*
*
* Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
* to allow the value "24:00:00" for scenarios like business closing time.
*
*
* int32 hours = 1;
*
* @param value The hours to set.
* @return This builder for chaining.
*/
public Builder setHours(int value) {
hours_ = value;
onChanged();
return this;
}
/**
*
*
*
* Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
* to allow the value "24:00:00" for scenarios like business closing time.
*
*
* int32 hours = 1;
*
* @return This builder for chaining.
*/
public Builder clearHours() {
hours_ = 0;
onChanged();
return this;
}
private int minutes_;
/**
*
*
*
* Minutes of hour of day. Must be from 0 to 59.
*
*
* int32 minutes = 2;
*
* @return The minutes.
*/
@java.lang.Override
public int getMinutes() {
return minutes_;
}
/**
*
*
*
* Minutes of hour of day. Must be from 0 to 59.
*
*
* int32 minutes = 2;
*
* @param value The minutes to set.
* @return This builder for chaining.
*/
public Builder setMinutes(int value) {
minutes_ = value;
onChanged();
return this;
}
/**
*
*
*
* Minutes of hour of day. Must be from 0 to 59.
*
*
* int32 minutes = 2;
*
* @return This builder for chaining.
*/
public Builder clearMinutes() {
minutes_ = 0;
onChanged();
return this;
}
private int seconds_;
/**
*
*
*
* Seconds of minutes of the time. Must normally be from 0 to 59. An API may
* allow the value 60 if it allows leap-seconds.
*
*
* int32 seconds = 3;
*
* @return The seconds.
*/
@java.lang.Override
public int getSeconds() {
return seconds_;
}
/**
*
*
*
* Seconds of minutes of the time. Must normally be from 0 to 59. An API may
* allow the value 60 if it allows leap-seconds.
*
*
* int32 seconds = 3;
*
* @param value The seconds to set.
* @return This builder for chaining.
*/
public Builder setSeconds(int value) {
seconds_ = value;
onChanged();
return this;
}
/**
*
*
*
* Seconds of minutes of the time. Must normally be from 0 to 59. An API may
* allow the value 60 if it allows leap-seconds.
*
*
* int32 seconds = 3;
*
* @return This builder for chaining.
*/
public Builder clearSeconds() {
seconds_ = 0;
onChanged();
return this;
}
private int nanos_;
/**
*
*
*
* Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
*
*
* int32 nanos = 4;
*
* @return The nanos.
*/
@java.lang.Override
public int getNanos() {
return nanos_;
}
/**
*
*
*
* Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
*
*
* int32 nanos = 4;
*
* @param value The nanos to set.
* @return This builder for chaining.
*/
public Builder setNanos(int value) {
nanos_ = value;
onChanged();
return this;
}
/**
*
*
*
* Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
*
*
* int32 nanos = 4;
*
* @return This builder for chaining.
*/
public Builder clearNanos() {
nanos_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.type.TimeOfDay)
}
// @@protoc_insertion_point(class_scope:google.type.TimeOfDay)
private static final org.apache.rocketmq.shaded.com.google.type.TimeOfDay DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.rocketmq.shaded.com.google.type.TimeOfDay();
}
public static org.apache.rocketmq.shaded.com.google.type.TimeOfDay getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final org.apache.rocketmq.shaded.com.google.protobuf.Parser PARSER =
new org.apache.rocketmq.shaded.com.google.protobuf.AbstractParser() {
@java.lang.Override
public TimeOfDay parsePartialFrom(
org.apache.rocketmq.shaded.com.google.protobuf.CodedInputStream input,
org.apache.rocketmq.shaded.com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws org.apache.rocketmq.shaded.com.google.protobuf.InvalidProtocolBufferException {
return new TimeOfDay(input, extensionRegistry);
}
};
public static org.apache.rocketmq.shaded.com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.apache.rocketmq.shaded.com.google.type.TimeOfDay getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}