com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-compute-v1 Show documentation
Show all versions of proto-google-cloud-compute-v1 Show documentation
Proto library for google-cloud-compute
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/compute/v1/compute.proto
// Protobuf Java Version: 3.25.5
package com.google.cloud.compute.v1;
/**
*
*
*
*
*
* Protobuf type {@code google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig}
*/
public final class SecurityPolicyAdvancedOptionsConfig
extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig)
SecurityPolicyAdvancedOptionsConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use SecurityPolicyAdvancedOptionsConfig.newBuilder() to construct.
private SecurityPolicyAdvancedOptionsConfig(
com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SecurityPolicyAdvancedOptionsConfig() {
jsonParsing_ = "";
logLevel_ = "";
userIpRequestHeaders_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new SecurityPolicyAdvancedOptionsConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig.class,
com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig.Builder.class);
}
/**
*
*
*
*
*
* Protobuf enum {@code google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig.JsonParsing}
*/
public enum JsonParsing implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* A value indicating that the enum field is not set.
*
*
* UNDEFINED_JSON_PARSING = 0;
*/
UNDEFINED_JSON_PARSING(0),
/** DISABLED = 516696700;
*/
DISABLED(516696700),
/** STANDARD = 484642493;
*/
STANDARD(484642493),
/** STANDARD_WITH_GRAPHQL = 106979218;
*/
STANDARD_WITH_GRAPHQL(106979218),
UNRECOGNIZED(-1),
;
/**
*
*
*
* A value indicating that the enum field is not set.
*
*
* UNDEFINED_JSON_PARSING = 0;
*/
public static final int UNDEFINED_JSON_PARSING_VALUE = 0;
/** DISABLED = 516696700;
*/
public static final int DISABLED_VALUE = 516696700;
/** STANDARD = 484642493;
*/
public static final int STANDARD_VALUE = 484642493;
/** STANDARD_WITH_GRAPHQL = 106979218;
*/
public static final int STANDARD_WITH_GRAPHQL_VALUE = 106979218;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
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 JsonParsing 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 JsonParsing forNumber(int value) {
switch (value) {
case 0:
return UNDEFINED_JSON_PARSING;
case 516696700:
return DISABLED;
case 484642493:
return STANDARD;
case 106979218:
return STANDARD_WITH_GRAPHQL;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public JsonParsing findValueByNumber(int number) {
return JsonParsing.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
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.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig.getDescriptor()
.getEnumTypes()
.get(0);
}
private static final JsonParsing[] VALUES = values();
public static JsonParsing valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private JsonParsing(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig.JsonParsing)
}
/**
*
*
*
*
*
* Protobuf enum {@code google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig.LogLevel}
*/
public enum LogLevel implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* A value indicating that the enum field is not set.
*
*
* UNDEFINED_LOG_LEVEL = 0;
*/
UNDEFINED_LOG_LEVEL(0),
/** NORMAL = 161067239;
*/
NORMAL(161067239),
/** VERBOSE = 532219234;
*/
VERBOSE(532219234),
UNRECOGNIZED(-1),
;
/**
*
*
*
* A value indicating that the enum field is not set.
*
*
* UNDEFINED_LOG_LEVEL = 0;
*/
public static final int UNDEFINED_LOG_LEVEL_VALUE = 0;
/** NORMAL = 161067239;
*/
public static final int NORMAL_VALUE = 161067239;
/** VERBOSE = 532219234;
*/
public static final int VERBOSE_VALUE = 532219234;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
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 LogLevel 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 LogLevel forNumber(int value) {
switch (value) {
case 0:
return UNDEFINED_LOG_LEVEL;
case 161067239:
return NORMAL;
case 532219234:
return VERBOSE;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public LogLevel findValueByNumber(int number) {
return LogLevel.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
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.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig.getDescriptor()
.getEnumTypes()
.get(1);
}
private static final LogLevel[] VALUES = values();
public static LogLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private LogLevel(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig.LogLevel)
}
private int bitField0_;
public static final int JSON_CUSTOM_CONFIG_FIELD_NUMBER = 111570105;
private com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig
jsonCustomConfig_;
/**
*
*
*
* Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
*
*
*
* optional .google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig json_custom_config = 111570105;
*
*
* @return Whether the jsonCustomConfig field is set.
*/
@java.lang.Override
public boolean hasJsonCustomConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
*
*
*
* optional .google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig json_custom_config = 111570105;
*
*
* @return The jsonCustomConfig.
*/
@java.lang.Override
public com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig
getJsonCustomConfig() {
return jsonCustomConfig_ == null
? com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig
.getDefaultInstance()
: jsonCustomConfig_;
}
/**
*
*
*
* Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
*
*
*
* optional .google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig json_custom_config = 111570105;
*
*/
@java.lang.Override
public com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfigOrBuilder
getJsonCustomConfigOrBuilder() {
return jsonCustomConfig_ == null
? com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig
.getDefaultInstance()
: jsonCustomConfig_;
}
public static final int JSON_PARSING_FIELD_NUMBER = 282493529;
@SuppressWarnings("serial")
private volatile java.lang.Object jsonParsing_ = "";
/**
*
*
*
*
* Check the JsonParsing enum for the list of possible values.
*
*
* optional string json_parsing = 282493529;
*
* @return Whether the jsonParsing field is set.
*/
@java.lang.Override
public boolean hasJsonParsing() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
*
* Check the JsonParsing enum for the list of possible values.
*
*
* optional string json_parsing = 282493529;
*
* @return The jsonParsing.
*/
@java.lang.Override
public java.lang.String getJsonParsing() {
java.lang.Object ref = jsonParsing_;
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();
jsonParsing_ = s;
return s;
}
}
/**
*
*
*
*
* Check the JsonParsing enum for the list of possible values.
*
*
* optional string json_parsing = 282493529;
*
* @return The bytes for jsonParsing.
*/
@java.lang.Override
public com.google.protobuf.ByteString getJsonParsingBytes() {
java.lang.Object ref = jsonParsing_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
jsonParsing_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOG_LEVEL_FIELD_NUMBER = 140582601;
@SuppressWarnings("serial")
private volatile java.lang.Object logLevel_ = "";
/**
*
*
*
*
* Check the LogLevel enum for the list of possible values.
*
*
* optional string log_level = 140582601;
*
* @return Whether the logLevel field is set.
*/
@java.lang.Override
public boolean hasLogLevel() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
*
* Check the LogLevel enum for the list of possible values.
*
*
* optional string log_level = 140582601;
*
* @return The logLevel.
*/
@java.lang.Override
public java.lang.String getLogLevel() {
java.lang.Object ref = logLevel_;
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();
logLevel_ = s;
return s;
}
}
/**
*
*
*
*
* Check the LogLevel enum for the list of possible values.
*
*
* optional string log_level = 140582601;
*
* @return The bytes for logLevel.
*/
@java.lang.Override
public com.google.protobuf.ByteString getLogLevelBytes() {
java.lang.Object ref = logLevel_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
logLevel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USER_IP_REQUEST_HEADERS_FIELD_NUMBER = 421050290;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList userIpRequestHeaders_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* An optional list of case-insensitive request header names to use for resolving the callers client IP address.
*
*
* repeated string user_ip_request_headers = 421050290;
*
* @return A list containing the userIpRequestHeaders.
*/
public com.google.protobuf.ProtocolStringList getUserIpRequestHeadersList() {
return userIpRequestHeaders_;
}
/**
*
*
*
* An optional list of case-insensitive request header names to use for resolving the callers client IP address.
*
*
* repeated string user_ip_request_headers = 421050290;
*
* @return The count of userIpRequestHeaders.
*/
public int getUserIpRequestHeadersCount() {
return userIpRequestHeaders_.size();
}
/**
*
*
*
* An optional list of case-insensitive request header names to use for resolving the callers client IP address.
*
*
* repeated string user_ip_request_headers = 421050290;
*
* @param index The index of the element to return.
* @return The userIpRequestHeaders at the given index.
*/
public java.lang.String getUserIpRequestHeaders(int index) {
return userIpRequestHeaders_.get(index);
}
/**
*
*
*
* An optional list of case-insensitive request header names to use for resolving the callers client IP address.
*
*
* repeated string user_ip_request_headers = 421050290;
*
* @param index The index of the value to return.
* @return The bytes of the userIpRequestHeaders at the given index.
*/
public com.google.protobuf.ByteString getUserIpRequestHeadersBytes(int index) {
return userIpRequestHeaders_.getByteString(index);
}
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 (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(111570105, getJsonCustomConfig());
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 140582601, logLevel_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 282493529, jsonParsing_);
}
for (int i = 0; i < userIpRequestHeaders_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(
output, 421050290, userIpRequestHeaders_.getRaw(i));
}
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.CodedOutputStream.computeMessageSize(
111570105, getJsonCustomConfig());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(140582601, logLevel_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(282493529, jsonParsing_);
}
{
int dataSize = 0;
for (int i = 0; i < userIpRequestHeaders_.size(); i++) {
dataSize += computeStringSizeNoTag(userIpRequestHeaders_.getRaw(i));
}
size += dataSize;
size += 5 * getUserIpRequestHeadersList().size();
}
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.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig)) {
return super.equals(obj);
}
com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig other =
(com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig) obj;
if (hasJsonCustomConfig() != other.hasJsonCustomConfig()) return false;
if (hasJsonCustomConfig()) {
if (!getJsonCustomConfig().equals(other.getJsonCustomConfig())) return false;
}
if (hasJsonParsing() != other.hasJsonParsing()) return false;
if (hasJsonParsing()) {
if (!getJsonParsing().equals(other.getJsonParsing())) return false;
}
if (hasLogLevel() != other.hasLogLevel()) return false;
if (hasLogLevel()) {
if (!getLogLevel().equals(other.getLogLevel())) return false;
}
if (!getUserIpRequestHeadersList().equals(other.getUserIpRequestHeadersList())) 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 (hasJsonCustomConfig()) {
hash = (37 * hash) + JSON_CUSTOM_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getJsonCustomConfig().hashCode();
}
if (hasJsonParsing()) {
hash = (37 * hash) + JSON_PARSING_FIELD_NUMBER;
hash = (53 * hash) + getJsonParsing().hashCode();
}
if (hasLogLevel()) {
hash = (37 * hash) + LOG_LEVEL_FIELD_NUMBER;
hash = (53 * hash) + getLogLevel().hashCode();
}
if (getUserIpRequestHeadersCount() > 0) {
hash = (37 * hash) + USER_IP_REQUEST_HEADERS_FIELD_NUMBER;
hash = (53 * hash) + getUserIpRequestHeadersList().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig 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.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig 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.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig 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.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig 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.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig 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 google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig)
com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig.class,
com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig.Builder.class);
}
// Construct using com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getJsonCustomConfigFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
jsonCustomConfig_ = null;
if (jsonCustomConfigBuilder_ != null) {
jsonCustomConfigBuilder_.dispose();
jsonCustomConfigBuilder_ = null;
}
jsonParsing_ = "";
logLevel_ = "";
userIpRequestHeaders_ = com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_SecurityPolicyAdvancedOptionsConfig_descriptor;
}
@java.lang.Override
public com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig
getDefaultInstanceForType() {
return com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig build() {
com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig buildPartial() {
com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig result =
new com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.jsonCustomConfig_ =
jsonCustomConfigBuilder_ == null ? jsonCustomConfig_ : jsonCustomConfigBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.jsonParsing_ = jsonParsing_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.logLevel_ = logLevel_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
userIpRequestHeaders_.makeImmutable();
result.userIpRequestHeaders_ = userIpRequestHeaders_;
}
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.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig) {
return mergeFrom((com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig other) {
if (other
== com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig.getDefaultInstance())
return this;
if (other.hasJsonCustomConfig()) {
mergeJsonCustomConfig(other.getJsonCustomConfig());
}
if (other.hasJsonParsing()) {
jsonParsing_ = other.jsonParsing_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasLogLevel()) {
logLevel_ = other.logLevel_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.userIpRequestHeaders_.isEmpty()) {
if (userIpRequestHeaders_.isEmpty()) {
userIpRequestHeaders_ = other.userIpRequestHeaders_;
bitField0_ |= 0x00000008;
} else {
ensureUserIpRequestHeadersIsMutable();
userIpRequestHeaders_.addAll(other.userIpRequestHeaders_);
}
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 892560842:
{
input.readMessage(
getJsonCustomConfigFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 892560842
case 1124660810:
{
logLevel_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 1124660810
case -2035019062:
{
jsonParsing_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case -2035019062
case -926564974:
{
java.lang.String s = input.readStringRequireUtf8();
ensureUserIpRequestHeadersIsMutable();
userIpRequestHeaders_.add(s);
break;
} // case -926564974
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 com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig
jsonCustomConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig,
com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder,
com.google.cloud.compute.v1
.SecurityPolicyAdvancedOptionsConfigJsonCustomConfigOrBuilder>
jsonCustomConfigBuilder_;
/**
*
*
*
* Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
*
*
*
* optional .google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig json_custom_config = 111570105;
*
*
* @return Whether the jsonCustomConfig field is set.
*/
public boolean hasJsonCustomConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
*
*
*
* optional .google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig json_custom_config = 111570105;
*
*
* @return The jsonCustomConfig.
*/
public com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig
getJsonCustomConfig() {
if (jsonCustomConfigBuilder_ == null) {
return jsonCustomConfig_ == null
? com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig
.getDefaultInstance()
: jsonCustomConfig_;
} else {
return jsonCustomConfigBuilder_.getMessage();
}
}
/**
*
*
*
* Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
*
*
*
* optional .google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig json_custom_config = 111570105;
*
*/
public Builder setJsonCustomConfig(
com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig value) {
if (jsonCustomConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
jsonCustomConfig_ = value;
} else {
jsonCustomConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
*
*
*
* optional .google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig json_custom_config = 111570105;
*
*/
public Builder setJsonCustomConfig(
com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder
builderForValue) {
if (jsonCustomConfigBuilder_ == null) {
jsonCustomConfig_ = builderForValue.build();
} else {
jsonCustomConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
*
*
*
* optional .google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig json_custom_config = 111570105;
*
*/
public Builder mergeJsonCustomConfig(
com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig value) {
if (jsonCustomConfigBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& jsonCustomConfig_ != null
&& jsonCustomConfig_
!= com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig
.getDefaultInstance()) {
getJsonCustomConfigBuilder().mergeFrom(value);
} else {
jsonCustomConfig_ = value;
}
} else {
jsonCustomConfigBuilder_.mergeFrom(value);
}
if (jsonCustomConfig_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
*
*
*
* optional .google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig json_custom_config = 111570105;
*
*/
public Builder clearJsonCustomConfig() {
bitField0_ = (bitField0_ & ~0x00000001);
jsonCustomConfig_ = null;
if (jsonCustomConfigBuilder_ != null) {
jsonCustomConfigBuilder_.dispose();
jsonCustomConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
*
*
*
* optional .google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig json_custom_config = 111570105;
*
*/
public com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder
getJsonCustomConfigBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getJsonCustomConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
*
*
*
* optional .google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig json_custom_config = 111570105;
*
*/
public com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfigOrBuilder
getJsonCustomConfigOrBuilder() {
if (jsonCustomConfigBuilder_ != null) {
return jsonCustomConfigBuilder_.getMessageOrBuilder();
} else {
return jsonCustomConfig_ == null
? com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig
.getDefaultInstance()
: jsonCustomConfig_;
}
}
/**
*
*
*
* Custom configuration to apply the JSON parsing. Only applicable when json_parsing is set to STANDARD.
*
*
*
* optional .google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig json_custom_config = 111570105;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig,
com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig.Builder,
com.google.cloud.compute.v1
.SecurityPolicyAdvancedOptionsConfigJsonCustomConfigOrBuilder>
getJsonCustomConfigFieldBuilder() {
if (jsonCustomConfigBuilder_ == null) {
jsonCustomConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig,
com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfigJsonCustomConfig
.Builder,
com.google.cloud.compute.v1
.SecurityPolicyAdvancedOptionsConfigJsonCustomConfigOrBuilder>(
getJsonCustomConfig(), getParentForChildren(), isClean());
jsonCustomConfig_ = null;
}
return jsonCustomConfigBuilder_;
}
private java.lang.Object jsonParsing_ = "";
/**
*
*
*
*
* Check the JsonParsing enum for the list of possible values.
*
*
* optional string json_parsing = 282493529;
*
* @return Whether the jsonParsing field is set.
*/
public boolean hasJsonParsing() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
*
* Check the JsonParsing enum for the list of possible values.
*
*
* optional string json_parsing = 282493529;
*
* @return The jsonParsing.
*/
public java.lang.String getJsonParsing() {
java.lang.Object ref = jsonParsing_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
jsonParsing_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
*
* Check the JsonParsing enum for the list of possible values.
*
*
* optional string json_parsing = 282493529;
*
* @return The bytes for jsonParsing.
*/
public com.google.protobuf.ByteString getJsonParsingBytes() {
java.lang.Object ref = jsonParsing_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
jsonParsing_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
*
* Check the JsonParsing enum for the list of possible values.
*
*
* optional string json_parsing = 282493529;
*
* @param value The jsonParsing to set.
* @return This builder for chaining.
*/
public Builder setJsonParsing(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
jsonParsing_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
*
* Check the JsonParsing enum for the list of possible values.
*
*
* optional string json_parsing = 282493529;
*
* @return This builder for chaining.
*/
public Builder clearJsonParsing() {
jsonParsing_ = getDefaultInstance().getJsonParsing();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
*
* Check the JsonParsing enum for the list of possible values.
*
*
* optional string json_parsing = 282493529;
*
* @param value The bytes for jsonParsing to set.
* @return This builder for chaining.
*/
public Builder setJsonParsingBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
jsonParsing_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object logLevel_ = "";
/**
*
*
*
*
* Check the LogLevel enum for the list of possible values.
*
*
* optional string log_level = 140582601;
*
* @return Whether the logLevel field is set.
*/
public boolean hasLogLevel() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
*
* Check the LogLevel enum for the list of possible values.
*
*
* optional string log_level = 140582601;
*
* @return The logLevel.
*/
public java.lang.String getLogLevel() {
java.lang.Object ref = logLevel_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
logLevel_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
*
* Check the LogLevel enum for the list of possible values.
*
*
* optional string log_level = 140582601;
*
* @return The bytes for logLevel.
*/
public com.google.protobuf.ByteString getLogLevelBytes() {
java.lang.Object ref = logLevel_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
logLevel_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
*
* Check the LogLevel enum for the list of possible values.
*
*
* optional string log_level = 140582601;
*
* @param value The logLevel to set.
* @return This builder for chaining.
*/
public Builder setLogLevel(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
logLevel_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
*
* Check the LogLevel enum for the list of possible values.
*
*
* optional string log_level = 140582601;
*
* @return This builder for chaining.
*/
public Builder clearLogLevel() {
logLevel_ = getDefaultInstance().getLogLevel();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
*
* Check the LogLevel enum for the list of possible values.
*
*
* optional string log_level = 140582601;
*
* @param value The bytes for logLevel to set.
* @return This builder for chaining.
*/
public Builder setLogLevelBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
logLevel_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList userIpRequestHeaders_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureUserIpRequestHeadersIsMutable() {
if (!userIpRequestHeaders_.isModifiable()) {
userIpRequestHeaders_ = new com.google.protobuf.LazyStringArrayList(userIpRequestHeaders_);
}
bitField0_ |= 0x00000008;
}
/**
*
*
*
* An optional list of case-insensitive request header names to use for resolving the callers client IP address.
*
*
* repeated string user_ip_request_headers = 421050290;
*
* @return A list containing the userIpRequestHeaders.
*/
public com.google.protobuf.ProtocolStringList getUserIpRequestHeadersList() {
userIpRequestHeaders_.makeImmutable();
return userIpRequestHeaders_;
}
/**
*
*
*
* An optional list of case-insensitive request header names to use for resolving the callers client IP address.
*
*
* repeated string user_ip_request_headers = 421050290;
*
* @return The count of userIpRequestHeaders.
*/
public int getUserIpRequestHeadersCount() {
return userIpRequestHeaders_.size();
}
/**
*
*
*
* An optional list of case-insensitive request header names to use for resolving the callers client IP address.
*
*
* repeated string user_ip_request_headers = 421050290;
*
* @param index The index of the element to return.
* @return The userIpRequestHeaders at the given index.
*/
public java.lang.String getUserIpRequestHeaders(int index) {
return userIpRequestHeaders_.get(index);
}
/**
*
*
*
* An optional list of case-insensitive request header names to use for resolving the callers client IP address.
*
*
* repeated string user_ip_request_headers = 421050290;
*
* @param index The index of the value to return.
* @return The bytes of the userIpRequestHeaders at the given index.
*/
public com.google.protobuf.ByteString getUserIpRequestHeadersBytes(int index) {
return userIpRequestHeaders_.getByteString(index);
}
/**
*
*
*
* An optional list of case-insensitive request header names to use for resolving the callers client IP address.
*
*
* repeated string user_ip_request_headers = 421050290;
*
* @param index The index to set the value at.
* @param value The userIpRequestHeaders to set.
* @return This builder for chaining.
*/
public Builder setUserIpRequestHeaders(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureUserIpRequestHeadersIsMutable();
userIpRequestHeaders_.set(index, value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* An optional list of case-insensitive request header names to use for resolving the callers client IP address.
*
*
* repeated string user_ip_request_headers = 421050290;
*
* @param value The userIpRequestHeaders to add.
* @return This builder for chaining.
*/
public Builder addUserIpRequestHeaders(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureUserIpRequestHeadersIsMutable();
userIpRequestHeaders_.add(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* An optional list of case-insensitive request header names to use for resolving the callers client IP address.
*
*
* repeated string user_ip_request_headers = 421050290;
*
* @param values The userIpRequestHeaders to add.
* @return This builder for chaining.
*/
public Builder addAllUserIpRequestHeaders(java.lang.Iterable values) {
ensureUserIpRequestHeadersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userIpRequestHeaders_);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* An optional list of case-insensitive request header names to use for resolving the callers client IP address.
*
*
* repeated string user_ip_request_headers = 421050290;
*
* @return This builder for chaining.
*/
public Builder clearUserIpRequestHeaders() {
userIpRequestHeaders_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
;
onChanged();
return this;
}
/**
*
*
*
* An optional list of case-insensitive request header names to use for resolving the callers client IP address.
*
*
* repeated string user_ip_request_headers = 421050290;
*
* @param value The bytes of the userIpRequestHeaders to add.
* @return This builder for chaining.
*/
public Builder addUserIpRequestHeadersBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureUserIpRequestHeadersIsMutable();
userIpRequestHeaders_.add(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:google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig)
}
// @@protoc_insertion_point(class_scope:google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig)
private static final com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig();
}
public static com.google.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SecurityPolicyAdvancedOptionsConfig 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.cloud.compute.v1.SecurityPolicyAdvancedOptionsConfig
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy