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.
/*
* 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/metastore/v1beta/metastore.proto
// Protobuf Java Version: 3.25.5
package com.google.cloud.metastore.v1beta;
/**
*
*
*
* Network configuration for the Dataproc Metastore service.
*
* Next available ID: 4
*
*
* Protobuf type {@code google.cloud.metastore.v1beta.NetworkConfig}
*/
public final class NetworkConfig extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.metastore.v1beta.NetworkConfig)
NetworkConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use NetworkConfig.newBuilder() to construct.
private NetworkConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NetworkConfig() {
consumers_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new NetworkConfig();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.metastore.v1beta.MetastoreProto
.internal_static_google_cloud_metastore_v1beta_NetworkConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.metastore.v1beta.MetastoreProto
.internal_static_google_cloud_metastore_v1beta_NetworkConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.metastore.v1beta.NetworkConfig.class,
com.google.cloud.metastore.v1beta.NetworkConfig.Builder.class);
}
public interface ConsumerOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.metastore.v1beta.NetworkConfig.Consumer)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Immutable. The subnetwork of the customer project from which an IP
* address is reserved and used as the Dataproc Metastore service's
* endpoint. It is accessible to hosts in the subnet and to all
* hosts in a subnet in the same region and same network. There must
* be at least one IP address available in the subnet's primary range. The
* subnet is specified in the following form:
*
* `projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}`
*
* Immutable. The subnetwork of the customer project from which an IP
* address is reserved and used as the Dataproc Metastore service's
* endpoint. It is accessible to hosts in the subnet and to all
* hosts in a subnet in the same region and same network. There must
* be at least one IP address available in the subnet's primary range. The
* subnet is specified in the following form:
*
* `projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}`
*
* Immutable. The subnetwork of the customer project from which an IP
* address is reserved and used as the Dataproc Metastore service's
* endpoint. It is accessible to hosts in the subnet and to all
* hosts in a subnet in the same region and same network. There must
* be at least one IP address available in the subnet's primary range. The
* subnet is specified in the following form:
*
* `projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}`
*
* Contains information of the customer's network configurations.
*
* Next available ID: 5
*
*
* Protobuf type {@code google.cloud.metastore.v1beta.NetworkConfig.Consumer}
*/
public static final class Consumer extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.metastore.v1beta.NetworkConfig.Consumer)
ConsumerOrBuilder {
private static final long serialVersionUID = 0L;
// Use Consumer.newBuilder() to construct.
private Consumer(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Consumer() {
endpointUri_ = "";
endpointLocation_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Consumer();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.metastore.v1beta.MetastoreProto
.internal_static_google_cloud_metastore_v1beta_NetworkConfig_Consumer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.metastore.v1beta.MetastoreProto
.internal_static_google_cloud_metastore_v1beta_NetworkConfig_Consumer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.metastore.v1beta.NetworkConfig.Consumer.class,
com.google.cloud.metastore.v1beta.NetworkConfig.Consumer.Builder.class);
}
private int vpcResourceCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object vpcResource_;
public enum VpcResourceCase
implements
com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
SUBNETWORK(1),
VPCRESOURCE_NOT_SET(0);
private final int value;
private VpcResourceCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static VpcResourceCase valueOf(int value) {
return forNumber(value);
}
public static VpcResourceCase forNumber(int value) {
switch (value) {
case 1:
return SUBNETWORK;
case 0:
return VPCRESOURCE_NOT_SET;
default:
return null;
}
}
public int getNumber() {
return this.value;
}
};
public VpcResourceCase getVpcResourceCase() {
return VpcResourceCase.forNumber(vpcResourceCase_);
}
public static final int SUBNETWORK_FIELD_NUMBER = 1;
/**
*
*
*
* Immutable. The subnetwork of the customer project from which an IP
* address is reserved and used as the Dataproc Metastore service's
* endpoint. It is accessible to hosts in the subnet and to all
* hosts in a subnet in the same region and same network. There must
* be at least one IP address available in the subnet's primary range. The
* subnet is specified in the following form:
*
* `projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}`
*
*
*
* string subnetwork = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return Whether the subnetwork field is set.
*/
public boolean hasSubnetwork() {
return vpcResourceCase_ == 1;
}
/**
*
*
*
* Immutable. The subnetwork of the customer project from which an IP
* address is reserved and used as the Dataproc Metastore service's
* endpoint. It is accessible to hosts in the subnet and to all
* hosts in a subnet in the same region and same network. There must
* be at least one IP address available in the subnet's primary range. The
* subnet is specified in the following form:
*
* `projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}`
*
* Immutable. The subnetwork of the customer project from which an IP
* address is reserved and used as the Dataproc Metastore service's
* endpoint. It is accessible to hosts in the subnet and to all
* hosts in a subnet in the same region and same network. There must
* be at least one IP address available in the subnet's primary range. The
* subnet is specified in the following form:
*
* `projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}`
*
*
*
* string subnetwork = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for subnetwork.
*/
public com.google.protobuf.ByteString getSubnetworkBytes() {
java.lang.Object ref = "";
if (vpcResourceCase_ == 1) {
ref = vpcResource_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
if (vpcResourceCase_ == 1) {
vpcResource_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ENDPOINT_URI_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object endpointUri_ = "";
/**
*
*
*
* Output only. The URI of the endpoint used to access the metastore
* service.
*
* Output only. The location of the endpoint URI. Format:
* `projects/{project}/locations/{location}`.
*
*
*
* string endpoint_location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for endpointLocation.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEndpointLocationBytes() {
java.lang.Object ref = endpointLocation_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
endpointLocation_ = 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 (vpcResourceCase_ == 1) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vpcResource_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpointUri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, endpointUri_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpointLocation_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, endpointLocation_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (vpcResourceCase_ == 1) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, vpcResource_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpointUri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, endpointUri_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpointLocation_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, endpointLocation_);
}
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.metastore.v1beta.NetworkConfig.Consumer)) {
return super.equals(obj);
}
com.google.cloud.metastore.v1beta.NetworkConfig.Consumer other =
(com.google.cloud.metastore.v1beta.NetworkConfig.Consumer) obj;
if (!getEndpointUri().equals(other.getEndpointUri())) return false;
if (!getEndpointLocation().equals(other.getEndpointLocation())) return false;
if (!getVpcResourceCase().equals(other.getVpcResourceCase())) return false;
switch (vpcResourceCase_) {
case 1:
if (!getSubnetwork().equals(other.getSubnetwork())) return false;
break;
case 0:
default:
}
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) + ENDPOINT_URI_FIELD_NUMBER;
hash = (53 * hash) + getEndpointUri().hashCode();
hash = (37 * hash) + ENDPOINT_LOCATION_FIELD_NUMBER;
hash = (53 * hash) + getEndpointLocation().hashCode();
switch (vpcResourceCase_) {
case 1:
hash = (37 * hash) + SUBNETWORK_FIELD_NUMBER;
hash = (53 * hash) + getSubnetwork().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.metastore.v1beta.NetworkConfig.Consumer parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.metastore.v1beta.NetworkConfig.Consumer 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.metastore.v1beta.NetworkConfig.Consumer parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.metastore.v1beta.NetworkConfig.Consumer 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.metastore.v1beta.NetworkConfig.Consumer parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.metastore.v1beta.NetworkConfig.Consumer parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.metastore.v1beta.NetworkConfig.Consumer parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.metastore.v1beta.NetworkConfig.Consumer 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.metastore.v1beta.NetworkConfig.Consumer parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.metastore.v1beta.NetworkConfig.Consumer 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.metastore.v1beta.NetworkConfig.Consumer parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.metastore.v1beta.NetworkConfig.Consumer 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.metastore.v1beta.NetworkConfig.Consumer 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;
}
/**
*
*
*
* Contains information of the customer's network configurations.
*
* Next available ID: 5
*
*
* Protobuf type {@code google.cloud.metastore.v1beta.NetworkConfig.Consumer}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.metastore.v1beta.NetworkConfig.Consumer)
com.google.cloud.metastore.v1beta.NetworkConfig.ConsumerOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.metastore.v1beta.MetastoreProto
.internal_static_google_cloud_metastore_v1beta_NetworkConfig_Consumer_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.metastore.v1beta.MetastoreProto
.internal_static_google_cloud_metastore_v1beta_NetworkConfig_Consumer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.metastore.v1beta.NetworkConfig.Consumer.class,
com.google.cloud.metastore.v1beta.NetworkConfig.Consumer.Builder.class);
}
// Construct using com.google.cloud.metastore.v1beta.NetworkConfig.Consumer.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
endpointUri_ = "";
endpointLocation_ = "";
vpcResourceCase_ = 0;
vpcResource_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.metastore.v1beta.MetastoreProto
.internal_static_google_cloud_metastore_v1beta_NetworkConfig_Consumer_descriptor;
}
@java.lang.Override
public com.google.cloud.metastore.v1beta.NetworkConfig.Consumer getDefaultInstanceForType() {
return com.google.cloud.metastore.v1beta.NetworkConfig.Consumer.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.metastore.v1beta.NetworkConfig.Consumer build() {
com.google.cloud.metastore.v1beta.NetworkConfig.Consumer result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.metastore.v1beta.NetworkConfig.Consumer buildPartial() {
com.google.cloud.metastore.v1beta.NetworkConfig.Consumer result =
new com.google.cloud.metastore.v1beta.NetworkConfig.Consumer(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.metastore.v1beta.NetworkConfig.Consumer result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.endpointUri_ = endpointUri_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.endpointLocation_ = endpointLocation_;
}
}
private void buildPartialOneofs(
com.google.cloud.metastore.v1beta.NetworkConfig.Consumer result) {
result.vpcResourceCase_ = vpcResourceCase_;
result.vpcResource_ = this.vpcResource_;
}
@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.metastore.v1beta.NetworkConfig.Consumer) {
return mergeFrom((com.google.cloud.metastore.v1beta.NetworkConfig.Consumer) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.metastore.v1beta.NetworkConfig.Consumer other) {
if (other == com.google.cloud.metastore.v1beta.NetworkConfig.Consumer.getDefaultInstance())
return this;
if (!other.getEndpointUri().isEmpty()) {
endpointUri_ = other.endpointUri_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getEndpointLocation().isEmpty()) {
endpointLocation_ = other.endpointLocation_;
bitField0_ |= 0x00000004;
onChanged();
}
switch (other.getVpcResourceCase()) {
case SUBNETWORK:
{
vpcResourceCase_ = 1;
vpcResource_ = other.vpcResource_;
onChanged();
break;
}
case VPCRESOURCE_NOT_SET:
{
break;
}
}
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();
vpcResourceCase_ = 1;
vpcResource_ = s;
break;
} // case 10
case 26:
{
endpointUri_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 26
case 34:
{
endpointLocation_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
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 vpcResourceCase_ = 0;
private java.lang.Object vpcResource_;
public VpcResourceCase getVpcResourceCase() {
return VpcResourceCase.forNumber(vpcResourceCase_);
}
public Builder clearVpcResource() {
vpcResourceCase_ = 0;
vpcResource_ = null;
onChanged();
return this;
}
private int bitField0_;
/**
*
*
*
* Immutable. The subnetwork of the customer project from which an IP
* address is reserved and used as the Dataproc Metastore service's
* endpoint. It is accessible to hosts in the subnet and to all
* hosts in a subnet in the same region and same network. There must
* be at least one IP address available in the subnet's primary range. The
* subnet is specified in the following form:
*
* `projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}`
*
*
*
* string subnetwork = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @return Whether the subnetwork field is set.
*/
@java.lang.Override
public boolean hasSubnetwork() {
return vpcResourceCase_ == 1;
}
/**
*
*
*
* Immutable. The subnetwork of the customer project from which an IP
* address is reserved and used as the Dataproc Metastore service's
* endpoint. It is accessible to hosts in the subnet and to all
* hosts in a subnet in the same region and same network. There must
* be at least one IP address available in the subnet's primary range. The
* subnet is specified in the following form:
*
* `projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}`
*
* Immutable. The subnetwork of the customer project from which an IP
* address is reserved and used as the Dataproc Metastore service's
* endpoint. It is accessible to hosts in the subnet and to all
* hosts in a subnet in the same region and same network. There must
* be at least one IP address available in the subnet's primary range. The
* subnet is specified in the following form:
*
* `projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}`
*
* Immutable. The subnetwork of the customer project from which an IP
* address is reserved and used as the Dataproc Metastore service's
* endpoint. It is accessible to hosts in the subnet and to all
* hosts in a subnet in the same region and same network. There must
* be at least one IP address available in the subnet's primary range. The
* subnet is specified in the following form:
*
* `projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}`
*
*
*
* string subnetwork = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @param value The subnetwork to set.
* @return This builder for chaining.
*/
public Builder setSubnetwork(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
vpcResourceCase_ = 1;
vpcResource_ = value;
onChanged();
return this;
}
/**
*
*
*
* Immutable. The subnetwork of the customer project from which an IP
* address is reserved and used as the Dataproc Metastore service's
* endpoint. It is accessible to hosts in the subnet and to all
* hosts in a subnet in the same region and same network. There must
* be at least one IP address available in the subnet's primary range. The
* subnet is specified in the following form:
*
* `projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}`
*
* Immutable. The subnetwork of the customer project from which an IP
* address is reserved and used as the Dataproc Metastore service's
* endpoint. It is accessible to hosts in the subnet and to all
* hosts in a subnet in the same region and same network. There must
* be at least one IP address available in the subnet's primary range. The
* subnet is specified in the following form:
*
* `projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}`
*
*
*
* string subnetwork = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
*
*
* @param value The bytes for subnetwork to set.
* @return This builder for chaining.
*/
public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
vpcResourceCase_ = 1;
vpcResource_ = value;
onChanged();
return this;
}
private java.lang.Object endpointUri_ = "";
/**
*
*
*
* Output only. The URI of the endpoint used to access the metastore
* service.
*