com.google.protobuf.Method Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protobuf-lite Show documentation
Show all versions of protobuf-lite Show documentation
A trimmed-down version of the Protocol Buffers library.
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/protobuf/api.proto
package com.google.protobuf;
/**
*
* Method represents a method of an api.
*
*
* Protobuf type {@code google.protobuf.Method}
*/
public final class Method extends
com.google.protobuf.GeneratedMessageLite<
Method, Method.Builder> implements
// @@protoc_insertion_point(message_implements:google.protobuf.Method)
MethodOrBuilder {
private Method() {
name_ = "";
requestTypeUrl_ = "";
responseTypeUrl_ = "";
options_ = emptyProtobufList();
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private java.lang.String name_;
/**
*
* The simple name of this method.
*
*
* optional string name = 1;
*/
public java.lang.String getName() {
return name_;
}
/**
*
* The simple name of this method.
*
*
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(name_);
}
/**
*
* The simple name of this method.
*
*
* optional string name = 1;
*/
private void setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
}
/**
*
* The simple name of this method.
*
*
* optional string name = 1;
*/
private void clearName() {
name_ = getDefaultInstance().getName();
}
/**
*
* The simple name of this method.
*
*
* optional string name = 1;
*/
private void setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value.toStringUtf8();
}
public static final int REQUEST_TYPE_URL_FIELD_NUMBER = 2;
private java.lang.String requestTypeUrl_;
/**
*
* A URL of the input message type.
*
*
* optional string request_type_url = 2;
*/
public java.lang.String getRequestTypeUrl() {
return requestTypeUrl_;
}
/**
*
* A URL of the input message type.
*
*
* optional string request_type_url = 2;
*/
public com.google.protobuf.ByteString
getRequestTypeUrlBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(requestTypeUrl_);
}
/**
*
* A URL of the input message type.
*
*
* optional string request_type_url = 2;
*/
private void setRequestTypeUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
requestTypeUrl_ = value;
}
/**
*
* A URL of the input message type.
*
*
* optional string request_type_url = 2;
*/
private void clearRequestTypeUrl() {
requestTypeUrl_ = getDefaultInstance().getRequestTypeUrl();
}
/**
*
* A URL of the input message type.
*
*
* optional string request_type_url = 2;
*/
private void setRequestTypeUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
requestTypeUrl_ = value.toStringUtf8();
}
public static final int REQUEST_STREAMING_FIELD_NUMBER = 3;
private boolean requestStreaming_;
/**
*
* If true, the request is streamed.
*
*
* optional bool request_streaming = 3;
*/
public boolean getRequestStreaming() {
return requestStreaming_;
}
/**
*
* If true, the request is streamed.
*
*
* optional bool request_streaming = 3;
*/
private void setRequestStreaming(boolean value) {
requestStreaming_ = value;
}
/**
*
* If true, the request is streamed.
*
*
* optional bool request_streaming = 3;
*/
private void clearRequestStreaming() {
requestStreaming_ = false;
}
public static final int RESPONSE_TYPE_URL_FIELD_NUMBER = 4;
private java.lang.String responseTypeUrl_;
/**
*
* The URL of the output message type.
*
*
* optional string response_type_url = 4;
*/
public java.lang.String getResponseTypeUrl() {
return responseTypeUrl_;
}
/**
*
* The URL of the output message type.
*
*
* optional string response_type_url = 4;
*/
public com.google.protobuf.ByteString
getResponseTypeUrlBytes() {
return com.google.protobuf.ByteString.copyFromUtf8(responseTypeUrl_);
}
/**
*
* The URL of the output message type.
*
*
* optional string response_type_url = 4;
*/
private void setResponseTypeUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
responseTypeUrl_ = value;
}
/**
*
* The URL of the output message type.
*
*
* optional string response_type_url = 4;
*/
private void clearResponseTypeUrl() {
responseTypeUrl_ = getDefaultInstance().getResponseTypeUrl();
}
/**
*
* The URL of the output message type.
*
*
* optional string response_type_url = 4;
*/
private void setResponseTypeUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
responseTypeUrl_ = value.toStringUtf8();
}
public static final int RESPONSE_STREAMING_FIELD_NUMBER = 5;
private boolean responseStreaming_;
/**
*
* If true, the response is streamed.
*
*
* optional bool response_streaming = 5;
*/
public boolean getResponseStreaming() {
return responseStreaming_;
}
/**
*
* If true, the response is streamed.
*
*
* optional bool response_streaming = 5;
*/
private void setResponseStreaming(boolean value) {
responseStreaming_ = value;
}
/**
*
* If true, the response is streamed.
*
*
* optional bool response_streaming = 5;
*/
private void clearResponseStreaming() {
responseStreaming_ = false;
}
public static final int OPTIONS_FIELD_NUMBER = 6;
private com.google.protobuf.Internal.ProtobufList options_;
/**
*
* Any metadata attached to the method.
*
*
* repeated .google.protobuf.Option options = 6;
*/
public java.util.List getOptionsList() {
return options_;
}
/**
*
* Any metadata attached to the method.
*
*
* repeated .google.protobuf.Option options = 6;
*/
public java.util.List extends com.google.protobuf.OptionOrBuilder>
getOptionsOrBuilderList() {
return options_;
}
/**
*
* Any metadata attached to the method.
*
*
* repeated .google.protobuf.Option options = 6;
*/
public int getOptionsCount() {
return options_.size();
}
/**
*
* Any metadata attached to the method.
*
*
* repeated .google.protobuf.Option options = 6;
*/
public com.google.protobuf.Option getOptions(int index) {
return options_.get(index);
}
/**
*
* Any metadata attached to the method.
*
*
* repeated .google.protobuf.Option options = 6;
*/
public com.google.protobuf.OptionOrBuilder getOptionsOrBuilder(
int index) {
return options_.get(index);
}
private void ensureOptionsIsMutable() {
if (!options_.isModifiable()) {
options_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(options_);
}
}
/**
*
* Any metadata attached to the method.
*
*
* repeated .google.protobuf.Option options = 6;
*/
private void setOptions(
int index, com.google.protobuf.Option value) {
if (value == null) {
throw new NullPointerException();
}
ensureOptionsIsMutable();
options_.set(index, value);
}
/**
*
* Any metadata attached to the method.
*
*
* repeated .google.protobuf.Option options = 6;
*/
private void setOptions(
int index, com.google.protobuf.Option.Builder builderForValue) {
ensureOptionsIsMutable();
options_.set(index, builderForValue.build());
}
/**
*
* Any metadata attached to the method.
*
*
* repeated .google.protobuf.Option options = 6;
*/
private void addOptions(com.google.protobuf.Option value) {
if (value == null) {
throw new NullPointerException();
}
ensureOptionsIsMutable();
options_.add(value);
}
/**
*
* Any metadata attached to the method.
*
*
* repeated .google.protobuf.Option options = 6;
*/
private void addOptions(
int index, com.google.protobuf.Option value) {
if (value == null) {
throw new NullPointerException();
}
ensureOptionsIsMutable();
options_.add(index, value);
}
/**
*
* Any metadata attached to the method.
*
*
* repeated .google.protobuf.Option options = 6;
*/
private void addOptions(
com.google.protobuf.Option.Builder builderForValue) {
ensureOptionsIsMutable();
options_.add(builderForValue.build());
}
/**
*
* Any metadata attached to the method.
*
*
* repeated .google.protobuf.Option options = 6;
*/
private void addOptions(
int index, com.google.protobuf.Option.Builder builderForValue) {
ensureOptionsIsMutable();
options_.add(index, builderForValue.build());
}
/**
*
* Any metadata attached to the method.
*
*
* repeated .google.protobuf.Option options = 6;
*/
private void addAllOptions(
java.lang.Iterable extends com.google.protobuf.Option> values) {
ensureOptionsIsMutable();
com.google.protobuf.AbstractMessageLite.addAll(
values, options_);
}
/**
*
* Any metadata attached to the method.
*
*
* repeated .google.protobuf.Option options = 6;
*/
private void clearOptions() {
options_ = emptyProtobufList();
}
/**
*
* Any metadata attached to the method.
*
*
* repeated .google.protobuf.Option options = 6;
*/
private void removeOptions(int index) {
ensureOptionsIsMutable();
options_.remove(index);
}
public static final int SYNTAX_FIELD_NUMBER = 7;
private int syntax_;
/**
*
* The source syntax of this method.
*
*
* optional .google.protobuf.Syntax syntax = 7;
*/
public int getSyntaxValue() {
return syntax_;
}
/**
*
* The source syntax of this method.
*
*
* optional .google.protobuf.Syntax syntax = 7;
*/
public com.google.protobuf.Syntax getSyntax() {
com.google.protobuf.Syntax result = com.google.protobuf.Syntax.forNumber(syntax_);
return result == null ? com.google.protobuf.Syntax.UNRECOGNIZED : result;
}
/**
*
* The source syntax of this method.
*
*
* optional .google.protobuf.Syntax syntax = 7;
*/
private void setSyntaxValue(int value) {
syntax_ = value;
}
/**
*
* The source syntax of this method.
*
*
* optional .google.protobuf.Syntax syntax = 7;
*/
private void setSyntax(com.google.protobuf.Syntax value) {
if (value == null) {
throw new NullPointerException();
}
syntax_ = value.getNumber();
}
/**
*
* The source syntax of this method.
*
*
* optional .google.protobuf.Syntax syntax = 7;
*/
private void clearSyntax() {
syntax_ = 0;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!name_.isEmpty()) {
output.writeString(1, getName());
}
if (!requestTypeUrl_.isEmpty()) {
output.writeString(2, getRequestTypeUrl());
}
if (requestStreaming_ != false) {
output.writeBool(3, requestStreaming_);
}
if (!responseTypeUrl_.isEmpty()) {
output.writeString(4, getResponseTypeUrl());
}
if (responseStreaming_ != false) {
output.writeBool(5, responseStreaming_);
}
for (int i = 0; i < options_.size(); i++) {
output.writeMessage(6, options_.get(i));
}
if (syntax_ != com.google.protobuf.Syntax.SYNTAX_PROTO2.getNumber()) {
output.writeEnum(7, syntax_);
}
}
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (!name_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(1, getName());
}
if (!requestTypeUrl_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(2, getRequestTypeUrl());
}
if (requestStreaming_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, requestStreaming_);
}
if (!responseTypeUrl_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(4, getResponseTypeUrl());
}
if (responseStreaming_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, responseStreaming_);
}
for (int i = 0; i < options_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, options_.get(i));
}
if (syntax_ != com.google.protobuf.Syntax.SYNTAX_PROTO2.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, syntax_);
}
memoizedSerializedSize = size;
return size;
}
public static com.google.protobuf.Method parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.protobuf.Method parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.google.protobuf.Method parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.google.protobuf.Method parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.google.protobuf.Method parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.google.protobuf.Method parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.google.protobuf.Method parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.google.protobuf.Method parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.google.protobuf.Method parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.google.protobuf.Method parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.protobuf.Method prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
/**
*
* Method represents a method of an api.
*
*
* Protobuf type {@code google.protobuf.Method}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.google.protobuf.Method, Builder> implements
// @@protoc_insertion_point(builder_implements:google.protobuf.Method)
com.google.protobuf.MethodOrBuilder {
// Construct using com.google.protobuf.Method.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
* The simple name of this method.
*
*
* optional string name = 1;
*/
public java.lang.String getName() {
return instance.getName();
}
/**
*
* The simple name of this method.
*
*
* optional string name = 1;
*/
public com.google.protobuf.ByteString
getNameBytes() {
return instance.getNameBytes();
}
/**
*
* The simple name of this method.
*
*
* optional string name = 1;
*/
public Builder setName(
java.lang.String value) {
copyOnWrite();
instance.setName(value);
return this;
}
/**
*
* The simple name of this method.
*
*
* optional string name = 1;
*/
public Builder clearName() {
copyOnWrite();
instance.clearName();
return this;
}
/**
*
* The simple name of this method.
*
*
* optional string name = 1;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setNameBytes(value);
return this;
}
/**
*
* A URL of the input message type.
*
*
* optional string request_type_url = 2;
*/
public java.lang.String getRequestTypeUrl() {
return instance.getRequestTypeUrl();
}
/**
*
* A URL of the input message type.
*
*
* optional string request_type_url = 2;
*/
public com.google.protobuf.ByteString
getRequestTypeUrlBytes() {
return instance.getRequestTypeUrlBytes();
}
/**
*
* A URL of the input message type.
*
*
* optional string request_type_url = 2;
*/
public Builder setRequestTypeUrl(
java.lang.String value) {
copyOnWrite();
instance.setRequestTypeUrl(value);
return this;
}
/**
*
* A URL of the input message type.
*
*
* optional string request_type_url = 2;
*/
public Builder clearRequestTypeUrl() {
copyOnWrite();
instance.clearRequestTypeUrl();
return this;
}
/**
*
* A URL of the input message type.
*
*
* optional string request_type_url = 2;
*/
public Builder setRequestTypeUrlBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setRequestTypeUrlBytes(value);
return this;
}
/**
*
* If true, the request is streamed.
*
*
* optional bool request_streaming = 3;
*/
public boolean getRequestStreaming() {
return instance.getRequestStreaming();
}
/**
*
* If true, the request is streamed.
*
*
* optional bool request_streaming = 3;
*/
public Builder setRequestStreaming(boolean value) {
copyOnWrite();
instance.setRequestStreaming(value);
return this;
}
/**
*
* If true, the request is streamed.
*
*
* optional bool request_streaming = 3;
*/
public Builder clearRequestStreaming() {
copyOnWrite();
instance.clearRequestStreaming();
return this;
}
/**
*
* The URL of the output message type.
*
*
* optional string response_type_url = 4;
*/
public java.lang.String getResponseTypeUrl() {
return instance.getResponseTypeUrl();
}
/**
*
* The URL of the output message type.
*
*
* optional string response_type_url = 4;
*/
public com.google.protobuf.ByteString
getResponseTypeUrlBytes() {
return instance.getResponseTypeUrlBytes();
}
/**
*
* The URL of the output message type.
*
*
* optional string response_type_url = 4;
*/
public Builder setResponseTypeUrl(
java.lang.String value) {
copyOnWrite();
instance.setResponseTypeUrl(value);
return this;
}
/**
*
* The URL of the output message type.
*
*
* optional string response_type_url = 4;
*/
public Builder clearResponseTypeUrl() {
copyOnWrite();
instance.clearResponseTypeUrl();
return this;
}
/**
*
* The URL of the output message type.
*
*
* optional string response_type_url = 4;
*/
public Builder setResponseTypeUrlBytes(
com.google.protobuf.ByteString value) {
copyOnWrite();
instance.setResponseTypeUrlBytes(value);
return this;
}
/**
*
* If true, the response is streamed.
*
*
* optional bool response_streaming = 5;
*/
public boolean getResponseStreaming() {
return instance.getResponseStreaming();
}
/**
*
* If true, the response is streamed.
*
*
* optional bool response_streaming = 5;
*/
public Builder setResponseStreaming(boolean value) {
copyOnWrite();
instance.setResponseStreaming(value);
return this;
}
/**
*
* If true, the response is streamed.
*
*
* optional bool response_streaming = 5;
*/
public Builder clearResponseStreaming() {
copyOnWrite();
instance.clearResponseStreaming();
return this;
}
/**
*
* Any metadata attached to the method.
*
*
* repeated .google.protobuf.Option options = 6;
*/
public java.util.List getOptionsList() {
return java.util.Collections.unmodifiableList(
instance.getOptionsList());
}
/**
*
* Any metadata attached to the method.
*
*
* repeated .google.protobuf.Option options = 6;
*/
public int getOptionsCount() {
return instance.getOptionsCount();
}/**
*
* Any metadata attached to the method.
*
*
* repeated .google.protobuf.Option options = 6;
*/
public com.google.protobuf.Option getOptions(int index) {
return instance.getOptions(index);
}
/**
*
* Any metadata attached to the method.
*
*
* repeated .google.protobuf.Option options = 6;
*/
public Builder setOptions(
int index, com.google.protobuf.Option value) {
copyOnWrite();
instance.setOptions(index, value);
return this;
}
/**
*
* Any metadata attached to the method.
*
*
* repeated .google.protobuf.Option options = 6;
*/
public Builder setOptions(
int index, com.google.protobuf.Option.Builder builderForValue) {
copyOnWrite();
instance.setOptions(index, builderForValue);
return this;
}
/**
*
* Any metadata attached to the method.
*
*
* repeated .google.protobuf.Option options = 6;
*/
public Builder addOptions(com.google.protobuf.Option value) {
copyOnWrite();
instance.addOptions(value);
return this;
}
/**
*
* Any metadata attached to the method.
*
*
* repeated .google.protobuf.Option options = 6;
*/
public Builder addOptions(
int index, com.google.protobuf.Option value) {
copyOnWrite();
instance.addOptions(index, value);
return this;
}
/**
*
* Any metadata attached to the method.
*
*
* repeated .google.protobuf.Option options = 6;
*/
public Builder addOptions(
com.google.protobuf.Option.Builder builderForValue) {
copyOnWrite();
instance.addOptions(builderForValue);
return this;
}
/**
*
* Any metadata attached to the method.
*
*
* repeated .google.protobuf.Option options = 6;
*/
public Builder addOptions(
int index, com.google.protobuf.Option.Builder builderForValue) {
copyOnWrite();
instance.addOptions(index, builderForValue);
return this;
}
/**
*
* Any metadata attached to the method.
*
*
* repeated .google.protobuf.Option options = 6;
*/
public Builder addAllOptions(
java.lang.Iterable extends com.google.protobuf.Option> values) {
copyOnWrite();
instance.addAllOptions(values);
return this;
}
/**
*
* Any metadata attached to the method.
*
*
* repeated .google.protobuf.Option options = 6;
*/
public Builder clearOptions() {
copyOnWrite();
instance.clearOptions();
return this;
}
/**
*
* Any metadata attached to the method.
*
*
* repeated .google.protobuf.Option options = 6;
*/
public Builder removeOptions(int index) {
copyOnWrite();
instance.removeOptions(index);
return this;
}
/**
*
* The source syntax of this method.
*
*
* optional .google.protobuf.Syntax syntax = 7;
*/
public int getSyntaxValue() {
return instance.getSyntaxValue();
}
/**
*
* The source syntax of this method.
*
*
* optional .google.protobuf.Syntax syntax = 7;
*/
public Builder setSyntaxValue(int value) {
copyOnWrite();
instance.setSyntaxValue(value);
return this;
}
/**
*
* The source syntax of this method.
*
*
* optional .google.protobuf.Syntax syntax = 7;
*/
public com.google.protobuf.Syntax getSyntax() {
return instance.getSyntax();
}
/**
*
* The source syntax of this method.
*
*
* optional .google.protobuf.Syntax syntax = 7;
*/
public Builder setSyntax(com.google.protobuf.Syntax value) {
copyOnWrite();
instance.setSyntax(value);
return this;
}
/**
*
* The source syntax of this method.
*
*
* optional .google.protobuf.Syntax syntax = 7;
*/
public Builder clearSyntax() {
copyOnWrite();
instance.clearSyntax();
return this;
}
// @@protoc_insertion_point(builder_scope:google.protobuf.Method)
}
protected final Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
Object arg0, Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.google.protobuf.Method();
}
case IS_INITIALIZED: {
return DEFAULT_INSTANCE;
}
case MAKE_IMMUTABLE: {
options_.makeImmutable();
return null;
}
case NEW_BUILDER: {
return new Builder();
}
case VISIT: {
Visitor visitor = (Visitor) arg0;
com.google.protobuf.Method other = (com.google.protobuf.Method) arg1;
name_ = visitor.visitString(!name_.isEmpty(), name_,
!other.name_.isEmpty(), other.name_);
requestTypeUrl_ = visitor.visitString(!requestTypeUrl_.isEmpty(), requestTypeUrl_,
!other.requestTypeUrl_.isEmpty(), other.requestTypeUrl_);
requestStreaming_ = visitor.visitBoolean(requestStreaming_ != false, requestStreaming_,
other.requestStreaming_ != false, other.requestStreaming_);
responseTypeUrl_ = visitor.visitString(!responseTypeUrl_.isEmpty(), responseTypeUrl_,
!other.responseTypeUrl_.isEmpty(), other.responseTypeUrl_);
responseStreaming_ = visitor.visitBoolean(responseStreaming_ != false, responseStreaming_,
other.responseStreaming_ != false, other.responseStreaming_);
options_= visitor.visitList(options_, other.options_);
syntax_ = visitor.visitInt(syntax_ != 0, syntax_, other.syntax_ != 0, other.syntax_);
if (visitor == com.google.protobuf.GeneratedMessageLite.MergeFromVisitor
.INSTANCE) {
bitField0_ |= other.bitField0_;
}
return this;
}
case MERGE_FROM_STREAM: {
com.google.protobuf.CodedInputStream input =
(com.google.protobuf.CodedInputStream) arg0;
com.google.protobuf.ExtensionRegistryLite extensionRegistry =
(com.google.protobuf.ExtensionRegistryLite) arg1;
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!input.skipField(tag)) {
done = true;
}
break;
}
case 10: {
String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 18: {
String s = input.readStringRequireUtf8();
requestTypeUrl_ = s;
break;
}
case 24: {
requestStreaming_ = input.readBool();
break;
}
case 34: {
String s = input.readStringRequireUtf8();
responseTypeUrl_ = s;
break;
}
case 40: {
responseStreaming_ = input.readBool();
break;
}
case 50: {
if (!options_.isModifiable()) {
options_ =
com.google.protobuf.GeneratedMessageLite.mutableCopy(options_);
}
options_.add(
input.readMessage(com.google.protobuf.Option.parser(), extensionRegistry));
break;
}
case 56: {
int rawValue = input.readEnum();
syntax_ = rawValue;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw new RuntimeException(e.setUnfinishedMessage(this));
} catch (java.io.IOException e) {
throw new RuntimeException(
new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this));
} finally {
}
}
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
if (PARSER == null) { synchronized (com.google.protobuf.Method.class) {
if (PARSER == null) {
PARSER = new DefaultInstanceBasedParser(DEFAULT_INSTANCE);
}
}
}
return PARSER;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:google.protobuf.Method)
private static final com.google.protobuf.Method DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new Method();
DEFAULT_INSTANCE.makeImmutable();
}
public static com.google.protobuf.Method getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}