Class ResourceInfo.Builder (0.47.0)

public static final class ResourceInfo.Builder extends GeneratedMessageV3.Builder<ResourceInfo.Builder> implements ResourceInfoOrBuilder

ResourceInfo represents the information/status of an app connector resource. Such as:

  • remote_agent
    • container
      • runtime
      • appgateway
        • appconnector
          • appconnection
            • tunnel
        • logagent

Protobuf type google.cloud.beyondcorp.appconnectors.v1.ResourceInfo

Static 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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResourceInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResourceInfo.Builder
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public ResourceInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ResourceInfo.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public ResourceInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ResourceInfo.Builder
Overrides

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

clone()

public ResourceInfo.Builder clone()
Returns
Type Description
ResourceInfo.Builder
Overrides

getDefaultInstanceForType()

public ResourceInfo getDefaultInstanceForType()
Returns
Type Description
ResourceInfo

getDescriptorForType()

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

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourceInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResourceInfo.Builder
Overrides

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

setField(Descriptors.FieldDescriptor field, Object value)

public ResourceInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ResourceInfo.Builder
Overrides

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 String

The 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 ByteString

The bytes for id to set.

Returns
Type Description
ResourceInfo.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ResourceInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ResourceInfo.Builder
Overrides

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 HealthStatus

The 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 int

The 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

setUnknownFields(UnknownFieldSet unknownFields)

public final ResourceInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ResourceInfo.Builder
Overrides