Class WarcRedirect.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<WarcRedirect.Builder>
com.google.protobuf.GeneratedMessage.Builder<WarcRedirect.Builder>
ai.pipestream.parsed.data.warc.v1.WarcRedirect.Builder
- All Implemented Interfaces:
WarcRedirectOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
WarcRedirect
public static final class WarcRedirect.Builder
extends com.google.protobuf.GeneratedMessage.Builder<WarcRedirect.Builder>
implements WarcRedirectOrBuilder
Represents a redirect in the HTTP redirect chainProtobuf type
ai.pipestream.parsed.data.warc.v1.WarcRedirect-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Source URL (where the redirect originated)Timestamp of this redirectHTTP status code for this redirect (301, 302, etc.)Target URL (where the redirect points to)static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorSource URL (where the redirect originated)com.google.protobuf.ByteStringSource URL (where the redirect originated)com.google.protobuf.TimestampTimestamp of this redirectcom.google.protobuf.Timestamp.BuilderTimestamp of this redirectcom.google.protobuf.TimestampOrBuilderTimestamp of this redirectintHTTP status code for this redirect (301, 302, etc.)getToUrl()Target URL (where the redirect points to)com.google.protobuf.ByteStringTarget URL (where the redirect points to)booleanTimestamp of this redirectprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(WarcRedirect other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeRedirectTimestamp(com.google.protobuf.Timestamp value) Timestamp of this redirectsetFromUrl(String value) Source URL (where the redirect originated)setFromUrlBytes(com.google.protobuf.ByteString value) Source URL (where the redirect originated)setRedirectTimestamp(com.google.protobuf.Timestamp value) Timestamp of this redirectsetRedirectTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) Timestamp of this redirectsetStatusCode(int value) HTTP status code for this redirect (301, 302, etc.)Target URL (where the redirect points to)setToUrlBytes(com.google.protobuf.ByteString value) Target URL (where the redirect points to)Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<WarcRedirect.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<WarcRedirect.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<WarcRedirect.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WarcRedirect.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<WarcRedirect.Builder>
-
mergeFrom
public WarcRedirect.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WarcRedirect.Builder>- Throws:
IOException
-
getFromUrl
Source URL (where the redirect originated)
string from_url = 1 [json_name = "fromUrl"];- Specified by:
getFromUrlin interfaceWarcRedirectOrBuilder- Returns:
- The fromUrl.
-
getFromUrlBytes
public com.google.protobuf.ByteString getFromUrlBytes()Source URL (where the redirect originated)
string from_url = 1 [json_name = "fromUrl"];- Specified by:
getFromUrlBytesin interfaceWarcRedirectOrBuilder- Returns:
- The bytes for fromUrl.
-
setFromUrl
Source URL (where the redirect originated)
string from_url = 1 [json_name = "fromUrl"];- Parameters:
value- The fromUrl to set.- Returns:
- This builder for chaining.
-
clearFromUrl
Source URL (where the redirect originated)
string from_url = 1 [json_name = "fromUrl"];- Returns:
- This builder for chaining.
-
setFromUrlBytes
Source URL (where the redirect originated)
string from_url = 1 [json_name = "fromUrl"];- Parameters:
value- The bytes for fromUrl to set.- Returns:
- This builder for chaining.
-
getToUrl
Target URL (where the redirect points to)
string to_url = 2 [json_name = "toUrl"];- Specified by:
getToUrlin interfaceWarcRedirectOrBuilder- Returns:
- The toUrl.
-
getToUrlBytes
public com.google.protobuf.ByteString getToUrlBytes()Target URL (where the redirect points to)
string to_url = 2 [json_name = "toUrl"];- Specified by:
getToUrlBytesin interfaceWarcRedirectOrBuilder- Returns:
- The bytes for toUrl.
-
setToUrl
Target URL (where the redirect points to)
string to_url = 2 [json_name = "toUrl"];- Parameters:
value- The toUrl to set.- Returns:
- This builder for chaining.
-
clearToUrl
Target URL (where the redirect points to)
string to_url = 2 [json_name = "toUrl"];- Returns:
- This builder for chaining.
-
setToUrlBytes
Target URL (where the redirect points to)
string to_url = 2 [json_name = "toUrl"];- Parameters:
value- The bytes for toUrl to set.- Returns:
- This builder for chaining.
-
getStatusCode
public int getStatusCode()HTTP status code for this redirect (301, 302, etc.)
int32 status_code = 3 [json_name = "statusCode"];- Specified by:
getStatusCodein interfaceWarcRedirectOrBuilder- Returns:
- The statusCode.
-
setStatusCode
HTTP status code for this redirect (301, 302, etc.)
int32 status_code = 3 [json_name = "statusCode"];- Parameters:
value- The statusCode to set.- Returns:
- This builder for chaining.
-
clearStatusCode
HTTP status code for this redirect (301, 302, etc.)
int32 status_code = 3 [json_name = "statusCode"];- Returns:
- This builder for chaining.
-
hasRedirectTimestamp
public boolean hasRedirectTimestamp()Timestamp of this redirect
optional .google.protobuf.Timestamp redirect_timestamp = 4 [json_name = "redirectTimestamp"];- Specified by:
hasRedirectTimestampin interfaceWarcRedirectOrBuilder- Returns:
- Whether the redirectTimestamp field is set.
-
getRedirectTimestamp
public com.google.protobuf.Timestamp getRedirectTimestamp()Timestamp of this redirect
optional .google.protobuf.Timestamp redirect_timestamp = 4 [json_name = "redirectTimestamp"];- Specified by:
getRedirectTimestampin interfaceWarcRedirectOrBuilder- Returns:
- The redirectTimestamp.
-
setRedirectTimestamp
Timestamp of this redirect
optional .google.protobuf.Timestamp redirect_timestamp = 4 [json_name = "redirectTimestamp"]; -
setRedirectTimestamp
public WarcRedirect.Builder setRedirectTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) Timestamp of this redirect
optional .google.protobuf.Timestamp redirect_timestamp = 4 [json_name = "redirectTimestamp"]; -
mergeRedirectTimestamp
Timestamp of this redirect
optional .google.protobuf.Timestamp redirect_timestamp = 4 [json_name = "redirectTimestamp"]; -
clearRedirectTimestamp
Timestamp of this redirect
optional .google.protobuf.Timestamp redirect_timestamp = 4 [json_name = "redirectTimestamp"]; -
getRedirectTimestampBuilder
public com.google.protobuf.Timestamp.Builder getRedirectTimestampBuilder()Timestamp of this redirect
optional .google.protobuf.Timestamp redirect_timestamp = 4 [json_name = "redirectTimestamp"]; -
getRedirectTimestampOrBuilder
public com.google.protobuf.TimestampOrBuilder getRedirectTimestampOrBuilder()Timestamp of this redirect
optional .google.protobuf.Timestamp redirect_timestamp = 4 [json_name = "redirectTimestamp"];- Specified by:
getRedirectTimestampOrBuilderin interfaceWarcRedirectOrBuilder
-