All Downloads are FREE. Search and download functionalities are using the official Maven repository.

grpc.currency.converter.CurrencyPerSymbolResponse Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: currency_converter_service.proto

package grpc.currency.converter;

/**
 * 
 * The CurrencyPerSymbolResponse message containing one currency
 * 
* * Protobuf type {@code currencyconverter.CurrencyPerSymbolResponse} */ public final class CurrencyPerSymbolResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:currencyconverter.CurrencyPerSymbolResponse) CurrencyPerSymbolResponseOrBuilder { private static final long serialVersionUID = 0L; // Use CurrencyPerSymbolResponse.newBuilder() to construct. private CurrencyPerSymbolResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CurrencyPerSymbolResponse() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CurrencyPerSymbolResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CurrencyPerSymbolResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { grpc.currency.converter.Currency.Builder subBuilder = null; if (curreny_ != null) { subBuilder = curreny_.toBuilder(); } curreny_ = input.readMessage(grpc.currency.converter.Currency.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(curreny_); curreny_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.currency.converter.CurrencyConverterService.internal_static_currencyconverter_CurrencyPerSymbolResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.currency.converter.CurrencyConverterService.internal_static_currencyconverter_CurrencyPerSymbolResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.currency.converter.CurrencyPerSymbolResponse.class, grpc.currency.converter.CurrencyPerSymbolResponse.Builder.class); } public static final int CURRENY_FIELD_NUMBER = 1; private grpc.currency.converter.Currency curreny_; /** * .currencyconverter.Currency curreny = 1; * @return Whether the curreny field is set. */ @java.lang.Override public boolean hasCurreny() { return curreny_ != null; } /** * .currencyconverter.Currency curreny = 1; * @return The curreny. */ @java.lang.Override public grpc.currency.converter.Currency getCurreny() { return curreny_ == null ? grpc.currency.converter.Currency.getDefaultInstance() : curreny_; } /** * .currencyconverter.Currency curreny = 1; */ @java.lang.Override public grpc.currency.converter.CurrencyOrBuilder getCurrenyOrBuilder() { return getCurreny(); } 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 (curreny_ != null) { output.writeMessage(1, getCurreny()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (curreny_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getCurreny()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof grpc.currency.converter.CurrencyPerSymbolResponse)) { return super.equals(obj); } grpc.currency.converter.CurrencyPerSymbolResponse other = (grpc.currency.converter.CurrencyPerSymbolResponse) obj; if (hasCurreny() != other.hasCurreny()) return false; if (hasCurreny()) { if (!getCurreny() .equals(other.getCurreny())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasCurreny()) { hash = (37 * hash) + CURRENY_FIELD_NUMBER; hash = (53 * hash) + getCurreny().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static grpc.currency.converter.CurrencyPerSymbolResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.currency.converter.CurrencyPerSymbolResponse parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.currency.converter.CurrencyPerSymbolResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.currency.converter.CurrencyPerSymbolResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.currency.converter.CurrencyPerSymbolResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static grpc.currency.converter.CurrencyPerSymbolResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static grpc.currency.converter.CurrencyPerSymbolResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.currency.converter.CurrencyPerSymbolResponse 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 grpc.currency.converter.CurrencyPerSymbolResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static grpc.currency.converter.CurrencyPerSymbolResponse 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 grpc.currency.converter.CurrencyPerSymbolResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static grpc.currency.converter.CurrencyPerSymbolResponse 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(grpc.currency.converter.CurrencyPerSymbolResponse 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; } /** *
   * The CurrencyPerSymbolResponse message containing one currency
   * 
* * Protobuf type {@code currencyconverter.CurrencyPerSymbolResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:currencyconverter.CurrencyPerSymbolResponse) grpc.currency.converter.CurrencyPerSymbolResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return grpc.currency.converter.CurrencyConverterService.internal_static_currencyconverter_CurrencyPerSymbolResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return grpc.currency.converter.CurrencyConverterService.internal_static_currencyconverter_CurrencyPerSymbolResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( grpc.currency.converter.CurrencyPerSymbolResponse.class, grpc.currency.converter.CurrencyPerSymbolResponse.Builder.class); } // Construct using grpc.currency.converter.CurrencyPerSymbolResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (currenyBuilder_ == null) { curreny_ = null; } else { curreny_ = null; currenyBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return grpc.currency.converter.CurrencyConverterService.internal_static_currencyconverter_CurrencyPerSymbolResponse_descriptor; } @java.lang.Override public grpc.currency.converter.CurrencyPerSymbolResponse getDefaultInstanceForType() { return grpc.currency.converter.CurrencyPerSymbolResponse.getDefaultInstance(); } @java.lang.Override public grpc.currency.converter.CurrencyPerSymbolResponse build() { grpc.currency.converter.CurrencyPerSymbolResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public grpc.currency.converter.CurrencyPerSymbolResponse buildPartial() { grpc.currency.converter.CurrencyPerSymbolResponse result = new grpc.currency.converter.CurrencyPerSymbolResponse(this); if (currenyBuilder_ == null) { result.curreny_ = curreny_; } else { result.curreny_ = currenyBuilder_.build(); } onBuilt(); return result; } @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 grpc.currency.converter.CurrencyPerSymbolResponse) { return mergeFrom((grpc.currency.converter.CurrencyPerSymbolResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(grpc.currency.converter.CurrencyPerSymbolResponse other) { if (other == grpc.currency.converter.CurrencyPerSymbolResponse.getDefaultInstance()) return this; if (other.hasCurreny()) { mergeCurreny(other.getCurreny()); } this.mergeUnknownFields(other.unknownFields); 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 { grpc.currency.converter.CurrencyPerSymbolResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (grpc.currency.converter.CurrencyPerSymbolResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private grpc.currency.converter.Currency curreny_; private com.google.protobuf.SingleFieldBuilderV3< grpc.currency.converter.Currency, grpc.currency.converter.Currency.Builder, grpc.currency.converter.CurrencyOrBuilder> currenyBuilder_; /** * .currencyconverter.Currency curreny = 1; * @return Whether the curreny field is set. */ public boolean hasCurreny() { return currenyBuilder_ != null || curreny_ != null; } /** * .currencyconverter.Currency curreny = 1; * @return The curreny. */ public grpc.currency.converter.Currency getCurreny() { if (currenyBuilder_ == null) { return curreny_ == null ? grpc.currency.converter.Currency.getDefaultInstance() : curreny_; } else { return currenyBuilder_.getMessage(); } } /** * .currencyconverter.Currency curreny = 1; */ public Builder setCurreny(grpc.currency.converter.Currency value) { if (currenyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } curreny_ = value; onChanged(); } else { currenyBuilder_.setMessage(value); } return this; } /** * .currencyconverter.Currency curreny = 1; */ public Builder setCurreny( grpc.currency.converter.Currency.Builder builderForValue) { if (currenyBuilder_ == null) { curreny_ = builderForValue.build(); onChanged(); } else { currenyBuilder_.setMessage(builderForValue.build()); } return this; } /** * .currencyconverter.Currency curreny = 1; */ public Builder mergeCurreny(grpc.currency.converter.Currency value) { if (currenyBuilder_ == null) { if (curreny_ != null) { curreny_ = grpc.currency.converter.Currency.newBuilder(curreny_).mergeFrom(value).buildPartial(); } else { curreny_ = value; } onChanged(); } else { currenyBuilder_.mergeFrom(value); } return this; } /** * .currencyconverter.Currency curreny = 1; */ public Builder clearCurreny() { if (currenyBuilder_ == null) { curreny_ = null; onChanged(); } else { curreny_ = null; currenyBuilder_ = null; } return this; } /** * .currencyconverter.Currency curreny = 1; */ public grpc.currency.converter.Currency.Builder getCurrenyBuilder() { onChanged(); return getCurrenyFieldBuilder().getBuilder(); } /** * .currencyconverter.Currency curreny = 1; */ public grpc.currency.converter.CurrencyOrBuilder getCurrenyOrBuilder() { if (currenyBuilder_ != null) { return currenyBuilder_.getMessageOrBuilder(); } else { return curreny_ == null ? grpc.currency.converter.Currency.getDefaultInstance() : curreny_; } } /** * .currencyconverter.Currency curreny = 1; */ private com.google.protobuf.SingleFieldBuilderV3< grpc.currency.converter.Currency, grpc.currency.converter.Currency.Builder, grpc.currency.converter.CurrencyOrBuilder> getCurrenyFieldBuilder() { if (currenyBuilder_ == null) { currenyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< grpc.currency.converter.Currency, grpc.currency.converter.Currency.Builder, grpc.currency.converter.CurrencyOrBuilder>( getCurreny(), getParentForChildren(), isClean()); curreny_ = null; } return currenyBuilder_; } @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:currencyconverter.CurrencyPerSymbolResponse) } // @@protoc_insertion_point(class_scope:currencyconverter.CurrencyPerSymbolResponse) private static final grpc.currency.converter.CurrencyPerSymbolResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new grpc.currency.converter.CurrencyPerSymbolResponse(); } public static grpc.currency.converter.CurrencyPerSymbolResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CurrencyPerSymbolResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CurrencyPerSymbolResponse(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public grpc.currency.converter.CurrencyPerSymbolResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy