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
Name
Description
values
Iterable < ? extends com.google.protobuf.Option >
Returns
Type
Description

addOptions(Option value)

  public 
  
 Method 
 . 
 Builder 
  
 addOptions 
 ( 
 Option 
  
 value 
 ) 
 

Any metadata attached to the method.

repeated .google.protobuf.Option options = 6;

Parameter
Name
Description
value
Returns
Type
Description

addOptions(Option.Builder builderForValue)

  public 
  
 Method 
 . 
 Builder 
  
 addOptions 
 ( 
 Option 
 . 
 Builder 
  
 builderForValue 
 ) 
 

Any metadata attached to the method.

repeated .google.protobuf.Option options = 6;

Parameter
Name
Description
builderForValue
Returns
Type
Description

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
Name
Description
index
int
value
Returns
Type
Description

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
Name
Description
index
int
builderForValue
Returns
Type
Description

clearName()

  public 
  
 Method 
 . 
 Builder 
  
 clearName 
 () 
 

The simple name of this method.

string name = 1;

Returns
Type
Description

This builder for chaining.

clearOptions()

  public 
  
 Method 
 . 
 Builder 
  
 clearOptions 
 () 
 

Any metadata attached to the method.

repeated .google.protobuf.Option options = 6;

Returns
Type
Description

clearRequestStreaming()

  public 
  
 Method 
 . 
 Builder 
  
 clearRequestStreaming 
 () 
 

If true, the request is streamed.

bool request_streaming = 3;

Returns
Type
Description

This builder for chaining.

clearRequestTypeUrl()

  public 
  
 Method 
 . 
 Builder 
  
 clearRequestTypeUrl 
 () 
 

A URL of the input message type.

string request_type_url = 2;

Returns
Type
Description

This builder for chaining.

clearResponseStreaming()

  public 
  
 Method 
 . 
 Builder 
  
 clearResponseStreaming 
 () 
 

If true, the response is streamed.

bool response_streaming = 5;

Returns
Type
Description

This builder for chaining.

clearResponseTypeUrl()

  public 
  
 Method 
 . 
 Builder 
  
 clearResponseTypeUrl 
 () 
 

The URL of the output message type.

string response_type_url = 4;

Returns
Type
Description

This builder for chaining.

clearSyntax()

  public 
  
 Method 
 . 
 Builder 
  
 clearSyntax 
 () 
 

The source syntax of this method.

.google.protobuf.Syntax syntax = 7;

Returns
Type
Description

This builder for chaining.

getName()

  public 
  
 String 
  
 getName 
 () 
 

The simple name of this method.

string name = 1;

Returns
Type
Description

The name.

getNameBytes()

  public 
  
 ByteString 
  
 getNameBytes 
 () 
 

The simple name of this method.

string name = 1;

Returns
Type
Description

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
Name
Description
index
int
Returns
Type
Description

getOptionsCount()

  public 
  
 int 
  
 getOptionsCount 
 () 
 

Any metadata attached to the method.

repeated .google.protobuf.Option options = 6;

Returns
Type
Description
int

getOptionsList()

  public 
  
 List<Option> 
  
 getOptionsList 
 () 
 

Any metadata attached to the method.

repeated .google.protobuf.Option options = 6;

Returns
Type
Description
List < Option >

getRequestStreaming()

  public 
  
 boolean 
  
 getRequestStreaming 
 () 
 

If true, the request is streamed.

bool request_streaming = 3;

Returns
Type
Description

The requestStreaming.

getRequestTypeUrl()

  public 
  
 String 
  
 getRequestTypeUrl 
 () 
 

A URL of the input message type.

string request_type_url = 2;

Returns
Type
Description

The requestTypeUrl.

getRequestTypeUrlBytes()

  public 
  
 ByteString 
  
 getRequestTypeUrlBytes 
 () 
 

A URL of the input message type.

string request_type_url = 2;

Returns
Type
Description

The bytes for requestTypeUrl.

getResponseStreaming()

  public 
  
 boolean 
  
 getResponseStreaming 
 () 
 

If true, the response is streamed.

bool response_streaming = 5;

Returns
Type
Description

The responseStreaming.

getResponseTypeUrl()

  public 
  
 String 
  
 getResponseTypeUrl 
 () 
 

The URL of the output message type.

string response_type_url = 4;

Returns
Type
Description

The responseTypeUrl.

getResponseTypeUrlBytes()

  public 
  
 ByteString 
  
 getResponseTypeUrlBytes 
 () 
 

The URL of the output message type.

string response_type_url = 4;

Returns
Type
Description

The bytes for responseTypeUrl.

getSyntax()

  public 
  
 Syntax 
  
 getSyntax 
 () 
 

The source syntax of this method.

.google.protobuf.Syntax syntax = 7;

Returns
Type
Description

The syntax.

getSyntaxValue()

  public 
  
 int 
  
 getSyntaxValue 
 () 
 

The source syntax of this method.

.google.protobuf.Syntax syntax = 7;

Returns
Type
Description
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
Name
Description
index
int
Returns
Type
Description

setName(String value)

  public 
  
 Method 
 . 
 Builder 
  
 setName 
 ( 
 String 
  
 value 
 ) 
 

The simple name of this method.

string name = 1;

Parameter
Name
Description
value
String

The name to set.

Returns
Type
Description

This builder for chaining.

setNameBytes(ByteString value)

  public 
  
 Method 
 . 
 Builder 
  
 setNameBytes 
 ( 
 ByteString 
  
 value 
 ) 
 

The simple name of this method.

string name = 1;

Parameter
Name
Description
value
ByteString

The bytes for name to set.

Returns
Type
Description

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
Name
Description
index
int
value
Returns
Type
Description

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
Name
Description
index
int
builderForValue
Returns
Type
Description

setRequestStreaming(boolean value)

  public 
  
 Method 
 . 
 Builder 
  
 setRequestStreaming 
 ( 
 boolean 
  
 value 
 ) 
 

If true, the request is streamed.

bool request_streaming = 3;

Parameter
Name
Description
value
boolean

The requestStreaming to set.

Returns
Type
Description

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
Name
Description
value
String

The requestTypeUrl to set.

Returns
Type
Description

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
Name
Description
value
ByteString

The bytes for requestTypeUrl to set.

Returns
Type
Description

This builder for chaining.

setResponseStreaming(boolean value)

  public 
  
 Method 
 . 
 Builder 
  
 setResponseStreaming 
 ( 
 boolean 
  
 value 
 ) 
 

If true, the response is streamed.

bool response_streaming = 5;

Parameter
Name
Description
value
boolean

The responseStreaming to set.

Returns
Type
Description

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
Name
Description
value
String

The responseTypeUrl to set.

Returns
Type
Description

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
Name
Description
value
ByteString

The bytes for responseTypeUrl to set.

Returns
Type
Description

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
Name
Description
value
Syntax

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

Returns
Type
Description

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
Name
Description
value
int

The syntax to set.

Returns
Type
Description

This builder for chaining.

Create a Mobile Website
View Site in Mobile | Classic
Share by: