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.
*
* repeated .google.protobuf.Option options = 3;
*/
public io.prestosql.orc.protobuf.OptionOrBuilder getOptionsOrBuilder(
int index) {
return options_.get(index);
}
public static final int VERSION_FIELD_NUMBER = 4;
private volatile java.lang.Object version_;
/**
*
* A version string for this api. If specified, must have the form
* `major-version.minor-version`, as in `1.10`. If the minor version
* is omitted, it defaults to zero. If the entire version field is
* empty, the major version is derived from the package name, as
* outlined below. If the field is not empty, the version in the
* package name will be verified to be consistent with what is
* provided here.
* The versioning schema uses [semantic
* versioning](http://semver.org) where the major version number
* indicates a breaking change and the minor version an additive,
* non-breaking change. Both version numbers are signals to users
* what to expect from different versions, and should be carefully
* chosen based on the product plan.
* The major version is also reflected in the package name of the
* API, which must end in `v<major-version>`, as in
* `google.feature.v1`. For major versions 0 and 1, the suffix can
* be omitted. Zero major versions must only be used for
* experimental, none-GA apis.
*
* A version string for this api. If specified, must have the form
* `major-version.minor-version`, as in `1.10`. If the minor version
* is omitted, it defaults to zero. If the entire version field is
* empty, the major version is derived from the package name, as
* outlined below. If the field is not empty, the version in the
* package name will be verified to be consistent with what is
* provided here.
* The versioning schema uses [semantic
* versioning](http://semver.org) where the major version number
* indicates a breaking change and the minor version an additive,
* non-breaking change. Both version numbers are signals to users
* what to expect from different versions, and should be carefully
* chosen based on the product plan.
* The major version is also reflected in the package name of the
* API, which must end in `v<major-version>`, as in
* `google.feature.v1`. For major versions 0 and 1, the suffix can
* be omitted. Zero major versions must only be used for
* experimental, none-GA apis.
*
*
* string version = 4;
*/
public io.prestosql.orc.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
io.prestosql.orc.protobuf.ByteString b =
io.prestosql.orc.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (io.prestosql.orc.protobuf.ByteString) ref;
}
}
public static final int SOURCE_CONTEXT_FIELD_NUMBER = 5;
private io.prestosql.orc.protobuf.SourceContext sourceContext_;
/**
*
* Source context for the protocol buffer service represented by this
* message.
*
*
* repeated .google.protobuf.Mixin mixins = 6;
*/
public io.prestosql.orc.protobuf.MixinOrBuilder getMixinsOrBuilder(
int index) {
return mixins_.get(index);
}
public static final int SYNTAX_FIELD_NUMBER = 7;
private int syntax_;
/**
*
* The source syntax of the service.
*
*
* .google.protobuf.Syntax syntax = 7;
*/
public int getSyntaxValue() {
return syntax_;
}
/**
*
* The source syntax of the service.
*
*
* .google.protobuf.Syntax syntax = 7;
*/
public io.prestosql.orc.protobuf.Syntax getSyntax() {
io.prestosql.orc.protobuf.Syntax result = io.prestosql.orc.protobuf.Syntax.valueOf(syntax_);
return result == null ? io.prestosql.orc.protobuf.Syntax.UNRECOGNIZED : result;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(io.prestosql.orc.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
io.prestosql.orc.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
for (int i = 0; i < methods_.size(); i++) {
output.writeMessage(2, methods_.get(i));
}
for (int i = 0; i < options_.size(); i++) {
output.writeMessage(3, options_.get(i));
}
if (!getVersionBytes().isEmpty()) {
io.prestosql.orc.protobuf.GeneratedMessageV3.writeString(output, 4, version_);
}
if (sourceContext_ != null) {
output.writeMessage(5, getSourceContext());
}
for (int i = 0; i < mixins_.size(); i++) {
output.writeMessage(6, mixins_.get(i));
}
if (syntax_ != io.prestosql.orc.protobuf.Syntax.SYNTAX_PROTO2.getNumber()) {
output.writeEnum(7, syntax_);
}
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += io.prestosql.orc.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
for (int i = 0; i < methods_.size(); i++) {
size += io.prestosql.orc.protobuf.CodedOutputStream
.computeMessageSize(2, methods_.get(i));
}
for (int i = 0; i < options_.size(); i++) {
size += io.prestosql.orc.protobuf.CodedOutputStream
.computeMessageSize(3, options_.get(i));
}
if (!getVersionBytes().isEmpty()) {
size += io.prestosql.orc.protobuf.GeneratedMessageV3.computeStringSize(4, version_);
}
if (sourceContext_ != null) {
size += io.prestosql.orc.protobuf.CodedOutputStream
.computeMessageSize(5, getSourceContext());
}
for (int i = 0; i < mixins_.size(); i++) {
size += io.prestosql.orc.protobuf.CodedOutputStream
.computeMessageSize(6, mixins_.get(i));
}
if (syntax_ != io.prestosql.orc.protobuf.Syntax.SYNTAX_PROTO2.getNumber()) {
size += io.prestosql.orc.protobuf.CodedOutputStream
.computeEnumSize(7, syntax_);
}
memoizedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.prestosql.orc.protobuf.Api)) {
return super.equals(obj);
}
io.prestosql.orc.protobuf.Api other = (io.prestosql.orc.protobuf.Api) obj;
boolean result = true;
result = result && getName()
.equals(other.getName());
result = result && getMethodsList()
.equals(other.getMethodsList());
result = result && getOptionsList()
.equals(other.getOptionsList());
result = result && getVersion()
.equals(other.getVersion());
result = result && (hasSourceContext() == other.hasSourceContext());
if (hasSourceContext()) {
result = result && getSourceContext()
.equals(other.getSourceContext());
}
result = result && getMixinsList()
.equals(other.getMixinsList());
result = result && syntax_ == other.syntax_;
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
if (getMethodsCount() > 0) {
hash = (37 * hash) + METHODS_FIELD_NUMBER;
hash = (53 * hash) + getMethodsList().hashCode();
}
if (getOptionsCount() > 0) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptionsList().hashCode();
}
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
if (hasSourceContext()) {
hash = (37 * hash) + SOURCE_CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getSourceContext().hashCode();
}
if (getMixinsCount() > 0) {
hash = (37 * hash) + MIXINS_FIELD_NUMBER;
hash = (53 * hash) + getMixinsList().hashCode();
}
hash = (37 * hash) + SYNTAX_FIELD_NUMBER;
hash = (53 * hash) + syntax_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.prestosql.orc.protobuf.Api parseFrom(
io.prestosql.orc.protobuf.ByteString data)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.prestosql.orc.protobuf.Api parseFrom(
io.prestosql.orc.protobuf.ByteString data,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.prestosql.orc.protobuf.Api parseFrom(byte[] data)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.prestosql.orc.protobuf.Api parseFrom(
byte[] data,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws io.prestosql.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.prestosql.orc.protobuf.Api parseFrom(java.io.InputStream input)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.prestosql.orc.protobuf.Api parseFrom(
java.io.InputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.prestosql.orc.protobuf.Api parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.prestosql.orc.protobuf.Api parseDelimitedFrom(
java.io.InputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.prestosql.orc.protobuf.Api parseFrom(
io.prestosql.orc.protobuf.CodedInputStream input)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.prestosql.orc.protobuf.Api parseFrom(
io.prestosql.orc.protobuf.CodedInputStream input,
io.prestosql.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return io.prestosql.orc.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.prestosql.orc.protobuf.Api prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
io.prestosql.orc.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Api is a light-weight descriptor for a protocol buffer service.
*
* A version string for this api. If specified, must have the form
* `major-version.minor-version`, as in `1.10`. If the minor version
* is omitted, it defaults to zero. If the entire version field is
* empty, the major version is derived from the package name, as
* outlined below. If the field is not empty, the version in the
* package name will be verified to be consistent with what is
* provided here.
* The versioning schema uses [semantic
* versioning](http://semver.org) where the major version number
* indicates a breaking change and the minor version an additive,
* non-breaking change. Both version numbers are signals to users
* what to expect from different versions, and should be carefully
* chosen based on the product plan.
* The major version is also reflected in the package name of the
* API, which must end in `v<major-version>`, as in
* `google.feature.v1`. For major versions 0 and 1, the suffix can
* be omitted. Zero major versions must only be used for
* experimental, none-GA apis.
*
* A version string for this api. If specified, must have the form
* `major-version.minor-version`, as in `1.10`. If the minor version
* is omitted, it defaults to zero. If the entire version field is
* empty, the major version is derived from the package name, as
* outlined below. If the field is not empty, the version in the
* package name will be verified to be consistent with what is
* provided here.
* The versioning schema uses [semantic
* versioning](http://semver.org) where the major version number
* indicates a breaking change and the minor version an additive,
* non-breaking change. Both version numbers are signals to users
* what to expect from different versions, and should be carefully
* chosen based on the product plan.
* The major version is also reflected in the package name of the
* API, which must end in `v<major-version>`, as in
* `google.feature.v1`. For major versions 0 and 1, the suffix can
* be omitted. Zero major versions must only be used for
* experimental, none-GA apis.
*
* A version string for this api. If specified, must have the form
* `major-version.minor-version`, as in `1.10`. If the minor version
* is omitted, it defaults to zero. If the entire version field is
* empty, the major version is derived from the package name, as
* outlined below. If the field is not empty, the version in the
* package name will be verified to be consistent with what is
* provided here.
* The versioning schema uses [semantic
* versioning](http://semver.org) where the major version number
* indicates a breaking change and the minor version an additive,
* non-breaking change. Both version numbers are signals to users
* what to expect from different versions, and should be carefully
* chosen based on the product plan.
* The major version is also reflected in the package name of the
* API, which must end in `v<major-version>`, as in
* `google.feature.v1`. For major versions 0 and 1, the suffix can
* be omitted. Zero major versions must only be used for
* experimental, none-GA apis.
*
*
* string version = 4;
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
version_ = value;
onChanged();
return this;
}
/**
*
* A version string for this api. If specified, must have the form
* `major-version.minor-version`, as in `1.10`. If the minor version
* is omitted, it defaults to zero. If the entire version field is
* empty, the major version is derived from the package name, as
* outlined below. If the field is not empty, the version in the
* package name will be verified to be consistent with what is
* provided here.
* The versioning schema uses [semantic
* versioning](http://semver.org) where the major version number
* indicates a breaking change and the minor version an additive,
* non-breaking change. Both version numbers are signals to users
* what to expect from different versions, and should be carefully
* chosen based on the product plan.
* The major version is also reflected in the package name of the
* API, which must end in `v<major-version>`, as in
* `google.feature.v1`. For major versions 0 and 1, the suffix can
* be omitted. Zero major versions must only be used for
* experimental, none-GA apis.
*
*
* string version = 4;
*/
public Builder clearVersion() {
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
*
* A version string for this api. If specified, must have the form
* `major-version.minor-version`, as in `1.10`. If the minor version
* is omitted, it defaults to zero. If the entire version field is
* empty, the major version is derived from the package name, as
* outlined below. If the field is not empty, the version in the
* package name will be verified to be consistent with what is
* provided here.
* The versioning schema uses [semantic
* versioning](http://semver.org) where the major version number
* indicates a breaking change and the minor version an additive,
* non-breaking change. Both version numbers are signals to users
* what to expect from different versions, and should be carefully
* chosen based on the product plan.
* The major version is also reflected in the package name of the
* API, which must end in `v<major-version>`, as in
* `google.feature.v1`. For major versions 0 and 1, the suffix can
* be omitted. Zero major versions must only be used for
* experimental, none-GA apis.
*