Class Warning.Builder (1.20.0)

public static final class Warning.Builder extends GeneratedMessageV3.Builder<Warning.Builder> implements WarningOrBuilder

[Output Only] Informational warning message.

Protobuf type google.cloud.compute.v1.Warning

Implements

WarningOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllData(Iterable<? extends Data> values)

public Warning.Builder addAllData(Iterable<? extends Data> values)

[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
valuesIterable<? extends com.google.cloud.compute.v1.Data>
Returns
TypeDescription
Warning.Builder

addData(Data value)

public Warning.Builder addData(Data value)

[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
valueData
Returns
TypeDescription
Warning.Builder

addData(Data.Builder builderForValue)

public Warning.Builder addData(Data.Builder builderForValue)

[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
builderForValueData.Builder
Returns
TypeDescription
Warning.Builder

addData(int index, Data value)

public Warning.Builder addData(int index, Data value)

[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;

Parameters
NameDescription
indexint
valueData
Returns
TypeDescription
Warning.Builder

addData(int index, Data.Builder builderForValue)

public Warning.Builder addData(int index, Data.Builder builderForValue)

[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;

Parameters
NameDescription
indexint
builderForValueData.Builder
Returns
TypeDescription
Warning.Builder

addDataBuilder()

public Data.Builder addDataBuilder()

[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
Data.Builder

addDataBuilder(int index)

public Data.Builder addDataBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Warning.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Warning.Builder
Overrides

build()

public Warning build()
Returns
TypeDescription
Warning

buildPartial()

public Warning buildPartial()
Returns
TypeDescription
Warning

clear()

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

clearCode()

public Warning.Builder clearCode()

[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
Warning.Builder

This builder for chaining.

clearData()

public Warning.Builder clearData()

[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
Warning.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMessage()

public Warning.Builder clearMessage()

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

optional string message = 418054151;

Returns
TypeDescription
Warning.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Warning.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Warning.Builder
Overrides

clone()

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

getCode()

public 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 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 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

getDataBuilder(int index)

public Data.Builder getDataBuilder(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.Builder

getDataBuilderList()

public List<Data.Builder> getDataBuilderList()

[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<Builder>

getDataCount()

public 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 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 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 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>

getDefaultInstanceForType()

public Warning getDefaultInstanceForType()
Returns
TypeDescription
Warning

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMessage()

public String getMessage()

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

optional string message = 418054151;

Returns
TypeDescription
String

The message.

getMessageBytes()

public 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 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 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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Warning other)

public Warning.Builder mergeFrom(Warning other)
Parameter
NameDescription
otherWarning
Returns
TypeDescription
Warning.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Warning.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Warning.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Warning.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Warning.Builder
Overrides

removeData(int index)

public Warning.Builder removeData(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
Warning.Builder

setCode(String value)

public Warning.Builder setCode(String value)

[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;

Parameter
NameDescription
valueString

The code to set.

Returns
TypeDescription
Warning.Builder

This builder for chaining.

setCodeBytes(ByteString value)

public Warning.Builder setCodeBytes(ByteString value)

[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;

Parameter
NameDescription
valueByteString

The bytes for code to set.

Returns
TypeDescription
Warning.Builder

This builder for chaining.

setData(int index, Data value)

public Warning.Builder setData(int index, Data value)

[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;

Parameters
NameDescription
indexint
valueData
Returns
TypeDescription
Warning.Builder

setData(int index, Data.Builder builderForValue)

public Warning.Builder setData(int index, Data.Builder builderForValue)

[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;

Parameters
NameDescription
indexint
builderForValueData.Builder
Returns
TypeDescription
Warning.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Warning.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Warning.Builder
Overrides

setMessage(String value)

public Warning.Builder setMessage(String value)

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

optional string message = 418054151;

Parameter
NameDescription
valueString

The message to set.

Returns
TypeDescription
Warning.Builder

This builder for chaining.

setMessageBytes(ByteString value)

public Warning.Builder setMessageBytes(ByteString value)

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

optional string message = 418054151;

Parameter
NameDescription
valueByteString

The bytes for message to set.

Returns
TypeDescription
Warning.Builder

This builder for chaining.

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

public Warning.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Warning.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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