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/datetime.proto
package org.apache.rocketmq.shaded.com.google.type;
/**
*
*
*
* Represents a time zone from the
* [IANA Time Zone Database](https://www.iana.org/time-zones).
*
*
* Protobuf type {@code google.type.TimeZone}
*/
public final class TimeZone extends org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.type.TimeZone)
TimeZoneOrBuilder {
private static final long serialVersionUID = 0L;
// Use TimeZone.newBuilder() to construct.
private TimeZone(org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.Builder builder) {
super(builder);
}
private TimeZone() {
id_ = "";
version_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new TimeZone();
}
@java.lang.Override
public final org.apache.rocketmq.shaded.com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private TimeZone(
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 10:
{
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
case 18:
{
java.lang.String s = input.readStringRequireUtf8();
version_ = s;
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.DateTimeProto.internal_static_google_type_TimeZone_descriptor;
}
@java.lang.Override
protected org.apache.rocketmq.shaded.com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.apache.rocketmq.shaded.com.google.type.DateTimeProto.internal_static_google_type_TimeZone_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.apache.rocketmq.shaded.com.google.type.TimeZone.class, org.apache.rocketmq.shaded.com.google.type.TimeZone.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
*
*
* IANA Time Zone Database time zone, e.g. "America/New_York".
*
* IANA Time Zone Database time zone, e.g. "America/New_York".
*
*
* string id = 1;
*
* @return The bytes for id.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
id_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* IANA Time Zone Database time zone, e.g. "America/New_York".
*
*
* string id = 1;
*
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
*
*
*
* IANA Time Zone Database time zone, e.g. "America/New_York".
*
*
* string id = 1;
*
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
*
*
* IANA Time Zone Database time zone, e.g. "America/New_York".
*
*
* string id = 1;
*
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(org.apache.rocketmq.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
private java.lang.Object version_ = "";
/**
*
*
*
* Optional. IANA Time Zone Database version number, e.g. "2019a".
*
* Optional. IANA Time Zone Database version number, e.g. "2019a".
*
*
* string version = 2;
*
* @return The bytes for version.
*/
public org.apache.rocketmq.shaded.com.google.protobuf.ByteString getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
org.apache.rocketmq.shaded.com.google.protobuf.ByteString b =
org.apache.rocketmq.shaded.com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
version_ = b;
return b;
} else {
return (org.apache.rocketmq.shaded.com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Optional. IANA Time Zone Database version number, e.g. "2019a".
*
*
* string version = 2;
*
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
onChanged();
return this;
}
/**
*
*
*
* Optional. IANA Time Zone Database version number, e.g. "2019a".
*
*
* string version = 2;
*
* @return This builder for chaining.
*/
public Builder clearVersion() {
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
*
*
*
* Optional. IANA Time Zone Database version number, e.g. "2019a".
*
*
* string version = 2;
*
* @param value The bytes for version to set.
* @return This builder for chaining.
*/
public Builder setVersionBytes(org.apache.rocketmq.shaded.com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
version_ = value;
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.TimeZone)
}
// @@protoc_insertion_point(class_scope:google.type.TimeZone)
private static final org.apache.rocketmq.shaded.com.google.type.TimeZone DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.apache.rocketmq.shaded.com.google.type.TimeZone();
}
public static org.apache.rocketmq.shaded.com.google.type.TimeZone 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 TimeZone 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 TimeZone(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.TimeZone getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}