Class PolicyConditions.Builder

public static final class PolicyConditions.Builder extends GeneratedMessageV3.Builder<PolicyConditions.Builder> implements PolicyConditionsOrBuilder

Protobuf type google.cloud.conformance.storage.v1.PolicyConditions

Inheritance

java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > com.google.protobuf.GeneratedMessageV3.Builder > PolicyConditions.Builder

Methods

addAllContentLengthRange(Iterable<? extends Integer> values)

public PolicyConditions.Builder addAllContentLengthRange(Iterable<? extends Integer> values)

repeated int32 contentLengthRange = 1;

Parameter
NameDescription
valuesjava.lang.Iterable<? extends java.lang.Integer>

The contentLengthRange to add.

Returns
TypeDescription
PolicyConditions.Builder

This builder for chaining.

addAllStartsWith(Iterable<String> values)

public PolicyConditions.Builder addAllStartsWith(Iterable<String> values)

repeated string startsWith = 2;

Parameter
NameDescription
valuesjava.lang.Iterable<java.lang.String>

The startsWith to add.

Returns
TypeDescription
PolicyConditions.Builder

This builder for chaining.

addContentLengthRange(int value)

public PolicyConditions.Builder addContentLengthRange(int value)

repeated int32 contentLengthRange = 1;

Parameter
NameDescription
valueint

The contentLengthRange to add.

Returns
TypeDescription
PolicyConditions.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PolicyConditions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldcom.google.protobuf.Descriptors.FieldDescriptor
valuejava.lang.Object
Returns
TypeDescription
PolicyConditions.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor,java.lang.Object)

addStartsWith(String value)

public PolicyConditions.Builder addStartsWith(String value)

repeated string startsWith = 2;

Parameter
NameDescription
valuejava.lang.String

The startsWith to add.

Returns
TypeDescription
PolicyConditions.Builder

This builder for chaining.

addStartsWithBytes(ByteString value)

public PolicyConditions.Builder addStartsWithBytes(ByteString value)

repeated string startsWith = 2;

Parameter
NameDescription
valuecom.google.protobuf.ByteString

The bytes of the startsWith to add.

Returns
TypeDescription
PolicyConditions.Builder

This builder for chaining.

build()

public PolicyConditions build()
Returns
TypeDescription
PolicyConditions

buildPartial()

public PolicyConditions buildPartial()
Returns
TypeDescription
PolicyConditions

clear()

public PolicyConditions.Builder clear()
Returns
TypeDescription
PolicyConditions.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.clear()

clearContentLengthRange()

public PolicyConditions.Builder clearContentLengthRange()

repeated int32 contentLengthRange = 1;

Returns
TypeDescription
PolicyConditions.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PolicyConditions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldcom.google.protobuf.Descriptors.FieldDescriptor
Returns
TypeDescription
PolicyConditions.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.clearField(com.google.protobuf.Descriptors.FieldDescriptor)

clearOneof(Descriptors.OneofDescriptor oneof)

public PolicyConditions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofcom.google.protobuf.Descriptors.OneofDescriptor
Returns
TypeDescription
PolicyConditions.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor)

clearStartsWith()

public PolicyConditions.Builder clearStartsWith()

repeated string startsWith = 2;

Returns
TypeDescription
PolicyConditions.Builder

This builder for chaining.

clone()

public PolicyConditions.Builder clone()
Returns
TypeDescription
PolicyConditions.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.clone()

getContentLengthRange(int index)

public int getContentLengthRange(int index)

repeated int32 contentLengthRange = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
int

The contentLengthRange at the given index.

getContentLengthRangeCount()

public int getContentLengthRangeCount()

repeated int32 contentLengthRange = 1;

Returns
TypeDescription
int

The count of contentLengthRange.

getContentLengthRangeList()

public List<Integer> getContentLengthRangeList()

repeated int32 contentLengthRange = 1;

Returns
TypeDescription
java.util.List<java.lang.Integer>

A list containing the contentLengthRange.

getDefaultInstanceForType()

public PolicyConditions getDefaultInstanceForType()
Returns
TypeDescription
PolicyConditions

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
com.google.protobuf.Descriptors.Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
com.google.protobuf.Descriptors.Descriptor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.getDescriptorForType()

getStartsWith(int index)

public String getStartsWith(int index)

repeated string startsWith = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
java.lang.String

The startsWith at the given index.

getStartsWithBytes(int index)

public ByteString getStartsWithBytes(int index)

repeated string startsWith = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
com.google.protobuf.ByteString

The bytes of the startsWith at the given index.

getStartsWithCount()

public int getStartsWithCount()

repeated string startsWith = 2;

Returns
TypeDescription
int

The count of startsWith.

getStartsWithList()

public ProtocolStringList getStartsWithList()

repeated string startsWith = 2;

Returns
TypeDescription
com.google.protobuf.ProtocolStringList

A list containing the startsWith.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetFieldAccessorTable()

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.isInitialized()

mergeFrom(PolicyConditions other)

public PolicyConditions.Builder mergeFrom(PolicyConditions other)
Parameter
NameDescription
otherPolicyConditions
Returns
TypeDescription
PolicyConditions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PolicyConditions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputcom.google.protobuf.CodedInputStream
extensionRegistrycom.google.protobuf.ExtensionRegistryLite
Returns
TypeDescription
PolicyConditions.Builder
Overrides
com.google.protobuf.AbstractMessage.Builder.mergeFrom(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
Exceptions
TypeDescription
java.io.IOException

mergeFrom(Message other)

public PolicyConditions.Builder mergeFrom(Message other)
Parameter
NameDescription
othercom.google.protobuf.Message
Returns
TypeDescription
PolicyConditions.Builder
Overrides
com.google.protobuf.AbstractMessage.Builder.mergeFrom(com.google.protobuf.Message)

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PolicyConditions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldscom.google.protobuf.UnknownFieldSet
Returns
TypeDescription
PolicyConditions.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownFields(com.google.protobuf.UnknownFieldSet)

setContentLengthRange(int index, int value)

public PolicyConditions.Builder setContentLengthRange(int index, int value)

repeated int32 contentLengthRange = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueint

The contentLengthRange to set.

Returns
TypeDescription
PolicyConditions.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PolicyConditions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldcom.google.protobuf.Descriptors.FieldDescriptor
valuejava.lang.Object
Returns
TypeDescription
PolicyConditions.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.setField(com.google.protobuf.Descriptors.FieldDescriptor,java.lang.Object)

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

public PolicyConditions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldcom.google.protobuf.Descriptors.FieldDescriptor
indexint
valuejava.lang.Object
Returns
TypeDescription
PolicyConditions.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor,int,java.lang.Object)

setStartsWith(int index, String value)

public PolicyConditions.Builder setStartsWith(int index, String value)

repeated string startsWith = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valuejava.lang.String

The startsWith to set.

Returns
TypeDescription
PolicyConditions.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PolicyConditions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldscom.google.protobuf.UnknownFieldSet
Returns
TypeDescription
PolicyConditions.Builder
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFields(com.google.protobuf.UnknownFieldSet)