
com.google.appengine.api.capabilities.CapabilitiesPb Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: capabilities.proto
package com.google.appengine.api.capabilities;
public final class CapabilitiesPb {
private CapabilitiesPb() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface CapabilityConfigListOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.CapabilityConfigList)
com.google.protobuf.MessageOrBuilder {
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
java.util.List
getConfigList();
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig getConfig(int index);
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
int getConfigCount();
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
java.util.List extends com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigOrBuilder>
getConfigOrBuilderList();
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigOrBuilder getConfigOrBuilder(
int index);
/**
*
* If specified, default_config will be used to represent the
* configuration for any capabilities not explicitly mentioned
* above. This should not be set in production, because we want to
* explicitly list all of the capabilities so that they can be
* modified quickly. However, it is useful for testing and
* development purposes.
*
*
* optional .java.apphosting.CapabilityConfig default_config = 2;
* @return Whether the defaultConfig field is set.
*/
boolean hasDefaultConfig();
/**
*
* If specified, default_config will be used to represent the
* configuration for any capabilities not explicitly mentioned
* above. This should not be set in production, because we want to
* explicitly list all of the capabilities so that they can be
* modified quickly. However, it is useful for testing and
* development purposes.
*
*
* optional .java.apphosting.CapabilityConfig default_config = 2;
* @return The defaultConfig.
*/
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig getDefaultConfig();
/**
*
* If specified, default_config will be used to represent the
* configuration for any capabilities not explicitly mentioned
* above. This should not be set in production, because we want to
* explicitly list all of the capabilities so that they can be
* modified quickly. However, it is useful for testing and
* development purposes.
*
*
* optional .java.apphosting.CapabilityConfig default_config = 2;
*/
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigOrBuilder getDefaultConfigOrBuilder();
}
/**
* Protobuf type {@code java.apphosting.CapabilityConfigList}
*/
public static final class CapabilityConfigList extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.CapabilityConfigList)
CapabilityConfigListOrBuilder {
private static final long serialVersionUID = 0L;
// Use CapabilityConfigList.newBuilder() to construct.
private CapabilityConfigList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CapabilityConfigList() {
config_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CapabilityConfigList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.capabilities.CapabilitiesPb.internal_static_java_apphosting_CapabilityConfigList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.capabilities.CapabilitiesPb.internal_static_java_apphosting_CapabilityConfigList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList.class, com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList.Builder.class);
}
private int bitField0_;
public static final int CONFIG_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private java.util.List config_;
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
@java.lang.Override
public java.util.List getConfigList() {
return config_;
}
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
@java.lang.Override
public java.util.List extends com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigOrBuilder>
getConfigOrBuilderList() {
return config_;
}
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
@java.lang.Override
public int getConfigCount() {
return config_.size();
}
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
@java.lang.Override
public com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig getConfig(int index) {
return config_.get(index);
}
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
@java.lang.Override
public com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigOrBuilder getConfigOrBuilder(
int index) {
return config_.get(index);
}
public static final int DEFAULT_CONFIG_FIELD_NUMBER = 2;
private com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig defaultConfig_;
/**
*
* If specified, default_config will be used to represent the
* configuration for any capabilities not explicitly mentioned
* above. This should not be set in production, because we want to
* explicitly list all of the capabilities so that they can be
* modified quickly. However, it is useful for testing and
* development purposes.
*
*
* optional .java.apphosting.CapabilityConfig default_config = 2;
* @return Whether the defaultConfig field is set.
*/
@java.lang.Override
public boolean hasDefaultConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* If specified, default_config will be used to represent the
* configuration for any capabilities not explicitly mentioned
* above. This should not be set in production, because we want to
* explicitly list all of the capabilities so that they can be
* modified quickly. However, it is useful for testing and
* development purposes.
*
*
* optional .java.apphosting.CapabilityConfig default_config = 2;
* @return The defaultConfig.
*/
@java.lang.Override
public com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig getDefaultConfig() {
return defaultConfig_ == null ? com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.getDefaultInstance() : defaultConfig_;
}
/**
*
* If specified, default_config will be used to represent the
* configuration for any capabilities not explicitly mentioned
* above. This should not be set in production, because we want to
* explicitly list all of the capabilities so that they can be
* modified quickly. However, it is useful for testing and
* development purposes.
*
*
* optional .java.apphosting.CapabilityConfig default_config = 2;
*/
@java.lang.Override
public com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigOrBuilder getDefaultConfigOrBuilder() {
return defaultConfig_ == null ? com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.getDefaultInstance() : defaultConfig_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getConfigCount(); i++) {
if (!getConfig(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasDefaultConfig()) {
if (!getDefaultConfig().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < config_.size(); i++) {
output.writeMessage(1, config_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getDefaultConfig());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < config_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, config_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getDefaultConfig());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList)) {
return super.equals(obj);
}
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList other = (com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList) obj;
if (!getConfigList()
.equals(other.getConfigList())) return false;
if (hasDefaultConfig() != other.hasDefaultConfig()) return false;
if (hasDefaultConfig()) {
if (!getDefaultConfig()
.equals(other.getDefaultConfig())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getConfigCount() > 0) {
hash = (37 * hash) + CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getConfigList().hashCode();
}
if (hasDefaultConfig()) {
hash = (37 * hash) + DEFAULT_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getDefaultConfig().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code java.apphosting.CapabilityConfigList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.CapabilityConfigList)
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.capabilities.CapabilitiesPb.internal_static_java_apphosting_CapabilityConfigList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.capabilities.CapabilitiesPb.internal_static_java_apphosting_CapabilityConfigList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList.class, com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList.Builder.class);
}
// Construct using com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getConfigFieldBuilder();
getDefaultConfigFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (configBuilder_ == null) {
config_ = java.util.Collections.emptyList();
} else {
config_ = null;
configBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
defaultConfig_ = null;
if (defaultConfigBuilder_ != null) {
defaultConfigBuilder_.dispose();
defaultConfigBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.capabilities.CapabilitiesPb.internal_static_java_apphosting_CapabilityConfigList_descriptor;
}
@java.lang.Override
public com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList getDefaultInstanceForType() {
return com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList build() {
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList buildPartial() {
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList result = new com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList result) {
if (configBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
config_ = java.util.Collections.unmodifiableList(config_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.config_ = config_;
} else {
result.config_ = configBuilder_.build();
}
}
private void buildPartial0(com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.defaultConfig_ = defaultConfigBuilder_ == null
? defaultConfig_
: defaultConfigBuilder_.build();
to_bitField0_ |= 0x00000001;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList) {
return mergeFrom((com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList other) {
if (other == com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList.getDefaultInstance()) return this;
if (configBuilder_ == null) {
if (!other.config_.isEmpty()) {
if (config_.isEmpty()) {
config_ = other.config_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureConfigIsMutable();
config_.addAll(other.config_);
}
onChanged();
}
} else {
if (!other.config_.isEmpty()) {
if (configBuilder_.isEmpty()) {
configBuilder_.dispose();
configBuilder_ = null;
config_ = other.config_;
bitField0_ = (bitField0_ & ~0x00000001);
configBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getConfigFieldBuilder() : null;
} else {
configBuilder_.addAllMessages(other.config_);
}
}
}
if (other.hasDefaultConfig()) {
mergeDefaultConfig(other.getDefaultConfig());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getConfigCount(); i++) {
if (!getConfig(i).isInitialized()) {
return false;
}
}
if (hasDefaultConfig()) {
if (!getDefaultConfig().isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig m =
input.readMessage(
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.PARSER,
extensionRegistry);
if (configBuilder_ == null) {
ensureConfigIsMutable();
config_.add(m);
} else {
configBuilder_.addMessage(m);
}
break;
} // case 10
case 18: {
input.readMessage(
getDefaultConfigFieldBuilder().getBuilder(),
extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.util.List config_ =
java.util.Collections.emptyList();
private void ensureConfigIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
config_ = new java.util.ArrayList(config_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig, com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Builder, com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigOrBuilder> configBuilder_;
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
public java.util.List getConfigList() {
if (configBuilder_ == null) {
return java.util.Collections.unmodifiableList(config_);
} else {
return configBuilder_.getMessageList();
}
}
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
public int getConfigCount() {
if (configBuilder_ == null) {
return config_.size();
} else {
return configBuilder_.getCount();
}
}
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
public com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig getConfig(int index) {
if (configBuilder_ == null) {
return config_.get(index);
} else {
return configBuilder_.getMessage(index);
}
}
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
public Builder setConfig(
int index, com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig value) {
if (configBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConfigIsMutable();
config_.set(index, value);
onChanged();
} else {
configBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
public Builder setConfig(
int index, com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Builder builderForValue) {
if (configBuilder_ == null) {
ensureConfigIsMutable();
config_.set(index, builderForValue.build());
onChanged();
} else {
configBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
public Builder addConfig(com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig value) {
if (configBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConfigIsMutable();
config_.add(value);
onChanged();
} else {
configBuilder_.addMessage(value);
}
return this;
}
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
public Builder addConfig(
int index, com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig value) {
if (configBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureConfigIsMutable();
config_.add(index, value);
onChanged();
} else {
configBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
public Builder addConfig(
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Builder builderForValue) {
if (configBuilder_ == null) {
ensureConfigIsMutable();
config_.add(builderForValue.build());
onChanged();
} else {
configBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
public Builder addConfig(
int index, com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Builder builderForValue) {
if (configBuilder_ == null) {
ensureConfigIsMutable();
config_.add(index, builderForValue.build());
onChanged();
} else {
configBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
public Builder addAllConfig(
java.lang.Iterable extends com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig> values) {
if (configBuilder_ == null) {
ensureConfigIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, config_);
onChanged();
} else {
configBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
public Builder clearConfig() {
if (configBuilder_ == null) {
config_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
configBuilder_.clear();
}
return this;
}
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
public Builder removeConfig(int index) {
if (configBuilder_ == null) {
ensureConfigIsMutable();
config_.remove(index);
onChanged();
} else {
configBuilder_.remove(index);
}
return this;
}
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
public com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Builder getConfigBuilder(
int index) {
return getConfigFieldBuilder().getBuilder(index);
}
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
public com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigOrBuilder getConfigOrBuilder(
int index) {
if (configBuilder_ == null) {
return config_.get(index); } else {
return configBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
public java.util.List extends com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigOrBuilder>
getConfigOrBuilderList() {
if (configBuilder_ != null) {
return configBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(config_);
}
}
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
public com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Builder addConfigBuilder() {
return getConfigFieldBuilder().addBuilder(
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.getDefaultInstance());
}
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
public com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Builder addConfigBuilder(
int index) {
return getConfigFieldBuilder().addBuilder(
index, com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.getDefaultInstance());
}
/**
*
* The configuration for one or more capabilities.
*
*
* repeated .java.apphosting.CapabilityConfig config = 1;
*/
public java.util.List
getConfigBuilderList() {
return getConfigFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig, com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Builder, com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigOrBuilder>
getConfigFieldBuilder() {
if (configBuilder_ == null) {
configBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig, com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Builder, com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigOrBuilder>(
config_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
config_ = null;
}
return configBuilder_;
}
private com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig defaultConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig, com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Builder, com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigOrBuilder> defaultConfigBuilder_;
/**
*
* If specified, default_config will be used to represent the
* configuration for any capabilities not explicitly mentioned
* above. This should not be set in production, because we want to
* explicitly list all of the capabilities so that they can be
* modified quickly. However, it is useful for testing and
* development purposes.
*
*
* optional .java.apphosting.CapabilityConfig default_config = 2;
* @return Whether the defaultConfig field is set.
*/
public boolean hasDefaultConfig() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* If specified, default_config will be used to represent the
* configuration for any capabilities not explicitly mentioned
* above. This should not be set in production, because we want to
* explicitly list all of the capabilities so that they can be
* modified quickly. However, it is useful for testing and
* development purposes.
*
*
* optional .java.apphosting.CapabilityConfig default_config = 2;
* @return The defaultConfig.
*/
public com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig getDefaultConfig() {
if (defaultConfigBuilder_ == null) {
return defaultConfig_ == null ? com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.getDefaultInstance() : defaultConfig_;
} else {
return defaultConfigBuilder_.getMessage();
}
}
/**
*
* If specified, default_config will be used to represent the
* configuration for any capabilities not explicitly mentioned
* above. This should not be set in production, because we want to
* explicitly list all of the capabilities so that they can be
* modified quickly. However, it is useful for testing and
* development purposes.
*
*
* optional .java.apphosting.CapabilityConfig default_config = 2;
*/
public Builder setDefaultConfig(com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig value) {
if (defaultConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
defaultConfig_ = value;
} else {
defaultConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* If specified, default_config will be used to represent the
* configuration for any capabilities not explicitly mentioned
* above. This should not be set in production, because we want to
* explicitly list all of the capabilities so that they can be
* modified quickly. However, it is useful for testing and
* development purposes.
*
*
* optional .java.apphosting.CapabilityConfig default_config = 2;
*/
public Builder setDefaultConfig(
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Builder builderForValue) {
if (defaultConfigBuilder_ == null) {
defaultConfig_ = builderForValue.build();
} else {
defaultConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* If specified, default_config will be used to represent the
* configuration for any capabilities not explicitly mentioned
* above. This should not be set in production, because we want to
* explicitly list all of the capabilities so that they can be
* modified quickly. However, it is useful for testing and
* development purposes.
*
*
* optional .java.apphosting.CapabilityConfig default_config = 2;
*/
public Builder mergeDefaultConfig(com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig value) {
if (defaultConfigBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
defaultConfig_ != null &&
defaultConfig_ != com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.getDefaultInstance()) {
getDefaultConfigBuilder().mergeFrom(value);
} else {
defaultConfig_ = value;
}
} else {
defaultConfigBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* If specified, default_config will be used to represent the
* configuration for any capabilities not explicitly mentioned
* above. This should not be set in production, because we want to
* explicitly list all of the capabilities so that they can be
* modified quickly. However, it is useful for testing and
* development purposes.
*
*
* optional .java.apphosting.CapabilityConfig default_config = 2;
*/
public Builder clearDefaultConfig() {
bitField0_ = (bitField0_ & ~0x00000002);
defaultConfig_ = null;
if (defaultConfigBuilder_ != null) {
defaultConfigBuilder_.dispose();
defaultConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
* If specified, default_config will be used to represent the
* configuration for any capabilities not explicitly mentioned
* above. This should not be set in production, because we want to
* explicitly list all of the capabilities so that they can be
* modified quickly. However, it is useful for testing and
* development purposes.
*
*
* optional .java.apphosting.CapabilityConfig default_config = 2;
*/
public com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Builder getDefaultConfigBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getDefaultConfigFieldBuilder().getBuilder();
}
/**
*
* If specified, default_config will be used to represent the
* configuration for any capabilities not explicitly mentioned
* above. This should not be set in production, because we want to
* explicitly list all of the capabilities so that they can be
* modified quickly. However, it is useful for testing and
* development purposes.
*
*
* optional .java.apphosting.CapabilityConfig default_config = 2;
*/
public com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigOrBuilder getDefaultConfigOrBuilder() {
if (defaultConfigBuilder_ != null) {
return defaultConfigBuilder_.getMessageOrBuilder();
} else {
return defaultConfig_ == null ?
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.getDefaultInstance() : defaultConfig_;
}
}
/**
*
* If specified, default_config will be used to represent the
* configuration for any capabilities not explicitly mentioned
* above. This should not be set in production, because we want to
* explicitly list all of the capabilities so that they can be
* modified quickly. However, it is useful for testing and
* development purposes.
*
*
* optional .java.apphosting.CapabilityConfig default_config = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig, com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Builder, com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigOrBuilder>
getDefaultConfigFieldBuilder() {
if (defaultConfigBuilder_ == null) {
defaultConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig, com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Builder, com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigOrBuilder>(
getDefaultConfig(),
getParentForChildren(),
isClean());
defaultConfig_ = null;
}
return defaultConfigBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.CapabilityConfigList)
}
// @@protoc_insertion_point(class_scope:java.apphosting.CapabilityConfigList)
private static final com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList();
}
public static com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CapabilityConfigList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CapabilityConfigOrBuilder extends
// @@protoc_insertion_point(interface_extends:java.apphosting.CapabilityConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
* The API package to which this capability belongs. This is the
* same string that would be specified in APIRequest.api_package.
* Package names are case-sensitive.
*
*
* required string package = 1;
* @return Whether the package field is set.
*/
boolean hasPackage();
/**
*
* The API package to which this capability belongs. This is the
* same string that would be specified in APIRequest.api_package.
* Package names are case-sensitive.
*
*
* required string package = 1;
* @return The package.
*/
java.lang.String getPackage();
/**
*
* The API package to which this capability belongs. This is the
* same string that would be specified in APIRequest.api_package.
* Package names are case-sensitive.
*
*
* required string package = 1;
* @return The bytes for package.
*/
com.google.protobuf.ByteString
getPackageBytes();
/**
*
* The identifier for this capability. This identifier only needs
* to be unique within a given package.
* Capability names are case-sensitive.
*
*
* required string capability = 2;
* @return Whether the capability field is set.
*/
boolean hasCapability();
/**
*
* The identifier for this capability. This identifier only needs
* to be unique within a given package.
* Capability names are case-sensitive.
*
*
* required string capability = 2;
* @return The capability.
*/
java.lang.String getCapability();
/**
*
* The identifier for this capability. This identifier only needs
* to be unique within a given package.
* Capability names are case-sensitive.
*
*
* required string capability = 2;
* @return The bytes for capability.
*/
com.google.protobuf.ByteString
getCapabilityBytes();
/**
* optional .java.apphosting.CapabilityConfig.Status status = 3 [default = UNKNOWN];
* @return Whether the status field is set.
*/
boolean hasStatus();
/**
* optional .java.apphosting.CapabilityConfig.Status status = 3 [default = UNKNOWN];
* @return The status.
*/
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Status getStatus();
/**
*
* When the status is SCHEDULED, this is the time that the outage is
* expected to begin. Note that the status does not automatically
* change to DISABLED at this time, nor do API calls start failing.
* However, clients that are using the capability introspection API
* may begin taking appropriate countermeasures at this time.
* Format: "YYYY/MM/DD hh:mm:ss". The time is assumed to be in
* Google Standard Time (PST/PDT).
*
*
* optional string scheduled_time = 7;
* @return Whether the scheduledTime field is set.
*/
boolean hasScheduledTime();
/**
*
* When the status is SCHEDULED, this is the time that the outage is
* expected to begin. Note that the status does not automatically
* change to DISABLED at this time, nor do API calls start failing.
* However, clients that are using the capability introspection API
* may begin taking appropriate countermeasures at this time.
* Format: "YYYY/MM/DD hh:mm:ss". The time is assumed to be in
* Google Standard Time (PST/PDT).
*
*
* optional string scheduled_time = 7;
* @return The scheduledTime.
*/
java.lang.String getScheduledTime();
/**
*
* When the status is SCHEDULED, this is the time that the outage is
* expected to begin. Note that the status does not automatically
* change to DISABLED at this time, nor do API calls start failing.
* However, clients that are using the capability introspection API
* may begin taking appropriate countermeasures at this time.
* Format: "YYYY/MM/DD hh:mm:ss". The time is assumed to be in
* Google Standard Time (PST/PDT).
*
*
* optional string scheduled_time = 7;
* @return The bytes for scheduledTime.
*/
com.google.protobuf.ByteString
getScheduledTimeBytes();
/**
*
* If specified, this message may be displayed to internal support
* staff (e.g. on /statusz). This field can include PCR numbers,
* datacenter identifiers, internal project names, etc.
*
*
* optional string internal_message = 4;
* @return Whether the internalMessage field is set.
*/
boolean hasInternalMessage();
/**
*
* If specified, this message may be displayed to internal support
* staff (e.g. on /statusz). This field can include PCR numbers,
* datacenter identifiers, internal project names, etc.
*
*
* optional string internal_message = 4;
* @return The internalMessage.
*/
java.lang.String getInternalMessage();
/**
*
* If specified, this message may be displayed to internal support
* staff (e.g. on /statusz). This field can include PCR numbers,
* datacenter identifiers, internal project names, etc.
*
*
* optional string internal_message = 4;
* @return The bytes for internalMessage.
*/
com.google.protobuf.ByteString
getInternalMessageBytes();
/**
*
* If specified, this status message will be displayed to
* application administrators (e.g. via the admin console).
* NOTE: This message will be displayed to external developers, so
* it should not contain any Google-specific terminology or
* proprietary details.
*
*
* optional string admin_message = 5;
* @return Whether the adminMessage field is set.
*/
boolean hasAdminMessage();
/**
*
* If specified, this status message will be displayed to
* application administrators (e.g. via the admin console).
* NOTE: This message will be displayed to external developers, so
* it should not contain any Google-specific terminology or
* proprietary details.
*
*
* optional string admin_message = 5;
* @return The adminMessage.
*/
java.lang.String getAdminMessage();
/**
*
* If specified, this status message will be displayed to
* application administrators (e.g. via the admin console).
* NOTE: This message will be displayed to external developers, so
* it should not contain any Google-specific terminology or
* proprietary details.
*
*
* optional string admin_message = 5;
* @return The bytes for adminMessage.
*/
com.google.protobuf.ByteString
getAdminMessageBytes();
/**
*
* If status is set to DISABLED and this message is provided,
* it will be returned to the application in the APIResponse.
* NOTE: Some applications may (either intentionally or
* unintentionally) display this message to end users, so this
* message should be as user-friendly as possible. Put any
* technical details aimed at developers in admin_message, and any
* Google-specific details in internal_message.
*
*
* optional string error_message = 6;
* @return Whether the errorMessage field is set.
*/
boolean hasErrorMessage();
/**
*
* If status is set to DISABLED and this message is provided,
* it will be returned to the application in the APIResponse.
* NOTE: Some applications may (either intentionally or
* unintentionally) display this message to end users, so this
* message should be as user-friendly as possible. Put any
* technical details aimed at developers in admin_message, and any
* Google-specific details in internal_message.
*
*
* optional string error_message = 6;
* @return The errorMessage.
*/
java.lang.String getErrorMessage();
/**
*
* If status is set to DISABLED and this message is provided,
* it will be returned to the application in the APIResponse.
* NOTE: Some applications may (either intentionally or
* unintentionally) display this message to end users, so this
* message should be as user-friendly as possible. Put any
* technical details aimed at developers in admin_message, and any
* Google-specific details in internal_message.
*
*
* optional string error_message = 6;
* @return The bytes for errorMessage.
*/
com.google.protobuf.ByteString
getErrorMessageBytes();
}
/**
* Protobuf type {@code java.apphosting.CapabilityConfig}
*/
public static final class CapabilityConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:java.apphosting.CapabilityConfig)
CapabilityConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use CapabilityConfig.newBuilder() to construct.
private CapabilityConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CapabilityConfig() {
package_ = "";
capability_ = "";
status_ = 4;
scheduledTime_ = "";
internalMessage_ = "";
adminMessage_ = "";
errorMessage_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CapabilityConfig();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.capabilities.CapabilitiesPb.internal_static_java_apphosting_CapabilityConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.capabilities.CapabilitiesPb.internal_static_java_apphosting_CapabilityConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.class, com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Builder.class);
}
/**
* Protobuf enum {@code java.apphosting.CapabilityConfig.Status}
*/
public enum Status
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* DEFAULT and UNKNOWN are kept identical in code.
*
*
* DEFAULT = 0;
*/
DEFAULT(0),
/**
*
* The capability is enabled.
*
*
* ENABLED = 1;
*/
ENABLED(1),
/**
*
* The capability is currently enabled but downtime is scheduled
* in the future. Clients should not rely on it being enabled in
* subsequent requests. This is a transitional state between
* ENABLED and DISABLED designed to give advanced clients a chance
* to disable UI elements or perform other preparation work.
*
*
* SCHEDULED = 2;
*/
SCHEDULED(2),
/**
*
* The capability is disabled and attempts to use it will produce
* an error.
*
*
* DISABLED = 3;
*/
DISABLED(3),
/**
*
* No information is known about this capability. We try to
* reject any configurations that don't mention all of the
* registered capabilities, so this state should not happen in
* practice. If it does we treat it the same as DISABLED.
*
*
* UNKNOWN = 4;
*/
UNKNOWN(4),
;
/**
*
* DEFAULT and UNKNOWN are kept identical in code.
*
*
* DEFAULT = 0;
*/
public static final int DEFAULT_VALUE = 0;
/**
*
* The capability is enabled.
*
*
* ENABLED = 1;
*/
public static final int ENABLED_VALUE = 1;
/**
*
* The capability is currently enabled but downtime is scheduled
* in the future. Clients should not rely on it being enabled in
* subsequent requests. This is a transitional state between
* ENABLED and DISABLED designed to give advanced clients a chance
* to disable UI elements or perform other preparation work.
*
*
* SCHEDULED = 2;
*/
public static final int SCHEDULED_VALUE = 2;
/**
*
* The capability is disabled and attempts to use it will produce
* an error.
*
*
* DISABLED = 3;
*/
public static final int DISABLED_VALUE = 3;
/**
*
* No information is known about this capability. We try to
* reject any configurations that don't mention all of the
* registered capabilities, so this state should not happen in
* practice. If it does we treat it the same as DISABLED.
*
*
* UNKNOWN = 4;
*/
public static final int UNKNOWN_VALUE = 4;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Status valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Status forNumber(int value) {
switch (value) {
case 0: return DEFAULT;
case 1: return ENABLED;
case 2: return SCHEDULED;
case 3: return DISABLED;
case 4: return UNKNOWN;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Status> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Status findValueByNumber(int number) {
return Status.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.getDescriptor().getEnumTypes().get(0);
}
private static final Status[] VALUES = values();
public static Status valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private Status(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:java.apphosting.CapabilityConfig.Status)
}
private int bitField0_;
public static final int PACKAGE_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object package_ = "";
/**
*
* The API package to which this capability belongs. This is the
* same string that would be specified in APIRequest.api_package.
* Package names are case-sensitive.
*
*
* required string package = 1;
* @return Whether the package field is set.
*/
@java.lang.Override
public boolean hasPackage() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The API package to which this capability belongs. This is the
* same string that would be specified in APIRequest.api_package.
* Package names are case-sensitive.
*
*
* required string package = 1;
* @return The package.
*/
@java.lang.Override
public java.lang.String getPackage() {
java.lang.Object ref = package_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
package_ = s;
}
return s;
}
}
/**
*
* The API package to which this capability belongs. This is the
* same string that would be specified in APIRequest.api_package.
* Package names are case-sensitive.
*
*
* required string package = 1;
* @return The bytes for package.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPackageBytes() {
java.lang.Object ref = package_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
package_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CAPABILITY_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object capability_ = "";
/**
*
* The identifier for this capability. This identifier only needs
* to be unique within a given package.
* Capability names are case-sensitive.
*
*
* required string capability = 2;
* @return Whether the capability field is set.
*/
@java.lang.Override
public boolean hasCapability() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The identifier for this capability. This identifier only needs
* to be unique within a given package.
* Capability names are case-sensitive.
*
*
* required string capability = 2;
* @return The capability.
*/
@java.lang.Override
public java.lang.String getCapability() {
java.lang.Object ref = capability_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
capability_ = s;
}
return s;
}
}
/**
*
* The identifier for this capability. This identifier only needs
* to be unique within a given package.
* Capability names are case-sensitive.
*
*
* required string capability = 2;
* @return The bytes for capability.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCapabilityBytes() {
java.lang.Object ref = capability_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
capability_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATUS_FIELD_NUMBER = 3;
private int status_ = 4;
/**
* optional .java.apphosting.CapabilityConfig.Status status = 3 [default = UNKNOWN];
* @return Whether the status field is set.
*/
@java.lang.Override public boolean hasStatus() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .java.apphosting.CapabilityConfig.Status status = 3 [default = UNKNOWN];
* @return The status.
*/
@java.lang.Override public com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Status getStatus() {
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Status result = com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Status.forNumber(status_);
return result == null ? com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Status.UNKNOWN : result;
}
public static final int SCHEDULED_TIME_FIELD_NUMBER = 7;
@SuppressWarnings("serial")
private volatile java.lang.Object scheduledTime_ = "";
/**
*
* When the status is SCHEDULED, this is the time that the outage is
* expected to begin. Note that the status does not automatically
* change to DISABLED at this time, nor do API calls start failing.
* However, clients that are using the capability introspection API
* may begin taking appropriate countermeasures at this time.
* Format: "YYYY/MM/DD hh:mm:ss". The time is assumed to be in
* Google Standard Time (PST/PDT).
*
*
* optional string scheduled_time = 7;
* @return Whether the scheduledTime field is set.
*/
@java.lang.Override
public boolean hasScheduledTime() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* When the status is SCHEDULED, this is the time that the outage is
* expected to begin. Note that the status does not automatically
* change to DISABLED at this time, nor do API calls start failing.
* However, clients that are using the capability introspection API
* may begin taking appropriate countermeasures at this time.
* Format: "YYYY/MM/DD hh:mm:ss". The time is assumed to be in
* Google Standard Time (PST/PDT).
*
*
* optional string scheduled_time = 7;
* @return The scheduledTime.
*/
@java.lang.Override
public java.lang.String getScheduledTime() {
java.lang.Object ref = scheduledTime_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
scheduledTime_ = s;
}
return s;
}
}
/**
*
* When the status is SCHEDULED, this is the time that the outage is
* expected to begin. Note that the status does not automatically
* change to DISABLED at this time, nor do API calls start failing.
* However, clients that are using the capability introspection API
* may begin taking appropriate countermeasures at this time.
* Format: "YYYY/MM/DD hh:mm:ss". The time is assumed to be in
* Google Standard Time (PST/PDT).
*
*
* optional string scheduled_time = 7;
* @return The bytes for scheduledTime.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getScheduledTimeBytes() {
java.lang.Object ref = scheduledTime_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
scheduledTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int INTERNAL_MESSAGE_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object internalMessage_ = "";
/**
*
* If specified, this message may be displayed to internal support
* staff (e.g. on /statusz). This field can include PCR numbers,
* datacenter identifiers, internal project names, etc.
*
*
* optional string internal_message = 4;
* @return Whether the internalMessage field is set.
*/
@java.lang.Override
public boolean hasInternalMessage() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* If specified, this message may be displayed to internal support
* staff (e.g. on /statusz). This field can include PCR numbers,
* datacenter identifiers, internal project names, etc.
*
*
* optional string internal_message = 4;
* @return The internalMessage.
*/
@java.lang.Override
public java.lang.String getInternalMessage() {
java.lang.Object ref = internalMessage_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
internalMessage_ = s;
}
return s;
}
}
/**
*
* If specified, this message may be displayed to internal support
* staff (e.g. on /statusz). This field can include PCR numbers,
* datacenter identifiers, internal project names, etc.
*
*
* optional string internal_message = 4;
* @return The bytes for internalMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInternalMessageBytes() {
java.lang.Object ref = internalMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
internalMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ADMIN_MESSAGE_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object adminMessage_ = "";
/**
*
* If specified, this status message will be displayed to
* application administrators (e.g. via the admin console).
* NOTE: This message will be displayed to external developers, so
* it should not contain any Google-specific terminology or
* proprietary details.
*
*
* optional string admin_message = 5;
* @return Whether the adminMessage field is set.
*/
@java.lang.Override
public boolean hasAdminMessage() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* If specified, this status message will be displayed to
* application administrators (e.g. via the admin console).
* NOTE: This message will be displayed to external developers, so
* it should not contain any Google-specific terminology or
* proprietary details.
*
*
* optional string admin_message = 5;
* @return The adminMessage.
*/
@java.lang.Override
public java.lang.String getAdminMessage() {
java.lang.Object ref = adminMessage_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
adminMessage_ = s;
}
return s;
}
}
/**
*
* If specified, this status message will be displayed to
* application administrators (e.g. via the admin console).
* NOTE: This message will be displayed to external developers, so
* it should not contain any Google-specific terminology or
* proprietary details.
*
*
* optional string admin_message = 5;
* @return The bytes for adminMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAdminMessageBytes() {
java.lang.Object ref = adminMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
adminMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ERROR_MESSAGE_FIELD_NUMBER = 6;
@SuppressWarnings("serial")
private volatile java.lang.Object errorMessage_ = "";
/**
*
* If status is set to DISABLED and this message is provided,
* it will be returned to the application in the APIResponse.
* NOTE: Some applications may (either intentionally or
* unintentionally) display this message to end users, so this
* message should be as user-friendly as possible. Put any
* technical details aimed at developers in admin_message, and any
* Google-specific details in internal_message.
*
*
* optional string error_message = 6;
* @return Whether the errorMessage field is set.
*/
@java.lang.Override
public boolean hasErrorMessage() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* If status is set to DISABLED and this message is provided,
* it will be returned to the application in the APIResponse.
* NOTE: Some applications may (either intentionally or
* unintentionally) display this message to end users, so this
* message should be as user-friendly as possible. Put any
* technical details aimed at developers in admin_message, and any
* Google-specific details in internal_message.
*
*
* optional string error_message = 6;
* @return The errorMessage.
*/
@java.lang.Override
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
errorMessage_ = s;
}
return s;
}
}
/**
*
* If status is set to DISABLED and this message is provided,
* it will be returned to the application in the APIResponse.
* NOTE: Some applications may (either intentionally or
* unintentionally) display this message to end users, so this
* message should be as user-friendly as possible. Put any
* technical details aimed at developers in admin_message, and any
* Google-specific details in internal_message.
*
*
* optional string error_message = 6;
* @return The bytes for errorMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (!hasPackage()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasCapability()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, package_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, capability_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeEnum(3, status_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, internalMessage_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, adminMessage_);
}
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, errorMessage_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, scheduledTime_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, package_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, capability_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, status_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, internalMessage_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, adminMessage_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, errorMessage_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, scheduledTime_);
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig)) {
return super.equals(obj);
}
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig other = (com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig) obj;
if (hasPackage() != other.hasPackage()) return false;
if (hasPackage()) {
if (!getPackage()
.equals(other.getPackage())) return false;
}
if (hasCapability() != other.hasCapability()) return false;
if (hasCapability()) {
if (!getCapability()
.equals(other.getCapability())) return false;
}
if (hasStatus() != other.hasStatus()) return false;
if (hasStatus()) {
if (status_ != other.status_) return false;
}
if (hasScheduledTime() != other.hasScheduledTime()) return false;
if (hasScheduledTime()) {
if (!getScheduledTime()
.equals(other.getScheduledTime())) return false;
}
if (hasInternalMessage() != other.hasInternalMessage()) return false;
if (hasInternalMessage()) {
if (!getInternalMessage()
.equals(other.getInternalMessage())) return false;
}
if (hasAdminMessage() != other.hasAdminMessage()) return false;
if (hasAdminMessage()) {
if (!getAdminMessage()
.equals(other.getAdminMessage())) return false;
}
if (hasErrorMessage() != other.hasErrorMessage()) return false;
if (hasErrorMessage()) {
if (!getErrorMessage()
.equals(other.getErrorMessage())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasPackage()) {
hash = (37 * hash) + PACKAGE_FIELD_NUMBER;
hash = (53 * hash) + getPackage().hashCode();
}
if (hasCapability()) {
hash = (37 * hash) + CAPABILITY_FIELD_NUMBER;
hash = (53 * hash) + getCapability().hashCode();
}
if (hasStatus()) {
hash = (37 * hash) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + status_;
}
if (hasScheduledTime()) {
hash = (37 * hash) + SCHEDULED_TIME_FIELD_NUMBER;
hash = (53 * hash) + getScheduledTime().hashCode();
}
if (hasInternalMessage()) {
hash = (37 * hash) + INTERNAL_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getInternalMessage().hashCode();
}
if (hasAdminMessage()) {
hash = (37 * hash) + ADMIN_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getAdminMessage().hashCode();
}
if (hasErrorMessage()) {
hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getErrorMessage().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code java.apphosting.CapabilityConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:java.apphosting.CapabilityConfig)
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.google.appengine.api.capabilities.CapabilitiesPb.internal_static_java_apphosting_CapabilityConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.api.capabilities.CapabilitiesPb.internal_static_java_apphosting_CapabilityConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.class, com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Builder.class);
}
// Construct using com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
package_ = "";
capability_ = "";
status_ = 4;
scheduledTime_ = "";
internalMessage_ = "";
adminMessage_ = "";
errorMessage_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.google.appengine.api.capabilities.CapabilitiesPb.internal_static_java_apphosting_CapabilityConfig_descriptor;
}
@java.lang.Override
public com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig getDefaultInstanceForType() {
return com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig build() {
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig buildPartial() {
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig result = new com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.package_ = package_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.capability_ = capability_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.status_ = status_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.scheduledTime_ = scheduledTime_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.internalMessage_ = internalMessage_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.adminMessage_ = adminMessage_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.errorMessage_ = errorMessage_;
to_bitField0_ |= 0x00000040;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig) {
return mergeFrom((com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig other) {
if (other == com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.getDefaultInstance()) return this;
if (other.hasPackage()) {
package_ = other.package_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasCapability()) {
capability_ = other.capability_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasStatus()) {
setStatus(other.getStatus());
}
if (other.hasScheduledTime()) {
scheduledTime_ = other.scheduledTime_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.hasInternalMessage()) {
internalMessage_ = other.internalMessage_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasAdminMessage()) {
adminMessage_ = other.adminMessage_;
bitField0_ |= 0x00000020;
onChanged();
}
if (other.hasErrorMessage()) {
errorMessage_ = other.errorMessage_;
bitField0_ |= 0x00000040;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (!hasPackage()) {
return false;
}
if (!hasCapability()) {
return false;
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
package_ = input.readBytes();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18: {
capability_ = input.readBytes();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24: {
int tmpRaw = input.readEnum();
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Status tmpValue =
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Status.forNumber(tmpRaw);
if (tmpValue == null) {
mergeUnknownVarintField(3, tmpRaw);
} else {
status_ = tmpRaw;
bitField0_ |= 0x00000004;
}
break;
} // case 24
case 34: {
internalMessage_ = input.readBytes();
bitField0_ |= 0x00000010;
break;
} // case 34
case 42: {
adminMessage_ = input.readBytes();
bitField0_ |= 0x00000020;
break;
} // case 42
case 50: {
errorMessage_ = input.readBytes();
bitField0_ |= 0x00000040;
break;
} // case 50
case 58: {
scheduledTime_ = input.readBytes();
bitField0_ |= 0x00000008;
break;
} // case 58
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object package_ = "";
/**
*
* The API package to which this capability belongs. This is the
* same string that would be specified in APIRequest.api_package.
* Package names are case-sensitive.
*
*
* required string package = 1;
* @return Whether the package field is set.
*/
public boolean hasPackage() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* The API package to which this capability belongs. This is the
* same string that would be specified in APIRequest.api_package.
* Package names are case-sensitive.
*
*
* required string package = 1;
* @return The package.
*/
public java.lang.String getPackage() {
java.lang.Object ref = package_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
package_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The API package to which this capability belongs. This is the
* same string that would be specified in APIRequest.api_package.
* Package names are case-sensitive.
*
*
* required string package = 1;
* @return The bytes for package.
*/
public com.google.protobuf.ByteString
getPackageBytes() {
java.lang.Object ref = package_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
package_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The API package to which this capability belongs. This is the
* same string that would be specified in APIRequest.api_package.
* Package names are case-sensitive.
*
*
* required string package = 1;
* @param value The package to set.
* @return This builder for chaining.
*/
public Builder setPackage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
package_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* The API package to which this capability belongs. This is the
* same string that would be specified in APIRequest.api_package.
* Package names are case-sensitive.
*
*
* required string package = 1;
* @return This builder for chaining.
*/
public Builder clearPackage() {
package_ = getDefaultInstance().getPackage();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The API package to which this capability belongs. This is the
* same string that would be specified in APIRequest.api_package.
* Package names are case-sensitive.
*
*
* required string package = 1;
* @param value The bytes for package to set.
* @return This builder for chaining.
*/
public Builder setPackageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
package_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object capability_ = "";
/**
*
* The identifier for this capability. This identifier only needs
* to be unique within a given package.
* Capability names are case-sensitive.
*
*
* required string capability = 2;
* @return Whether the capability field is set.
*/
public boolean hasCapability() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* The identifier for this capability. This identifier only needs
* to be unique within a given package.
* Capability names are case-sensitive.
*
*
* required string capability = 2;
* @return The capability.
*/
public java.lang.String getCapability() {
java.lang.Object ref = capability_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
capability_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The identifier for this capability. This identifier only needs
* to be unique within a given package.
* Capability names are case-sensitive.
*
*
* required string capability = 2;
* @return The bytes for capability.
*/
public com.google.protobuf.ByteString
getCapabilityBytes() {
java.lang.Object ref = capability_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
capability_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The identifier for this capability. This identifier only needs
* to be unique within a given package.
* Capability names are case-sensitive.
*
*
* required string capability = 2;
* @param value The capability to set.
* @return This builder for chaining.
*/
public Builder setCapability(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
capability_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* The identifier for this capability. This identifier only needs
* to be unique within a given package.
* Capability names are case-sensitive.
*
*
* required string capability = 2;
* @return This builder for chaining.
*/
public Builder clearCapability() {
capability_ = getDefaultInstance().getCapability();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
* The identifier for this capability. This identifier only needs
* to be unique within a given package.
* Capability names are case-sensitive.
*
*
* required string capability = 2;
* @param value The bytes for capability to set.
* @return This builder for chaining.
*/
public Builder setCapabilityBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
capability_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private int status_ = 4;
/**
* optional .java.apphosting.CapabilityConfig.Status status = 3 [default = UNKNOWN];
* @return Whether the status field is set.
*/
@java.lang.Override public boolean hasStatus() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .java.apphosting.CapabilityConfig.Status status = 3 [default = UNKNOWN];
* @return The status.
*/
@java.lang.Override
public com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Status getStatus() {
com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Status result = com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Status.forNumber(status_);
return result == null ? com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Status.UNKNOWN : result;
}
/**
* optional .java.apphosting.CapabilityConfig.Status status = 3 [default = UNKNOWN];
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig.Status value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
status_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .java.apphosting.CapabilityConfig.Status status = 3 [default = UNKNOWN];
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000004);
status_ = 4;
onChanged();
return this;
}
private java.lang.Object scheduledTime_ = "";
/**
*
* When the status is SCHEDULED, this is the time that the outage is
* expected to begin. Note that the status does not automatically
* change to DISABLED at this time, nor do API calls start failing.
* However, clients that are using the capability introspection API
* may begin taking appropriate countermeasures at this time.
* Format: "YYYY/MM/DD hh:mm:ss". The time is assumed to be in
* Google Standard Time (PST/PDT).
*
*
* optional string scheduled_time = 7;
* @return Whether the scheduledTime field is set.
*/
public boolean hasScheduledTime() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* When the status is SCHEDULED, this is the time that the outage is
* expected to begin. Note that the status does not automatically
* change to DISABLED at this time, nor do API calls start failing.
* However, clients that are using the capability introspection API
* may begin taking appropriate countermeasures at this time.
* Format: "YYYY/MM/DD hh:mm:ss". The time is assumed to be in
* Google Standard Time (PST/PDT).
*
*
* optional string scheduled_time = 7;
* @return The scheduledTime.
*/
public java.lang.String getScheduledTime() {
java.lang.Object ref = scheduledTime_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
scheduledTime_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* When the status is SCHEDULED, this is the time that the outage is
* expected to begin. Note that the status does not automatically
* change to DISABLED at this time, nor do API calls start failing.
* However, clients that are using the capability introspection API
* may begin taking appropriate countermeasures at this time.
* Format: "YYYY/MM/DD hh:mm:ss". The time is assumed to be in
* Google Standard Time (PST/PDT).
*
*
* optional string scheduled_time = 7;
* @return The bytes for scheduledTime.
*/
public com.google.protobuf.ByteString
getScheduledTimeBytes() {
java.lang.Object ref = scheduledTime_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
scheduledTime_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* When the status is SCHEDULED, this is the time that the outage is
* expected to begin. Note that the status does not automatically
* change to DISABLED at this time, nor do API calls start failing.
* However, clients that are using the capability introspection API
* may begin taking appropriate countermeasures at this time.
* Format: "YYYY/MM/DD hh:mm:ss". The time is assumed to be in
* Google Standard Time (PST/PDT).
*
*
* optional string scheduled_time = 7;
* @param value The scheduledTime to set.
* @return This builder for chaining.
*/
public Builder setScheduledTime(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
scheduledTime_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* When the status is SCHEDULED, this is the time that the outage is
* expected to begin. Note that the status does not automatically
* change to DISABLED at this time, nor do API calls start failing.
* However, clients that are using the capability introspection API
* may begin taking appropriate countermeasures at this time.
* Format: "YYYY/MM/DD hh:mm:ss". The time is assumed to be in
* Google Standard Time (PST/PDT).
*
*
* optional string scheduled_time = 7;
* @return This builder for chaining.
*/
public Builder clearScheduledTime() {
scheduledTime_ = getDefaultInstance().getScheduledTime();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* When the status is SCHEDULED, this is the time that the outage is
* expected to begin. Note that the status does not automatically
* change to DISABLED at this time, nor do API calls start failing.
* However, clients that are using the capability introspection API
* may begin taking appropriate countermeasures at this time.
* Format: "YYYY/MM/DD hh:mm:ss". The time is assumed to be in
* Google Standard Time (PST/PDT).
*
*
* optional string scheduled_time = 7;
* @param value The bytes for scheduledTime to set.
* @return This builder for chaining.
*/
public Builder setScheduledTimeBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
scheduledTime_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private java.lang.Object internalMessage_ = "";
/**
*
* If specified, this message may be displayed to internal support
* staff (e.g. on /statusz). This field can include PCR numbers,
* datacenter identifiers, internal project names, etc.
*
*
* optional string internal_message = 4;
* @return Whether the internalMessage field is set.
*/
public boolean hasInternalMessage() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* If specified, this message may be displayed to internal support
* staff (e.g. on /statusz). This field can include PCR numbers,
* datacenter identifiers, internal project names, etc.
*
*
* optional string internal_message = 4;
* @return The internalMessage.
*/
public java.lang.String getInternalMessage() {
java.lang.Object ref = internalMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
internalMessage_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* If specified, this message may be displayed to internal support
* staff (e.g. on /statusz). This field can include PCR numbers,
* datacenter identifiers, internal project names, etc.
*
*
* optional string internal_message = 4;
* @return The bytes for internalMessage.
*/
public com.google.protobuf.ByteString
getInternalMessageBytes() {
java.lang.Object ref = internalMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
internalMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* If specified, this message may be displayed to internal support
* staff (e.g. on /statusz). This field can include PCR numbers,
* datacenter identifiers, internal project names, etc.
*
*
* optional string internal_message = 4;
* @param value The internalMessage to set.
* @return This builder for chaining.
*/
public Builder setInternalMessage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
internalMessage_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
* If specified, this message may be displayed to internal support
* staff (e.g. on /statusz). This field can include PCR numbers,
* datacenter identifiers, internal project names, etc.
*
*
* optional string internal_message = 4;
* @return This builder for chaining.
*/
public Builder clearInternalMessage() {
internalMessage_ = getDefaultInstance().getInternalMessage();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* If specified, this message may be displayed to internal support
* staff (e.g. on /statusz). This field can include PCR numbers,
* datacenter identifiers, internal project names, etc.
*
*
* optional string internal_message = 4;
* @param value The bytes for internalMessage to set.
* @return This builder for chaining.
*/
public Builder setInternalMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
internalMessage_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private java.lang.Object adminMessage_ = "";
/**
*
* If specified, this status message will be displayed to
* application administrators (e.g. via the admin console).
* NOTE: This message will be displayed to external developers, so
* it should not contain any Google-specific terminology or
* proprietary details.
*
*
* optional string admin_message = 5;
* @return Whether the adminMessage field is set.
*/
public boolean hasAdminMessage() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* If specified, this status message will be displayed to
* application administrators (e.g. via the admin console).
* NOTE: This message will be displayed to external developers, so
* it should not contain any Google-specific terminology or
* proprietary details.
*
*
* optional string admin_message = 5;
* @return The adminMessage.
*/
public java.lang.String getAdminMessage() {
java.lang.Object ref = adminMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
adminMessage_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* If specified, this status message will be displayed to
* application administrators (e.g. via the admin console).
* NOTE: This message will be displayed to external developers, so
* it should not contain any Google-specific terminology or
* proprietary details.
*
*
* optional string admin_message = 5;
* @return The bytes for adminMessage.
*/
public com.google.protobuf.ByteString
getAdminMessageBytes() {
java.lang.Object ref = adminMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
adminMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* If specified, this status message will be displayed to
* application administrators (e.g. via the admin console).
* NOTE: This message will be displayed to external developers, so
* it should not contain any Google-specific terminology or
* proprietary details.
*
*
* optional string admin_message = 5;
* @param value The adminMessage to set.
* @return This builder for chaining.
*/
public Builder setAdminMessage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
adminMessage_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
* If specified, this status message will be displayed to
* application administrators (e.g. via the admin console).
* NOTE: This message will be displayed to external developers, so
* it should not contain any Google-specific terminology or
* proprietary details.
*
*
* optional string admin_message = 5;
* @return This builder for chaining.
*/
public Builder clearAdminMessage() {
adminMessage_ = getDefaultInstance().getAdminMessage();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
*
* If specified, this status message will be displayed to
* application administrators (e.g. via the admin console).
* NOTE: This message will be displayed to external developers, so
* it should not contain any Google-specific terminology or
* proprietary details.
*
*
* optional string admin_message = 5;
* @param value The bytes for adminMessage to set.
* @return This builder for chaining.
*/
public Builder setAdminMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
adminMessage_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
private java.lang.Object errorMessage_ = "";
/**
*
* If status is set to DISABLED and this message is provided,
* it will be returned to the application in the APIResponse.
* NOTE: Some applications may (either intentionally or
* unintentionally) display this message to end users, so this
* message should be as user-friendly as possible. Put any
* technical details aimed at developers in admin_message, and any
* Google-specific details in internal_message.
*
*
* optional string error_message = 6;
* @return Whether the errorMessage field is set.
*/
public boolean hasErrorMessage() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* If status is set to DISABLED and this message is provided,
* it will be returned to the application in the APIResponse.
* NOTE: Some applications may (either intentionally or
* unintentionally) display this message to end users, so this
* message should be as user-friendly as possible. Put any
* technical details aimed at developers in admin_message, and any
* Google-specific details in internal_message.
*
*
* optional string error_message = 6;
* @return The errorMessage.
*/
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
errorMessage_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* If status is set to DISABLED and this message is provided,
* it will be returned to the application in the APIResponse.
* NOTE: Some applications may (either intentionally or
* unintentionally) display this message to end users, so this
* message should be as user-friendly as possible. Put any
* technical details aimed at developers in admin_message, and any
* Google-specific details in internal_message.
*
*
* optional string error_message = 6;
* @return The bytes for errorMessage.
*/
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* If status is set to DISABLED and this message is provided,
* it will be returned to the application in the APIResponse.
* NOTE: Some applications may (either intentionally or
* unintentionally) display this message to end users, so this
* message should be as user-friendly as possible. Put any
* technical details aimed at developers in admin_message, and any
* Google-specific details in internal_message.
*
*
* optional string error_message = 6;
* @param value The errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessage(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
errorMessage_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
* If status is set to DISABLED and this message is provided,
* it will be returned to the application in the APIResponse.
* NOTE: Some applications may (either intentionally or
* unintentionally) display this message to end users, so this
* message should be as user-friendly as possible. Put any
* technical details aimed at developers in admin_message, and any
* Google-specific details in internal_message.
*
*
* optional string error_message = 6;
* @return This builder for chaining.
*/
public Builder clearErrorMessage() {
errorMessage_ = getDefaultInstance().getErrorMessage();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
/**
*
* If status is set to DISABLED and this message is provided,
* it will be returned to the application in the APIResponse.
* NOTE: Some applications may (either intentionally or
* unintentionally) display this message to end users, so this
* message should be as user-friendly as possible. Put any
* technical details aimed at developers in admin_message, and any
* Google-specific details in internal_message.
*
*
* optional string error_message = 6;
* @param value The bytes for errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
errorMessage_ = value;
bitField0_ |= 0x00000040;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:java.apphosting.CapabilityConfig)
}
// @@protoc_insertion_point(class_scope:java.apphosting.CapabilityConfig)
private static final com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig();
}
public static com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CapabilityConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.appengine.api.capabilities.CapabilitiesPb.CapabilityConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_java_apphosting_CapabilityConfigList_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_java_apphosting_CapabilityConfigList_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_java_apphosting_CapabilityConfig_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_java_apphosting_CapabilityConfig_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\022capabilities.proto\022\017java.apphosting\"\204\001" +
"\n\024CapabilityConfigList\0221\n\006config\030\001 \003(\0132!" +
".java.apphosting.CapabilityConfig\0229\n\016def" +
"ault_config\030\002 \001(\0132!.java.apphosting.Capa" +
"bilityConfig\"\250\002\n\020CapabilityConfig\022\017\n\007pac" +
"kage\030\001 \002(\t\022\022\n\ncapability\030\002 \002(\t\022A\n\006status" +
"\030\003 \001(\0162(.java.apphosting.CapabilityConfi" +
"g.Status:\007UNKNOWN\022\026\n\016scheduled_time\030\007 \001(" +
"\t\022\030\n\020internal_message\030\004 \001(\t\022\025\n\radmin_mes" +
"sage\030\005 \001(\t\022\025\n\rerror_message\030\006 \001(\t\"L\n\006Sta" +
"tus\022\013\n\007DEFAULT\020\000\022\013\n\007ENABLED\020\001\022\r\n\tSCHEDUL" +
"ED\020\002\022\014\n\010DISABLED\020\003\022\013\n\007UNKNOWN\020\004B:\n%com.g" +
"oogle.appengine.api.capabilitiesB\016Capabi" +
"litiesPb\370\001\001"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_java_apphosting_CapabilityConfigList_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_java_apphosting_CapabilityConfigList_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_java_apphosting_CapabilityConfigList_descriptor,
new java.lang.String[] { "Config", "DefaultConfig", });
internal_static_java_apphosting_CapabilityConfig_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_java_apphosting_CapabilityConfig_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_java_apphosting_CapabilityConfig_descriptor,
new java.lang.String[] { "Package", "Capability", "Status", "ScheduledTime", "InternalMessage", "AdminMessage", "ErrorMessage", });
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy