Class Method.Builder (3.19.4)

public static final class Method.Builder extends GeneratedMessageLite.Builder<Method,Method.Builder> implements MethodOrBuilder

Method represents a method of an API interface.

Protobuf type google.protobuf.Method

Implements

MethodOrBuilder

Methods

addAllOptions(Iterable<? extends Option> values)

public Method.Builder addAllOptions(Iterable<? extends Option> values)

Any metadata attached to the method.

repeated .google.protobuf.Option options = 6;

Parameter
NameDescription
valuesIterable<? extends com.google.protobuf.Option>
Returns
TypeDescription
Method.Builder

addOptions(Option value)

public Method.Builder addOptions(Option value)

Any metadata attached to the method.

repeated .google.protobuf.Option options = 6;

Parameter
NameDescription
valueOption
Returns
TypeDescription
Method.Builder

addOptions(Option.Builder builderForValue)

public Method.Builder addOptions(Option.Builder builderForValue)

Any metadata attached to the method.

repeated .google.protobuf.Option options = 6;

Parameter
NameDescription
builderForValueOption.Builder
Returns
TypeDescription
Method.Builder

addOptions(int index, Option value)

public Method.Builder addOptions(int index, Option value)

Any metadata attached to the method.

repeated .google.protobuf.Option options = 6;

Parameters
NameDescription
indexint
valueOption
Returns
TypeDescription
Method.Builder

addOptions(int index, Option.Builder builderForValue)

public Method.Builder addOptions(int index, Option.Builder builderForValue)

Any metadata attached to the method.

repeated .google.protobuf.Option options = 6;

Parameters
NameDescription
indexint
builderForValueOption.Builder
Returns
TypeDescription
Method.Builder

clearName()

public Method.Builder clearName()

The simple name of this method.

string name = 1;

Returns
TypeDescription
Method.Builder

This builder for chaining.

clearOptions()

public Method.Builder clearOptions()

Any metadata attached to the method.

repeated .google.protobuf.Option options = 6;

Returns
TypeDescription
Method.Builder

clearRequestStreaming()

public Method.Builder clearRequestStreaming()

If true, the request is streamed.

bool request_streaming = 3;

Returns
TypeDescription
Method.Builder

This builder for chaining.

clearRequestTypeUrl()

public Method.Builder clearRequestTypeUrl()

A URL of the input message type.

string request_type_url = 2;

Returns
TypeDescription
Method.Builder

This builder for chaining.

clearResponseStreaming()

public Method.Builder clearResponseStreaming()

If true, the response is streamed.

bool response_streaming = 5;

Returns
TypeDescription
Method.Builder

This builder for chaining.

clearResponseTypeUrl()

public Method.Builder clearResponseTypeUrl()

The URL of the output message type.

string response_type_url = 4;

Returns
TypeDescription
Method.Builder

This builder for chaining.

clearSyntax()

public Method.Builder clearSyntax()

The source syntax of this method.

.google.protobuf.Syntax syntax = 7;

Returns
TypeDescription
Method.Builder

This builder for chaining.

getName()

public String getName()

The simple name of this method.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The simple name of this method.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getOptions(int index)

public Option getOptions(int index)

Any metadata attached to the method.

repeated .google.protobuf.Option options = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
Option

getOptionsCount()

public int getOptionsCount()

Any metadata attached to the method.

repeated .google.protobuf.Option options = 6;

Returns
TypeDescription
int

getOptionsList()

public List<Option> getOptionsList()

Any metadata attached to the method.

repeated .google.protobuf.Option options = 6;

Returns
TypeDescription
List<Option>

getRequestStreaming()

public boolean getRequestStreaming()

If true, the request is streamed.

bool request_streaming = 3;

Returns
TypeDescription
boolean

The requestStreaming.

getRequestTypeUrl()

public String getRequestTypeUrl()

A URL of the input message type.

string request_type_url = 2;

Returns
TypeDescription
String

The requestTypeUrl.

getRequestTypeUrlBytes()

public ByteString getRequestTypeUrlBytes()

A URL of the input message type.

string request_type_url = 2;

Returns
TypeDescription
ByteString

The bytes for requestTypeUrl.

getResponseStreaming()

public boolean getResponseStreaming()

