public static final class ApiInfo.Builder extends GeneratedMessage.Builder<ApiInfo.Builder> implements ApiInfoOrBuilderApiInfo represents an API along with its origin.
Protobuf type google.cloud.designcenter.v1.ApiInfo
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ApiInfo.BuilderImplements
ApiInfoOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ApiInfo.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ApiInfo.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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 |
booleanThe systemProvided to set. |
| Returns | |
|---|---|
| Type | Description |
ApiInfo.Builder |
This builder for chaining. |