Interface WarningsOrBuilder (1.58.0)

public interface WarningsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCode()

public abstract String getCode()

[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Check the Code enum for the list of possible values.

optional string code = 3059181;

Returns
Type Description
String

The code.

getCodeBytes()

public abstract ByteString getCodeBytes()

[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Check the Code enum for the list of possible values.

optional string code = 3059181;

Returns
Type Description
ByteString

The bytes for code.

getData(int index)

public abstract Data getData(int index)

[Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }

repeated .google.cloud.compute.v1.Data data = 3076010;

Parameter
Name Description
index int
Returns
Type Description
Data

getDataCount()

public abstract int getDataCount()

[Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }

repeated .google.cloud.compute.v1.Data data = 3076010;

Returns
Type Description
int

getDataList()

public abstract List<Data> getDataList()

[Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }

repeated .google.cloud.compute.v1.Data data = 3076010;

Returns
Type Description
List<Data>

getDataOrBuilder(int index)

public abstract DataOrBuilder getDataOrBuilder(int index)

[Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }

repeated .google.cloud.compute.v1.Data data = 3076010;

Parameter
Name Description
index int
Returns
Type Description
DataOrBuilder

getDataOrBuilderList()

public abstract List<? extends DataOrBuilder> getDataOrBuilderList()

[Output Only] Metadata about this warning in key: value format. For example: "data": [ { "key": "scope", "value": "zones/us-east1-d" }

repeated .google.cloud.compute.v1.Data data = 3076010;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.DataOrBuilder>

getMessage()

public abstract String getMessage()

[Output Only] A human-readable description of the warning code.

optional string message = 418054151;

Returns
Type Description
String

The message.

getMessageBytes()

public abstract ByteString getMessageBytes()

[Output Only] A human-readable description of the warning code.

optional string message = 418054151;

Returns
Type Description
ByteString

The bytes for message.

hasCode()

public abstract boolean hasCode()

[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. Check the Code enum for the list of possible values.

optional string code = 3059181;

Returns
Type Description
boolean

Whether the code field is set.

hasMessage()

public abstract boolean hasMessage()

[Output Only] A human-readable description of the warning code.

optional string message = 418054151;

Returns
Type Description
boolean

Whether the message field is set.