All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.stigg.sidecar.proto.v1.ApiConfig Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: stigg/sidecar/v1/sidecar.proto
package io.stigg.sidecar.proto.v1;
/** Protobuf type {@code stigg.sidecar.v1.ApiConfig} */
public final class ApiConfig extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:stigg.sidecar.v1.ApiConfig)
ApiConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use ApiConfig.newBuilder() to construct.
private ApiConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ApiConfig() {
apiKey_ = "";
apiUrl_ = "";
edgeApiUrl_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ApiConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.stigg.sidecar.proto.v1.SidecarProto
.internal_static_stigg_sidecar_v1_ApiConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stigg.sidecar.proto.v1.SidecarProto
.internal_static_stigg_sidecar_v1_ApiConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stigg.sidecar.proto.v1.ApiConfig.class,
io.stigg.sidecar.proto.v1.ApiConfig.Builder.class);
}
private int bitField0_;
public static final int API_KEY_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object apiKey_ = "";
/**
* string api_key = 1 [json_name = "apiKey"];
*
* @return The apiKey.
*/
@java.lang.Override
public java.lang.String getApiKey() {
java.lang.Object ref = apiKey_;
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();
apiKey_ = s;
return s;
}
}
/**
* string api_key = 1 [json_name = "apiKey"];
*
* @return The bytes for apiKey.
*/
@java.lang.Override
public com.google.protobuf.ByteString getApiKeyBytes() {
java.lang.Object ref = apiKey_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
apiKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int API_URL_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object apiUrl_ = "";
/**
* optional string api_url = 2 [json_name = "apiUrl"];
*
* @return Whether the apiUrl field is set.
*/
@java.lang.Override
public boolean hasApiUrl() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string api_url = 2 [json_name = "apiUrl"];
*
* @return The apiUrl.
*/
@java.lang.Override
public java.lang.String getApiUrl() {
java.lang.Object ref = apiUrl_;
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();
apiUrl_ = s;
return s;
}
}
/**
* optional string api_url = 2 [json_name = "apiUrl"];
*
* @return The bytes for apiUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString getApiUrlBytes() {
java.lang.Object ref = apiUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
apiUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EDGE_ENABLED_FIELD_NUMBER = 3;
private boolean edgeEnabled_ = false;
/**
* optional bool edge_enabled = 3 [json_name = "edgeEnabled"];
*
* @return Whether the edgeEnabled field is set.
*/
@java.lang.Override
public boolean hasEdgeEnabled() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional bool edge_enabled = 3 [json_name = "edgeEnabled"];
*
* @return The edgeEnabled.
*/
@java.lang.Override
public boolean getEdgeEnabled() {
return edgeEnabled_;
}
public static final int EDGE_API_URL_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object edgeApiUrl_ = "";
/**
* optional string edge_api_url = 4 [json_name = "edgeApiUrl"];
*
* @return Whether the edgeApiUrl field is set.
*/
@java.lang.Override
public boolean hasEdgeApiUrl() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string edge_api_url = 4 [json_name = "edgeApiUrl"];
*
* @return The edgeApiUrl.
*/
@java.lang.Override
public java.lang.String getEdgeApiUrl() {
java.lang.Object ref = edgeApiUrl_;
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();
edgeApiUrl_ = s;
return s;
}
}
/**
* optional string edge_api_url = 4 [json_name = "edgeApiUrl"];
*
* @return The bytes for edgeApiUrl.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEdgeApiUrlBytes() {
java.lang.Object ref = edgeApiUrl_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
edgeApiUrl_ = 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;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiKey_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiKey_);
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, apiUrl_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBool(3, edgeEnabled_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, edgeApiUrl_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiKey_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiKey_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, apiUrl_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, edgeEnabled_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, edgeApiUrl_);
}
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 io.stigg.sidecar.proto.v1.ApiConfig)) {
return super.equals(obj);
}
io.stigg.sidecar.proto.v1.ApiConfig other = (io.stigg.sidecar.proto.v1.ApiConfig) obj;
if (!getApiKey().equals(other.getApiKey())) return false;
if (hasApiUrl() != other.hasApiUrl()) return false;
if (hasApiUrl()) {
if (!getApiUrl().equals(other.getApiUrl())) return false;
}
if (hasEdgeEnabled() != other.hasEdgeEnabled()) return false;
if (hasEdgeEnabled()) {
if (getEdgeEnabled() != other.getEdgeEnabled()) return false;
}
if (hasEdgeApiUrl() != other.hasEdgeApiUrl()) return false;
if (hasEdgeApiUrl()) {
if (!getEdgeApiUrl().equals(other.getEdgeApiUrl())) 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();
hash = (37 * hash) + API_KEY_FIELD_NUMBER;
hash = (53 * hash) + getApiKey().hashCode();
if (hasApiUrl()) {
hash = (37 * hash) + API_URL_FIELD_NUMBER;
hash = (53 * hash) + getApiUrl().hashCode();
}
if (hasEdgeEnabled()) {
hash = (37 * hash) + EDGE_ENABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEdgeEnabled());
}
if (hasEdgeApiUrl()) {
hash = (37 * hash) + EDGE_API_URL_FIELD_NUMBER;
hash = (53 * hash) + getEdgeApiUrl().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.stigg.sidecar.proto.v1.ApiConfig parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stigg.sidecar.proto.v1.ApiConfig parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stigg.sidecar.proto.v1.ApiConfig parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stigg.sidecar.proto.v1.ApiConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stigg.sidecar.proto.v1.ApiConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.stigg.sidecar.proto.v1.ApiConfig parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.stigg.sidecar.proto.v1.ApiConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.stigg.sidecar.proto.v1.ApiConfig 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 io.stigg.sidecar.proto.v1.ApiConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static io.stigg.sidecar.proto.v1.ApiConfig 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 io.stigg.sidecar.proto.v1.ApiConfig parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static io.stigg.sidecar.proto.v1.ApiConfig 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(io.stigg.sidecar.proto.v1.ApiConfig 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 stigg.sidecar.v1.ApiConfig} */
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:stigg.sidecar.v1.ApiConfig)
io.stigg.sidecar.proto.v1.ApiConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return io.stigg.sidecar.proto.v1.SidecarProto
.internal_static_stigg_sidecar_v1_ApiConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.stigg.sidecar.proto.v1.SidecarProto
.internal_static_stigg_sidecar_v1_ApiConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.stigg.sidecar.proto.v1.ApiConfig.class,
io.stigg.sidecar.proto.v1.ApiConfig.Builder.class);
}
// Construct using io.stigg.sidecar.proto.v1.ApiConfig.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
apiKey_ = "";
apiUrl_ = "";
edgeEnabled_ = false;
edgeApiUrl_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return io.stigg.sidecar.proto.v1.SidecarProto
.internal_static_stigg_sidecar_v1_ApiConfig_descriptor;
}
@java.lang.Override
public io.stigg.sidecar.proto.v1.ApiConfig getDefaultInstanceForType() {
return io.stigg.sidecar.proto.v1.ApiConfig.getDefaultInstance();
}
@java.lang.Override
public io.stigg.sidecar.proto.v1.ApiConfig build() {
io.stigg.sidecar.proto.v1.ApiConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.stigg.sidecar.proto.v1.ApiConfig buildPartial() {
io.stigg.sidecar.proto.v1.ApiConfig result = new io.stigg.sidecar.proto.v1.ApiConfig(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(io.stigg.sidecar.proto.v1.ApiConfig result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.apiKey_ = apiKey_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.apiUrl_ = apiUrl_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.edgeEnabled_ = edgeEnabled_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.edgeApiUrl_ = edgeApiUrl_;
to_bitField0_ |= 0x00000004;
}
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 io.stigg.sidecar.proto.v1.ApiConfig) {
return mergeFrom((io.stigg.sidecar.proto.v1.ApiConfig) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.stigg.sidecar.proto.v1.ApiConfig other) {
if (other == io.stigg.sidecar.proto.v1.ApiConfig.getDefaultInstance()) return this;
if (!other.getApiKey().isEmpty()) {
apiKey_ = other.apiKey_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasApiUrl()) {
apiUrl_ = other.apiUrl_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasEdgeEnabled()) {
setEdgeEnabled(other.getEdgeEnabled());
}
if (other.hasEdgeApiUrl()) {
edgeApiUrl_ = other.edgeApiUrl_;
bitField0_ |= 0x00000008;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
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:
{
apiKey_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
apiUrl_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 24:
{
edgeEnabled_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 24
case 34:
{
edgeApiUrl_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
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 apiKey_ = "";
/**
* string api_key = 1 [json_name = "apiKey"];
*
* @return The apiKey.
*/
public java.lang.String getApiKey() {
java.lang.Object ref = apiKey_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
apiKey_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string api_key = 1 [json_name = "apiKey"];
*
* @return The bytes for apiKey.
*/
public com.google.protobuf.ByteString getApiKeyBytes() {
java.lang.Object ref = apiKey_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
apiKey_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string api_key = 1 [json_name = "apiKey"];
*
* @param value The apiKey to set.
* @return This builder for chaining.
*/
public Builder setApiKey(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
apiKey_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string api_key = 1 [json_name = "apiKey"];
*
* @return This builder for chaining.
*/
public Builder clearApiKey() {
apiKey_ = getDefaultInstance().getApiKey();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string api_key = 1 [json_name = "apiKey"];
*
* @param value The bytes for apiKey to set.
* @return This builder for chaining.
*/
public Builder setApiKeyBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
apiKey_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object apiUrl_ = "";
/**
* optional string api_url = 2 [json_name = "apiUrl"];
*
* @return Whether the apiUrl field is set.
*/
public boolean hasApiUrl() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string api_url = 2 [json_name = "apiUrl"];
*
* @return The apiUrl.
*/
public java.lang.String getApiUrl() {
java.lang.Object ref = apiUrl_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
apiUrl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string api_url = 2 [json_name = "apiUrl"];
*
* @return The bytes for apiUrl.
*/
public com.google.protobuf.ByteString getApiUrlBytes() {
java.lang.Object ref = apiUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
apiUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string api_url = 2 [json_name = "apiUrl"];
*
* @param value The apiUrl to set.
* @return This builder for chaining.
*/
public Builder setApiUrl(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
apiUrl_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* optional string api_url = 2 [json_name = "apiUrl"];
*
* @return This builder for chaining.
*/
public Builder clearApiUrl() {
apiUrl_ = getDefaultInstance().getApiUrl();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* optional string api_url = 2 [json_name = "apiUrl"];
*
* @param value The bytes for apiUrl to set.
* @return This builder for chaining.
*/
public Builder setApiUrlBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
apiUrl_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private boolean edgeEnabled_;
/**
* optional bool edge_enabled = 3 [json_name = "edgeEnabled"];
*
* @return Whether the edgeEnabled field is set.
*/
@java.lang.Override
public boolean hasEdgeEnabled() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional bool edge_enabled = 3 [json_name = "edgeEnabled"];
*
* @return The edgeEnabled.
*/
@java.lang.Override
public boolean getEdgeEnabled() {
return edgeEnabled_;
}
/**
* optional bool edge_enabled = 3 [json_name = "edgeEnabled"];
*
* @param value The edgeEnabled to set.
* @return This builder for chaining.
*/
public Builder setEdgeEnabled(boolean value) {
edgeEnabled_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
* optional bool edge_enabled = 3 [json_name = "edgeEnabled"];
*
* @return This builder for chaining.
*/
public Builder clearEdgeEnabled() {
bitField0_ = (bitField0_ & ~0x00000004);
edgeEnabled_ = false;
onChanged();
return this;
}
private java.lang.Object edgeApiUrl_ = "";
/**
* optional string edge_api_url = 4 [json_name = "edgeApiUrl"];
*
* @return Whether the edgeApiUrl field is set.
*/
public boolean hasEdgeApiUrl() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string edge_api_url = 4 [json_name = "edgeApiUrl"];
*
* @return The edgeApiUrl.
*/
public java.lang.String getEdgeApiUrl() {
java.lang.Object ref = edgeApiUrl_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
edgeApiUrl_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string edge_api_url = 4 [json_name = "edgeApiUrl"];
*
* @return The bytes for edgeApiUrl.
*/
public com.google.protobuf.ByteString getEdgeApiUrlBytes() {
java.lang.Object ref = edgeApiUrl_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
edgeApiUrl_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string edge_api_url = 4 [json_name = "edgeApiUrl"];
*
* @param value The edgeApiUrl to set.
* @return This builder for chaining.
*/
public Builder setEdgeApiUrl(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
edgeApiUrl_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
* optional string edge_api_url = 4 [json_name = "edgeApiUrl"];
*
* @return This builder for chaining.
*/
public Builder clearEdgeApiUrl() {
edgeApiUrl_ = getDefaultInstance().getEdgeApiUrl();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* optional string edge_api_url = 4 [json_name = "edgeApiUrl"];
*
* @param value The bytes for edgeApiUrl to set.
* @return This builder for chaining.
*/
public Builder setEdgeApiUrlBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
edgeApiUrl_ = value;
bitField0_ |= 0x00000008;
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:stigg.sidecar.v1.ApiConfig)
}
// @@protoc_insertion_point(class_scope:stigg.sidecar.v1.ApiConfig)
private static final io.stigg.sidecar.proto.v1.ApiConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.stigg.sidecar.proto.v1.ApiConfig();
}
public static io.stigg.sidecar.proto.v1.ApiConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ApiConfig 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 io.stigg.sidecar.proto.v1.ApiConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}