public static final class ResourceInfo.Builder extends GeneratedMessage.Builder<ResourceInfo.Builder> implements ResourceInfoOrBuilderResourceInfo represents the information or status of an app connector resource component that's used to report on various parts of the system. For example, ResourceInfo can be used to convey the status of a remote_agent, including the status of an appgateway for an runtime environment in a container instance.
Protobuf type google.cloud.beyondcorp.appconnectors.v1.ResourceInfo
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ResourceInfo.BuilderImplements
ResourceInfoOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllSub(Iterable<? extends ResourceInfo> values)
public ResourceInfo.Builder addAllSub(Iterable<? extends ResourceInfo> values)List of Info for the sub level resources.
repeated .google.cloud.beyondcorp.appconnectors.v1.ResourceInfo sub = 5;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.beyondcorp.appconnectors.v1.ResourceInfo> |
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
|
addSub(ResourceInfo value)
public ResourceInfo.Builder addSub(ResourceInfo value)List of Info for the sub level resources.
repeated .google.cloud.beyondcorp.appconnectors.v1.ResourceInfo sub = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
ResourceInfo |
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
|
addSub(ResourceInfo.Builder builderForValue)
public ResourceInfo.Builder addSub(ResourceInfo.Builder builderForValue)List of Info for the sub level resources.
repeated .google.cloud.beyondcorp.appconnectors.v1.ResourceInfo sub = 5;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ResourceInfo.Builder |
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
|
addSub(int index, ResourceInfo value)
public ResourceInfo.Builder addSub(int index, ResourceInfo value)List of Info for the sub level resources.
repeated .google.cloud.beyondcorp.appconnectors.v1.ResourceInfo sub = 5;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ResourceInfo |
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
|
addSub(int index, ResourceInfo.Builder builderForValue)
public ResourceInfo.Builder addSub(int index, ResourceInfo.Builder builderForValue)List of Info for the sub level resources.
repeated .google.cloud.beyondcorp.appconnectors.v1.ResourceInfo sub = 5;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ResourceInfo.Builder |
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
|
addSubBuilder()
public ResourceInfo.Builder addSubBuilder()List of Info for the sub level resources.
repeated .google.cloud.beyondcorp.appconnectors.v1.ResourceInfo sub = 5;
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
|
addSubBuilder(int index)
public ResourceInfo.Builder addSubBuilder(int index)List of Info for the sub level resources.
repeated .google.cloud.beyondcorp.appconnectors.v1.ResourceInfo sub = 5;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
|
build()
public ResourceInfo build()| Returns | |
|---|---|
| Type | Description |
ResourceInfo |
|
buildPartial()
public ResourceInfo buildPartial()| Returns | |
|---|---|
| Type | Description |
ResourceInfo |
|
clear()
public ResourceInfo.Builder clear()| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
|
clearId()
public ResourceInfo.Builder clearId()Required. Unique Id for the resource.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
This builder for chaining. |
clearResource()
public ResourceInfo.Builder clearResource()Specific details for the resource. This is for internal use only.
.google.protobuf.Any resource = 3;
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
|
clearStatus()
public ResourceInfo.Builder clearStatus()Overall health status. Overall status is derived based on the status of each sub level resources.
.google.cloud.beyondcorp.appconnectors.v1.HealthStatus status = 2;
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
This builder for chaining. |
clearSub()
public ResourceInfo.Builder clearSub()List of Info for the sub level resources.
repeated .google.cloud.beyondcorp.appconnectors.v1.ResourceInfo sub = 5;
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
|
clearTime()
public ResourceInfo.Builder clearTime()The timestamp to collect the info. It is suggested to be set by the topmost level resource only.
.google.protobuf.Timestamp time = 4;
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
|
getDefaultInstanceForType()
public ResourceInfo getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ResourceInfo |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getId()
public String getId()Required. Unique Id for the resource.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The id. |
getIdBytes()
public ByteString getIdBytes()Required. Unique Id for the resource.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for id. |
getResource()
public Any getResource()Specific details for the resource. This is for internal use only.
.google.protobuf.Any resource = 3;
| Returns | |
|---|---|
| Type | Description |
Any |
The resource. |
getResourceBuilder()
public Any.Builder getResourceBuilder()Specific details for the resource. This is for internal use only.
.google.protobuf.Any resource = 3;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getResourceOrBuilder()
public AnyOrBuilder getResourceOrBuilder()Specific details for the resource. This is for internal use only.
.google.protobuf.Any resource = 3;
| Returns | |
|---|---|
| Type | Description |
AnyOrBuilder |
|
getStatus()
public HealthStatus getStatus()Overall health status. Overall status is derived based on the status of each sub level resources.
.google.cloud.beyondcorp.appconnectors.v1.HealthStatus status = 2;
| Returns | |
|---|---|
| Type | Description |
HealthStatus |
The status. |
getStatusValue()
public int getStatusValue()Overall health status. Overall status is derived based on the status of each sub level resources.
.google.cloud.beyondcorp.appconnectors.v1.HealthStatus status = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for status. |
getSub(int index)
public ResourceInfo getSub(int index)List of Info for the sub level resources.
repeated .google.cloud.beyondcorp.appconnectors.v1.ResourceInfo sub = 5;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ResourceInfo |
|
getSubBuilder(int index)
public ResourceInfo.Builder getSubBuilder(int index)List of Info for the sub level resources.
repeated .google.cloud.beyondcorp.appconnectors.v1.ResourceInfo sub = 5;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
|
getSubBuilderList()
public List<ResourceInfo.Builder> getSubBuilderList()List of Info for the sub level resources.
repeated .google.cloud.beyondcorp.appconnectors.v1.ResourceInfo sub = 5;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getSubCount()
public int getSubCount()List of Info for the sub level resources.
repeated .google.cloud.beyondcorp.appconnectors.v1.ResourceInfo sub = 5;
| Returns | |
|---|---|
| Type | Description |
int |
|
getSubList()
public List<ResourceInfo> getSubList()List of Info for the sub level resources.
repeated .google.cloud.beyondcorp.appconnectors.v1.ResourceInfo sub = 5;
| Returns | |
|---|---|
| Type | Description |
List<ResourceInfo> |
|
getSubOrBuilder(int index)
public ResourceInfoOrBuilder getSubOrBuilder(int index)List of Info for the sub level resources.
repeated .google.cloud.beyondcorp.appconnectors.v1.ResourceInfo sub = 5;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ResourceInfoOrBuilder |
|
getSubOrBuilderList()
public List<? extends ResourceInfoOrBuilder> getSubOrBuilderList()List of Info for the sub level resources.
repeated .google.cloud.beyondcorp.appconnectors.v1.ResourceInfo sub = 5;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.beyondcorp.appconnectors.v1.ResourceInfoOrBuilder> |
|
getTime()
public Timestamp getTime()The timestamp to collect the info. It is suggested to be set by the topmost level resource only.
.google.protobuf.Timestamp time = 4;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The time. |
getTimeBuilder()
public Timestamp.Builder getTimeBuilder()The timestamp to collect the info. It is suggested to be set by the topmost level resource only.
.google.protobuf.Timestamp time = 4;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getTimeOrBuilder()
public TimestampOrBuilder getTimeOrBuilder()The timestamp to collect the info. It is suggested to be set by the topmost level resource only.
.google.protobuf.Timestamp time = 4;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
hasResource()
public boolean hasResource()Specific details for the resource. This is for internal use only.
.google.protobuf.Any resource = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the resource field is set. |
hasTime()
public boolean hasTime()The timestamp to collect the info. It is suggested to be set by the topmost level resource only.
.google.protobuf.Timestamp time = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the time field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ResourceInfo other)
public ResourceInfo.Builder mergeFrom(ResourceInfo other)| Parameter | |
|---|---|
| Name | Description |
other |
ResourceInfo |
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ResourceInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ResourceInfo.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
|
mergeResource(Any value)
public ResourceInfo.Builder mergeResource(Any value)Specific details for the resource. This is for internal use only.
.google.protobuf.Any resource = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Any |
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
|
mergeTime(Timestamp value)
public ResourceInfo.Builder mergeTime(Timestamp value)The timestamp to collect the info. It is suggested to be set by the topmost level resource only.
.google.protobuf.Timestamp time = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
|
removeSub(int index)
public ResourceInfo.Builder removeSub(int index)List of Info for the sub level resources.
repeated .google.cloud.beyondcorp.appconnectors.v1.ResourceInfo sub = 5;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
|
setId(String value)
public ResourceInfo.Builder setId(String value)Required. Unique Id for the resource.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe id to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
This builder for chaining. |
setIdBytes(ByteString value)
public ResourceInfo.Builder setIdBytes(ByteString value)Required. Unique Id for the resource.
string id = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for id to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
This builder for chaining. |
setResource(Any value)
public ResourceInfo.Builder setResource(Any value)Specific details for the resource. This is for internal use only.
.google.protobuf.Any resource = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
Any |
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
|
setResource(Any.Builder builderForValue)
public ResourceInfo.Builder setResource(Any.Builder builderForValue)Specific details for the resource. This is for internal use only.
.google.protobuf.Any resource = 3;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
|
setStatus(HealthStatus value)
public ResourceInfo.Builder setStatus(HealthStatus value)Overall health status. Overall status is derived based on the status of each sub level resources.
.google.cloud.beyondcorp.appconnectors.v1.HealthStatus status = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
HealthStatusThe status to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
This builder for chaining. |
setStatusValue(int value)
public ResourceInfo.Builder setStatusValue(int value)Overall health status. Overall status is derived based on the status of each sub level resources.
.google.cloud.beyondcorp.appconnectors.v1.HealthStatus status = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for status to set. |
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
This builder for chaining. |
setSub(int index, ResourceInfo value)
public ResourceInfo.Builder setSub(int index, ResourceInfo value)List of Info for the sub level resources.
repeated .google.cloud.beyondcorp.appconnectors.v1.ResourceInfo sub = 5;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
ResourceInfo |
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
|
setSub(int index, ResourceInfo.Builder builderForValue)
public ResourceInfo.Builder setSub(int index, ResourceInfo.Builder builderForValue)List of Info for the sub level resources.
repeated .google.cloud.beyondcorp.appconnectors.v1.ResourceInfo sub = 5;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
ResourceInfo.Builder |
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
|
setTime(Timestamp value)
public ResourceInfo.Builder setTime(Timestamp value)The timestamp to collect the info. It is suggested to be set by the topmost level resource only.
.google.protobuf.Timestamp time = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
|
setTime(Timestamp.Builder builderForValue)
public ResourceInfo.Builder setTime(Timestamp.Builder builderForValue)The timestamp to collect the info. It is suggested to be set by the topmost level resource only.
.google.protobuf.Timestamp time = 4;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
ResourceInfo.Builder |
|