com.google.appengine.v1.Network Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-appengine-admin-v1 Show documentation
Show all versions of proto-google-cloud-appengine-admin-v1 Show documentation
Proto library for google-cloud-appengine-admin
/*
* Copyright 2023 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/appengine/v1/version.proto
package com.google.appengine.v1;
/**
*
*
*
* Extra network settings.
* Only applicable in the App Engine flexible environment.
*
*
* Protobuf type {@code google.appengine.v1.Network}
*/
public final class Network extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.appengine.v1.Network)
NetworkOrBuilder {
private static final long serialVersionUID = 0L;
// Use Network.newBuilder() to construct.
private Network(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Network() {
forwardedPorts_ = com.google.protobuf.LazyStringArrayList.emptyList();
instanceTag_ = "";
name_ = "";
subnetworkName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Network();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.appengine.v1.VersionProto
.internal_static_google_appengine_v1_Network_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.v1.VersionProto
.internal_static_google_appengine_v1_Network_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.v1.Network.class, com.google.appengine.v1.Network.Builder.class);
}
public static final int FORWARDED_PORTS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList forwardedPorts_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* List of ports, or port pairs, to forward from the virtual machine to the
* application container.
* Only applicable in the App Engine flexible environment.
*
*
* repeated string forwarded_ports = 1;
*
* @return A list containing the forwardedPorts.
*/
public com.google.protobuf.ProtocolStringList getForwardedPortsList() {
return forwardedPorts_;
}
/**
*
*
*
* List of ports, or port pairs, to forward from the virtual machine to the
* application container.
* Only applicable in the App Engine flexible environment.
*
*
* repeated string forwarded_ports = 1;
*
* @return The count of forwardedPorts.
*/
public int getForwardedPortsCount() {
return forwardedPorts_.size();
}
/**
*
*
*
* List of ports, or port pairs, to forward from the virtual machine to the
* application container.
* Only applicable in the App Engine flexible environment.
*
*
* repeated string forwarded_ports = 1;
*
* @param index The index of the element to return.
* @return The forwardedPorts at the given index.
*/
public java.lang.String getForwardedPorts(int index) {
return forwardedPorts_.get(index);
}
/**
*
*
*
* List of ports, or port pairs, to forward from the virtual machine to the
* application container.
* Only applicable in the App Engine flexible environment.
*
*
* repeated string forwarded_ports = 1;
*
* @param index The index of the value to return.
* @return The bytes of the forwardedPorts at the given index.
*/
public com.google.protobuf.ByteString getForwardedPortsBytes(int index) {
return forwardedPorts_.getByteString(index);
}
public static final int INSTANCE_TAG_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object instanceTag_ = "";
/**
*
*
*
* Tag to apply to the instance during creation.
* Only applicable in the App Engine flexible environment.
*
*
* string instance_tag = 2;
*
* @return The instanceTag.
*/
@java.lang.Override
public java.lang.String getInstanceTag() {
java.lang.Object ref = instanceTag_;
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();
instanceTag_ = s;
return s;
}
}
/**
*
*
*
* Tag to apply to the instance during creation.
* Only applicable in the App Engine flexible environment.
*
*
* string instance_tag = 2;
*
* @return The bytes for instanceTag.
*/
@java.lang.Override
public com.google.protobuf.ByteString getInstanceTagBytes() {
java.lang.Object ref = instanceTag_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
instanceTag_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* Google Compute Engine network where the virtual machines are created.
* Specify the short name, not the resource path.
*
* Defaults to `default`.
*
*
* string name = 3;
*
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
name_ = s;
return s;
}
}
/**
*
*
*
* Google Compute Engine network where the virtual machines are created.
* Specify the short name, not the resource path.
*
* Defaults to `default`.
*
*
* string name = 3;
*
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SUBNETWORK_NAME_FIELD_NUMBER = 4;
@SuppressWarnings("serial")
private volatile java.lang.Object subnetworkName_ = "";
/**
*
*
*
* Google Cloud Platform sub-network where the virtual machines are created.
* Specify the short name, not the resource path.
*
* If a subnetwork name is specified, a network name will also be required
* unless it is for the default network.
*
* * If the network that the instance is being created in is a Legacy network,
* then the IP address is allocated from the IPv4Range.
* * If the network that the instance is being created in is an auto Subnet
* Mode Network, then only network name should be specified (not the
* subnetwork_name) and the IP address is created from the IPCidrRange of the
* subnetwork that exists in that zone for that network.
* * If the network that the instance is being created in is a custom Subnet
* Mode Network, then the subnetwork_name must be specified and the
* IP address is created from the IPCidrRange of the subnetwork.
*
* If specified, the subnetwork must exist in the same region as the
* App Engine flexible environment application.
*
*
* string subnetwork_name = 4;
*
* @return The subnetworkName.
*/
@java.lang.Override
public java.lang.String getSubnetworkName() {
java.lang.Object ref = subnetworkName_;
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();
subnetworkName_ = s;
return s;
}
}
/**
*
*
*
* Google Cloud Platform sub-network where the virtual machines are created.
* Specify the short name, not the resource path.
*
* If a subnetwork name is specified, a network name will also be required
* unless it is for the default network.
*
* * If the network that the instance is being created in is a Legacy network,
* then the IP address is allocated from the IPv4Range.
* * If the network that the instance is being created in is an auto Subnet
* Mode Network, then only network name should be specified (not the
* subnetwork_name) and the IP address is created from the IPCidrRange of the
* subnetwork that exists in that zone for that network.
* * If the network that the instance is being created in is a custom Subnet
* Mode Network, then the subnetwork_name must be specified and the
* IP address is created from the IPCidrRange of the subnetwork.
*
* If specified, the subnetwork must exist in the same region as the
* App Engine flexible environment application.
*
*
* string subnetwork_name = 4;
*
* @return The bytes for subnetworkName.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSubnetworkNameBytes() {
java.lang.Object ref = subnetworkName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
subnetworkName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SESSION_AFFINITY_FIELD_NUMBER = 5;
private boolean sessionAffinity_ = false;
/**
*
*
*
* Enable session affinity.
* Only applicable in the App Engine flexible environment.
*
*
* bool session_affinity = 5;
*
* @return The sessionAffinity.
*/
@java.lang.Override
public boolean getSessionAffinity() {
return sessionAffinity_;
}
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 {
for (int i = 0; i < forwardedPorts_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, forwardedPorts_.getRaw(i));
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceTag_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceTag_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetworkName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, subnetworkName_);
}
if (sessionAffinity_ != false) {
output.writeBool(5, sessionAffinity_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < forwardedPorts_.size(); i++) {
dataSize += computeStringSizeNoTag(forwardedPorts_.getRaw(i));
}
size += dataSize;
size += 1 * getForwardedPortsList().size();
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceTag_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceTag_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnetworkName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, subnetworkName_);
}
if (sessionAffinity_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, sessionAffinity_);
}
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.v1.Network)) {
return super.equals(obj);
}
com.google.appengine.v1.Network other = (com.google.appengine.v1.Network) obj;
if (!getForwardedPortsList().equals(other.getForwardedPortsList())) return false;
if (!getInstanceTag().equals(other.getInstanceTag())) return false;
if (!getName().equals(other.getName())) return false;
if (!getSubnetworkName().equals(other.getSubnetworkName())) return false;
if (getSessionAffinity() != other.getSessionAffinity()) 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 (getForwardedPortsCount() > 0) {
hash = (37 * hash) + FORWARDED_PORTS_FIELD_NUMBER;
hash = (53 * hash) + getForwardedPortsList().hashCode();
}
hash = (37 * hash) + INSTANCE_TAG_FIELD_NUMBER;
hash = (53 * hash) + getInstanceTag().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + SUBNETWORK_NAME_FIELD_NUMBER;
hash = (53 * hash) + getSubnetworkName().hashCode();
hash = (37 * hash) + SESSION_AFFINITY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSessionAffinity());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.appengine.v1.Network parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.v1.Network 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.v1.Network parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.v1.Network 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.v1.Network parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.appengine.v1.Network parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.appengine.v1.Network parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.appengine.v1.Network 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.v1.Network parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.appengine.v1.Network 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.v1.Network parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.appengine.v1.Network 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.v1.Network 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;
}
/**
*
*
*
* Extra network settings.
* Only applicable in the App Engine flexible environment.
*
*
* Protobuf type {@code google.appengine.v1.Network}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.appengine.v1.Network)
com.google.appengine.v1.NetworkOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.appengine.v1.VersionProto
.internal_static_google_appengine_v1_Network_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.appengine.v1.VersionProto
.internal_static_google_appengine_v1_Network_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.appengine.v1.Network.class, com.google.appengine.v1.Network.Builder.class);
}
// Construct using com.google.appengine.v1.Network.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
forwardedPorts_ = com.google.protobuf.LazyStringArrayList.emptyList();
instanceTag_ = "";
name_ = "";
subnetworkName_ = "";
sessionAffinity_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.appengine.v1.VersionProto
.internal_static_google_appengine_v1_Network_descriptor;
}
@java.lang.Override
public com.google.appengine.v1.Network getDefaultInstanceForType() {
return com.google.appengine.v1.Network.getDefaultInstance();
}
@java.lang.Override
public com.google.appengine.v1.Network build() {
com.google.appengine.v1.Network result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.appengine.v1.Network buildPartial() {
com.google.appengine.v1.Network result = new com.google.appengine.v1.Network(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.appengine.v1.Network result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
forwardedPorts_.makeImmutable();
result.forwardedPorts_ = forwardedPorts_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.instanceTag_ = instanceTag_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.subnetworkName_ = subnetworkName_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.sessionAffinity_ = sessionAffinity_;
}
}
@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.v1.Network) {
return mergeFrom((com.google.appengine.v1.Network) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.appengine.v1.Network other) {
if (other == com.google.appengine.v1.Network.getDefaultInstance()) return this;
if (!other.forwardedPorts_.isEmpty()) {
if (forwardedPorts_.isEmpty()) {
forwardedPorts_ = other.forwardedPorts_;
bitField0_ |= 0x00000001;
} else {
ensureForwardedPortsIsMutable();
forwardedPorts_.addAll(other.forwardedPorts_);
}
onChanged();
}
if (!other.getInstanceTag().isEmpty()) {
instanceTag_ = other.instanceTag_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getSubnetworkName().isEmpty()) {
subnetworkName_ = other.subnetworkName_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.getSessionAffinity() != false) {
setSessionAffinity(other.getSessionAffinity());
}
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:
{
java.lang.String s = input.readStringRequireUtf8();
ensureForwardedPortsIsMutable();
forwardedPorts_.add(s);
break;
} // case 10
case 18:
{
instanceTag_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
subnetworkName_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case 34
case 40:
{
sessionAffinity_ = input.readBool();
bitField0_ |= 0x00000010;
break;
} // case 40
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.protobuf.LazyStringArrayList forwardedPorts_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureForwardedPortsIsMutable() {
if (!forwardedPorts_.isModifiable()) {
forwardedPorts_ = new com.google.protobuf.LazyStringArrayList(forwardedPorts_);
}
bitField0_ |= 0x00000001;
}
/**
*
*
*
* List of ports, or port pairs, to forward from the virtual machine to the
* application container.
* Only applicable in the App Engine flexible environment.
*
*
* repeated string forwarded_ports = 1;
*
* @return A list containing the forwardedPorts.
*/
public com.google.protobuf.ProtocolStringList getForwardedPortsList() {
forwardedPorts_.makeImmutable();
return forwardedPorts_;
}
/**
*
*
*
* List of ports, or port pairs, to forward from the virtual machine to the
* application container.
* Only applicable in the App Engine flexible environment.
*
*
* repeated string forwarded_ports = 1;
*
* @return The count of forwardedPorts.
*/
public int getForwardedPortsCount() {
return forwardedPorts_.size();
}
/**
*
*
*
* List of ports, or port pairs, to forward from the virtual machine to the
* application container.
* Only applicable in the App Engine flexible environment.
*
*
* repeated string forwarded_ports = 1;
*
* @param index The index of the element to return.
* @return The forwardedPorts at the given index.
*/
public java.lang.String getForwardedPorts(int index) {
return forwardedPorts_.get(index);
}
/**
*
*
*
* List of ports, or port pairs, to forward from the virtual machine to the
* application container.
* Only applicable in the App Engine flexible environment.
*
*
* repeated string forwarded_ports = 1;
*
* @param index The index of the value to return.
* @return The bytes of the forwardedPorts at the given index.
*/
public com.google.protobuf.ByteString getForwardedPortsBytes(int index) {
return forwardedPorts_.getByteString(index);
}
/**
*
*
*
* List of ports, or port pairs, to forward from the virtual machine to the
* application container.
* Only applicable in the App Engine flexible environment.
*
*
* repeated string forwarded_ports = 1;
*
* @param index The index to set the value at.
* @param value The forwardedPorts to set.
* @return This builder for chaining.
*/
public Builder setForwardedPorts(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureForwardedPortsIsMutable();
forwardedPorts_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* List of ports, or port pairs, to forward from the virtual machine to the
* application container.
* Only applicable in the App Engine flexible environment.
*
*
* repeated string forwarded_ports = 1;
*
* @param value The forwardedPorts to add.
* @return This builder for chaining.
*/
public Builder addForwardedPorts(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureForwardedPortsIsMutable();
forwardedPorts_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* List of ports, or port pairs, to forward from the virtual machine to the
* application container.
* Only applicable in the App Engine flexible environment.
*
*
* repeated string forwarded_ports = 1;
*
* @param values The forwardedPorts to add.
* @return This builder for chaining.
*/
public Builder addAllForwardedPorts(java.lang.Iterable values) {
ensureForwardedPortsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, forwardedPorts_);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* List of ports, or port pairs, to forward from the virtual machine to the
* application container.
* Only applicable in the App Engine flexible environment.
*
*
* repeated string forwarded_ports = 1;
*
* @return This builder for chaining.
*/
public Builder clearForwardedPorts() {
forwardedPorts_ = com.google.protobuf.LazyStringArrayList.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
;
onChanged();
return this;
}
/**
*
*
*
* List of ports, or port pairs, to forward from the virtual machine to the
* application container.
* Only applicable in the App Engine flexible environment.
*
*
* repeated string forwarded_ports = 1;
*
* @param value The bytes of the forwardedPorts to add.
* @return This builder for chaining.
*/
public Builder addForwardedPortsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureForwardedPortsIsMutable();
forwardedPorts_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object instanceTag_ = "";
/**
*
*
*
* Tag to apply to the instance during creation.
* Only applicable in the App Engine flexible environment.
*
*
* string instance_tag = 2;
*
* @return The instanceTag.
*/
public java.lang.String getInstanceTag() {
java.lang.Object ref = instanceTag_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
instanceTag_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Tag to apply to the instance during creation.
* Only applicable in the App Engine flexible environment.
*
*
* string instance_tag = 2;
*
* @return The bytes for instanceTag.
*/
public com.google.protobuf.ByteString getInstanceTagBytes() {
java.lang.Object ref = instanceTag_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
instanceTag_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Tag to apply to the instance during creation.
* Only applicable in the App Engine flexible environment.
*
*
* string instance_tag = 2;
*
* @param value The instanceTag to set.
* @return This builder for chaining.
*/
public Builder setInstanceTag(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
instanceTag_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Tag to apply to the instance during creation.
* Only applicable in the App Engine flexible environment.
*
*
* string instance_tag = 2;
*
* @return This builder for chaining.
*/
public Builder clearInstanceTag() {
instanceTag_ = getDefaultInstance().getInstanceTag();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* Tag to apply to the instance during creation.
* Only applicable in the App Engine flexible environment.
*
*
* string instance_tag = 2;
*
* @param value The bytes for instanceTag to set.
* @return This builder for chaining.
*/
public Builder setInstanceTagBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
instanceTag_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
*
*
* Google Compute Engine network where the virtual machines are created.
* Specify the short name, not the resource path.
*
* Defaults to `default`.
*
*
* string name = 3;
*
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Google Compute Engine network where the virtual machines are created.
* Specify the short name, not the resource path.
*
* Defaults to `default`.
*
*
* string name = 3;
*
* @return The bytes for name.
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Google Compute Engine network where the virtual machines are created.
* Specify the short name, not the resource path.
*
* Defaults to `default`.
*
*
* string name = 3;
*
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Google Compute Engine network where the virtual machines are created.
* Specify the short name, not the resource path.
*
* Defaults to `default`.
*
*
* string name = 3;
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* Google Compute Engine network where the virtual machines are created.
* Specify the short name, not the resource path.
*
* Defaults to `default`.
*
*
* string name = 3;
*
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object subnetworkName_ = "";
/**
*
*
*
* Google Cloud Platform sub-network where the virtual machines are created.
* Specify the short name, not the resource path.
*
* If a subnetwork name is specified, a network name will also be required
* unless it is for the default network.
*
* * If the network that the instance is being created in is a Legacy network,
* then the IP address is allocated from the IPv4Range.
* * If the network that the instance is being created in is an auto Subnet
* Mode Network, then only network name should be specified (not the
* subnetwork_name) and the IP address is created from the IPCidrRange of the
* subnetwork that exists in that zone for that network.
* * If the network that the instance is being created in is a custom Subnet
* Mode Network, then the subnetwork_name must be specified and the
* IP address is created from the IPCidrRange of the subnetwork.
*
* If specified, the subnetwork must exist in the same region as the
* App Engine flexible environment application.
*
*
* string subnetwork_name = 4;
*
* @return The subnetworkName.
*/
public java.lang.String getSubnetworkName() {
java.lang.Object ref = subnetworkName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
subnetworkName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Google Cloud Platform sub-network where the virtual machines are created.
* Specify the short name, not the resource path.
*
* If a subnetwork name is specified, a network name will also be required
* unless it is for the default network.
*
* * If the network that the instance is being created in is a Legacy network,
* then the IP address is allocated from the IPv4Range.
* * If the network that the instance is being created in is an auto Subnet
* Mode Network, then only network name should be specified (not the
* subnetwork_name) and the IP address is created from the IPCidrRange of the
* subnetwork that exists in that zone for that network.
* * If the network that the instance is being created in is a custom Subnet
* Mode Network, then the subnetwork_name must be specified and the
* IP address is created from the IPCidrRange of the subnetwork.
*
* If specified, the subnetwork must exist in the same region as the
* App Engine flexible environment application.
*
*
* string subnetwork_name = 4;
*
* @return The bytes for subnetworkName.
*/
public com.google.protobuf.ByteString getSubnetworkNameBytes() {
java.lang.Object ref = subnetworkName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
subnetworkName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Google Cloud Platform sub-network where the virtual machines are created.
* Specify the short name, not the resource path.
*
* If a subnetwork name is specified, a network name will also be required
* unless it is for the default network.
*
* * If the network that the instance is being created in is a Legacy network,
* then the IP address is allocated from the IPv4Range.
* * If the network that the instance is being created in is an auto Subnet
* Mode Network, then only network name should be specified (not the
* subnetwork_name) and the IP address is created from the IPCidrRange of the
* subnetwork that exists in that zone for that network.
* * If the network that the instance is being created in is a custom Subnet
* Mode Network, then the subnetwork_name must be specified and the
* IP address is created from the IPCidrRange of the subnetwork.
*
* If specified, the subnetwork must exist in the same region as the
* App Engine flexible environment application.
*
*
* string subnetwork_name = 4;
*
* @param value The subnetworkName to set.
* @return This builder for chaining.
*/
public Builder setSubnetworkName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
subnetworkName_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Google Cloud Platform sub-network where the virtual machines are created.
* Specify the short name, not the resource path.
*
* If a subnetwork name is specified, a network name will also be required
* unless it is for the default network.
*
* * If the network that the instance is being created in is a Legacy network,
* then the IP address is allocated from the IPv4Range.
* * If the network that the instance is being created in is an auto Subnet
* Mode Network, then only network name should be specified (not the
* subnetwork_name) and the IP address is created from the IPCidrRange of the
* subnetwork that exists in that zone for that network.
* * If the network that the instance is being created in is a custom Subnet
* Mode Network, then the subnetwork_name must be specified and the
* IP address is created from the IPCidrRange of the subnetwork.
*
* If specified, the subnetwork must exist in the same region as the
* App Engine flexible environment application.
*
*
* string subnetwork_name = 4;
*
* @return This builder for chaining.
*/
public Builder clearSubnetworkName() {
subnetworkName_ = getDefaultInstance().getSubnetworkName();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
*
*
* Google Cloud Platform sub-network where the virtual machines are created.
* Specify the short name, not the resource path.
*
* If a subnetwork name is specified, a network name will also be required
* unless it is for the default network.
*
* * If the network that the instance is being created in is a Legacy network,
* then the IP address is allocated from the IPv4Range.
* * If the network that the instance is being created in is an auto Subnet
* Mode Network, then only network name should be specified (not the
* subnetwork_name) and the IP address is created from the IPCidrRange of the
* subnetwork that exists in that zone for that network.
* * If the network that the instance is being created in is a custom Subnet
* Mode Network, then the subnetwork_name must be specified and the
* IP address is created from the IPCidrRange of the subnetwork.
*
* If specified, the subnetwork must exist in the same region as the
* App Engine flexible environment application.
*
*
* string subnetwork_name = 4;
*
* @param value The bytes for subnetworkName to set.
* @return This builder for chaining.
*/
public Builder setSubnetworkNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
subnetworkName_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
private boolean sessionAffinity_;
/**
*
*
*
* Enable session affinity.
* Only applicable in the App Engine flexible environment.
*
*
* bool session_affinity = 5;
*
* @return The sessionAffinity.
*/
@java.lang.Override
public boolean getSessionAffinity() {
return sessionAffinity_;
}
/**
*
*
*
* Enable session affinity.
* Only applicable in the App Engine flexible environment.
*
*
* bool session_affinity = 5;
*
* @param value The sessionAffinity to set.
* @return This builder for chaining.
*/
public Builder setSessionAffinity(boolean value) {
sessionAffinity_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Enable session affinity.
* Only applicable in the App Engine flexible environment.
*
*
* bool session_affinity = 5;
*
* @return This builder for chaining.
*/
public Builder clearSessionAffinity() {
bitField0_ = (bitField0_ & ~0x00000010);
sessionAffinity_ = false;
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.appengine.v1.Network)
}
// @@protoc_insertion_point(class_scope:google.appengine.v1.Network)
private static final com.google.appengine.v1.Network DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.appengine.v1.Network();
}
public static com.google.appengine.v1.Network getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Network 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.v1.Network getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy