Class ResourceInfo.Builder (0.22.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.beyondcorp.appconnectors.v1.ResourceInfo>
Returns
TypeDescription
ResourceInfo.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ResourceInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueResourceInfo
Returns
TypeDescription
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
NameDescription
builderForValueResourceInfo.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueResourceInfo
Returns
TypeDescription
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
NameDescription
indexint
builderForValueResourceInfo.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ResourceInfo.Builder

build()

public ResourceInfo build()
Returns
TypeDescription
ResourceInfo

buildPartial()

public ResourceInfo buildPartial()
Returns
TypeDescription
ResourceInfo

clear()

public ResourceInfo.Builder clear()
Returns
TypeDescription
ResourceInfo.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ResourceInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ResourceInfo.Builder
Overrides

clearId()

public ResourceInfo.Builder clearId()

Required. Unique Id for the resource.

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

Returns
TypeDescription
ResourceInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ResourceInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ResourceInfo.Builder

clone()

public ResourceInfo.Builder clone()
Returns
TypeDescription
ResourceInfo.Builder
Overrides

getDefaultInstanceForType()

public ResourceInfo getDefaultInstanceForType()
Returns
TypeDescription
ResourceInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getId()

public String getId()

Required. Unique Id for the resource.

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

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

Required. Unique Id for the resource.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Builder

getResourceOrBuilder()

public AnyOrBuilder getResourceOrBuilder()

Specific details for the resource. This is for internal use only.

.google.protobuf.Any resource = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getSubCount()

public int getSubCount()

List of Info for the sub level resources.

repeated .google.cloud.beyondcorp.appconnectors.v1.ResourceInfo sub = 5;

Returns
TypeDescription
int

getSubList()

public List<ResourceInfo> getSubList()

List of Info for the sub level resources.

repeated .google.cloud.beyondcorp.appconnectors.v1.ResourceInfo sub = 5;

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

hasResource()

public boolean hasResource()

Specific details for the resource. This is for internal use only.

.google.protobuf.Any resource = 3;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the time field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ResourceInfo other)

public ResourceInfo.Builder mergeFrom(ResourceInfo other)
Parameter
NameDescription
otherResourceInfo
Returns
TypeDescription
ResourceInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ResourceInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ResourceInfo.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ResourceInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueAny
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
ResourceInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ResourceInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ResourceInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ResourceInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The id to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueAny
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueHealthStatus

The status to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
indexint
valueResourceInfo
Returns
TypeDescription
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
NameDescription
indexint
builderForValueResourceInfo.Builder
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
ResourceInfo.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ResourceInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ResourceInfo.Builder
Overrides