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.
*
* repeated .google.protobuf.Option options = 6;
*/
@java.lang.Override
public com.google.protobuf.OptionOrBuilder getOptionsOrBuilder(
int index) {
return options_.get(index);
}
public static final int SYNTAX_FIELD_NUMBER = 7;
private int syntax_;
/**
*
* The source syntax of this method.
*
*
* .google.protobuf.Syntax syntax = 7;
* @return The enum numeric value on the wire for syntax.
*/
@java.lang.Override public int getSyntaxValue() {
return syntax_;
}
/**
*
* The source syntax of this method.
*
*
* .google.protobuf.Syntax syntax = 7;
* @return The syntax.
*/
@java.lang.Override public com.google.protobuf.Syntax getSyntax() {
@SuppressWarnings("deprecation")
com.google.protobuf.Syntax result = com.google.protobuf.Syntax.valueOf(syntax_);
return result == null ? com.google.protobuf.Syntax.UNRECOGNIZED : result;
}
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 (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!getRequestTypeUrlBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestTypeUrl_);
}
if (requestStreaming_ != false) {
output.writeBool(3, requestStreaming_);
}
if (!getResponseTypeUrlBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, responseTypeUrl_);
}
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_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!getRequestTypeUrlBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestTypeUrl_);
}
if (requestStreaming_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(3, requestStreaming_);
}
if (!getResponseTypeUrlBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, responseTypeUrl_);
}
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_);
}
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 com.google.protobuf.Method)) {
return super.equals(obj);
}
com.google.protobuf.Method other = (com.google.protobuf.Method) obj;
if (!getName()
.equals(other.getName())) return false;
if (!getRequestTypeUrl()
.equals(other.getRequestTypeUrl())) return false;
if (getRequestStreaming()
!= other.getRequestStreaming()) return false;
if (!getResponseTypeUrl()
.equals(other.getResponseTypeUrl())) return false;
if (getResponseStreaming()
!= other.getResponseStreaming()) return false;
if (!getOptionsList()
.equals(other.getOptionsList())) return false;
if (syntax_ != other.syntax_) 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();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + REQUEST_TYPE_URL_FIELD_NUMBER;
hash = (53 * hash) + getRequestTypeUrl().hashCode();
hash = (37 * hash) + REQUEST_STREAMING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRequestStreaming());
hash = (37 * hash) + RESPONSE_TYPE_URL_FIELD_NUMBER;
hash = (53 * hash) + getResponseTypeUrl().hashCode();
hash = (37 * hash) + RESPONSE_STREAMING_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getResponseStreaming());
if (getOptionsCount() > 0) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptionsList().hashCode();
}
hash = (37 * hash) + SYNTAX_FIELD_NUMBER;
hash = (53 * hash) + syntax_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.protobuf.Method parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.Method parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.Method parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.Method 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.protobuf.Method parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.protobuf.Method parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.protobuf.Method parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.google.protobuf.Method parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.protobuf.Method 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.protobuf.Method parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, 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.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.protobuf.Method 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;
}
/**
*
* Method represents a method of an API interface.
*
*
* string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The simple name of this method.
*
*
* string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The simple name of this method.
*
*
* string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* The simple name of this method.
*
*
* string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* The simple name of this method.
*
*
* string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object requestTypeUrl_ = "";
/**
*
*
* .google.protobuf.Syntax syntax = 7;
* @return The enum numeric value on the wire for syntax.
*/
@java.lang.Override public int getSyntaxValue() {
return syntax_;
}
/**
*
* The source syntax of this method.
*
*
* .google.protobuf.Syntax syntax = 7;
* @param value The enum numeric value on the wire for syntax to set.
* @return This builder for chaining.
*/
public Builder setSyntaxValue(int value) {
syntax_ = value;
onChanged();
return this;
}
/**
*
* The source syntax of this method.
*
*
* .google.protobuf.Syntax syntax = 7;
* @return The syntax.
*/
@java.lang.Override
public com.google.protobuf.Syntax getSyntax() {
@SuppressWarnings("deprecation")
com.google.protobuf.Syntax result = com.google.protobuf.Syntax.valueOf(syntax_);
return result == null ? com.google.protobuf.Syntax.UNRECOGNIZED : result;
}
/**
*
* The source syntax of this method.
*
*
* .google.protobuf.Syntax syntax = 7;
* @param value The syntax to set.
* @return This builder for chaining.
*/
public Builder setSyntax(com.google.protobuf.Syntax value) {
if (value == null) {
throw new NullPointerException();
}
syntax_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The source syntax of this method.
*
*
* .google.protobuf.Syntax syntax = 7;
* @return This builder for chaining.
*/
public Builder clearSyntax() {
syntax_ = 0;
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:google.protobuf.Method)
}
// @@protoc_insertion_point(class_scope:google.protobuf.Method)
private static final com.google.protobuf.Method DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.protobuf.Method();
}
public static com.google.protobuf.Method getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Method parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Method(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 com.google.protobuf.Method getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}