Interface WarningOrBuilder (1.26.0)

public interface WarningOrBuilder 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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
String

The message.

getMessageBytes()

public abstract ByteString getMessageBytes()

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

optional string message = 418054151;

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

Whether the message field is set.