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/baremetalsolution/v2/network.proto
// Protobuf Java Version: 3.25.3
package com.google.cloud.baremetalsolution.v2;
/**
*
*
*
* A reservation of one or more addresses in a network.
*
*
* Protobuf type {@code google.cloud.baremetalsolution.v2.NetworkAddressReservation}
*/
public final class NetworkAddressReservation extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.baremetalsolution.v2.NetworkAddressReservation)
NetworkAddressReservationOrBuilder {
private static final long serialVersionUID = 0L;
// Use NetworkAddressReservation.newBuilder() to construct.
private NetworkAddressReservation(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NetworkAddressReservation() {
startAddress_ = "";
endAddress_ = "";
note_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new NetworkAddressReservation();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.baremetalsolution.v2.NetworkProto
.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.baremetalsolution.v2.NetworkProto
.internal_static_google_cloud_baremetalsolution_v2_NetworkAddressReservation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.class,
com.google.cloud.baremetalsolution.v2.NetworkAddressReservation.Builder.class);
}
public static final int START_ADDRESS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object startAddress_ = "";
/**
*
*
*
* The first address of this reservation block.
* Must be specified as a single IPv4 address, e.g. 10.1.2.2.
*
* The first address of this reservation block.
* Must be specified as a single IPv4 address, e.g. 10.1.2.2.
*
*
* string start_address = 1;
*
* @return The bytes for startAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getStartAddressBytes() {
java.lang.Object ref = startAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
startAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int END_ADDRESS_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object endAddress_ = "";
/**
*
*
*
* The last address of this reservation block, inclusive. I.e., for cases when
* reservations are only single addresses, end_address and start_address will
* be the same.
* Must be specified as a single IPv4 address, e.g. 10.1.2.2.
*
* The last address of this reservation block, inclusive. I.e., for cases when
* reservations are only single addresses, end_address and start_address will
* be the same.
* Must be specified as a single IPv4 address, e.g. 10.1.2.2.
*
*
* string end_address = 2;
*
* @return The bytes for endAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEndAddressBytes() {
java.lang.Object ref = endAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
endAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NOTE_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object note_ = "";
/**
*
*
*
* A note about this reservation, intended for human consumption.
*
* The first address of this reservation block.
* Must be specified as a single IPv4 address, e.g. 10.1.2.2.
*
*
* string start_address = 1;
*
* @param value The bytes for startAddress to set.
* @return This builder for chaining.
*/
public Builder setStartAddressBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
startAddress_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object endAddress_ = "";
/**
*
*
*
* The last address of this reservation block, inclusive. I.e., for cases when
* reservations are only single addresses, end_address and start_address will
* be the same.
* Must be specified as a single IPv4 address, e.g. 10.1.2.2.
*
* The last address of this reservation block, inclusive. I.e., for cases when
* reservations are only single addresses, end_address and start_address will
* be the same.
* Must be specified as a single IPv4 address, e.g. 10.1.2.2.
*
*
* string end_address = 2;
*
* @return The bytes for endAddress.
*/
public com.google.protobuf.ByteString getEndAddressBytes() {
java.lang.Object ref = endAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
endAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The last address of this reservation block, inclusive. I.e., for cases when
* reservations are only single addresses, end_address and start_address will
* be the same.
* Must be specified as a single IPv4 address, e.g. 10.1.2.2.
*
*
* string end_address = 2;
*
* @param value The endAddress to set.
* @return This builder for chaining.
*/
public Builder setEndAddress(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
endAddress_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The last address of this reservation block, inclusive. I.e., for cases when
* reservations are only single addresses, end_address and start_address will
* be the same.
* Must be specified as a single IPv4 address, e.g. 10.1.2.2.
*
* The last address of this reservation block, inclusive. I.e., for cases when
* reservations are only single addresses, end_address and start_address will
* be the same.
* Must be specified as a single IPv4 address, e.g. 10.1.2.2.
*
*
* string end_address = 2;
*
* @param value The bytes for endAddress to set.
* @return This builder for chaining.
*/
public Builder setEndAddressBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
endAddress_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object note_ = "";
/**
*
*
*
* A note about this reservation, intended for human consumption.
*