All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.turbospaces.api.v1.GetExternalIpResponse Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: grpc.proto
// Protobuf Java Version: 3.25.3
package com.turbospaces.api.v1;
/**
* Protobuf type {@code com.turbospaces.api.v1.GetExternalIpResponse}
*/
public final class GetExternalIpResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:com.turbospaces.api.v1.GetExternalIpResponse)
GetExternalIpResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetExternalIpResponse.newBuilder() to construct.
private GetExternalIpResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetExternalIpResponse() {
ip_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetExternalIpResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.turbospaces.api.v1.Grpc.internal_static_com_turbospaces_api_v1_GetExternalIpResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.turbospaces.api.v1.Grpc.internal_static_com_turbospaces_api_v1_GetExternalIpResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.turbospaces.api.v1.GetExternalIpResponse.class, com.turbospaces.api.v1.GetExternalIpResponse.Builder.class);
}
public static final int IP_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object ip_ = "";
/**
* string ip = 1;
* @return The ip.
*/
@java.lang.Override
public java.lang.String getIp() {
java.lang.Object ref = ip_;
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();
ip_ = s;
return s;
}
}
/**
* string ip = 1;
* @return The bytes for ip.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getIpBytes() {
java.lang.Object ref = ip_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ip_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static com.turbospaces.api.v1.GetExternalIpResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.turbospaces.api.v1.GetExternalIpResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.turbospaces.api.v1.GetExternalIpResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.turbospaces.api.v1.GetExternalIpResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.turbospaces.api.v1.GetExternalIpResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.turbospaces.api.v1.GetExternalIpResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.turbospaces.api.v1.GetExternalIpResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.turbospaces.api.v1.GetExternalIpResponse 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.turbospaces.api.v1.GetExternalIpResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.turbospaces.api.v1.GetExternalIpResponse 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.turbospaces.api.v1.GetExternalIpResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static com.turbospaces.api.v1.GetExternalIpResponse 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.turbospaces.api.v1.GetExternalIpResponse 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 com.turbospaces.api.v1.GetExternalIpResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:com.turbospaces.api.v1.GetExternalIpResponse)
com.turbospaces.api.v1.GetExternalIpResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.turbospaces.api.v1.Grpc.internal_static_com_turbospaces_api_v1_GetExternalIpResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.turbospaces.api.v1.Grpc.internal_static_com_turbospaces_api_v1_GetExternalIpResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.turbospaces.api.v1.GetExternalIpResponse.class, com.turbospaces.api.v1.GetExternalIpResponse.Builder.class);
}
// Construct using com.turbospaces.api.v1.GetExternalIpResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
ip_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.turbospaces.api.v1.Grpc.internal_static_com_turbospaces_api_v1_GetExternalIpResponse_descriptor;
}
@java.lang.Override
public com.turbospaces.api.v1.GetExternalIpResponse getDefaultInstanceForType() {
return com.turbospaces.api.v1.GetExternalIpResponse.getDefaultInstance();
}
@java.lang.Override
public com.turbospaces.api.v1.GetExternalIpResponse build() {
com.turbospaces.api.v1.GetExternalIpResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.turbospaces.api.v1.GetExternalIpResponse buildPartial() {
com.turbospaces.api.v1.GetExternalIpResponse result = new com.turbospaces.api.v1.GetExternalIpResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.turbospaces.api.v1.GetExternalIpResponse result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.ip_ = ip_;
}
}
@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);
}
private int bitField0_;
private java.lang.Object ip_ = "";
/**
* string ip = 1;
* @return The ip.
*/
public java.lang.String getIp() {
java.lang.Object ref = ip_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
ip_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string ip = 1;
* @return The bytes for ip.
*/
public com.google.protobuf.ByteString
getIpBytes() {
java.lang.Object ref = ip_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
ip_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string ip = 1;
* @param value The ip to set.
* @return This builder for chaining.
*/
public Builder setIp(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
ip_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* string ip = 1;
* @return This builder for chaining.
*/
public Builder clearIp() {
ip_ = getDefaultInstance().getIp();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* string ip = 1;
* @param value The bytes for ip to set.
* @return This builder for chaining.
*/
public Builder setIpBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
ip_ = value;
bitField0_ |= 0x00000001;
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:com.turbospaces.api.v1.GetExternalIpResponse)
}
// @@protoc_insertion_point(class_scope:com.turbospaces.api.v1.GetExternalIpResponse)
private static final com.turbospaces.api.v1.GetExternalIpResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.turbospaces.api.v1.GetExternalIpResponse();
}
public static com.turbospaces.api.v1.GetExternalIpResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetExternalIpResponse 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.turbospaces.api.v1.GetExternalIpResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}