Class ApiInfo.Builder (0.3.0)

public static final class ApiInfo.Builder extends GeneratedMessage.Builder<ApiInfo.Builder> implements ApiInfoOrBuilder

ApiInfo represents an API along with its origin.

Protobuf type google.cloud.designcenter.v1.ApiInfo

Implements

ApiInfoOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ApiInfo build()
Returns
Type Description
ApiInfo

buildPartial()

public ApiInfo buildPartial()
Returns
Type Description
ApiInfo

clear()

public ApiInfo.Builder clear()
Returns
Type Description
ApiInfo.Builder
Overrides

clearApi()

public ApiInfo.Builder clearApi()

Required. API name, such as compute.googleapis.com.

string api = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ApiInfo.Builder

This builder for chaining.

clearSystemProvided()

public ApiInfo.Builder clearSystemProvided()

Output only. When true, indicates that this API is automatically added by Application Design Center. When you provide an API, this field is set to false.

bool system_provided = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ApiInfo.Builder

This builder for chaining.

getApi()

public String getApi()

Required. API name, such as compute.googleapis.com.

string api = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The api.

getApiBytes()

public ByteString getApiBytes()

Required. API name, such as compute.googleapis.com.

string api = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for api.

getDefaultInstanceForType()

public ApiInfo getDefaultInstanceForType()
Returns
Type Description
ApiInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getSystemProvided()

public boolean getSystemProvided()

Output only. When true, indicates that this API is automatically added by Application Design Center. When you provide an API, this field is set to false.

bool system_provided = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The systemProvided.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ApiInfo other)

public ApiInfo.Builder mergeFrom(ApiInfo other)
Parameter
Name Description
other ApiInfo
Returns
Type Description
ApiInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ApiInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ApiInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ApiInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ApiInfo.Builder
Overrides

setApi(String value)

public ApiInfo.Builder setApi(String value)

Required. API name, such as compute.googleapis.com.

string api = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The api to set.

Returns
Type Description
ApiInfo.Builder

This builder for chaining.

setApiBytes(ByteString value)

public ApiInfo.Builder setApiBytes(ByteString value)

Required. API name, such as compute.googleapis.com.

string api = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for api to set.

Returns
Type Description
ApiInfo.Builder

This builder for chaining.

setSystemProvided(boolean value)

public ApiInfo.Builder setSystemProvided(boolean value)

Output only. When true, indicates that this API is automatically added by Application Design Center. When you provide an API, this field is set to false.

bool system_provided = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The systemProvided to set.

Returns
Type Description
ApiInfo.Builder

This builder for chaining.