If true, the response is streamed.

bool response_streaming = 5;

Returns
TypeDescription
boolean

The responseStreaming.

getResponseTypeUrl()

public String getResponseTypeUrl()

The URL of the output message type.

string response_type_url = 4;

Returns
TypeDescription
String

The responseTypeUrl.

getResponseTypeUrlBytes()

public ByteString getResponseTypeUrlBytes()

The URL of the output message type.

string response_type_url = 4;

Returns
TypeDescription
ByteString

The bytes for responseTypeUrl.

getSyntax()

public Syntax getSyntax()

The source syntax of this method.

.google.protobuf.Syntax syntax = 7;

Returns
TypeDescription
Syntax

The syntax.

getSyntaxValue()

public int getSyntaxValue()

The source syntax of this method.

.google.protobuf.Syntax syntax = 7;

Returns
TypeDescription
int

The enum numeric value on the wire for syntax.

removeOptions(int index)

public Method.Builder removeOptions(int index)

Any metadata attached to the method.

repeated .google.protobuf.Option options = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
Method.Builder

setName(String value)

public Method.Builder setName(String value)

The simple name of this method.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Method.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Method.Builder setNameBytes(ByteString value)

The simple name of this method.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Method.Builder

This builder for chaining.

setOptions(int index, Option value)

public Method.Builder setOptions(int index, Option value)

Any metadata attached to the method.

repeated .google.protobuf.Option options = 6;

Parameters
NameDescription
indexint
valueOption
Returns
TypeDescription
Method.Builder

setOptions(int index, Option.Builder builderForValue)

public Method.Builder setOptions(int index, Option.Builder builderForValue)

Any metadata attached to the method.

repeated .google.protobuf.Option options = 6;

Parameters
NameDescription
indexint
builderForValueOption.Builder
Returns
TypeDescription
Method.Builder

setRequestStreaming(boolean value)

public Method.Builder setRequestStreaming(boolean value)

If true, the request is streamed.

bool request_streaming = 3;

Parameter
NameDescription
valueboolean

The requestStreaming to set.

Returns
TypeDescription
Method.Builder

This builder for chaining.

setRequestTypeUrl(String value)

public Method.Builder setRequestTypeUrl(String value)

A URL of the input message type.

string request_type_url = 2;

Parameter
NameDescription
valueString

The requestTypeUrl to set.

Returns
TypeDescription
Method.Builder

This builder for chaining.

setRequestTypeUrlBytes(ByteString value)

public Method.Builder setRequestTypeUrlBytes(ByteString value)

A URL of the input message type.

string request_type_url = 2;

Parameter
NameDescription
valueByteString

The bytes for requestTypeUrl to set.

Returns
TypeDescription
Method.Builder

This builder for chaining.

setResponseStreaming(boolean value)

public Method.Builder setResponseStreaming(boolean value)

If true, the response is streamed.

bool response_streaming = 5;

Parameter
NameDescription
valueboolean

The responseStreaming to set.

Returns
TypeDescription
Method.Builder

This builder for chaining.

setResponseTypeUrl(String value)

public Method.Builder setResponseTypeUrl(String value)

The URL of the output message type.

string response_type_url = 4;

Parameter
NameDescription
valueString

The responseTypeUrl to set.

Returns
TypeDescription
Method.Builder

This builder for chaining.

setResponseTypeUrlBytes(ByteString value)

public Method.Builder setResponseTypeUrlBytes(ByteString value)

The URL of the output message type.

string response_type_url = 4;

Parameter
NameDescription
valueByteString

The bytes for responseTypeUrl to set.

Returns
TypeDescription
Method.Builder

This builder for chaining.

setSyntax(Syntax value)

public Method.Builder setSyntax(Syntax value)

The source syntax of this method.

.google.protobuf.Syntax syntax = 7;

Parameter
NameDescription
valueSyntax

The enum numeric value on the wire for syntax to set.

Returns
TypeDescription
Method.Builder

This builder for chaining.

setSyntaxValue(int value)

public Method.Builder setSyntaxValue(int value)

The source syntax of this method.

.google.protobuf.Syntax syntax = 7;

Parameter
NameDescription
valueint

The syntax to set.

Returns
TypeDescription
Method.Builder

This builder for chaining.